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> | |
| #include <cstdlib> | |
| #include <string> | |
| using namespace std; | |
| int main() { | |
| string input; | |
| while(cin >> input){ | |
| if(input == "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 <iostream> | |
| #include <string> | |
| using namespace std; | |
| int main() { | |
| string input1 , input2; | |
| while(cin >> input1 >> input2){ | |
| int num1[10] = {0}, num2[10] = {0}, count = 0; | |
| if(input1 == "0" && input2 == "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> | |
| #include <stdlib.h> | |
| int main() { | |
| char input[100000]; | |
| while(gets(input) != NULL){ | |
| long int sum = 0; | |
| char *ptr; | |
| ptr = strtok(input , " "); |
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> | |
| #include <cmath> | |
| #include <string> | |
| #define DIGIT 10000 | |
| using namespace std; | |
| class HugeInteger | |
| { | |
| public: |
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> | |
| #include <cmath> | |
| #include <string> | |
| #define DIGIT 500 | |
| using namespace std; | |
| class HugeInteger | |
| { | |
| public: |
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 GCD(int , int); | |
| int main() { | |
| int num; | |
| while(scanf("%d", &num) != EOF){ | |
| if(num == 0) | |
| break; | |
| int G = 0 , i , 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; | |
| scanf("%d",&num); | |
| for(i = 1 ; i <= num ; ++i){ | |
| char url[10][105]; | |
| int relation[10][1] , max = 0; | |
| for(j = 0 ; j < 10 ; ++j){ | |
| scanf("%s%d",url[j] , relation[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 , k; | |
| while(scanf("%d",&num) != EOF){ | |
| for(k = 0 ; k < num ; ++k){ | |
| int a , b , i , check = 0; | |
| scanf("%d%d",&a ,&b); | |
| int array[a * b]; | |
| for(i = 0 ; i < a * b ; ++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 <string.h> | |
| #include <ctype.h> | |
| int main() { | |
| char input[1005]; | |
| while(gets(input) != NULL){ | |
| int i , check = 0; | |
| int count[123] = {0}; | |
| 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> | |
| #include <stdlib.h> | |
| struct data{ | |
| int minutes; | |
| int seconds; | |
| }; | |
| typedef struct data Data; |