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 <stdio.h> | |
int main(void) { | |
int n; | |
scanf("%d", &n); | |
if(n < 10){ | |
printf("00%d\n", n); | |
} |
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 <stdio.h> | |
int main(void) { | |
int t, a, b; | |
int i; | |
scanf("%d", &t); | |
for(i = 0;i < t;i++){ | |
scanf("%d%d", &a, &b); |
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 <stdio.h> | |
int main(void) { | |
int a, b, c, d, m; | |
int x, y; | |
int i; | |
int m_max = 0; | |
scanf("%d%d%d%d%d", &a, &b, &c, &d, &m); | |
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 <stdio.h> | |
int main(void) { | |
int s; | |
scanf("%d", &s); | |
if(s / 100 == 4 || s / 100 == 5){ | |
printf("Yes\n"); | |
} | |
else{ |
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 <stdio.h> | |
int main(void) { | |
int i; | |
int n, a, cards[36] = {0}; | |
int sum = 0; | |
scanf("%d", &n); | |
for(i = 0;i < n;i++){ | |
scanf("%d", &a); |
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 <stdio.h> | |
int main(void) { | |
int b, c; | |
scanf("%d%d", &b, &c); | |
if(b == c){ | |
printf("Yes\n"); | |
} | |
else{ | |
printf("No\n"); |
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 <stdio.h> | |
#include<string.h> | |
int main(void) { | |
int n; | |
int i; | |
char s[10]; | |
int red1 = 0, orange1 = 0, yellow1 = 0, green1 = 0, cyan1 = 0, blue1 = 0, violet1 = 0; | |
int red2 = 0, orange2 = 0, yellow2 = 0, green2 = 0, cyan2 = 0, blue2 = 0, violet2 = 0; |
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 <stdio.h> | |
int main(void) { | |
char s[5000001]; | |
int i; | |
scanf("%s", s); | |
i = 0; | |
while(s[i] != 0){ |
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 <stdio.h> | |
int main(void) { | |
int a, b, c, d, e, f = 0; | |
int i; | |
scanf("%d%d%d%d%d", &a, &b, &c, &d, &e); | |
for(i = 0;i < (a + b) * (c + d);i++){ | |
if(i % (a + b) < a && i % (c + d) < 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
#include <stdio.h> | |
#include <stdlib.h> | |
int main(void) { | |
int t; | |
int n; | |
char s[20]; | |
int i, j; |