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 a,b,c,max; | |
| while (scanf ("%d%d%d",&a,&b,&c) != EOF){ | |
| if (a > b){ | |
| max = a; | |
| }else{ | |
| max = 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() { | |
| int n; | |
| scanf ("%d",&n); | |
| while (n > 50){ | |
| printf ("%d\n",n - 1); | |
| break; | |
| } | |
| while (n <= 50){ |
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; | |
| scanf ("%d",&n); | |
| printf ("%d\n",(n >= 0)*(n <= 5) * 0 | |
| + (n >= 6)*(n <= 11) * 590 | |
| + (n >= 12)*(n <= 17) * 790 | |
| + (n >= 18)*(n <= 59) * 890 | |
| + (n >= 60) * 399); |
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 argc, const char * argv[]) { | |
| printf("hello, world\n"); | |
| return 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; | |
| int doz,single; | |
| scanf ("%d",&n); | |
| doz = (n / 12)*50; | |
| single = (n % 12)*5; | |
| printf ("%d\n",doz+single); | |
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() { | |
| long long int a,b; | |
| while (scanf ("%lld%lld",&a,&b) != EOF){ | |
| if (a > b){ | |
| long long int temp = b; | |
| b = a; | |
| a = temp; | |
| } |
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 i,j; | |
| while (scanf("%d%d",&i,&j) != EOF){ | |
| int ni = i; | |
| int nj = j; | |
| if ( 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 n; | |
| int a,b; | |
| scanf ("%d",&n); | |
| for (int i = 0 ; i < n ; i++){ | |
| scanf("%d%d",&a,&b); | |
| if (a > b){ | |
| printf (">\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(int argc, const char * argv[]) { | |
| int n,num; | |
| int first = 0; | |
| int second = 0; | |
| int third = 0; | |
| scanf ("%d",&n); | |
| for (int 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> | |
| int main(int argc, const char * argv[]) { | |
| int n,num; | |
| int max = 0; | |
| scanf ("%d",&n); | |
| for (int i = 0 ; i < n ; i++){ | |
| scanf("%d",&num); | |
| if (num > max){ | |
| max = num; |