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; | |
| while(scanf("%d",&n) != EOF){ | |
| if(n == 0) | |
| break; | |
| char binary[200]; | |
| int i = 0 , count = 0 , j; | |
| 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> | |
| #include <string.h> | |
| int main() { | |
| char input[1000]; | |
| char key[] = {"0123456789~`!@#$%^&*()_-+=\"[]'{}|\\;:/?><., "}; | |
| while(gets(input) != NULL){ | |
| int words = 0; | |
| char *ptr; | |
| ptr = strtok(input , key); |
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 input[100]; | |
| char encode[] = {"QWERTYUIOP[]\\ASDFGHJKL;'ZXCVBNM,./`1234567890-="}; | |
| while(gets(input) != NULL){ | |
| char *ptr; | |
| int i; | |
| for(i = 0 ; i < strlen(input) ; ++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> | |
| int main() { | |
| int n , i , j; | |
| scanf("%d",&n); | |
| for(i = 1 ; i <= n ; ++i){ | |
| int num , init , high = 0 , low = 0; | |
| scanf("%d%d",&num,&init); | |
| for(j = 1 ; j < num ; ++j){ |
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 , i , j , k; | |
| scanf("%d", &num); | |
| for(i = 1 ; i <= num ; ++i){ | |
| int input[3]; | |
| scanf("%d%d%d", &input[0] ,&input[1] ,&input[2]); | |
| for(j = 0 ; j < 2 ; ++j){ | |
| for(k = 0 ; k < 2 ; ++k){ |
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() { | |
| char input[35]; | |
| while(scanf("%s" , input) != EOF){ | |
| unsigned long int length = strlen(input) , i; | |
| char value[] = {"22233344455566677778889999"}; | |
| for(i = 0 ; i < length ; ++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 <ctype.h> | |
| #include <string.h> | |
| int main() { | |
| int num; | |
| char c; | |
| scanf("%d%c",&num , &c); | |
| while(num-- != 0){ | |
| char input[210]; |
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; | |
| while(scanf("%d",&n) != EOF){ | |
| if(n < 0) | |
| break; | |
| if(n == 0){ | |
| puts("0"); | |
| continue; |
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() { | |
| char input[25]; | |
| while(gets(input) != NULL){ | |
| unsigned long int length = strlen(input); | |
| int sum = 0 , i , flag = 0; | |
| for(i = 0 ; i < length ; ++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 <math.h> | |
| int main() { | |
| int n; | |
| scanf("%d",&n); | |
| while(n > 0){ | |
| char sign , blank; | |
| long long int a , b , sum = 0 , i = 0 , a2 = 0 , b2 = 0 , ten = 10; | |
| scanf("%llx%c%c%c%llx%c", &a , &blank , &sign , &blank , &b , &blank); |