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() { | |
| int H , M; | |
| while(scanf("%d%d",&H , &M) != EOF){ | |
| H += 2; | |
| M += 30; | |
| if(M >= 60){ | |
| H++; | |
| M -= 60; |
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> | |
| #include <string.h> | |
| struct string{ | |
| char data[10]; | |
| }; | |
| typedef struct string String; |
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 compare(const void* , const void*); | |
| int main() { | |
| int n , i; | |
| while(scanf("%d",&n) != EOF){ | |
| int input[n] , blank = 1; | |
| for(i = 0 ; i < n ; ++i) |
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 compare(const void* , const void*); | |
| int main() { | |
| int n , i; | |
| while(scanf("%d",&n) != EOF){ | |
| int input[n] , blank = 1; | |
| for(i = 0 ; i < n ; ++i) |
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> | |
| struct point{ | |
| int x; | |
| int y; | |
| }; | |
| typedef struct point Point; |
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() { | |
| int num , line = 0; | |
| scanf("%d",&num); | |
| while(num-- != 0){ | |
| int A , F; | |
| scanf("%d%d",&A,&F); | |
| int i , j , times; | |
| for(times = 0 ; times < F ; ++times){ |
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() { | |
| char c; | |
| int n , kill = 0 , die = 0 , assist = 0 , combo = 0; | |
| char Kill[] = "Get_Kill"; | |
| char Assist[] = "Get_Assist"; | |
| char Die[] = "Die"; | |
| scanf("%d%c",&n,&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> | |
| int main() { | |
| int code[26] = {10, 11, 12, 13, 14, 15, 16, | |
| 17, 34, 18, 19, 20, 21, 22, 35, 23, 24, 25, | |
| 26, 27, 28, 29, 32, 30, 31, 33}; | |
| char id[10]; | |
| while(gets(id) != NULL){ | |
| int check = 0 , i , j = 8; | |
| check += (code[id[0] - 65]) / 10 + ((code[id[0] - 65]) % 10) * 9; |
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> | |
| #include <ctype.h> | |
| int main() { | |
| int n , i , j , max = 0; | |
| char c; | |
| int frequency[26] = { 0 }; | |
| scanf("%d%c",&n,&c); | |
| while(n-- != 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() { | |
| int n , i; | |
| while(scanf("%d",&n) != EOF && n != 0){ | |
| int sum = 0; | |
| for(i = 1 ; i <= n ; ++i) | |
| sum += i * i; | |
| printf("%d\n",sum); | |
| } |