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); | |
for(int i=0 ; i<n ; i++) { | |
int x; | |
int flg = 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; | |
long long int a, b, c, d, r, s; | |
scanf("%d",&n); | |
scanf("%lld %lld %lld",&a,&b,&r); | |
scanf("%lld %lld %lld",&c,&d,&s); |
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() | |
{ | |
char str[21]; | |
int n; | |
double r; | |
scanf("%s",str); | |
scanf("%d",&n); | |
scanf("%lf",&r); |
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() | |
{ | |
char a; | |
scanf("%c",&a); | |
printf("%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() | |
{ | |
int a; | |
scanf("%d",&a); | |
printf("%c",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() | |
{ | |
long long int a; | |
scanf("%lld",&a); | |
printf("%lldTB\n",a); | |
printf("%lldGB\n",a*1024); | |
printf("%lldMB\n",a*1024*1024); | |
printf("%lldKB\n",a*1024*1024*1024); |
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() | |
{ | |
double a,b; | |
double n,m,l; | |
double x,y; | |
double X; | |
scanf("%lf %lf",&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() | |
{ | |
int h1,m1,s1,h2,m2,s2; | |
scanf("%d %d %d",&h1,&m1,&s1); | |
scanf("%d %d %d",&h2,&m2,&s2); | |
int tim1 = h1*3600+m1*60+s1; | |
int tim2 = h2*3600+m2*60+s2; | |
int dif = tim2 - tim1; |
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, m, s1, s2, a; | |
scanf("%d%d%d%d%d",&n,&m,&s1,&s2,&a); | |
printf("%.1lf",0.3*(n-m+s1+s2)+1.0*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> | |
#include<limits.h> | |
int main() | |
{ | |
printf("char: 1 Byte, -128 ~ 127\n"); | |
printf("short: %d Bytes, %d ~ %d\n", sizeof(short), SHRT_MIN, SHRT_MAX); | |
printf("int: %d Bytes, %d ~ %d\n",sizeof(int), INT_MIN, INT_MAX); | |
printf("long: %d Bytes, %lld ~ %lld\n",sizeof(long), LONG_MIN, LONG_MAX); | |
printf("unsigned char: 1 Byte, 0 ~ 255\n"); |