This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Header file | |
#include <time.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <stdbool.h> | |
// Private function | |
static void init_movielist(void); // 영화 리스트 초기화 함수 | |
static void init_userlist(void); // 사용자 리스트 초기화 함수 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Includes ------------------------------------------------------------------*/ | |
#include "main.h" | |
/* Private includes ----------------------------------------------------------*/ | |
/* USER CODE BEGIN Includes */ | |
#include "stm32f429i_discovery_ts.h" | |
#include <stdio.h> | |
/* USER CODE END Includes */ | |
/* Private typedef -----------------------------------------------------------*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <vector> | |
#include <iostream> | |
using namespace std; | |
vector<int> inod, postod; | |
void find_preod(int a, int b, int c, int d) { | |
if (b - a == 0) return; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <vector> | |
#include <iostream> | |
using namespace std; | |
vector<int> inod, postod; | |
int inod_root[100001]; | |
void find_preod(int a, int b, int c, int d) { | |
if (b - a == 0) return; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
int main(void) { | |
ios_base::sync_with_stdio(false); | |
cin.tie(nullptr); | |
long long a, b, c; | |
cin >> a >> b >> c; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define F_CPU 16000000UL | |
#include "LCD.h" | |
#include <avr/io.h> | |
#include <util/delay.h> | |
void LCD_command(unsigned char command) | |
{ | |
LCD_CONTROL &= ~((1<<EN) | (1<<RS) | (1<<RW)); | |
_delay_us(1); | |
LCD_DATABUS = command; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define F_CPU 16000000UL | |
#include "LCD.h" | |
#include <avr/io.h> | |
#include <util/delay.h> | |
void LCD_command(unsigned char command) | |
{ | |
LCD_CONTROL &= ~((1<<EN) | (1<<RS) | (1<<RW)); | |
_delay_us(1); | |
LCD_DATABUS = command; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <queue> | |
#include <vector> | |
#include <iostream> | |
using namespace std; | |
vector<int> tree[50001]; | |
int p[50001]; | |
int d[50001]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <queue> | |
#include <vector> | |
#include <iostream> | |
#include <algorithm> | |
using namespace std; | |
vector<pair<int, int>> tree[40001]; | |
int d[40001]; | |
int p[40001]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int pinLED = 13; | |
int ledStatus = 0; | |
void setup() { | |
// put your setup code here, to run once: | |
Serial.begin(115200); | |
pinMode(pinLED, OUTPUT); | |
Serial.println("usage : write (turn on | turn off)"); | |
} |