identifier
string
space
string
input
string
target
float64
metric_type
string
metadata
string
messages
list
CDSS_312557
CDSS
#include<stdio.h> #define PI 3.141592653589 int main(void){ double r,x,y; scanf("%lf",&r); x=r*r*PI; y=2*r*PI; printf("%f %f\n",x,y); return 0; }
2,056
memory_bytes
{'s_id': 's917160720', 'p_id': 'p02400', 'u_id': 'u542576355', 'date': '1535950718', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2056', 'code_size': '172'}
[ { "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 PI 3.141592653589\n \nint main(void){\n double r,x,y;\n scanf(\"%lf\",&r);\n x=r*r*PI;\n y=2*r*...
CDSS_586513
CDSS
/* ex5_4 "ATCoder" dada__ */ #include<stdio.h> #include<string.h> int main(void){ char *ptr, *ptr2, sequence1[11], part_seq[11]="",longest_seq[11]=""; scanf("%s", sequence1);//文字列の入力 ptr=sequence1; //ptrに入力文字列の先頭アドレスを代入 ptr2=part_seq; //ptr2に部分文字列の先頭アドレスを代入 while(*ptr){ while(*p...
1,700
memory_bytes
{'s_id': 's078279142', 'p_id': 'p03086', 'u_id': 'u946213273', 'date': '1594037974', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1700', 'code_size': '1229'}
[ { "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_4 \"ATCoder\"\n dada__ */\n#include<stdio.h>\n#include<string.h>\n \nint main(void){\n char *ptr, *ptr2, sequence1[1...
CDSS_191129
CDSS
#include <stdio.h> #define MAX 10000 int main(){ int i,j; int n1,n2,cnt; int num1[MAX],num2; scanf("%d",&n1); for(i=0;i<n1;i++){ scanf("%d",&num1[i]); } cnt = 0; scanf("%d", &n2); while(n2--){ //インクリメントを後置に変更 scanf("%d", &num2); for(j = 0; j < n1; ++j) { if(num1[j] == num2) { ++cnt; bre...
2,052
memory_bytes
{'s_id': 's285315775', 'p_id': 'p02267', 'u_id': 'u733357255', 'date': '1545033016', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2052', '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#define MAX 10000\n\nint main(){\n\tint i,j;\n\tint n1,n2,cnt;\n\tint num1[MAX],num2;\n\t\n\tscanf(\"%d\",&n1);\n\...
CDSS_159510
CDSS
#include<stdio.h> #include<stdlib.h> #include<math.h> int main(){ int n,*a,i,k,p,kazu=0,s=0; scanf("%d",&n); a=(int *)malloc(n*sizeof(int)); for(i=0;i<n;i++){ scanf("%d",&a[i]); } for(i=0;i<n;i++){ if(a[i]==2)kazu++; else if(a[i]%2 !=0&&a[i] !=1){ for(k=2;k<=(sqrt(a[i]));k++){ p...
2,104
memory_bytes
{'s_id': 's432441086', 'p_id': 'p02257', 'u_id': 'u149785021', 'date': '1576046725', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '180', 'memory': '2104', 'code_size': '437'}
[ { "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>\nint main(){\n int n,*a,i,k,p,kazu=0,s=0;\n scanf(\"%d\",&n);\n a=(int *)ma...
CDSS_479977
CDSS
#include <stdio.h> int main() { int flag = 1; long long int a,b,n; long long int num = 0; long long int ball = 0; scanf("%lld %lld %lld",&n,&a,&b); ball = n / (a + b); num = ball * a; n %= (a + b); if(n > a) num += a; else num += n; printf("%lld\n",num); return 0; }
128
memory_bytes
{'s_id': 's406723739', 'p_id': 'p02754', 'u_id': 'u728750700', 'date': '1583634542', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '295'}
[ { "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 flag = 1;\n\tlong long int a,b,n;\n\tlong long int num = 0;\n\tlong long int ball = 0;\n\t\...
CDSS_487900
CDSS
#include <stdio.h> int main(void){ int a,b,c; scanf("%d %d %d", &a, &b, &c); if(a == b&&a != c){ printf("Yes\n"); }else if(a == c&&a != b){ printf("Yes\n"); }else if(b == c&&b != a){ printf("Yes\n"); }else{ printf("No\n"); } return 0; }
128
memory_bytes
{'s_id': 's133626715', 'p_id': 'p02771', 'u_id': 'u509179239', 'date': '1581883455', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '300'}
[ { "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 a,b,c;\n scanf(\"%d %d %d\", &a, &b, &c);\n if(a == b&&a != c){\n printf(\"Y...
CDSS_84200
CDSS
#include <stdio.h> int n; int a(int now) { if (now == n) return 1; else if (now > n) return 0; int res = 0; res += a(now+1) + a(now+2) + a(now+3); return res; } int main() { int k; while (1) { scanf("%d", &n); if (n == 0) break; printf("%d\n", a(0)/3650+1); } return 0; }
600
memory_bytes
{'s_id': 's694651886', 'p_id': 'p00168', 'u_id': 'u619785977', 'date': '1478679048', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '660', 'memory': '600', 'code_size': '289'}
[ { "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 n;\n\nint a(int now) {\n\tif (now == n) return 1;\n\telse if (now > n) return 0;\n\tint res = 0;\n\tres += a...
CDSS_492887
CDSS
#include<stdio.h> int main(void) { int n,a; int i=0; scanf("%d%d",&n,&a); while(n>0) { n=n-a; i++; } printf("%d",i); return 0; }
1,736
memory_bytes
{'s_id': 's810894020', 'p_id': 'p02783', 'u_id': 'u246721088', 'date': '1596571340', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1736', 'code_size': '145'}
[ { "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\tint n,a;\n\tint i=0;\n\tscanf(\"%d%d\",&n,&a);\n\t\n\twhile(n>0)\n\t{\t\n\t\tn=n-a;\n\t\ti++;\...
CDSS_93295
CDSS
#include<stdio.h> int main(void) { int c1,c5,c10,c50,c100,c500; scanf("%d%d%d%d%d%d",&c1,&c5,&c10,&c50,&c100,&c500); printf("%d\n",c1+c5*5+c10*10+c50*50+c100*100+c500*500>=1000?1:0); return 0; }
600
memory_bytes
{'s_id': 's896276702', 'p_id': 'p00291', 'u_id': 'u315618053', 'date': '1501805363', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '198'}
[ { "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\tint c1,c5,c10,c50,c100,c500;\n\tscanf(\"%d%d%d%d%d%d\",&c1,&c5,&c10,&c50,&c100,&c500);\n\tprin...
CDSS_23295
CDSS
#include <stdio.h> int main(){ int hei[10],i,j,temp; for(i=0;i<10;i++){ scanf("%d",&hei[i]); } for(i=0;i<10;i++){ for(j=i+1;j<10;j++){ if(hei[i]<hei[j]){ temp=hei[i]; hei[i]=hei[j]; hei[j]=temp; } } } for(i=0;i<3;i++){ printf("%d\n",hei[i]); } return(0); }
600
memory_bytes
{'s_id': 's681754726', 'p_id': 'p00001', 'u_id': 'u020581035', 'date': '1467119894', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '291'}
[ { "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 hei[10],i,j,temp;\n\n\tfor(i=0;i<10;i++){\n\t\tscanf(\"%d\",&hei[i]);\n\t}\n\tfor(i=0;i<10;i+...
CDSS_518013
CDSS
#include <stdio.h> #include <stdlib.h> int main() { int A,B; int c=-1; scanf("%d %d",&A,&B); if(A>=1&&A<=9&&B>=1&&B<=9) c=A*B; printf("%d",c); }
128
memory_bytes
{'s_id': 's069125513', 'p_id': 'p02879', 'u_id': 'u899967475', 'date': '1572224987', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '175'}
[ { "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 A,B;\n int c=-1;\n scanf(\"%d %d\",&A,&B);\n if(A>=1&&A<=9&...
CDSS_374028
CDSS
#include <stdio.h> int main(void){ int K,i; scanf("%d",&K); for (i=0;i<K;i++) printf("ACL"); }
1,676
memory_bytes
{'s_id': 's392471312', 'p_id': 'p02534', 'u_id': 'u895169118', 'date': '1601170073', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1676', 'code_size': '114'}
[ { "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 K,i;\n scanf(\"%d\",&K);\n for (i=0;i<K;i++)\n printf(\"ACL\");\n}\nPredict ...
CDSS_669332
CDSS
#include <stdio.h> #include <string.h> char S[114514]; int len; int main(void) { int onazi = 1; int i; int len; int minKyori; int target; int answer; if (scanf("%114513s", S) != 1) return 1; len = (int)strlen(S); for (i = 1; i < len; i++) { if (S[i] != S[0]) { onazi = 0; break; } } if (onazi) { ...
256
memory_bytes
{'s_id': 's629430195', 'p_id': 'p03480', 'u_id': 'u646118499', 'date': '1578211155', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '256', 'code_size': '813'}
[ { "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\nchar S[114514];\nint len;\n\nint main(void) {\n\tint onazi = 1;\n\tint i;\n\tint len;\n\tin...
CDSS_508294
CDSS
#include<stdio.h> #include<string.h> int gcd(long long int x, long long int y){ if (y == 0) return x; else return gcd(y, x % y); } int main(){ long long int a,b,ans,ansb; scanf("%lld %lld",&a,&b); ans=gcd(a,b); ansb=a*b; ansb=ansb/ans; printf("%lld",ansb); return 0; }
128
memory_bytes
{'s_id': 's660646035', 'p_id': 'p02831', 'u_id': 'u751806526', 'date': '1577069153', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '311'}
[ { "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 gcd(long long int x, long long int y){\n if (y == 0) return x;\n else return g...
CDSS_129364
CDSS
#include <stdio.h> #define N 45 int count = 0; int fib[N]; void Fib(int n){ if(count == 0 || count == 1) fib[count] = 1; else fib[count] = fib[count-1] + fib[count-2]; if(count == n){ printf("%d\n", fib[count]); return; } count++; Fib(n); } int main(){ int n; scanf("%d", &n); Fib(...
596
memory_bytes
{'s_id': 's097631187', 'p_id': 'p02233', 'u_id': 'u719540422', 'date': '1404433260', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '338'}
[ { "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 N 45\n\nint count = 0;\nint fib[N];\n\nvoid Fib(int n){\n if(count == 0 || count == 1) fib[count] = 1;\...
CDSS_428470
CDSS
#include <stdio.h> #include <math.h> int main(int argc, const char **argv) { double a = 0, b = 0, n = 0; fscanf(stdin, "%lf %lf %lf", &a, &b, &n); if ( b > n ) fprintf( stdout, "%ld\n", (long)( a * n / b ) ); else fprintf( stdout, "%ld\n", (long)( a * (b - 1) / b ) ); return 0; }
2,220
memory_bytes
{'s_id': 's120472978', 'p_id': 'p02696', 'u_id': 'u644987124', 'date': '1589425438', 'language': 'C', 'original_language': 'C (Clang 10.0.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '2220', 'code_size': '304'}
[ { "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(int argc, const char **argv)\n{\n double a = 0, b = 0, n = 0;\n\n fscanf(stdin...
CDSS_665413
CDSS
#include <stdio.h> #include <stdlib.h> int desc(const void *a, const void *b) { return *(int *)b - *(int *)a; } int main(void){ int n,i,r=1,before; int arr[999]; scanf("%d",&n); for(i=0;i<n;i++)scanf("%d",&arr[i]); qsort(arr,n,4,desc); before=arr[0]; for(i=1;i<n;i++){ if(before!=a...
128
memory_bytes
{'s_id': 's921738074', 'p_id': 'p03470', 'u_id': 'u406481677', 'date': '1548789294', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '425'}
[ { "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 desc(const void *a, const void *b) {\n return *(int *)b - *(int *)a;\n}\n\nint main(void...
CDSS_227931
CDSS
#include <stdio.h> #include <stdlib.h> #define MAX_HEAP_LENGTH 100 void swap(int array[], int i, int j) { int temp = array[i]; array[i] = array[j]; array[j] = temp; } typedef struct { int * array; int heap_size; int length; } Heap; Heap createHeap(int length) { Heap heap; heap....
3,680
memory_bytes
{'s_id': 's712955123', 'p_id': 'p02288', 'u_id': 'u562880406', 'date': '1531501794', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '60', 'memory': '3680', 'code_size': '2589'}
[ { "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#include <stdio.h>\n#include <stdlib.h>\n\n#define MAX_HEAP_LENGTH 100\n\nvoid swap(int array[], int i, int j) {\n int temp = arr...
CDSS_384098
CDSS
#include<stdio.h> int main(){ int n,ans=0; scanf("%d",&n); long l[n+1]; for(int i=1;i<=n;i++){scanf("%ld",&l[i]);} for(int a=1;a<=n-2;a++){ for(int b=a+1;b<=n-1;b++){ for(int c=b+1;c<=n;c++){ if(l[a]!=l[b] && l[b]!=l[c] && l[c]!=l[a] && l[a]<l[b]+l[c] &&l[b]<l[a]+l[c] &&l[c]<l[b]+l[a])ans...
2,120
memory_bytes
{'s_id': 's394355936', 'p_id': 'p02583', 'u_id': 'u280068213', 'date': '1597536837', 'language': 'C', 'original_language': 'C (Clang 10.0.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '2120', 'code_size': '377'}
[ { "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,ans=0;\n scanf(\"%d\",&n);\n long l[n+1];\n for(int i=1;i<=n;i++){scanf(\"%ld\",&l[i]);}\n ...
CDSS_702757
CDSS
#include <stdio.h> int main() { int a, b, ans; scanf("%d %d", &a, &b); ans = a+b; if (ans >= 10) puts("error"); else printf("%d\n", ans); return 0; }
128
memory_bytes
{'s_id': 's138792726', 'p_id': 'p03697', 'u_id': 'u672956630', 'date': '1504487512', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '191'}
[ { "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 a, b, ans;\n scanf(\"%d %d\", &a, &b);\n ans = a+b;\n if (ans >= 10)\n put...
CDSS_293798
CDSS
#include <stdio.h> int main(void) { /* 長方形の座標は左下を(0,0)、右上を(w,h) 円の中心座標は(x,y)、半径をr */ int w, h, x, y, r; //scanf関数でデータを取得 scanf("%d %d %d %d %d",&w, &h, &x, &y, &r); /* x + rは右の最大の座標、x - rは左の最大の座標 y + rは上の最大の座標、y - rは下の最大の座標 */ if((x + r <= w && x - r >= 0) && (y + r <= h && y - r >= 0)){ printf("Yes\n"...
2,132
memory_bytes
{'s_id': 's998203640', 'p_id': 'p02394', 'u_id': 'u397557231', 'date': '1542798536', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2132', 'code_size': '504'}
[ { "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\t/*\n\t長方形の座標は左下を(0,0)、右上を(w,h)\n\t円の中心座標は(x,y)、半径をr\n\t*/\n\tint w, h, x, y, r;\n\n\t//scan...
CDSS_34441
CDSS
#include <stdio.h> #include <math.h> int main(){ double a, b, c, d, e, f, x, y, ay, aa, db, dc, ae, af; while (scanf("%lf %lf %lf %lf %lf %lf",&a, &b, &c, &d, &e, &f)!=EOF) { db = b * d; dc = c * d; ae = e * a; af = f * a; ay = db - ae; aa = dc - af; ...
660
memory_bytes
{'s_id': 's443674790', 'p_id': 'p00004', 'u_id': 'u292263436', 'date': '1387347652', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '660', 'code_size': '559'}
[ { "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(){\n double a, b, c, d, e, f, x, y, ay, aa, db, dc, ae, af;\n while (scanf(\"%...
CDSS_435584
CDSS
#include<stdio.h> #include<stdlib.h> #include<string.h> int main(){ int n; scanf("%d", &n); char s[n][11]; for(int i = 0; i < n; i++){ scanf("%s", s[i]); } qsort(s, n, 11, strcmp); int count = 1; for(int i = 0; i < n-1; i++){ if(strcmp(s[i], s[i+1]) != 0){ count++; } } ...
6,072
memory_bytes
{'s_id': 's412924801', 'p_id': 'p02701', 'u_id': 'u541567517', 'date': '1587957681', 'language': 'C', 'original_language': 'C (Clang 10.0.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '67', 'memory': '6072', 'code_size': '356'}
[ { "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 \n int n;\n scanf(\"%d\", &n);\n \n char s[n][11];\n ...
CDSS_302997
CDSS
#include<stdio.h> int main(void) { int a[3000], b[3000]; int i, count=0; for(i=0; i<3000; i++) { scanf("%d %d", &a[i], &b[i]); if (a[i]==0 && b[i]==0) break; count++; } for(i=0; i<count; i++) { if (a[i]>b[i]) printf("%d %d\n", b[i], a[i]); else printf("%d %d\n", a[i], b[i]); } return 0; }
2,024
memory_bytes
{'s_id': 's763160496', 'p_id': 'p02397', 'u_id': 'u244105241', 'date': '1527776718', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2024', 'code_size': '320'}
[ { "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[3000], b[3000];\n\tint i, count=0;\n\tfor(i=0; i<3000; i++)\n\t{\n\t\tscanf(\"%d %d\",...
CDSS_302508
CDSS
#include <stdio.h> int main(void){ for(;;){ int x, y; scanf("%d %d", &x, &y); if (!x && !y) break; printf(x < y ? "%1$d %2$d\n" : "%2$d %1$d\n", x, y); } return 0; }
2,032
memory_bytes
{'s_id': 's756130040', 'p_id': 'p02397', 'u_id': 'u378480414', 'date': '1520146979', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2032', '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>\n\nint main(void){\n\tfor(;;){\n\t\tint x, y;\n\n\t\tscanf(\"%d %d\", &x, &y);\n\t\tif (!x && !y)\n\t\t\tbreak;\n\n...
CDSS_375252
CDSS
#include <stdio.h> #define _USE_MATH_DEFINES #include <math.h> #include <stdlib.h> #include <sys/stat.h> #include <string.h> int N_all; int main(int argc, char* argv[]){ int i,j; int xx,yy,count; count=0; scanf("%d",&N_all); for(i=1;i<=N_all;i++){ scanf("%d %d",&xx,&yy); if( xx =...
1,728
memory_bytes
{'s_id': 's344466682', 'p_id': 'p02547', 'u_id': 'u330187296', 'date': '1600542923', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1728', 'code_size': '543'}
[ { "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 _USE_MATH_DEFINES\n#include <math.h>\n#include <stdlib.h>\n#include <sys/stat.h>\n#include <string.h>\n\n\...
CDSS_108975
CDSS
#include<stdio.h> int main(){ int a, b, c, d, p, x, y; scanf("%d", &a); scanf("%d", &b); scanf("%d", &c); scanf("%d", &d); scanf("%d", &p); x = p * a; y = b; if( p > c){ y = (( p - c) * d) + y; } if( x < y){ printf("%d\n", x); }else{ printf("%d\n", y); } return 0; }
596
memory_bytes
{'s_id': 's074311037', 'p_id': 'p00531', 'u_id': 'u454108857', 'date': '1447378644', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '292'}
[ { "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 a, b, c, d, p, x, y;\n\tscanf(\"%d\", &a);\n\tscanf(\"%d\", &b);\n\tscanf(\"%d\", &c);\n\tscanf(...
CDSS_506721
CDSS
#include<stdio.h> int main(){ int a,b,c; scanf("%d %d",&a,&b); if((a==1 && b==2)||(a==2&&b==1)){ printf("3");} else if ((a==1&&b==3)||(a==3&&b==1)){ printf("2");} else printf("1"); return 0;}
128
memory_bytes
{'s_id': 's932918079', 'p_id': 'p02829', 'u_id': 'u863370423', 'date': '1581306688', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '199'}
[ { "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;\nscanf(\"%d %d\",&a,&b);\nif((a==1 && b==2)||(a==2&&b==1)){\nprintf(\"3\");}\nelse if ((a==...
CDSS_701947
CDSS
#include <stdio.h> #include <stdlib.h> int main(void){ int n,a,i,color[110]={0},max=8,m=0; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&a); if(a<400){ color[0]++; }else if(a<800){ color[1]++; }else if(a<1200){ color[2]++; }else if(a<1600){ color[3]++; }else if(a<2000){ color[4]++; }e...
128
memory_bytes
{'s_id': 's258147033', 'p_id': 'p03695', 'u_id': 'u853477575', 'date': '1537493935', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '662'}
[ { "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\tint n,a,i,color[110]={0},max=8,m=0;\n\tscanf(\"%d\",&n);\n\t\n\tfor(i=0;...
CDSS_280759
CDSS
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> int main() { int a, b, c; scanf("%d%d%d", &a, &b, &c); if (a < b && b < c) printf("Yes\n"); else printf("No\n"); return 0; }
2,048
memory_bytes
{'s_id': 's647156041', 'p_id': 'p02392', 'u_id': 'u864133320', 'date': '1559704865', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2048', '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#define _CRT_SECURE_NO_WARNINGS\n#include <stdio.h>\n\nint main()\n{\n\tint a, b, c;\n\n\tscanf(\"%d%d%d\", &a, &b, &c);\n\tif (a < b ...
CDSS_354544
CDSS
#include<stdio.h> int main() { int n,x,a,b,c,t; while(1) { scanf("%d %d", &n, &x); t = 0; if(n == 0 && x == 0) break; for(a = 1; a <= n-2; a++) { for(b = a+1; b <= n-1; b++) { for(c = b+1; c <= n; c++) { if(a+b+c == x) { t++; } } } } printf("%d\n",t); } return 0; }
600
memory_bytes
{'s_id': 's441245171', 'p_id': 'p02412', 'u_id': 'u414322748', 'date': '1448074593', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '316'}
[ { "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,x,a,b,c,t;\n\twhile(1) {\n\t\tscanf(\"%d %d\", &n, &x);\n\t\tt = 0;\n\t\tif(n == 0 && x == ...
CDSS_692266
CDSS
#include <stdio.h> int main() { char a[100]={0}; int i; scanf("%s",a); for(i=1; a[i] != '\0' ;i++) { } printf("%c%d%c\n",a[0],i-2,a[i-1]); return 0; }
128
memory_bytes
{'s_id': 's970399907', 'p_id': 'p03636', 'u_id': 'u353628407', 'date': '1502068570', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '194'}
[ { "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 char a[100]={0};\n int i;\n \n scanf(\"%s\",a);\n for(i=1; a[i] != '\\0' ;i++)\n ...
CDSS_499512
CDSS
#include <stdio.h> int main(){ int n,k,i; long s,x; scanf("%d %d %ld",&n,&k,&s); if (s<1000000000) x=s+1; else x=s-1; if (k>0) printf("%ld",s); else printf("%ld",x); for (i=1;i<k;i++) printf(" %ld",s); if (k==0) i=1; ...
1,280
memory_bytes
{'s_id': 's766396420', 'p_id': 'p02797', 'u_id': 'u337657882', 'date': '1579382619', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '1280', 'code_size': '420'}
[ { "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 int main(){\n int n,k,i;\n long s,x;\n \n scanf(\"%d %d %ld\",&n,&k,&s);\n ...
CDSS_418021
CDSS
#include<stdio.h> #include<string.h> #include<stdlib.h> #include<ctype.h> struct graph{ int point; int num; int *node; }; int main(void){ int n,m; scanf("%d %d",&n,&m); struct graph *pointer[n]; //構造体の作成 for(int i=0;i<n;i++){ pointer[i]=(struct graph*)malloc(sizeof(struct graph)); pointer[i]->point=i+...
559,452
memory_bytes
{'s_id': 's579236984', 'p_id': 'p02678', 'u_id': 'u734001128', 'date': '1590268557', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '477', 'memory': '559452', 'code_size': '1289'}
[ { "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<ctype.h>\n\nstruct graph{\n\tint point;\n\tint num;\n\tint *node;\...
CDSS_369375
CDSS
#include <stdio.h> #include <string.h> #include <ctype.h> int main() { char W[11]; char T[1001]; int c,i,wn,tn; c = 0; scanf("%10s",W); wn = strlen(W); while (1) { scanf("%1000s",T); if (!strcmp(T,"END_OF_TEXT")) break; tn = strlen(T); if (wn != tn) continue; i = 0; while (i < wn) { if (t...
1,796
memory_bytes
{'s_id': 's090608539', 'p_id': 'p02419', 'u_id': 'u641702731', 'date': '1509846596', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1796', 'code_size': '426'}
[ { "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 <ctype.h>\n\nint main()\n{\n\tchar W[11];\n\tchar T[1001];\n\tint c,i,wn,tn;\n\n\tc ...
CDSS_425233
CDSS
#include<stdio.h> #include<stdlib.h> #include<string.h> typedef long long ll; int max_cal(int a,int b) { if(a>=b) return a; else return b; } int com(const void *a,const void *b) { return (*(int *)a-*(int *)b); } void main(void) { ll n,m,ans=0; scanf("%lld",&n); ll *a,*L,*R,*d; a=malloc(sizeof(ll)*n); L=...
7,980
memory_bytes
{'s_id': 's077426791', 'p_id': 'p02691', 'u_id': 'u399091677', 'date': '1588602801', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '32', 'memory': '7980', 'code_size': '683'}
[ { "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>\ntypedef long long ll;\nint max_cal(int a,int b)\n{\n if(a>=b) return a;\n ...
CDSS_93968
CDSS
#include <stdio.h> int main(void){ int i, n, r, t, cr, ct, cs; scanf("%d", &n); for(i = 0; i < n; i++){ scanf("%d%d", &r, &t); cr = r % 100; ct = t % 30; cs = t/30*5+r/100; if(cr == 0 && ct == 0){ printf("%d\n", cs); }else if(cr != 0 && ct == 0){ printf("%d %d\n", cs, cs+1); ...
600
memory_bytes
{'s_id': 's414796212', 'p_id': 'p00300', 'u_id': 'u862498149', 'date': '1504268829', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '476'}
[ { "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 i, n, r, t, cr, ct, cs;\n\n scanf(\"%d\", &n);\n for(i = 0; i < n; i++){\n scanf(\"%...
CDSS_687909
CDSS
#include <stdio.h> #include <inttypes.h> int main(void) { uint64_t Q, H, S, D; uint64_t N; uint64_t maaya, sumipe; if (scanf("%" SCNu64 "%" SCNu64 "%" SCNu64 "%" SCNu64, &Q, &H, &S, &D) != 4) return 1; if (scanf("%" SCNu64, &N) != 1) return 1; sumipe = S; if (H * 2 < sumipe) sumipe = H * 2; if (Q * 4 < sumipe...
1,700
memory_bytes
{'s_id': 's831562673', 'p_id': 'p03617', 'u_id': 'u646118499', 'date': '1593062062', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '1700', 'code_size': '473'}
[ { "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 <inttypes.h>\n\nint main(void) {\n\tuint64_t Q, H, S, D;\n\tuint64_t N;\n\tuint64_t maaya, sumipe;\n\tif ...
CDSS_140925
CDSS
#include <stdio.h> #define N 100 #define INF (1<<21) #define WHITE 0 #define GRAY 1 #define BLACK 2 int n, M[N][N]; int color[N], d[N]; void dijkstra(); int main(){ int i, j; int u, k, v, c; scanf("%d", &n); for( i = 0; i < n; i++ ){ for( j = 0; j < n; j++ ){ M[i][j] = INF; } } for( i = 0...
2,112
memory_bytes
{'s_id': 's194932910', 'p_id': 'p02242', 'u_id': 'u992254952', 'date': '1580543244', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '1164'}
[ { "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#define INF (1<<21)\n#define WHITE 0\n#define GRAY 1\n#define BLACK 2\n\nint n, M[N][N];\nint colo...
CDSS_273043
CDSS
#include <stdio.h> int main(void){ 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; }
2,104
memory_bytes
{'s_id': 's812048838', 'p_id': 'p02391', 'u_id': 'u494903727', 'date': '1527552970', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '224'}
[ { "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 a,b;\n scanf(\"%d %d\",&a,&b);\n if(a<b){\n printf(\"a < b\\n\");\n }\n ...
CDSS_169377
CDSS
#include<stdio.h> #define N 100 int main () { int count, i, tmp, n, A[N], flag; count = 0; scanf("%d", &n); for ( i = 0;i < n; i++ ) { scanf("%d", &A[i]); } flag = 1; while ( flag ) { flag = 0; for ( i = 1;i < n; i++ ) { if ( A[i] < A[i - 1] ) { tmp = A[i]; A[i] = A[i - 1]; A[i - 1] = t...
1,968
memory_bytes
{'s_id': 's138470302', 'p_id': 'p02259', 'u_id': 'u822248594', 'date': '1542076877', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1968', 'code_size': '503'}
[ { "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\tint count, i, tmp, n, A[N], flag;\n\n\tcount = 0;\n\n\tscanf(\"%d\", &n);\n\n\tfo...
CDSS_46497
CDSS
#include <stdio.h> #include <math.h> double syori1(double x1,double y1,double x2,double y2){ /* •Ó‚Ì’·‚³‚ð‹‚ß‚éB*/ return sqrt( pow( (x2-x1),2) + pow( (y2-y1),2) ); } double syori2(double a,double b,double c){ /* –ʐÏ,S‚ð‹‚ß‚éB*/ double s,S; s=(a+b+c)/2; S=sqrt( s*(s-a)*(s-b)*(s-c) ); return S; } doubl...
0
memory_bytes
{'s_id': 's951262766', 'p_id': 'p00012', 'u_id': 'u948800138', 'date': '1315820547', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '1253'}
[ { "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\ndouble syori1(double x1,double y1,double x2,double y2){\t\t/* •Ó‚Ì’·‚³‚ð‹‚ß‚éB*/\n\treturn ...
CDSS_494815
CDSS
#include<stdio.h> int main(){ int h,n; scanf("%d%d",&h,&n); int sum=0,a[n+1]; for(int i=1;i<=n;i++){ scanf("%d",&a[i]); sum+=a[i]; } if(sum>=h) printf("Yes\n"); else printf("No\n"); return 0; }
512
memory_bytes
{'s_id': 's956934531', 'p_id': 'p02784', 'u_id': 'u188486233', 'date': '1580069133', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '11', 'memory': '512', '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>\nint main(){\n int h,n;\n scanf(\"%d%d\",&h,&n);\n int sum=0,a[n+1];\n for(int i=1;i<=n;i++){\n s...
CDSS_214099
CDSS
#include<stdio.h> #define MAX1 1000 #define MAX2 10000 int n, a[MAX1], s; int b[MAX1], T[MAX2 + 1]; int partition(int [], int , int ); void quickSort(int [], int , int ); int solve(); int main(){ int i; scanf("%d", &n); s = MAX2; for(i = 0 ; i < n ; i++){ scanf("%d", &a[i]); if(a[i] < s) s = a...
2,096
memory_bytes
{'s_id': 's179034596', 'p_id': 'p02278', 'u_id': 'u889908059', 'date': '1533765254', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2096', 'code_size': '1401'}
[ { "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 MAX1 1000\n#define MAX2 10000\n\n\nint n, a[MAX1], s;\nint b[MAX1], T[MAX2 + 1];\n\n\nint partition(int ...
CDSS_624994
CDSS
#include<stdio.h> int main() { int A, B, sy; scanf("%d%d", &A, &B); sy=(A-1)*(B-1); printf("%d", sy); return 0; }
1,724
memory_bytes
{'s_id': 's542561987', 'p_id': 'p03280', 'u_id': 'u018679195', 'date': '1596055093', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '7', 'memory': '1724', 'code_size': '118'}
[ { "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\tint A, B, sy;\n\tscanf(\"%d%d\", &A, &B);\n\tsy=(A-1)*(B-1);\n\tprintf(\"%d\", sy);\n\treturn 0;\n...
CDSS_693465
CDSS
#include <stdio.h> int main(int argc, char *argv[]) { int n; while(scanf("%d",&n)!=EOF) { printf("ABC%d\n",n); } return 0; }
128
memory_bytes
{'s_id': 's083622212', 'p_id': 'p03643', 'u_id': 'u261400234', 'date': '1501376769', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '131'}
[ { "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(int argc, char *argv[])\n{\n\tint n;\n\twhile(scanf(\"%d\",&n)!=EOF)\n\t{\n\t\tprintf(\"ABC%d\\n\",n);\n\...
CDSS_117792
CDSS
#include <stdio.h> int main() { int n; int i, j, k; int t, f; //int l, r, b; int field[100][100][100]; int left[6][6] = {{0, 4, 2, 5, 3, 0}, {3, 0, 6, 1, 0, 4}, {5, 1, 0, 0, 6, 2}, {2, 6, 0, 0, 1, 5}, {4, 0, 1, 6, 0, 3}, {0, 3, 5, 2, 4, 0}}; //int dice[6][2] = {{5, 4}, {6, 4}, {6, 5}, {6, 5...
4,512
memory_bytes
{'s_id': 's546275745', 'p_id': 'p00762', 'u_id': 'u394402865', 'date': '1351680948', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '360', 'memory': '4512', 'code_size': '2721'}
[ { "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;\n int i, j, k;\n int t, f;\n //int l, r, b;\n int field[100][100][100];\n ...
CDSS_610155
CDSS
#include<stdio.h> long N; int min = 753; int abst(int a, int b); int main(void){ if(scanf("%ld",&N)); while(N >= 100){ if(abst(N%1000, 753) < min){min = abst(N%1000, 753);} N /= 10; } printf("%d\n", min); return 0; } int abst(int a, int b){ return a<b?b-a:a-b; }
128
memory_bytes
{'s_id': 's039501304', 'p_id': 'p03211', 'u_id': 'u292252214', 'date': '1543803596', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '277'}
[ { "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 N;\nint min = 753;\n\nint abst(int a, int b);\n\nint main(void){\n\tif(scanf(\"%ld\",&N));\n\twhile(N >= 100...
CDSS_551492
CDSS
#include<stdio.h> #include<math.h> int main() { int i,n,a,j,counter=0; int ar[100][100]; scanf("%d%d", &n, &a); for(i=0; i<n; i++) { for(j=0;j<a; j++) { scanf("%d", &ar[i][j]); } } int x,ar1[100],q; for(i=0; i<n; i++) { int d =i; for(q...
128
memory_bytes
{'s_id': 's360787164', 'p_id': 'p02982', 'u_id': 'u526278960', 'date': '1562710633', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '766'}
[ { "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 int i,n,a,j,counter=0;\n int ar[100][100];\n scanf(\"%d%d\", &n, &a);\n ...
CDSS_38462
CDSS
#include <stdio.h> int main(){ int i; char in[20]; scanf("%s", in); for(i = 19; i > -1; i--){ if(in[i] != '\0'){ printf("%c", in[i]); } } printf("\n"); return 0; }
0
memory_bytes
{'s_id': 's844391778', 'p_id': 'p00006', 'u_id': 'u012244905', 'date': '1318521156', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '186'}
[ { "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 i;\n\tchar in[20];\n\t\n\tscanf(\"%s\", in);\n\t\n\tfor(i = 19; i > -1; i--){\n\t\tif(in[i] !...
CDSS_172541
CDSS
#include<stdio.h> #define N 100 int main(){ int n,i,j=0,A[N],b,minj,k,count=0; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&A[i]); } for(i=0;i<n;i++){ minj=i; for(j=i;j<n;j++){ if(A[j]<A[minj])minj = j; } k = A[i]; A[i] = A[minj]; A[minj] = k; if(i != minj) count++; ...
2,144
memory_bytes
{'s_id': 's500719109', 'p_id': 'p02260', 'u_id': 'u655698316', 'date': '1544074987', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2144', '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#define N 100\nint main(){\n int n,i,j=0,A[N],b,minj,k,count=0;\n scanf(\"%d\",&n);\n for(i=0;i<n;i++){\n sca...
CDSS_298631
CDSS
#include<stdio.h> int main(void){ int i, a; for(i = 1;;i++){ scanf("%d", &a); if(a > 0){ printf("Case %d: %d\n", i, a); } else { break; } } return 0; }
2,036
memory_bytes
{'s_id': 's740344443', 'p_id': 'p02396', 'u_id': 'u653324378', 'date': '1530605894', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2036', 'code_size': '174'}
[ { "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\tint i, a;\n\tfor(i = 1;;i++){\n\t\tscanf(\"%d\", &a);\n\t\tif(a > 0){\n\t\t\tprintf(\"Case %d: %...
CDSS_624116
CDSS
#include <stdio.h> #include <stdbool.h> char f[100][100]; bool isBrackW[100]; bool isBrackH[100]; int main() { int h, w; bool isErase; scanf("%d%d", &h, &w); for (int i = 0; i < h; i++) { scanf("%s", f[i]); } for (int i = 0; i < h; i++) { for (int j = 0; j < w; j++) { if (f[i][j] == '#') isBrackH[i] = ...
128
memory_bytes
{'s_id': 's189318218', 'p_id': 'p03273', 'u_id': 'u030504180', 'date': '1585690766', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '630'}
[ { "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 <stdbool.h>\nchar f[100][100];\nbool isBrackW[100];\nbool isBrackH[100];\nint main() {\n\tint h, w;\n\tbo...
CDSS_638696
CDSS
#include<stdio.h> int main() { int d,n,x,nn=0; scanf("%d %d",&d,&n); if(n==100){ n++; for(x=0;x<d;x++){ nn*=100; } } for(x=0;x<d;x++){ n*=100; } printf("%d\n",n+nn); return 0; }
128
memory_bytes
{'s_id': 's624375605', 'p_id': 'p03324', 'u_id': 'u469168842', 'date': '1529434777', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '267'}
[ { "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 d,n,x,nn=0;\n\n scanf(\"%d %d\",&d,&n);\n\n if(n==100){\n n++;\n for(x...
CDSS_463034
CDSS
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <math.h> int main() { int x, y, z, t; scanf("%d %d %d", &x, &y, &z); t = x; x = z; z = y; y = t; printf("%d %d %d\n", x, y, z); return 0; }
128
memory_bytes
{'s_id': 's676437414', 'p_id': 'p02717', 'u_id': 'u594396548', 'date': '1587270572', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '275'}
[ { "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 \nint main()\n{\n int x, y, z, t;\n \n s...
CDSS_655212
CDSS
#include<stdio.h> int main(){ long long N, M; long long sum, sub; scanf("%lld %lld", &N, &M); sum = N*M; if(N==1 && M==1){ sub=0; }else if(N==1 || M==1){ sub=2; }else{ sub=N*2+M*2-4; } printf("%lld", sum-sub); return 0; }
128
memory_bytes
{'s_id': 's448286934', 'p_id': 'p03417', 'u_id': 'u235231201', 'date': '1563847629', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '289'}
[ { "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 long long N, M;\n long long sum, sub;\n scanf(\"%lld %lld\", &N, &M);\n\n sum = N*M;\n ...
CDSS_739425
CDSS
#include <stdio.h> #include<stdlib.h> #include<string.h> int main(void){ int n,k,x,y,ans=0; scanf("%d %d %d %d",&n,&k,&x,&y); for(int i=1;i<=n;i++){ if(i<=k)ans+=x; else ans+=y; } printf("%d\n",ans); return 0; }
128
memory_bytes
{'s_id': 's680285318', 'p_id': 'p04011', 'u_id': 'u869282786', 'date': '1496872183', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '251'}
[ { "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>\nint main(void){\n int n,k,x,y,ans=0;\n scanf(\"%d %d %d %d\",&n,&k,&...
CDSS_289310
CDSS
#include <stdio.h> int main() { int width = 0, height = 0; int x = 0, y = 0, r = 0; scanf("%d %d %d %d %d", &width, &height, &x, &y, &r); if (x + r <= width) { if (x - r >=0) { if (y + r <= height) { if (y - r >= 0) { printf("Yes\n"); return 0; } } } } printf("No\n"); r...
584
memory_bytes
{'s_id': 's092476565', 'p_id': 'p02394', 'u_id': 'u356001601', 'date': '1433074446', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '584', '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>\n\nint main() {\n\tint width = 0, height = 0;\n\tint x = 0, y = 0, r = 0;\n\t\n\tscanf(\"%d %d %d %d %d\", &width, ...
CDSS_636121
CDSS
#include <stdio.h> int main(void) { int n,k; scanf("%d %d", &n, &k); int a[n]; for (int i = 0; i < n; i++) { scanf("%d", &a[i]); } int answer = (n-1+k-2)/(k-1); printf("%d\n", answer); return 0; }
512
memory_bytes
{'s_id': 's468794185', 'p_id': 'p03317', 'u_id': 'u581816556', 'date': '1587594257', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '11', 'memory': '512', '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>\n\nint main(void) {\n\n int n,k;\n scanf(\"%d %d\", &n, &k);\n int a[n];\n for (int i = 0; i < n; i++) {\n s...
CDSS_352754
CDSS
#include <stdio.h> int main(int argc, const char * argv[]) { int m = 0, f = 0, r = 0, i, n = 0; char score[100]; for( i = 0 ; ; i++ ){ scanf("%d %d %d",&m,&f,&r); if( m == -1 && f == -1 && r == -1 ){ break; } else if( m == -1 || f == -1 ){ score[i] = '...
600
memory_bytes
{'s_id': 's847831222', 'p_id': 'p02411', 'u_id': 'u349320095', 'date': '1498217233', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '936'}
[ { "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(int argc, const char * argv[]) {\n int m = 0, f = 0, r = 0, i, n = 0;\n char score[100];\n for( ...
CDSS_490636
CDSS
#include <stdio.h> # include <string.h> int main() { char str[102], sx[102]; scanf("%s", str); for (int i = 0; i< strlen(str); ++i) sx[i] = 'x'; sx[strlen(str)] = '\0'; printf("%s\n", sx); return 0; }
128
memory_bytes
{'s_id': 's560859826', 'p_id': 'p02778', 'u_id': 'u158587375', 'date': '1585943815', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '263'}
[ { "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[102], sx[102];\n \n scanf(\"%s\", str);\n \n for (i...
CDSS_159857
CDSS
#include<stdio.h> int isPrime(int x){ int i; if(x==2) return 1; if(x<2 || x%2==0) return 0; for(i=3;i*i<=x;i=i+2){ if(x%i==0) return 0; } return 1; } int main(){ int n,i,count=0,a; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&a); isPrime(a); if(isPrime(a)) count++; } printf("%d\n"...
2,068
memory_bytes
{'s_id': 's054791941', 'p_id': 'p02257', 'u_id': 'u159210124', 'date': '1543987502', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2068', 'code_size': '343'}
[ { "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 isPrime(int x){\n int i;\n if(x==2) return 1;\n if(x<2 || x%2==0) return 0;\n for(i=3;i*i<=x;i=i+2){\n i...
CDSS_79265
CDSS
#include <stdio.h> char hantei(double, double); int main() { double fi; double thou; char rank; while(scanf("%lf %lf",&fi, &thou) != EOF) { rank = hantei(fi, thou); if(rank == 'W') printf("AAA\n"); else if(rank == 'S') printf("AA\n"); else if(rank == 'N') printf("NA\n"); els...
0
memory_bytes
{'s_id': 's697027554', 'p_id': 'p00123', 'u_id': 'u263247628', 'date': '1324291911', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', '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\nchar hantei(double, double);\n\nint main()\n{\n double fi;\n double thou;\n char rank;\n\n while(scanf(\"%lf...
CDSS_597826
CDSS
#include<stdio.h> int main() { int n, d; int sum, max; scanf("%d", &n); sum = 0; for (int i = 0; i < n; i++) { scanf("%d", &d); sum = sum + d; if (max < d) { max = d; } } sum = sum - max; if (max >= sum) { printf("No"); } else { ...
128
memory_bytes
{'s_id': 's400068732', 'p_id': 'p03136', 'u_id': 'u818219039', 'date': '1565868660', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '362'}
[ { "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, d;\n int sum, max;\n scanf(\"%d\", &n);\n\tsum = 0;\n for (int i = 0; i < n; ...
CDSS_499576
CDSS
#include <stdio.h> #include <stdint.h> #define MAX(x,y) ((x) > (y) ? (x) : (y)) #define MIN(x,y) ((x) < (y) ? (x) : (y)) #define LL int64_t #define REP(i,n) for (LL (i) = 0; (i) < (n); i++) #define REPr(i,n) for (LL (i) = (n); (i) --> 0;) #define INF 1e9 int DP[1<<18][18]; int A[18][2]; int bitcount(LL bits) { bit...
18,560
memory_bytes
{'s_id': 's007018712', 'p_id': 'p02798', 'u_id': 'u732412551', 'date': '1579442436', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '254', 'memory': '18560', 'code_size': '1488'}
[ { "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 <stdint.h>\n#define MAX(x,y) ((x) > (y) ? (x) : (y))\n#define MIN(x,y) ((x) < (y) ? (x) : (y))\n#define L...
CDSS_164252
CDSS
#include <stdio.h> #define MAX 200000 int max(int a,int b) { return a>b ? a: b;} int min(int a,int b) { return a<b ? a: b;} int main(void) { int R[MAX], i, n; scanf("%d",&n); for(i=0;i<n;i++) scanf("%d",&R[i]); int maxv = -2000000000; int minv = R[0]; for(int i=1; i<n; i++) { ...
2,588
memory_bytes
{'s_id': 's372219817', 'p_id': 'p02258', 'u_id': 'u198400358', 'date': '1594396552', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2588', 'code_size': '444'}
[ { "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 MAX 200000\n\nint max(int a,int b) { return a>b ? a: b;}\nint min(int a,int b) { return a<b ? a: b;}\n\n...
CDSS_80821
CDSS
// include // ---------------------------------------------------------------------------- #include<stdio.h> #include<stdlib.h> #include<ctype.h> #include<math.h> #include<string.h> #include<stdbool.h> // repetition // ---------------------------------------------------------------------------- #define FOR(i, a, b) fo...
0
memory_bytes
{'s_id': 's673435791', 'p_id': 'p00136', 'u_id': 'u635505472', 'date': '1328993697', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '2362'}
[ { "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\n// ----------------------------------------------------------------------------\n#include<stdio.h>\n#include<stdlib.h>\n#i...
CDSS_299352
CDSS
#include<stdio.h> int main(){ int i,x; for(i = 1;;i++){ scanf("%d",&x); if(x == 0) break; printf("Case %d: %d\n",i,x); } return 0; }
2,044
memory_bytes
{'s_id': 's260593203', 'p_id': 'p02396', 'u_id': 'u562758860', 'date': '1552612656', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2044', '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 int i,x;\n for(i = 1;;i++){\n scanf(\"%d\",&x);\n if(x == 0) break;\n pr...
CDSS_297563
CDSS
#include<stdio.h> int main(){ int n,i; for(i=1;i<=10000;i++){ scanf("%d", &n); if ( n == 0) break; printf("Case %d: %d\n", i, n); } return 0; }
1,848
memory_bytes
{'s_id': 's828925756', 'p_id': 'p02396', 'u_id': 'u605515851', 'date': '1510771269', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1848', 'code_size': '197'}
[ { "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,i;\n for(i=1;i<=10000;i++){\n scanf(\"%d\", &n);\n if ( n == 0) \n ...
CDSS_506533
CDSS
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <ctype.h> #include <math.h> int main() { int a,b; scanf("%d %d", &a,&b); printf("%d",6-a-b); return 0; }
128
memory_bytes
{'s_id': 's310865667', 'p_id': 'p02829', 'u_id': 'u163680061', 'date': '1590940160', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '194'}
[ { "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 <ctype.h>\n#include <math.h>\n\nint main() {\n\n int a,b;\n ...
CDSS_200787
CDSS
#include<stdio.h> int solve(int, int); int A[2000], n, h = 0; int main(){ int i, q, M[2000]; scanf("%d", &n); for(i = 0; i < n; i++){ scanf("%d", &A[i]); } scanf("%d", &q); for(i = 0; i < q; i++){ scanf("%d", &M[i]); } for(i = 0; i < q; i++){ h = solve(0, M[i]); if(h == 1) pr...
588
memory_bytes
{'s_id': 's142644779', 'p_id': 'p02271', 'u_id': 'u931176983', 'date': '1400811610', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '590', 'memory': '588', 'code_size': '568'}
[ { "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 solve(int, int);\nint A[2000], n, h = 0;\n \nint main(){\n int i, q, M[2000];\n scanf(\"%d\", &n);\n for(...
CDSS_485769
CDSS
#include <stdio.h> int main(){ int i, j, n, ans=10000000; scanf("%d",&n); int x[n],t[101]; for(i=0;i<n;i++) scanf("%d",&x[i]); for(i=0;i<101;i++) t[i]=0; for(i=0;i<101;i++) for(j=0;j<n;j++) t[i]+=(x[j]-i)*(x[j]-i); for(i=0;i<101;i++) if(t[i]<ans) ans=t[i]; printf("%d",ans); }
128
memory_bytes
{'s_id': 's433339044', 'p_id': 'p02767', 'u_id': 'u697715013', 'date': '1582946002', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '289'}
[ { "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 i, j, n, ans=10000000;\n\tscanf(\"%d\",&n);\n\tint x[n],t[101];\n\tfor(i=0;i<n;i++) scanf(\"%...
CDSS_662758
CDSS
#include <stdio.h> int main() { int a, b; scanf("%d%d", &a, &b); printf("%s", a * b % 2 ? "Odd" : "Even"); }
128
memory_bytes
{'s_id': 's555145259', 'p_id': 'p03455', 'u_id': 'u816631826', 'date': '1517770642', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '121'}
[ { "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 a, b;\n scanf(\"%d%d\", &a, &b);\n printf(\"%s\", a * b % 2 ? \"Odd\" : \"Even\");\n}\...
CDSS_387940
CDSS
#include <stdio.h> int main() { int x, kyu; scanf("%d", &x); if (x >= 400 && x <= 599) kyu = 8; else if (x >= 600 && x <= 799) kyu = 7; else if (x >= 800 && x <= 999) kyu = 6; else if (x >= 1000 && x <= 1199) kyu = 5; else if (x >= 1200 && x <= 1399) ...
1,728
memory_bytes
{'s_id': 's023855309', 'p_id': 'p02600', 'u_id': 'u813269900', 'date': '1595726442', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1728', 'code_size': '539'}
[ { "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, kyu;\n\n scanf(\"%d\", &x);\n\n if (x >= 400 && x <= 599)\n kyu = 8;\n ...
CDSS_656216
CDSS
#include<stdio.h> int main(){ int N; int groups; scanf("%d", &N); groups = N/3; printf("%d", groups); return 0; }
128
memory_bytes
{'s_id': 's166040915', 'p_id': 'p03423', 'u_id': 'u095767525', 'date': '1520282070', '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>\nint main(){\nint N;\nint groups;\nscanf(\"%d\", &N);\ngroups = N/3;\nprintf(\"%d\", groups);\nreturn 0;\n}\nPredict...
CDSS_466634
CDSS
#include<stdio.h> int zetai(int num); int main() { long n,k,ans,a; scanf("%ld %ld",&n,&k); if(n > k) { a = n % k; } else { a = n; } if(a < k - a) { ans = a; } else { ans = k-a; } printf("%ld\n",ans); return 0; } int zetai(int num) { i...
128
memory_bytes
{'s_id': 's551380678', 'p_id': 'p02719', 'u_id': 'u725993280', 'date': '1587332900', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '375'}
[ { "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 zetai(int num);\n\nint main() {\n \n long n,k,ans,a;\n scanf(\"%ld %ld\",&n,&k);\n if(n > k) {\n ...
CDSS_131606
CDSS
#include <stdio.h> int main(){ int n,i,j,k,l,q,p[101],m[101][101]; scanf("%d",&n); for(i=1; i<=n; i++) scanf("%d%d",&p[i-1],&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++){ j = i + l -1; m[i][j] = 100000; for(k=i; k<=j-1; k++){ q = m[i]...
636
memory_bytes
{'s_id': 's486674139', 'p_id': 'p02234', 'u_id': 'u742970975', 'date': '1467783245', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '636', 'code_size': '451'}
[ { "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,i,j,k,l,q,p[101],m[101][101];\n\n scanf(\"%d\",&n);\n\n for(i=1; i<=n; i++)\n scanf(\"...
CDSS_200578
CDSS
#include <stdio.h> #include <string.h> #define N 2000 int n, q, in; char dp[2][40001]; void swap(int* a, int* b){ int tmp = *a; *a = *b; *b = tmp; } main(){ while(scanf("%d", &n) != EOF){ int i, j, next = 1, cur = 0; for(i=0;i<2;i++) for(j=0;j<=40000;j++) dp[i][j] = 0; dp[0][0] = 1; for(i=0;i...
0
memory_bytes
{'s_id': 's186165230', 'p_id': 'p02271', 'u_id': 'u622083648', 'date': '1336997488', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '642'}
[ { "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#define N 2000\n\nint n, q, in;\nchar dp[2][40001];\n\nvoid swap(int* a, int* b){\n int tmp ...
CDSS_675991
CDSS
/* cat <<EOF >mistaken-paste */ #pragma GCC diagnostic ignored "-Wincompatible-pointer-types" #include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdbool.h> #include <math.h> #define BIG 2000000007 #define MOD 1000000007 typedef un...
2,176
memory_bytes
{'s_id': 's958274919', 'p_id': 'p03544', 'u_id': 'u238041222', 'date': '1511826578', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '2176', 'code_size': '7348'}
[ { "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 cat <<EOF >mistaken-paste\n */\n \n #pragma GCC diagnostic ignored \"-Wincompatible-pointer-types\"\n \n ...
CDSS_264309
CDSS
#include <stdio.h> #include <stdlib.h> int main() { int sec; scanf("%d", &sec); printf("%d:%d:%d\n", sec / 3600, (sec % 3600) / 60, sec % 60); return 0; }
2,052
memory_bytes
{'s_id': 's967117461', 'p_id': 'p02390', 'u_id': 'u884879226', 'date': '1584851859', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2052', 'code_size': '162'}
[ { "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\tint sec;\n\n\tscanf(\"%d\", &sec);\n\tprintf(\"%d:%d:%d\\n\", sec / 3600, ...
CDSS_168830
CDSS
#include <stdio.h> void bubbleSort(int *,int); void trace(int *,int); int cnt=0; int main(){ int N=0,i,j; int A[100]; scanf("%d",&N); for(i=0; i < N; i++){ scanf("%d",&A[i]); } bubbleSort(A,N); return 0; } void trace(int *A,int N){ int i; for(i=0;i<N;i++){ printf("%d",A[i]); ...
2,108
memory_bytes
{'s_id': 's547103239', 'p_id': 'p02259', 'u_id': 'u882462216', 'date': '1577081950', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '686'}
[ { "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\nvoid bubbleSort(int *,int);\nvoid trace(int *,int);\n\nint cnt=0;\n\nint main(){\n int N=0,i,j;\n int A[100];\...
CDSS_70120
CDSS
#include<stdio.h> int main(void){ int T, H, S, Ans1, Ans3, AT1, AH1, AS1, AT3, AH3, AS3; scanf("%d %d %d", &T, &H, &S); while (1) { S = T * 3600 + H * 60 + S; Ans1 = 2 * 3600 - S; Ans3 = 3 * Ans1; AT1 = Ans1 / 3600; AH1 = Ans1 % 3600 / 60; AS1 = Ans1 - AT1 * 3600 - AH1 * 60;...
1,800
memory_bytes
{'s_id': 's302196063', 'p_id': 'p00074', 'u_id': 'u328199937', 'date': '1508393734', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1800', 'code_size': '876'}
[ { "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 T, H, S, Ans1, Ans3, AT1, AH1, AS1, AT3, AH3, AS3;\n scanf(\"%d %d %d\", &T, &H, &S);\n ...
CDSS_354863
CDSS
#include<stdio.h> int main(void){ int i,j,k,n,x,count=0; while(1){ scanf("%d %d",&n,&x); if(n==0 && x==0) break; for(i=1;i<=n;i++){ for(j=i+1;j<=n;j++){ for(k=j+1;k<=n;k++){ if(i+j+k==x){ if(i==j || i==k ||j==k){ count=count; }else if(i<j && j<k){ count++; ...
600
memory_bytes
{'s_id': 's851316889', 'p_id': 'p02412', 'u_id': 'u520189434', 'date': '1475907696', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '447'}
[ { "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\tint main(void){\n\t\tint i,j,k,n,x,count=0;\n\t\twhile(1){\n\t\t\tscanf(\"%d %d\",&n,&x);\n\t\t\tif(n==0 && x==0)...
CDSS_630870
CDSS
#include<stdio.h> #include<string.h> int main(void){ char str1[101],str2[101],tmp; int i,j; scanf("%s",str1); scanf("%s",str2); for(i=1;i<=strlen(str1);i++){ if(strcmp(str1,str2)==0){ printf("Yes"); return 0; } for(j=(strlen(str1)-1);j>=-1;j--){ if(j==(strlen(str1)-1)){ t...
128
memory_bytes
{'s_id': 's098336006', 'p_id': 'p03293', 'u_id': 'u993037852', 'date': '1586208590', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '466'}
[ { "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 char str1[101],str2[101],tmp;\n int i,j;\n scanf(\"%s\",str1);\n scanf(\"...
CDSS_40454
CDSS
#include<stdio.h> int main(void) { const int start=100; double r=1.05; double result; int n,i; result = start; scanf("%d",&n); for(i=0;i<n;i++){ result=result*r; if(!(result-(int)result==0)){ result=(int)result+1; } } printf("%d\n",(int)result*1000...
592
memory_bytes
{'s_id': 's515493919', 'p_id': 'p00007', 'u_id': 'u119121140', 'date': '1371792298', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', 'code_size': '338'}
[ { "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 const int start=100;\n double r=1.05;\n double result;\n int n,i;\n result = sta...
CDSS_503109
CDSS
#include <stdio.h> #include <math.h> int a[9],used[9],n; int s1[9],s2[9]; int num[2],count = 0; void dfs(int dep) { int i; if(dep == n + 1){ count++; for(i = 1; i <= n; i++) if(s1[i] != a[i]) break; if(i > n) num[0] = count; for(i = 1; i <= n; i++) if(s2[i] != a[i]) break; ...
128
memory_bytes
{'s_id': 's386898850', 'p_id': 'p02813', 'u_id': 'u389008487', 'date': '1578709914', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '128', 'code_size': '741'}
[ { "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 a[9],used[9],n;\nint s1[9],s2[9];\nint num[2],count = 0;\nvoid dfs(int dep)\n{\n int i;\...
CDSS_570530
CDSS
#include <stdio.h> int main(void){ int n,k; scanf("%d%d",&n,&k); char s[n]; scanf("%s",s); s[k-1]=s[k-1]+32; printf("%s",s); }
128
memory_bytes
{'s_id': 's924837737', 'p_id': 'p03041', 'u_id': 'u606393507', 'date': '1563668223', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '139'}
[ { "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,k;\n scanf(\"%d%d\",&n,&k);\n char s[n];\n scanf(\"%s\",s);\n s[k-1]=s[k-1]+32;\n ...
CDSS_341445
CDSS
#include<stdio.h> int main(void){ int b,c,n,d,e; scanf("%d",&n); e=n; int a[n]; for(b=0;b<n;b++){ scanf("%d",&c); a[b]=c; } for(d=e-1;d>0;d--){ printf("%d ",a[d]); } printf("%d\n", a[0]); return 0; }
596
memory_bytes
{'s_id': 's669533657', 'p_id': 'p02407', 'u_id': 'u885545255', 'date': '1434698801', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '259'}
[ { "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 b,c,n,d,e;\n scanf(\"%d\",&n);\n e=n;\n int a[n];\n for(b=0;b<n;b++){\n ...
CDSS_94670
CDSS
#include <stdio.h> int main(void) { int w,x; scanf("%d",&w); x=32*w; printf("%d\n",x); return 0; }
1,800
memory_bytes
{'s_id': 's798786948', 'p_id': 'p00330', 'u_id': 'u872842604', 'date': '1506815693', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1800', '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>\nint main(void)\n{\n\tint w,x;\n\tscanf(\"%d\",&w);\n\tx=32*w;\n\tprintf(\"%d\\n\",x);\n\treturn 0;\n}\nPredict its...
CDSS_423421
CDSS
#include<stdio.h> int main(void) { int i, N, K, j, s, g = 0,q=0; int d[100]; int a[100][100]; scanf("%d",&N); scanf("%d", &K); s = 0; for (i = 0; i < K; i++) { scanf("%d", &d[i]); for (j = 0; j < d[i]; j++) { scanf("%d", &a[i][j]); } } for (s = 1; s <= N; s++) { for (i = 0; i < N; i++) { if (q =...
2,180
memory_bytes
{'s_id': 's940188467', 'p_id': 'p02688', 'u_id': 'u030038365', 'date': '1588693023', 'language': 'C', 'original_language': 'C (Clang 10.0.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '2180', 'code_size': '535'}
[ { "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\tint i, N, K, j, s, g = 0,q=0;\n\tint d[100];\n\tint a[100][100];\n\tscanf(\"%d\",&N);\n\tscanf(...
CDSS_684141
CDSS
#include<stdio.h> int n, a; int main(void) { scanf( "%d %d", &n, &a ); printf( "%d\n", n*n-a ); return 0; }
128
memory_bytes
{'s_id': 's024488435', 'p_id': 'p03597', 'u_id': 'u115071405', 'date': '1505610240', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '118'}
[ { "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 n, a;\n\nint main(void)\n{\n\t\n\tscanf( \"%d %d\", &n, &a );\n\t\n\tprintf( \"%d\\n\", n*n-a );\n\t\n\tretur...
CDSS_150813
CDSS
#include<stdio.h> main(){ int x=0, y=0, z=0; scanf("%d%d",&x ,&y); while(1){ if(x % y == 0){ break; } if(x >= y){ z = x % y; x = y; y = z; continue; } if(x < y){ z = x; x = y; y = z; continue; } } printf("%d\n",y); return...
592
memory_bytes
{'s_id': 's336021602', 'p_id': 'p02256', 'u_id': 'u582275142', 'date': '1435517122', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', 'code_size': '325'}
[ { "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 x=0, y=0, z=0;\n scanf(\"%d%d\",&x ,&y);\n while(1){\n if(x % y == 0){\n break;\n }\n...
CDSS_629198
CDSS
#include <stdio.h> int main(void){ int r; scanf("%d",&r); if( r < 1200){ printf("ABC"); }else if(r<2800){ printf("ARC"); }else if(r<4209){ printf("AGC"); } return 0; }
128
memory_bytes
{'s_id': 's619991958', 'p_id': 'p03288', 'u_id': 'u168774513', 'date': '1533517578', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '180'}
[ { "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\tint r;\n\tscanf(\"%d\",&r);\n\tif( r < 1200){\n\t\tprintf(\"ABC\");\n\t}else if(r<2800){\n\t\tp...
CDSS_475517
CDSS
#include <string.h> #include <stdio.h> #include <stdlib.h> #include <math.h> #define ll long long int main(){ ll int h,w,ans=0; scanf("%lld%lld",&h,&w); if(h==1 || w==1){ printf("1"); return 0; } else if(h%2==0 || w%2==0){ ans = w*h/2; printf("%lld",ans); return 0; } else{ ans =...
128
memory_bytes
{'s_id': 's517941945', 'p_id': 'p02742', 'u_id': 'u272618329', 'date': '1584235815', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '373'}
[ { "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 <string.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <math.h>\n#define ll long long\n \nint main(){\n ll int h,w,an...
CDSS_599263
CDSS
#include <stdio.h> int main() { int n, count = 0; char a[100], b[100], c[100]; scanf("%d\n%s\n%s\n%s\n", &n, a, b, c); for(int i=0; i<n; i++) { if(a[i] == b[i]) { if(a[i] == c[i]); else count++; }else{ if(a[i] == c[i]) count++; else if(b[i] == c[i]) count++; else count ...
128
memory_bytes
{'s_id': 's937406466', 'p_id': 'p03140', 'u_id': 'u860374704', 'date': '1548642519', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '377'}
[ { "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, count = 0;\n char a[100], b[100], c[100];\n scanf(\"%d\\n%s\\n%s\\n%s\\n\", &n, a, b, c...
CDSS_511189
CDSS
#include<stdio.h> int main(){int a,b;scanf("%d%d\n%d",&a,&b,&b);printf("%c",48+b-a);}
128
memory_bytes
{'s_id': 's995264684', 'p_id': 'p02841', 'u_id': 'u757014735', 'date': '1575612198', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '86'}
[ { "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(){int a,b;scanf(\"%d%d\\n%d\",&a,&b,&b);printf(\"%c\",48+b-a);}\nPredict its memory footprint.", "ro...
CDSS_545878
CDSS
#include <stdio.h> int n,a[100010],b[100010]; int main(void) { scanf("%d",&n); for(int i=0;i<n+1;i++) scanf("%d",&a[i]); for(int i=0;i<n;i++) scanf("%d",&b[i]); long int c=0; for(int i=0;i<n;i++){ if(b[i]<=a[i]) c+=b[i]; else if(a[i]<b[i] && b[i]<=a[i]+a[i+1]){ c+=b[i]; ...
896
memory_bytes
{'s_id': 's725368444', 'p_id': 'p02959', 'u_id': 'u912025537', 'date': '1564282279', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '26', 'memory': '896', 'code_size': '504'}
[ { "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 n,a[100010],b[100010];\nint main(void)\n{\n scanf(\"%d\",&n);\n for(int i=0;i<n+1;i++) scanf(\"%d\",&a[i...
CDSS_489875
CDSS
#include <stdio.h> #include <string.h> int main(void) { char s[10], t[10], u[10]; int a, b; scanf("%s %s", s, t); scanf("%d %d", &a, &b); scanf("%s", u); if (strcmp(s, u) == 0) printf("%d %d\n", a - 1, b); else printf("%d %d\n", a, b - 1); return 0; }
128
memory_bytes
{'s_id': 's661975095', 'p_id': 'p02777', 'u_id': 'u358047215', 'date': '1585486567', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '275'}
[ { "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 char s[10], t[10], u[10];\n int a, b;\n scanf(\"%s %s\", s, t);\n scan...
CDSS_231952
CDSS
#include<stdio.h> #include<stdlib.h> #include<math.h> typedef long long int int64; #define MAX(a,b) ((a)>(b)?(a):(b)) #define MIN(a,b) ((a)<(b)?(a):(b)) #define ABS(a) ((a)>(0)?(a):-(a)) void run(void){ int n,w; scanf("%d%d",&n,&w); int val[100]; int weight[100]; int i; for(i=0;i<n;i++){ scanf("%d%d"...
2,100
memory_bytes
{'s_id': 's012255558', 'p_id': 'p02316', 'u_id': 'u011606241', 'date': '1524296127', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2100', 'code_size': '690'}
[ { "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\ntypedef long long int int64;\n\n#define MAX(a,b) ((a)>(b)?(a):(b))\n#define...
CDSS_160281
CDSS
#include<stdio.h> #include<stdlib.h> int main() { int n, i, j, k; int *R; int max, min; scanf("%d", &n); R = malloc(n*sizeof(int)); for(i = 0; i < n; i++) { scanf("%d", &R[i]); } max = R[1]-R[0]; min = R[0]; for(i = 0; i < n-1; i++) { if(R[i] < min || i == 0) { min = R[i]; for...
1,380
memory_bytes
{'s_id': 's191392193', 'p_id': 'p02258', 'u_id': 'u489140946', 'date': '1413083633', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '100', 'memory': '1380', 'code_size': '445'}
[ { "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 int n, i, j, k;\n int *R;\n int max, min;\n\n scanf(\"%d\", &n);\n R = ma...