Skip to content

Instantly share code, notes, and snippets.

// 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); // 사용자 리스트 초기화 함수
/* Includes ------------------------------------------------------------------*/
#include "main.h"
/* Private includes ----------------------------------------------------------*/
/* USER CODE BEGIN Includes */
#include "stm32f429i_discovery_ts.h"
#include <stdio.h>
/* USER CODE END Includes */
/* Private typedef -----------------------------------------------------------*/
#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;
#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;
#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;
#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;
#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;
#include <queue>
#include <vector>
#include <iostream>
using namespace std;
vector<int> tree[50001];
int p[50001];
int d[50001];
#include <queue>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
vector<pair<int, int>> tree[40001];
int d[40001];
int p[40001];
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)");
}