identifier
string
space
string
input
string
target
float64
metric_type
string
metadata
string
messages
list
CDSS_714611
CDSS
#include <stdio.h> #include <math.h> int main(void){ // Your code here! long long N; int min = 99999999; scanf("%lld",&N); for(int i = 1; i <= sqrt(N); i++){ if(N % i == 0){ long long tmp; if(N / i > i){ tmp = N / i; } ...
2,048
memory_bytes
{'s_id': 's947705750', 'p_id': 'p03775', 'u_id': 'u154818015', 'date': '1595984881', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '2048', 'code_size': '625'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n\nint main(void){\n // Your code here!\n long long N;\n int min = 99999999;\n \n ...
CDSS_716941
CDSS
#include <stdio.h> int main(void){ int N; scanf("%d",&N); printf("%d\n",800*N-(N/15)*200); return 0; }
128
memory_bytes
{'s_id': 's128109810', 'p_id': 'p03795', 'u_id': 'u812973725', 'date': '1550335468', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '113'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n int N;\n scanf(\"%d\",&N);\n\n printf(\"%d\\n\",800*N-(N/15)*200);\n\n return 0;\n}\nPredi...
CDSS_509399
CDSS
#include<stdio.h> int main(){ int A,B,C,D; scanf("%d%d%d",&A,&B,&C); D=A+B+C; if(D>=22){ printf("bust"); } else{ printf("win"); } return 0; }
128
memory_bytes
{'s_id': 's891971794', 'p_id': 'p02835', 'u_id': 'u353919145', 'date': '1581146658', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '158'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\nint A,B,C,D;\nscanf(\"%d%d%d\",&A,&B,&C);\nD=A+B+C;\nif(D>=22){\n printf(\"bust\");\n }\nelse{\n...
CDSS_41763
CDSS
#include<stdio.h> int main() { int n,i,j,k,l,add; while(scanf("%d",&n)!=EOF) { add=0; for(i=0;i<=9;i++) { for(j=0;j<=9;j++) { for(k=0;k<=9;k++) { for(l=0;l<=9;l++) ...
596
memory_bytes
{'s_id': 's467090329', 'p_id': 'p00008', 'u_id': 'u011621222', 'date': '1391087125', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '514'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n int n,i,j,k,l,add;\n while(scanf(\"%d\",&n)!=EOF)\n {\n add=0;\n ...
CDSS_453080
CDSS
#include<stdio.h> int main(void){ char num[4]; scanf("%3s",num); for(int i = 0;i < 3;i++)if(num[i] == '7'){ puts("Yes"); return 0; } puts("No"); }
1,660
memory_bytes
{'s_id': 's827162316', 'p_id': 'p02711', 'u_id': 'u491343140', 'date': '1586739718', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1660', 'code_size': '183'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void){\n char num[4];\n scanf(\"%3s\",num);\n for(int i = 0;i < 3;i++)if(num[i] == '7'){\n ...
CDSS_695152
CDSS
#include <stdio.h> int main(void) { int A, B; if (scanf("%d%d", &A, &B) != 2) return 1; puts(A%3==0 || B%3==0 || (A+B)%3==0 ? "Possible" : "Impossible"); return 0; }
128
memory_bytes
{'s_id': 's579418225', 'p_id': 'p03657', 'u_id': 'u646118499', 'date': '1576572044', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '171'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\n\tint A, B;\n\tif (scanf(\"%d%d\", &A, &B) != 2) return 1;\n\tputs(A%3==0 || B%3==0 || (A+B)%3...
CDSS_168846
CDSS
#include <stdio.h> #include <stdlib.h> int main(){ int i,j,N,tmp,b,flag = 1,cnt=0; scanf("%d",&N); int A[N]; if(N<1 && N>100) exit(1); for(i=0; i<N; i++){ scanf("%d",&A[i]); if(A[i]<0||A[i]>100) exit(2); } while(flag){ flag = 0; for(j=N-1; j>0; j--){ if(A[j] < A[j-1]){ ...
2,108
memory_bytes
{'s_id': 's764315082', 'p_id': 'p02259', 'u_id': 'u679643074', 'date': '1576459316', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '561'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\nint main(){\n\n int i,j,N,tmp,b,flag = 1,cnt=0;\n\n scanf(\"%d\",&N);\n\n int A[N];\n\n ...
CDSS_25274
CDSS
#include <stdio.h> #include <stdlib.h> #include <math.h> #define PI 3.14159265358979323 //void quick(int *,long long,long long); //int comp(char *a,char *b); int main(){ int a,a1=0,a2=0,a3=0,i; for(i=0;i<10;i++){ scanf("%d",&a); if(a>=a1){ a3=a2; a2=a1; a1=a; }else if(a>=a2){ a3=a2; a2=a; ...
600
memory_bytes
{'s_id': 's029222926', 'p_id': 'p00001', 'u_id': 'u846233849', 'date': '1381751873', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '427'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <math.h>\n#define PI 3.14159265358979323\n\n//void quick(int *,long long,long long);...
CDSS_50854
CDSS
#include <stdio.h> int main(void) { int num[10], i, j, max, dum; for (i = 0; i < 5; i++)scanf("%d", &num[i]); for (i = 0; i < 4; i++){ max = i; for (j = i + 1; j < 5; j++){ if (num[max] < num[j])max = j; } dum = num[i]; num[i] = num[max]; num[max] = dum; } for (i = 0; i < 5; i++){ printf("%...
612
memory_bytes
{'s_id': 's706115199', 'p_id': 'p00018', 'u_id': 'u864079743', 'date': '1412237292', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '612', 'code_size': '395'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n\tint num[10], i, j, max, dum;\n\t\n\tfor (i = 0; i < 5; i++)scanf(\"%d\", &num[i]);\n\t\n\tf...
CDSS_205629
CDSS
#include<stdio.h> #include<math.h> const double rasian = M_PI*60.0/180.0; typedef struct { double x; double y; }K; void print(K plot) { printf("%lf %lf\n",plot.x,plot.y); } void KochCurve(int n, K p1, K p2) { if(n == 0) return; K s,t,u; s.x = (2.0*p1.x+1.0*p2.x)/3.0; s.y = (2.0*p1.y+1.0*p2.y)/3.0...
2,052
memory_bytes
{'s_id': 's232227766', 'p_id': 'p02273', 'u_id': 'u776092482', 'date': '1545024217', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2052', 'code_size': '807'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<math.h>\n\nconst double rasian = M_PI*60.0/180.0;\n \ntypedef struct\n{\n double x;\n double y;\n}K;\n\...
CDSS_611336
CDSS
#include<stdio.h> int main() { int x,y; scanf("%d%d",&x,&y); if(y%2==0){ int z=y/2; printf("%d",x+z); } }
128
memory_bytes
{'s_id': 's614604886', 'p_id': 'p03219', 'u_id': 'u863370423', 'date': '1542259360', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '142'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n int x,y;\n scanf(\"%d%d\",&x,&y);\n if(y%2==0){\n int z=y/2;\n printf(\"...
CDSS_415134
CDSS
#include<stdio.h> #include<stdlib.h> #include<string.h> int main(){ int N,amari; scanf("%d",&N); amari = N%10; if(amari==2||amari==4||amari==5||amari==7||amari==9){ printf("hon\n"); }else if(amari==3){ printf("bon\n"); }else{ printf("pon\n"); } return 0; }
1,624
memory_bytes
{'s_id': 's752054650', 'p_id': 'p02675', 'u_id': 'u299984871', 'date': '1589764061', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '1624', 'code_size': '313'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#include<string.h>\n\nint main(){\n int N,amari;\n scanf(\"%d\",&N);\n amari = N%10;\n...
CDSS_163851
CDSS
// Maximam Profit #include <stdio.h> int maxProfit(int*, int); int main(){ int i, n, A[200000], max; scanf("%d", &n); for(i=0; i < n; i++){ scanf("%d", &A[i]); } max = maxProfit(A, n); // 最大の利益を求める printf("%d\n", max); return 0; } int maxProfit(int *A, int n){ int i, num, max,...
2,540
memory_bytes
{'s_id': 's653133404', 'p_id': 'p02258', 'u_id': 'u610113905', 'date': '1529420163', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '2540', 'code_size': '592'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n// Maximam Profit\n#include <stdio.h>\n\nint maxProfit(int*, int);\n\nint main(){\n int i, n, A[200000], max;\n scanf(\"%d\", &n...
CDSS_597827
CDSS
#include<stdio.h> #include<stdlib.h> int cmp(const void *a,const void *b){ return *(int*)a - *(int*)b; } int main(void){ int n,i,sum=0; scanf("%d",&n); int a[n]; for(i=0;i<n;i++) scanf("%d",&a[i]); qsort(a,n,sizeof(int),cmp); for(i=0;i<n-1;i++) sum += a[i]; if(sum>a[n-1]) printf("Yes\n"); else printf(...
128
memory_bytes
{'s_id': 's232138664', 'p_id': 'p03136', 'u_id': 'u992736202', 'date': '1565461547', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '342'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\nint cmp(const void *a,const void *b){\n return *(int*)a - *(int*)b;\n}\nint main(void){\n int...
CDSS_249144
CDSS
#include<stdio.h> int main(){ int d; scanf("%d", &d); printf("%d\n", d*d*d); return 0; }
2,112
memory_bytes
{'s_id': 's164425787', 'p_id': 'p02388', 'u_id': 'u955125993', 'date': '1553262380', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '103'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n \nint main(){\n int d;\n scanf(\"%d\", &d);\n printf(\"%d\\n\", d*d*d);\n return 0;\n}\n\nPredict its memo...
CDSS_82337
CDSS
#include<stdio.h> int main(void) { float a,b; int ar,al,br,bl,cr,cl,dr,dl; ar=0; al=0; br=0; bl=0; cr=0; cl=0; dr=0; dl=0; while(scanf("%f %f",&a,&b)!=EOF){ if(a>=1.1){ al++; } else if(a>=0.6){ bl++; } else if(a>=0.2){ cl++; } else if(a<0.2){ dl++; } if(b>=1.1){ ar+...
624
memory_bytes
{'s_id': 's982507008', 'p_id': 'p00149', 'u_id': 'u288691574', 'date': '1398933739', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '624', 'code_size': '502'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\n\tfloat a,b;\n\tint ar,al,br,bl,cr,cl,dr,dl;\n\tar=0;\n\t\tal=0;\n\t\tbr=0;\n\t\tbl=0;\n\t\tcr=0...
CDSS_82239
CDSS
#include <stdio.h> main(){ int data[4][2]; int i, j; double in1, in2; for(i=0;i<4;i++){ for(j=0;j<2;j++){ data[i][j]=0; } } while(1){ if(scanf("%lf %lf", &in1, &in2)==EOF) break; if(in1>=1.1) data[0][0]++; else if(in1>=0.6) data[1][0]++; else if(in1>=0.2) data[2][0]++; els...
0
memory_bytes
{'s_id': 's460504730', 'p_id': 'p00149', 'u_id': 'u622083648', 'date': '1291634488', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '550'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nmain(){\n int data[4][2];\n int i, j;\n double in1, in2;\n for(i=0;i<4;i++){\n for(j=0;j<2;j++){\n d...
CDSS_245040
CDSS
#include <stdio.h> int main(void){ // Here your code ! int a=0; scanf("%d",&a); printf("%d\n",a*a*a); return 0; }
596
memory_bytes
{'s_id': 's808426457', 'p_id': 'p02388', 'u_id': 'u545696826', 'date': '1493435375', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '138'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\n // Here your code !\n int a=0;\n scanf(\"%d\",&a);\n printf(\"%d\\n\",a*a*a);\n r...
CDSS_169218
CDSS
#include<stdio.h> #define N 100 int main(){ int A[N]; int i,j,k,n,temp,flag,num; scanf("%d",&n); for(i = 0; i < n; i++){ scanf("%d",&A[i]); } flag=1; while(flag==1){ flag=0; for(j = n-1; j >= 1; j--){ if(A[j] < A[j-1]){ temp = A[j]; A[j] = A[j-1]; A[j-1] = temp; flag = 1; n...
2,068
memory_bytes
{'s_id': 's295004827', 'p_id': 'p02259', 'u_id': 'u317162027', 'date': '1544158994', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2068', 'code_size': '511'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#define N 100\n\nint main(){\n int A[N];\n int i,j,k,n,temp,flag,num;\n\n scanf(\"%d\",&n);\n\n for(i = 0; i < ...
CDSS_416778
CDSS
/* ex3_2 ruuu0048 */ #include <stdio.h> #include <math.h> #define PI 3.14159265359 //πを定義 double radian_distance_cos(int hour,int minute); //時針と分針の間の角度の余弦を返す関数 int main(void){ int hour_length,minute_length; //時針と分針の変数を宣言 int hour,minute; //時間Hと分Mの変数を宣言 double distance; //求める距離の変数を宣言 scanf("%...
2,520
memory_bytes
{'s_id': 's195149139', 'p_id': 'p02677', 'u_id': 'u651784689', 'date': '1590686713', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '2520', 'code_size': '1138'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n/*\n\tex3_2\n\truuu0048\n*/\n#include <stdio.h>\n#include <math.h>\n#define PI 3.14159265359 //πを定義\n \ndouble radian_distance_cos(int...
CDSS_150184
CDSS
#include<stdio.h> #define N 100 int main(){ int i,j,n,key,d; int A[N]; scanf("%d",&n); for(i = 0; i < n; i++) scanf("%d",&A[i]); for(d = 0;d < n - 1; d++) printf("%d ",A[d]); printf("%d",A[n - 1]); printf("\n"); for(i = 1; i <= n - 1;i++){ key = A[i]; j = i - 1; while(j >= 0 && A[j] > k...
2,048
memory_bytes
{'s_id': 's167313410', 'p_id': 'p02255', 'u_id': 'u690187759', 'date': '1543813980', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2048', 'code_size': '494'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#define N 100\n\nint main(){\n int i,j,n,key,d;\n int A[N];\n\n scanf(\"%d\",&n);\n for(i = 0; i < n; i++) scan...
CDSS_635980
CDSS
#include <stdio.h> #include <string.h> #include <stdlib.h> int main(void){ char S[10000]; int i,sum,len; scanf("%s",S); sum = 0; len = strlen(S); for(i=0;i<len;i++){ sum += (S[i] - '0'); } int Si; Si = atoi(S); // printf("%d %d\n",sum,Si); if(Si % sum == 0){ ...
128
memory_bytes
{'s_id': 's931243551', 'p_id': 'p03316', 'u_id': 'u475433203', 'date': '1529805302', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '393'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n\nint main(void){\n char S[10000];\n int i,sum,len;\n scanf(\"%...
CDSS_174361
CDSS
#include<stdio.h> #include<stdlib.h> #define NMIN 1 #define NMAX 36 struct Card{ char name; char value; }; void bubble(struct Card A[],int N){ int i,j; struct Card t; for(i=0;i<N;i++) for(j=N-1;j>=i;j--) if(A[j].value < A[j-1].value){ t = A[j]; A[j] = A[j-1]; A[j-1] = t; } } void sel...
2,144
memory_bytes
{'s_id': 's531629597', 'p_id': 'p02261', 'u_id': 'u788453883', 'date': '1529978634', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2144', 'code_size': '1285'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n\n#define NMIN 1\n#define NMAX 36\n\nstruct Card{\nchar name;\nchar value; \n};\n\n\nvoid bubb...
CDSS_248800
CDSS
#include <stdio.h> int main() { int x; scanf("%d", &x); printf("%d\n", x*x*x); return 0; }
2,044
memory_bytes
{'s_id': 's827773337', 'p_id': 'p02388', 'u_id': 'u765436879', 'date': '1570430708', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2044', 'code_size': '117'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main()\n{\n int x;\n \n scanf(\"%d\", &x);\n printf(\"%d\\n\", x*x*x);\n \n return 0;\n}\n\n...
CDSS_119555
CDSS
#include<stdio.h> int main(void){ int n,a,i,ii,y,s[2048]; scanf("%d",&n); for(i=1;i<=n;i++){ scanf("%d",&a); s[i] = a; } for(i=0;i<=9;i++){ y=0; for(ii=1;ii<=n;ii++){ if(s[ii]==i){ y=1; break; } } if(y==0){ printf("%d\n",i); return 0; ...
608
memory_bytes
{'s_id': 's311034299', 'p_id': 'p00935', 'u_id': 'u444407884', 'date': '1448773774', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '608', 'code_size': '796'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void){\nint n,a,i,ii,y,s[2048];\nscanf(\"%d\",&n);\nfor(i=1;i<=n;i++){\n scanf(\"%d\",&a);\n s[i] ...
CDSS_677824
CDSS
#include<stdio.h> #include<string.h> #include<math.h> #include<stdlib.h> #include<limits.h> #define rep(i,begin,end) for(int i=begin; i<end; i++) #define revrep(i,begin,end) for(int i=begin; i>end; i--) #define lld long long int int main(){ int n, m; int k = 1; scanf("%d %d", &n, &m); rep(i, 0, m){ ...
128
memory_bytes
{'s_id': 's393088530', 'p_id': 'p03549', 'u_id': 'u071680334', 'date': '1578965122', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '401'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\n#include<math.h>\n#include<stdlib.h>\n#include<limits.h>\n\n#define rep(i,begin,end) for(int i=...
CDSS_89101
CDSS
// Aizu Vol-2 0223: Stray Twins // 2017.9.5 bal4u@uu #include <stdio.h> #define QSIZE 300000 typedef struct { char t, tx, ty, kx, ky; } Q; Q que[QSIZE+3]; int top, end; char map[53][53]; int w, h; unsigned char chk[53][53][53][53]; int tx, ty, kx, ky; int m[2][4][2] = { { {-1,0},{ 1,0},{0,-1},{0, 1} }, { { 1,0}...
9,316
memory_bytes
{'s_id': 's789190655', 'p_id': 'p00223', 'u_id': 'u847467233', 'date': '1504597123', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '70', 'memory': '9316', 'code_size': '1597'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n// Aizu Vol-2 0223: Stray Twins\n// 2017.9.5 bal4u@uu\n\n#include <stdio.h>\n\n#define QSIZE 300000\ntypedef struct { char t, tx, ty, ...
CDSS_468702
CDSS
#include <stdio.h> #include<string.h> int main(){ char str[6]; scanf("%s", str); if(str[2] == str[3] && str[4] == str[5]){ printf("Yes\n"); }else{ printf("No\n"); } return 0; }
128
memory_bytes
{'s_id': 's918164244', 'p_id': 'p02723', 'u_id': 'u416157051', 'date': '1585448914', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '217'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include<string.h>\n\nint main(){\n char str[6];\n scanf(\"%s\", str);\n if(str[2] == str[3] && str[4] ==...
CDSS_563266
CDSS
#include<stdio.h> int main(void){ int p,q,r,min; scanf("%d%d%d",&p,&q,&r); min = p+q; if(q+r<min){ min = q+r; } if(r+p<min){ min = r+p; } printf("%d",min); return 0; }
128
memory_bytes
{'s_id': 's032541215', 'p_id': 'p03011', 'u_id': 'u331464808', 'date': '1560128739', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '219'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n int p,q,r,min;\n scanf(\"%d%d%d\",&p,&q,&r);\n min = p+q;\n if(q+r<min){\n min...
CDSS_47659
CDSS
#include <stdio.h> int main (void) { int j,i,l[1000],a[1000],b; for(i=0;;i++) { if(scanf("%d",&a[i])==EOF)break; else if(a[i]==0) { printf("%d\n",a[i-1]); i--; i--; } } return 0; }
604
memory_bytes
{'s_id': 's402711081', 'p_id': 'p00013', 'u_id': 'u304186356', 'date': '1400825652', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '604', 'code_size': '276'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main (void)\n{\n int j,i,l[1000],a[1000],b;\n for(i=0;;i++)\n {\n if(scanf(\"%d\",&a[i])==EOF)...
CDSS_742493
CDSS
#include<stdio.h> int main(){ char s[100],k = 'B'; scanf("%s",&s); for(int i = 1;i < strlen(s);i++){ if(s[i] == k){ int j = i - 1; while(s[j] == k && j > 0){ j--; } s[j] = k; } } for(int i = 0;i < strlen(s);i++){ if(s[i] != k){ printf("%c",s[i]); } } r...
128
memory_bytes
{'s_id': 's920213032', 'p_id': 'p04030', 'u_id': 'u008829811', 'date': '1551354997', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '330'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n char s[100],k = 'B';\n scanf(\"%s\",&s);\n for(int i = 1;i < strlen(s);i++){\n if(s[i] == k){\n...
CDSS_468838
CDSS
#include<stdio.h> int main() { char a,b,c,d,e,f; scanf("%c%c%c%c%c%c" ,&a,&b,&c,&d,&e,&f); if (c==d & e==f){ printf("Yes"); } else{ printf("No"); } return 0; }
128
memory_bytes
{'s_id': 's401168456', 'p_id': 'p02723', 'u_id': 'u351979856', 'date': '1585445363', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '184'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\t\n char a,b,c,d,e,f;\n scanf(\"%c%c%c%c%c%c\" ,&a,&b,&c,&d,&e,&f);\n if (c==d & e==f){\n printf(...
CDSS_67732
CDSS
#include <stdio.h> int main(){ float x[4],y[4]; while(scanf("%f %f %f %f %f %f %f %f",&x[0],&y[0],&x[1],&y[1],&x[2],&y[2],&x[3],&y[3]) != EOF){ if((((x[3] <= x[1]) && (x[3] >= x[0])) || ((x[1] <= x[3]) && (x[1] >= x[2]))) && (((y[3] <= y[1]) && (y[3] >= y[0])) || ((y[1] <= y[3]) && (y[1] >= y[2])))) puts("YES"); ...
608
memory_bytes
{'s_id': 's953372550', 'p_id': 'p00059', 'u_id': 'u642694278', 'date': '1437573472', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '608', 'code_size': '353'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n\tfloat x[4],y[4];\n\twhile(scanf(\"%f %f %f %f %f %f %f %f\",&x[0],&y[0],&x[1],&y[1],&x[2],&y[2],&...
CDSS_528567
CDSS
#include<stdio.h> #include<string.h> int main(){ char s[100]; int n; int a=1; int b=1; gets(s); n=strlen(s); for(int i=0;i<n;i+=2){ if(s[i]=='R' || s[i]=='U' || s[i]=='D'){ //printf("%d\n",i); } else{ a=0; break; } } for(int j=1;j<n;j+=2){ if(s[j]=='L' || s[j]=='U' || s...
128
memory_bytes
{'s_id': 's407014649', 'p_id': 'p02910', 'u_id': 'u955881349', 'date': '1568597401', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '478'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\nint main(){\n char s[100];\n int n;\n int a=1;\n int b=1;\n gets(s);\n n=strlen(s);\n fo...
CDSS_563489
CDSS
#include<stdio.h> #include<stdlib.h> int main(){ int n, i, ans=10000, x=0,y=0,z=0,j; scanf("%d", &n); int w[n+1]; for(i=1;i<=n;i++){ scanf("%d", &w[i]); z+=w[i]; } for(i=1;i<=n;i++){ for(j=1;j<=i;j++){ x+=w[j]; } y=z-x; if(ans>abs(x-y)){ ans=abs(x-y); } x=0; y...
128
memory_bytes
{'s_id': 's883304660', 'p_id': 'p03012', 'u_id': 'u379136995', 'date': '1562545627', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '365'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\nint main(){\n int n, i, ans=10000, x=0,y=0,z=0,j;\n scanf(\"%d\", &n);\n int w[n+1];\n for(...
CDSS_68859
CDSS
#include <stdio.h> char a[16]; int main(void) { while (scanf("%s", a) != EOF) { int i, j; char res=0; for (i=0; i<3; ++i) { if (a[3*i] != 's' && a[3*i] == a[3*i+1] && a[3*i] == a[3*i+2]) { res=a[3*i]; break; } } if (!res...
0
memory_bytes
{'s_id': 's768341744', 'p_id': 'p00066', 'u_id': 'u647134562', 'date': '1291787226', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '802'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nchar a[16];\nint main(void)\n{\n while (scanf(\"%s\", a) != EOF) {\n int i, j;\n char res=0;\n ...
CDSS_667364
CDSS
#include <stdio.h> #include <string.h> int main(){ int a,b,len; char s[20]; scanf("%d%d%s",&a,&b,s); len = strlen(s); for(int i=0;i<a;i++){ if(s[i]=='-'){ printf("No"); return 0; } } if(s[a]!='-'){ printf("No"); return 0; } for(int i=a+1;i<a+b+1;i++){ if(s[i]=='-'){ ...
128
memory_bytes
{'s_id': 's257444105', 'p_id': 'p03474', 'u_id': 'u857484987', 'date': '1514849844', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '394'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\nint main(){\n int a,b,len;\n char s[20];\n scanf(\"%d%d%s\",&a,&b,s);\n len = strlen(s);\...
CDSS_330005
CDSS
#include <stdio.h> int main(void){ int data[2]; int i, j; while(1){ scanf("%d %d", &data[0], &data[1]); if(data[0] == 0 && data[1] == 0){ return 0; } for(i=0 ; i < data[0] ; i++){ for(j=0 ; j < data[1] ; j++){ printf("#"); } printf("\n"); } printf("\n"); } }
572
memory_bytes
{'s_id': 's027028985', 'p_id': 'p02403', 'u_id': 'u212103396', 'date': '1479304855', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '572', 'code_size': '296'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n\tint data[2];\n\tint i, j;\n\t\n\twhile(1){\n\t\tscanf(\"%d %d\", &data[0], &data[1]);\n\t\tif...
CDSS_484731
CDSS
#include<stdio.h> int main(){ int n,m; scanf("%d %d",&n,&m); if(n<10)m+=100*(10-n); printf("%d\n",m); return 0; }
128
memory_bytes
{'s_id': 's662622158', 'p_id': 'p02765', 'u_id': 'u121922047', 'date': '1582423321', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '128', 'code_size': '126'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int n,m;\n scanf(\"%d %d\",&n,&m);\n if(n<10)m+=100*(10-n);\n printf(\"%d\\n\",m); \n return 0;...
CDSS_609438
CDSS
#include <stdio.h> int main(void) { int X; scanf("%d",&X); if((X==3||X==5)||X==7) printf("YES"); else printf("NO"); // your code goes here return 0; }
128
memory_bytes
{'s_id': 's294545831', 'p_id': 'p03210', 'u_id': 'u396931446', 'date': '1543964275', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '160'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\n\tint X;\n\tscanf(\"%d\",&X);\n\tif((X==3||X==5)||X==7) printf(\"YES\");\n\telse printf(\"NO\"...
CDSS_470049
CDSS
#include <math.h> #include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <string.h> typedef unsigned long long int ull; typedef long long int ll; typedef long double ld; int main(void) { int scan; // scanf result int answer; // stdout ll n; // stdin scan = scanf("%lld", &n); answer = 0; ans...
128
memory_bytes
{'s_id': 's886372107', 'p_id': 'p02724', 'u_id': 'u163703829', 'date': '1585444163', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '419'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <math.h>\n#include <stdarg.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\ntypedef unsigned long long int...
CDSS_80348
CDSS
double s;d;main(n){for(;~scanf("%d",&d);n--)s-=d;exit(!printf("%d\n",d=s/n-1));}
0
memory_bytes
{'s_id': 's309174814', 'p_id': 'p00134', 'u_id': 'u399107199', 'date': '1289225720', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '80'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\ndouble s;d;main(n){for(;~scanf(\"%d\",&d);n--)s-=d;exit(!printf(\"%d\\n\",d=s/n-1));}\nPredict its memory footprint.", "role": "us...
CDSS_335531
CDSS
#include <stdio.h> main(void) { int H,W,a,b; while(1){ scanf("%d%d",&H,&W); if(H==0 && W==0) break; for(a=1;a<=H;a++){ for(b=1;b<=W;b++){ if(a%2==1){ if(b%2==1)printf("#"); else if(b%2==0)printf("."); } else if(a%2==0){ if(b%2==1)printf("."); else if(b%2==0)print...
572
memory_bytes
{'s_id': 's493441363', 'p_id': 'p02405', 'u_id': 'u908899927', 'date': '1434095701', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '572', 'code_size': '393'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nmain(void)\n{\n\tint H,W,a,b;\n\t\n\twhile(1){\n\t\tscanf(\"%d%d\",&H,&W);\n\t\t\n\t\tif(H==0 && W==0) break;\n\...
CDSS_257735
CDSS
#include <stdio.h> int main(void){ int a=0,b=0; scanf("%d %d",&a,&b); int s=a*b; int L=2*(a+b); printf("%d %d\n",s,L); return 0; }
2,044
memory_bytes
{'s_id': 's242761190', 'p_id': 'p02389', 'u_id': 'u357977331', 'date': '1591775415', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2044', 'code_size': '138'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\nint a=0,b=0;\nscanf(\"%d %d\",&a,&b);\nint s=a*b;\nint L=2*(a+b);\n\nprintf(\"%d %d\\n\",s,L);\...
CDSS_128045
CDSS
// AOJ 2801: Suntan // 2017.11.20 bal4u@uu #include <stdio.h> #include <stdlib.h> long long s[100001], t[100001]; int N; long long a[100001]; char buf[50], *p; long long getlong() { long long n = 0; while (*p >= '0') n = (n<<3) + (n<<1) + (*p++ & 0xf); return n; } int bsch(long long x) { int m, l = 0, r = N+1; ...
4,124
memory_bytes
{'s_id': 's594504740', 'p_id': 'p01901', 'u_id': 'u847467233', 'date': '1511157824', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '4124', 'code_size': '968'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n// AOJ 2801: Suntan\n// 2017.11.20 bal4u@uu\n\n#include <stdio.h>\n#include <stdlib.h>\n\nlong long s[100001], t[100001]; int N;\nlong...
CDSS_192468
CDSS
#include <stdio.h> int main(){ int n,q,i,left,right,mid,counter=0; int s[100000],t[50000]; scanf("%d",&n); for(i=0;i<n;i++)scanf("%d",&s[i]); scanf("%d",&q); for(i=0;i<q;i++){ scanf("%d",&t[i]); left=0; right=n; while(left<right){ mid=(left+right)/2; if(s[mid]==t[i]){ counte...
1,188
memory_bytes
{'s_id': 's344895411', 'p_id': 'p02268', 'u_id': 'u732635220', 'date': '1494383829', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '30', 'memory': '1188', 'code_size': '467'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n int n,q,i,left,right,mid,counter=0;\n int s[100000],t[50000];\n \n scanf(\"%d\",&n);\n for(i=...
CDSS_294294
CDSS
#include <stdio.h> int main(void) { int buf, count=1; while(scanf("%d", &buf) != -1 && buf != 0){ printf("Case %d: %d\n", count++, buf); } return 0; }
600
memory_bytes
{'s_id': 's891817819', 'p_id': 'p02396', 'u_id': 'u388019234', 'date': '1416851491', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '152'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n \nint main(void)\n{\nint buf, count=1;\nwhile(scanf(\"%d\", &buf) != -1 && buf != 0){\nprintf(\"Case %d: %d\\n\",...
CDSS_215809
CDSS
#include<stdio.h> #define NIL -1 #define MAX 100000 struct Node{ int p,l,r; }; struct Node T[MAX]; int n; int depth(int a){ int num=0,s=T[a].p; while(s!=NIL){ num++; s=T[s].p; } return num; } int main(){ int i,j,x,d,c,l; scanf("%d",&n); for(i=0;i<n;i++) T[i].p = T[i].l = T[i].r = ...
1,788
memory_bytes
{'s_id': 's446193132', 'p_id': 'p02279', 'u_id': 'u494451272', 'date': '1497403847', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '60', 'memory': '1788', 'code_size': '863'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#define NIL -1\n#define MAX 100000\n\nstruct Node{\n int p,l,r;\n};\n\nstruct Node T[MAX];\nint n;\n\nint depth(in...
CDSS_63866
CDSS
#include <stdio.h> int main(void) { int p, n; int sum, ave; int count; sum = ave = count = 0; while (scanf("%d,%d", &p, &n) != EOF){ sum += p * n; ave += n; count++; } printf("%d\n%d\n", sum, (int)((float)ave / count + 0.5)); return (0); }
592
memory_bytes
{'s_id': 's809112469', 'p_id': 'p00045', 'u_id': 'u851799777', 'date': '1366103035', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', 'code_size': '257'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n\tint p, n;\n\tint sum, ave;\n\tint count;\n\n\tsum = ave = count = 0;\n\twhile (scanf(\"%d,%...
CDSS_269573
CDSS
#include<stdio.h> int main() { int a,b; scanf("%d %d",&a,&b); if(a>b) printf("a > b\n"); else if(a < b) printf("a < b\n"); else printf("a == b\n"); return 0; }
580
memory_bytes
{'s_id': 's131916003', 'p_id': 'p02391', 'u_id': 'u324713730', 'date': '1480161412', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', 'code_size': '188'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main()\n{\n int a,b;\n scanf(\"%d %d\",&a,&b);\n\n if(a>b)\n printf(\"a > b\\n\");\n else if(a < b)\n ...
CDSS_689311
CDSS
#include <stdio.h> #include <stdlib.h> int desc(const void *a, const void *b) { long *v1 = (long *)a; long *v2 = (long *)b; return (*v2 - *v1); } int main(void) { int n; long a[100000]; long side[2] = {}; scanf("%d", &n); for (int i = 0; i < n; i++) { scanf("%ld", &a[i]); } qsort(a, n, sizeof(long), d...
1,788
memory_bytes
{'s_id': 's357069475', 'p_id': 'p03627', 'u_id': 'u565149926', 'date': '1581134874', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '25', 'memory': '1788', 'code_size': '553'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\nint\tdesc(const void *a, const void *b)\n{\n\tlong *v1 = (long *)a;\n\tlong *v2 = (long *)b...
CDSS_426898
CDSS
#include<stdio.h> int main(void){ int a,b,k; scanf("%d%d%d",&k,&a,&b); for(int i=a;i<=b;i++){ if(i%k==0) { printf("OK"); return 0; } } printf("NG"); return 0; }
1,736
memory_bytes
{'s_id': 's823073873', 'p_id': 'p02693', 'u_id': 'u073336549', 'date': '1588468620', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '1736', 'code_size': '206'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\nint a,b,k;\nscanf(\"%d%d%d\",&k,&a,&b);\n for(int i=a;i<=b;i++){\n\tif(i%k==0)\n {\n prin...
CDSS_624058
CDSS
/* ex5_3 YSK722 */ #include <stdio.h> int main(void){ int height, width; char box[100][100][3]; scanf("%d %d", &height, &width); // 白黒を読み取る for (int i = 0; i < height; i++){ for (int j = 0; j < width; j++){ scanf(" %c", &box[i][j][0]); } } /* i行の要素が全て白のとき、2つめ...
256
memory_bytes
{'s_id': 's391239644', 'p_id': 'p03273', 'u_id': 'u802338400', 'date': '1591249849', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '256', 'code_size': '1609'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n/* ex5_3\n YSK722 */\n\n#include <stdio.h>\n\nint main(void){\n int height, width;\n char box[100][100][3];\n scanf(\"%d %d...
CDSS_75354
CDSS
#include <stdio.h> long long int members_number[4001]; int funami; void reset(void) { int i; funami = 0; for(i = 0; i < 4001; i++ ) { members_number[i] = 0; } } void check(long long int staff, long long int price, long long int number) { int flag = 0; if(members_number[staff] < 1000000) { members...
640
memory_bytes
{'s_id': 's342999504', 'p_id': 'p00100', 'u_id': 'u648717067', 'date': '1439060157', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '640', 'code_size': '827'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nlong long int members_number[4001];\nint funami;\n\nvoid reset(void) {\n int i;\n funami = 0;\n for(i = 0; i ...
CDSS_47608
CDSS
#include <stdio.h> int main(void){ int stack[100],i=0,j=0,temp,ans[100]={0}; while(scanf("%d",&temp)!=EOF) { if(temp!=0){ stack[i]=temp; i++; } else { ans[j]=stack[i-1]; j++; i--; } } for(i=0;i<j;i++) printf("%d\n",ans[i...
600
memory_bytes
{'s_id': 's667935524', 'p_id': 'p00013', 'u_id': 'u408260374', 'date': '1393160274', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '339'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\n int stack[100],i=0,j=0,temp,ans[100]={0};\n while(scanf(\"%d\",&temp)!=EOF) {\n if(...
CDSS_257116
CDSS
#include<stdio.h> int main(void) { int a=0,b=0,area,longth; scanf("%d%d",&a,&b); area=a*b; longth=2*(a+b); printf("%d %d\n",area,longth); return 0; }
2,104
memory_bytes
{'s_id': 's910947349', 'p_id': 'p02389', 'u_id': 'u710374386', 'date': '1530346474', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '160'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void)\n{\n\tint a=0,b=0,area,longth;\n\tscanf(\"%d%d\",&a,&b);\n\tarea=a*b;\n\tlongth=2*(a+b);\n\tprintf...
CDSS_385736
CDSS
#include<stdio.h> int main(){ int X; scanf("%d",&X); if(X>=30)printf("Yes"); else{ printf("No"); } }
1,736
memory_bytes
{'s_id': 's931045786', 'p_id': 'p02594', 'u_id': 'u318165580', 'date': '1596685317', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1736', 'code_size': '116'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n int X;\n scanf(\"%d\",&X);\n if(X>=30)printf(\"Yes\");\n else{\n printf(\"No\");\n }\n}\n\n...
CDSS_114872
CDSS
#include<stdio.h> #include<stdlib.h> int main(void) { int i,j,k,c; int n,m,m0; int **x,**y; int *tmp; while(1) { scanf("%d",&n); if(n==0) { break; } x = (int **)malloc(sizeof(int *)*(n+1)); y = (int **)malloc(sizeof(int *)*(n+1)); scanf("%d",&m0); x[0] = (int *)mall...
0
memory_bytes
{'s_id': 's557820774', 'p_id': 'p00717', 'u_id': 'u914140574', 'date': '1276523857', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '1693'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n\nint main(void)\n{\n\n\tint i,j,k,c;\n\tint n,m,m0;\n\tint **x,**y;\n\tint *tmp;\n\t\n\twhile(...
CDSS_631215
CDSS
#include<stdio.h> #include<string.h> int main(void) { char change[101],hikaku[101],take[101]; int N; int i,j,k,pt=0; scanf("%s",change); scanf("%s",hikaku); N=strlen(change); for(i=0;i<N;i++) { for(j=i,k=0;j<N;j++,k++)take[k]=change[j]; for(j=0;j<i;j++,k++)take[k]=change[j]; take[k]='\0'; if(strcmp(take...
128
memory_bytes
{'s_id': 's390226007', 'p_id': 'p03293', 'u_id': 'u174265495', 'date': '1532277296', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '391'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\nint main(void)\n{\n\tchar change[101],hikaku[101],take[101];\n\tint N;\n\tint i,j,k,pt=0;\n\tsc...
CDSS_298524
CDSS
#include <stdio.h> int main(void){ int x,i=0; do { i++; scanf("%d\n", &x); if(x ==0){ break; } printf("Case %d: %d\n",i,x); } while(x != 0); return 0; }
2,056
memory_bytes
{'s_id': 's899509597', 'p_id': 'p02396', 'u_id': 'u357049231', 'date': '1528693991', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2056', 'code_size': '243'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\n \n int x,i=0;\n do {\n i++; \n scanf(\"%d\\n\", &x);\n \n if(x...
CDSS_463533
CDSS
#include <stdio.h> int main(void){ int a,b,c; scanf("%d %d %d",&a,&b,&c); int tmp = a; a = b; b = tmp; tmp = a; a = c; c = tmp; printf("%d %d %d\n",a,b,c); return 0; }
128
memory_bytes
{'s_id': 's794293624', 'p_id': 'p02717', 'u_id': 'u909323623', 'date': '1586048986', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '128', 'code_size': '179'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n\tint a,b,c;\n\tscanf(\"%d %d %d\",&a,&b,&c);\n\tint tmp = a;\n\ta = b;\n\tb = tmp;\n\ttmp = a;...
CDSS_392225
CDSS
#include<stdio.h> #include<string.h> int main() { int n,i,c0,c1,c2,c3; char ac[]={"AC"},wa[]={"WA"},tle[]={"TLE"},re[]={"RE"}; scanf("%d", &n); c0=0; c1=0; c2=0; c3=0; char result[4]; for (i=0;i<n;i++) { scanf("%s",result); // printf("%s",result); if (strcmp(result,ac)==0) { ...
1,736
memory_bytes
{'s_id': 's987064406', 'p_id': 'p02613', 'u_id': 'u576520274', 'date': '1599429204', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '18', 'memory': '1736', 'code_size': '651'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\nint main()\n{\n int n,i,c0,c1,c2,c3;\n char ac[]={\"AC\"},wa[]={\"WA\"},tle[]={\"TLE\"},re[]=...
CDSS_473067
CDSS
#include <stdio.h> //sourav int main(){ int L; scanf("%d",&L); printf("%.12f\n",(double)L*L*L/27); }
128
memory_bytes
{'s_id': 's181824180', 'p_id': 'p02731', 'u_id': 'u353919145', 'date': '1586558065', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '100'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n//sourav\nint main(){\nint L;\nscanf(\"%d\",&L);\nprintf(\"%.12f\\n\",(double)L*L*L/27);\n}\nPredict its memory fo...
CDSS_132074
CDSS
#include <stdio.h> int main() { int n, i, j, k, l, p[101], m[101][101]; scanf("%d", &n); for ( i = 1; i <= n; i++) { scanf("%d", &p[i - 1]); scanf("%d", &p[i]); } for ( i = 1; i <= n; i++) { m[i][i] = 0; } for ( l = 2; l <= n; l++) { for ( i = 1; i <= n - l + 1; i++) { int j = i + l - 1; m[i][...
1,836
memory_bytes
{'s_id': 's746670077', 'p_id': 'p02234', 'u_id': 'u276203675', 'date': '1511874538', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1836', 'code_size': '593'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main() {\n\tint n, i, j, k, l, p[101], m[101][101];\n\t\n\tscanf(\"%d\", &n);\n\tfor ( i = 1; i <= n; i++) {...
CDSS_244406
CDSS
#include<stdio.h> int main(){ int x; scanf("%d",&x); printf("%d\n",x*x*x); return 0; }
596
memory_bytes
{'s_id': 's712669234', 'p_id': 'p02388', 'u_id': 'u267522292', 'date': '1484748169', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '112'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n \nint main(){\n \n int x;\n scanf(\"%d\",&x);\n \n printf(\"%d\\n\",x*x*x);\n \n return 0;\n \n}\nPred...
CDSS_502647
CDSS
#include<stdio.h> int main(){ int a,i; int count=0; char s[100]; scanf("%d",&a); scanf("%s",s); for(i=0;i<a-2;i++){ if(s[i]=='A'&&s[i+1]=='B'&&s[i+2]=='C') count++; } printf("%d\n",count); return 0; }
128
memory_bytes
{'s_id': 's252521413', 'p_id': 'p02812', 'u_id': 'u086006782', 'date': '1579120747', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '250'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n \n int a,i;\n int count=0;\n char s[100];\n scanf(\"%d\",&a);\n scanf(\"%s\",s);\...
CDSS_127274
CDSS
// AOJ 2629: Manhattan // 2017.10.2 bal4u@uu #include <stdio.h> #include <stdlib.h> #define Root2 1.4142135623730950488016887242097 int main() { double df, di, ans; char buf[50]; scanf("%s", buf); di = atoi(buf) + 1; sscanf(buf, "%lf", &df); df *= Root2; ans = di; if (ans <= df) ans = df; printf("%.15lf\n"...
1,800
memory_bytes
{'s_id': 's712453102', 'p_id': 'p01741', 'u_id': 'u847467233', 'date': '1506940854', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1800', 'code_size': '340'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n// AOJ 2629: Manhattan\n// 2017.10.2 bal4u@uu\n\n#include <stdio.h>\n#include <stdlib.h>\n\n#define Root2 1.41421356237309504880168872...
CDSS_70256
CDSS
#include <stdio.h> int main(void){ int h,m,s; while(scanf("%d%d%d",&h ,&m ,&s)!=EOF){ if(h==-1&&m==-1&&s==-1) break; int tl = (3600*2)-(3600*h+60*m+s) ,three = tl*3; printf("%02d:%02d:%02d\n" ,tl/60/60 ,tl/60%60 ,tl%60); printf("%02d:%02d:%02d\n" ,three/60/60 ,three/60%60 ,...
612
memory_bytes
{'s_id': 's668852576', 'p_id': 'p00074', 'u_id': 'u881100444', 'date': '1378130962', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '612', 'code_size': '352'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n int h,m,s;\n \n while(scanf(\"%d%d%d\",&h ,&m ,&s)!=EOF){\n if(h==-1&&m==-1&&s...
CDSS_201910
CDSS
#include<stdio.h> #include<stdlib.h> #define O 1000000000 void N(int B[500001],int left,int right); void M(int C[500001],int left,int mid,int right); int count; int main(){ int A[500001]; int a,i; scanf("%d",&a); for(i=0;i<a;i++){ scanf("%d",&A[i]); } N(A...
5,464
memory_bytes
{'s_id': 's847065284', 'p_id': 'p02272', 'u_id': 'u352341417', 'date': '1545646926', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '120', 'memory': '5464', 'code_size': '1172'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#define O 1000000000\nvoid N(int B[500001],int left,int right);\nvoid M(int C[500001],int left,...
CDSS_698150
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> int descending_compare(const void *a, const void *b){ if (*(int*)a > *(int*)b){ return -1; }else if (*(int*)a == *(int*)b){ return 0; }else{ return 1; } } int ascending_compare(const void *a, const voi...
128
memory_bytes
{'s_id': 's160778734', 'p_id': 'p03672', 'u_id': 'u543284218', 'date': '1514752332', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '1335'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <math.h>\n\nint descending_compare(const void *a, const void *b...
CDSS_237035
CDSS
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #define _USE_MATH_DEFINES #include <math.h> int main(void) { double result[1001] = { 0 }; int kurikaesi = 0; int n = 0; scanf("%d%*[^\n]%*c", &n); int x[100] = { 0 }; int y[100] = { 0 }; int xy[100] = { 0 }; int count = 0; while (count < n) { sc...
2,088
memory_bytes
{'s_id': 's809894113', 'p_id': 'p02382', 'u_id': 'u622569400', 'date': '1584080595', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2088', 'code_size': '996'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#define _CRT_SECURE_NO_WARNINGS\n#include <stdio.h>\n\n#define _USE_MATH_DEFINES\n#include <math.h>\n\n\nint main(void) {\n\n\tdouble ...
CDSS_559095
CDSS
#include<stdio.h> int main(){ int x,a; scanf("%d %d",&x,&a); if(x<a)printf("0"); else printf("10"); return 0; }
128
memory_bytes
{'s_id': 's967323431', 'p_id': 'p02999', 'u_id': 'u018679195', 'date': '1571488626', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '116'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n\tint x,a;\n\tscanf(\"%d %d\",&x,&a);\n\tif(x<a)printf(\"0\");\n\telse printf(\"10\");\n\treturn 0;\n}...
CDSS_496263
CDSS
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <math.h> #include <stdbool.h> #define LL long long #define DB double #define INF 1145141919810364364 #define PI 3.14159265358979 #define MIN(x,y) ((x)<(y)?(x):(y)) #define MAX(x,y) ((x)<(y)?(y):(x)) #define FOR(i,a,n) for(i=a;i<n;i++) #define MOD 10000...
9,596
memory_bytes
{'s_id': 's640383907', 'p_id': 'p02788', 'u_id': 'u596117821', 'date': '1580071523', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '81', 'memory': '9596', 'code_size': '1993'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n#include <math.h>\n#include <stdbool.h>\n#define LL long long\n#define D...
CDSS_660860
CDSS
#include<stdio.h> int main(void) { int a, b, c, x; int counter = 0; scanf("%d", &a); scanf("%d", &b); scanf("%d", &c); scanf("%d", &x); for(int i=0;i<=a;i++){ for(int j=0;j<=b;j++){ for(int k=0;k<=c;k++){ int total = 500*i+100*j+50*k; ...
128
memory_bytes
{'s_id': 's434322687', 'p_id': 'p03448', 'u_id': 'u247576416', 'date': '1555566868', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '464'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void)\n{\n int a, b, c, x;\n int counter = 0;\n \n scanf(\"%d\", &a);\n scanf(\"%d\", &b)...
CDSS_36642
CDSS
#include <stdio.h> int main( void ) { int a, b; while ( scanf( "%d %d", &a, &b ) != EOF ) { int i, min, gcd = 1, lcm = 1, start = 2; while( 1 ) { min = ( a > b ? b : a ); for ( i = start; i <= min / 2; i++ ) if ( a % i + b % i == 0 ) { a /= i; b /= i; gcd = lcm *= i; start = i; ...
596
memory_bytes
{'s_id': 's282278720', 'p_id': 'p00005', 'u_id': 'u340315059', 'date': '1367326277', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '524'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main( void ) {\n\tint a, b;\n\n\twhile ( scanf( \"%d %d\", &a, &b ) != EOF ) {\n\t\tint i, min, gcd = 1, lcm...
CDSS_469042
CDSS
#include<stdio.h> int main(){ char s[6] = {}; int flag = 0; scanf("%s", s); if(s[2] == s[3]){ if(s[4] == s[5]){ flag = 1; } } if(flag == 0){ printf("No"); } else { printf("Yes"); } return 0; }
128
memory_bytes
{'s_id': 's106946364', 'p_id': 'p02723', 'u_id': 'u327241892', 'date': '1585443837', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '290'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n char s[6] = {};\n int flag = 0;\n \n\n scanf(\"%s\", s);\n\n if(s[2] == s[3]){\n ...
CDSS_197335
CDSS
#define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<string.h> #define M 1133331 #define NIL (-1) #define L 14 char H[M][L]; /* Hash Table */ int getChar(char ch){ if (ch == 'A') return 1; else if (ch == 'C') return 2; else if (ch == 'G') return 3; else if (ch == 'T') return 4; } /...
16,100
memory_bytes
{'s_id': 's061642132', 'p_id': 'p02269', 'u_id': 'u725029766', 'date': '1399599073', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '260', 'memory': '16100', 'code_size': '1696'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#define _CRT_SECURE_NO_WARNINGS\n#include<stdio.h>\n#include<string.h>\n \n#define M 1133331\n#define NIL (-1)\n#define L 14\n \nc...
CDSS_83806
CDSS
#include<stdio.h> int main(){ int i; int b,c,g,h,s; int d[6]={6,7,5,5,20,15}; int m[7][7]; m[0][1]=300; m[0][2]=500; m[0][3]=600; m[0][4]=700; m[0][5]=1350; m[0][6]=1650; m[1][2]=350; m[1][3]=450; m[1][4]=600; m[1][5]=1150; m[1][6]=1500; m[2][3]=250; m[2][4]=400; m[2][5]=1000; m[2]...
0
memory_bytes
{'s_id': 's902556078', 'p_id': 'p00163', 'u_id': 'u361407785', 'date': '1307780060', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '1074'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int i;\n int b,c,g,h,s;\n int d[6]={6,7,5,5,20,15};\n int m[7][7];\n m[0][1]=300;\n m[0][2]=500...
CDSS_293673
CDSS
#include <stdio.h> int main(void){ int W,H,x,y,r; scanf("%d %d %d %d %d",&W,&H,&x,&y,&r); if(y-r>=0 && x-r>=0 && y+r<=H && x+r<=W) puts("Yes"); else puts("No"); return 0; }
2,104
memory_bytes
{'s_id': 's473470782', 'p_id': 'p02394', 'u_id': 'u488043746', 'date': '1559610396', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '247'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\n int W,H,x,y,r;\n scanf(\"%d %d %d %d %d\",&W,&H,&x,&y,&r);\n\n if(y-r>=0 &&...
CDSS_109789
CDSS
#include<stdio.h> long long int a[100001],d[100001],x[1001],syutu[1001],f[100001]; int main(void) { long long int i,j,n,t,q,M,flg,a1,aba,cnt; M=9223372036854775807; scanf("%lld %lld %lld",&n,&t,&q); for(i=0;i<=n;i++) f[i]=M; for(i=1;i<=n;i++) scanf("%lld %lld",&a[i],&d[i]); for(i=1;i<=q;i++) scanf("%lld",&x[i]); ...
2,956
memory_bytes
{'s_id': 's120906343', 'p_id': 'p00545', 'u_id': 'u850274609', 'date': '1479288739', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '40', 'memory': '2956', 'code_size': '1003'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nlong long int a[100001],d[100001],x[1001],syutu[1001],f[100001];\nint main(void)\n{\n\tlong long int i,j,n,t,q,M,fl...
CDSS_234434
CDSS
#include<stdio.h> #include<math.h> int main() { double x1,x2,y1,y2; double p=0,x,a=0,b=0; scanf("%lf %lf %lf %lf",&x1,&y1,&x2,&y2); a=x2-x1; b=y2-y1; x=a*a+b*b; p=sqrt(x); printf("%.8lf\n",p); return 0; }
2,112
memory_bytes
{'s_id': 's410190124', 'p_id': 'p02379', 'u_id': 'u843817460', 'date': '1564101821', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '249'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<math.h>\nint main()\n{\n double x1,x2,y1,y2;\n double p=0,x,a=0,b=0;\n scanf(\"%lf %lf %lf %lf\",...
CDSS_388302
CDSS
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> int main() { int a, b, c, k; int x, y, z; int flag=0; scanf("%d %d %d", &a, &b, &c); scanf("%d", &k); for (x=0;x<k;x++) { for (y=0;y<k-x;y++) { z=k-x-y; if (b*(int)pow(2,y)>a*(int)pow(2,...
2,452
memory_bytes
{'s_id': 's770980393', 'p_id': 'p02601', 'u_id': 'u264818289', 'date': '1595726486', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '2452', 'code_size': '479'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <math.h>\n#include <string.h>\n\nint main() {\n int a, b, c, k;\n int x, y, z;...
CDSS_502873
CDSS
#include <stdio.h> #include <stdlib.h> int main() { char score[100]; int N,i,j=0; scanf("%d",&N); scanf("%s",score); for(i=0;i<N-2;i++){ if(score[i]=='A'&&score[i+1]=='B'&&score[i+2]=='C'){ j++; i=i+2; } } printf("%d",j); return 0; }
128
memory_bytes
{'s_id': 's312778349', 'p_id': 'p02812', 'u_id': 'u269885441', 'date': '1578709195', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '252'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\nint main() {\n\tchar score[100];\n\tint N,i,j=0;\n\tscanf(\"%d\",&N);\n\tscanf(\"%s\",score);...
CDSS_515692
CDSS
#include <stdio.h> int main(){ int N = 0; int count = 0; scanf("%d", &N); char S[N]; scanf("%s", S); if(N % 2 == 0){ for(int i = 0; i < N / 2; i++){ if(S[i] == S[i + N / 2]){ count++; } else { printf("No\n"); b...
128
memory_bytes
{'s_id': 's833796206', 'p_id': 'p02860', 'u_id': 'u524253154', 'date': '1573956910', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '474'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n\n int N = 0;\n int count = 0;\n\n scanf(\"%d\", &N);\n\n char S[N];\n\n scanf(\"%s\...
CDSS_22289
CDSS
#include<stdio.h> int main(void) { int i,takasa[10],itiban,niban,sanban; itiban=0;niban=0;sanban=0; for(i=0;i<10;i++){ scanf("%d",&takasa[i]); if(itiban<=takasa[i]){ sanban=niban; niban=itiban; itiban=takasa[i]; } else if(niban<=takasa[i]){...
600
memory_bytes
{'s_id': 's887754524', 'p_id': 'p00001', 'u_id': 'u950683603', 'date': '1405068677', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '531'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\n int i,takasa[10],itiban,niban,sanban;\n itiban=0;niban=0;sanban=0;\n for(i=0;i<10;i++)...
CDSS_210017
CDSS
#include <stdio.h> #include <stdlib.h> #define MAX 2000001 #define VMAX 10000 int main(){ unsigned short *A, *B; int C[VMAX+1]; int n, i, j; scanf("%d", &n); A = malloc(sizeof(short)*n+1); B = malloc(sizeof(short)*n+1); /* your code */ // scanf("%d",&A[1]); //for(i=1;i<=n;i++){ // printf...
9,560
memory_bytes
{'s_id': 's852050149', 'p_id': 'p02275', 'u_id': 'u622877632', 'date': '1577085838', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '220', 'memory': '9560', 'code_size': '866'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#define MAX 2000001\n#define VMAX 10000\n\nint main(){\n unsigned short *A, *B;\n int C[VMA...
CDSS_107384
CDSS
#include <stdio.h> int main(void) { int N,i,j; scanf("%d",&N); int one[N+1],two[N+1],three[N+1],mainasu[N+1]; for(i=1;i<N+1;i++) { mainasu[i]=0; scanf("%d %d %d",&one[i],&two[i],&three[i]); } for(i=1;i<N+1;i++) { for(j=1;j<N+1;j++) //one???i?????? { if(i!=j) { if(one[i]==one[j]) { m...
1,816
memory_bytes
{'s_id': 's871391611', 'p_id': 'p00500', 'u_id': 'u204605037', 'date': '1504588731', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1816', 'code_size': '768'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n\tint N,i,j;\n\tscanf(\"%d\",&N);\n\tint one[N+1],two[N+1],three[N+1],mainasu[N+1];\n\tfor(i=...
CDSS_245123
CDSS
#include <stdio.h> int main(void){ int X=X; scanf("%d",&X); printf("%d\n",X*X*X); return 0; }
596
memory_bytes
{'s_id': 's193593026', 'p_id': 'p02388', 'u_id': 'u417166788', 'date': '1494403897', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '93'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\nint X=X;\nscanf(\"%d\",&X);\nprintf(\"%d\\n\",X*X*X);\nreturn 0;\n}\nPredict its memory footprint...
CDSS_494570
CDSS
#include<stdio.h> int main(){ long long int H,N; scanf("%llu%llu",&H,&N); long long int i,arr[N],sum=0; for(i=0;i<N;i++) {scanf("%llu",&arr[i]); sum+=arr[i];} if(sum>=H) printf("Yes"); else printf("No"); }
896
memory_bytes
{'s_id': 's850285762', 'p_id': 'p02784', 'u_id': 'u657864222', 'date': '1580091929', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '11', 'memory': '896', 'code_size': '226'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\nlong long int H,N;\n scanf(\"%llu%llu\",&H,&N);\n long long int i,arr[N],sum=0;\n for(i=0;i<N;i++)\n ...
CDSS_102763
CDSS
#include<stdio.h> int chara[10000],n; int search(int num,int color){ int s,e,sum,total,p; s=num; e=num; sum=1; total=0; while(1){ do{ p=sum; if(s>0){ if(chara[s-1]==color){ s--; sum++; } } if(e<n-1){ if(chara[e+1]==color){ e++; sum++; } } }while(sum-p>0); if(sum<4) b...
636
memory_bytes
{'s_id': 's227835587', 'p_id': 'p00457', 'u_id': 'u039795040', 'date': '1481201748', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '636', 'code_size': '770'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint chara[10000],n;\n\nint search(int num,int color){\n\tint s,e,sum,total,p;\n\ts=num;\n\te=num;\n\tsum=1;\n\tto...
CDSS_174081
CDSS
#include <stdio.h> #define swap(type, x, y) do { type t = x; x = y; y = t; } while (0) typedef struct { int id; char pat; int num; } Card; void BubbleSort(Card *c, int n) { int i, j; for (i = 0; i < n - 1; i++) { for (j = n - 1; j >= i + 1; j--) { if ((c + j)->num < (c + j - 1)->num) { swap(Card,...
1,820
memory_bytes
{'s_id': 's730715927', 'p_id': 'p02261', 'u_id': 'u641702731', 'date': '1511578276', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1820', 'code_size': '1624'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\n#define swap(type, x, y) do { type t = x; x = y; y = t; } while (0)\n\ntypedef struct {\n\tint id;\n\tchar pat;\...
CDSS_728270
CDSS
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> int main() { int h, w; scanf("%d %d\n", &h, &w); int image[100][100]; int c, i = 0, j = 0; while (i < h) { c = getchar(); if (c != '\n') { image[i][j] = c; j++; } else { i++; j = 0; } } for (i = 0; i < h; i ++) { for (j = 0;...
256
memory_bytes
{'s_id': 's292448150', 'p_id': 'p03853', 'u_id': 'u021406692', 'date': '1481510241', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '256', 'code_size': '485'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#define _CRT_SECURE_NO_WARNINGS\n#include <stdio.h>\n\nint main()\n{\n\tint h, w;\n\n\tscanf(\"%d %d\\n\", &h, &w);\n\n\tint image[100...
CDSS_630937
CDSS
/* submission # - User: herp_sy https://atcoder.jp/contests/ */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <stdbool.h> #define _CRT_SECURE_NO_WARNINGS #define TLong long long #define TBMod 1000000007 int main(int argc, char const *argv[]) { char s[103],t[103]; char stac...
128
memory_bytes
{'s_id': 's105577590', 'p_id': 'p03293', 'u_id': 'u185464141', 'date': '1564091844', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '494'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n/*\n\tsubmission # - User: herp_sy\n\thttps://atcoder.jp/contests/\n*/\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>...
CDSS_683925
CDSS
#include<stdio.h> int main() { int n, a; scanf("%d%d", &n, &a); printf("%d\n", n*n - a); return 0; }
128
memory_bytes
{'s_id': 's583366662', 'p_id': 'p03597', 'u_id': 'u600300412', 'date': '1539053060', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '116'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n int n, a;\n scanf(\"%d%d\", &n, &a);\n printf(\"%d\\n\", n*n - a);\n return 0;\n}\nPred...
CDSS_684879
CDSS
#include <stdio.h> int main(void) { int N; scanf("%d", &N); if ((N / 10 == 9) || ((N - (N / 10) * 10))==9) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
128
memory_bytes
{'s_id': 's796726057', 'p_id': 'p03605', 'u_id': 'u276980836', 'date': '1561168694', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '179'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\n\tint N;\n\tscanf(\"%d\", &N);\n\tif ((N / 10 == 9) || ((N - (N / 10) * 10))==9) {\n\t\tprintf...
CDSS_306027
CDSS
#include<stdio.h> int main() { int a,b,c,d,e; scanf("%d %d %d",&a,&b,&c); for(d=a;d<(b+1);d++){ if(c%d==0) e++; } printf("%d\n",e); return 0; }
596
memory_bytes
{'s_id': 's199465239', 'p_id': 'p02398', 'u_id': 'u770401549', 'date': '1495978254', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '179'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main()\n{\n int a,b,c,d,e;\n scanf(\"%d %d %d\",&a,&b,&c);\n for(d=a;d<(b+1);d++){\n \tif(c%d==0)...
CDSS_64521
CDSS
/* AizuOnline A0047 Cup Game */ #include <stdio.h> main() { char pos; char buf[100]; pos = 'A'; while(NULL != fgets(buf,4,stdin)) { if(buf[0] == pos) pos = buf[2]; else if(buf[2] == pos) pos = buf[0]; } printf("%c\n",pos); return(0); }
0
memory_bytes
{'s_id': 's765770669', 'p_id': 'p00047', 'u_id': 'u708993917', 'date': '1324228954', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '278'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n/*\nAizuOnline A0047\nCup Game\n*/\n#include <stdio.h>\n\n\nmain()\n{\n char pos;\n char buf[100];\n\n pos = 'A';\n\n while(NULL != fg...
CDSS_503589
CDSS
#include<stdio.h> #include<string.h> int main(void) { char s[202]; char t[202]; scanf("%s%s",s,t); strcat(t,s); printf("%s",t); return 0; }
128
memory_bytes
{'s_id': 's379318652', 'p_id': 'p02817', 'u_id': 'u151785909', 'date': '1585250790', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '148'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\n\nint main(void)\n{\n\tchar s[202];\n\tchar t[202];\n\t\n\tscanf(\"%s%s\",s,t);\n\tstrcat(t,s);...
CDSS_454427
CDSS
#include <stdio.h> int main() { long long n; scanf("%lld",&n); long long ans = 0; for (long long i = 1; i <= n; ++i) { if (i % 3 == 0 || i % 5 == 0) { continue;} else { ans += i; } } printf("%lld",ans); return 0; }
1,732
memory_bytes
{'s_id': 's644863695', 'p_id': 'p02712', 'u_id': 'u863370423', 'date': '1596947376', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '11', 'memory': '1732', 'code_size': '268'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main()\n{\n long long n;\n scanf(\"%lld\",&n);\n long long ans = 0;\n\n for (long long i = 1; i <=...
CDSS_613156
CDSS
#include<stdio.h> int main() { int i = 0; char s[4], tmp; scanf("%s", s); while (s[i] != '\0') { i++; } if (i == 3) { tmp = s[0]; s[0] = s[2]; s[2] = tmp; printf("%s\n", s); } else { printf("%s\n", s); } return 0; }
128
memory_bytes
{'s_id': 's430333233', 'p_id': 'p03227', 'u_id': 'u125051909', 'date': '1540691614', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '242'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main()\n{\n\tint i = 0;\n\tchar s[4], tmp;\n\tscanf(\"%s\", s);\n\n\twhile (s[i] != '\\0') {\n\t\ti++;\n\t}\n...