identifier
string
space
string
input
string
target
float64
metric_type
string
metadata
string
messages
list
CDSS_128752
CDSS
#include<stdio.h> #include<math.h> #include<string.h> int nxpt(char *s){ int i,l=strlen(s),max=0,f[260]={0}; for(l--;l+1&&max<=s[l];l--)f[max=s[l]]++; if(l<0)return 0; f[s[l]]++; for(i=s[l]+1;f[i]==0;i++); f[s[l]=i]--; for(i=0;s[++l];f[s[l]=i]--){ while(f[i]==0)i++; } return 1; } double PI=acos(-1...
2,144
memory_bytes
{'s_id': 's786550940', 'p_id': 'p02164', 'u_id': 'u107245397', 'date': '1568859953', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '2144', 'code_size': '1049'}
[ { "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#include<string.h>\nint nxpt(char *s){\n int i,l=strlen(s),max=0,f[260]={0};\n for(l--;l+1&&max...
CDSS_100250
CDSS
/* AizuOnline A0514 Quality Checking */ #include <stdio.h> struct kekka {int dengen;int motor;int cable;int res;}; struct kekka kensa[1000]; int a,b,c; int N; int buhin[100]; main() { int i; while(EOF != scanf(" %d %d %d",&a,&b,&c) && (a||b||c)) { scanf(" %d",&N); /* printf("%d %d %d %d\n",a,b,...
0
memory_bytes
{'s_id': 's806712357', 'p_id': 'p00437', 'u_id': 'u708993917', 'date': '1324822458', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '1128'}
[ { "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 A0514\nQuality Checking\n*/\n#include <stdio.h>\n\nstruct kekka {int dengen;int motor;int cable;int res;};\nstruct kekk...
CDSS_247126
CDSS
#include<stdio.h> int main(){ int a; scanf("%d",&a); a = a * a * a; printf("%d\n",a); }
2,100
memory_bytes
{'s_id': 's715983901', 'p_id': 'p02388', 'u_id': 'u226572569', 'date': '1524376573', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2100', 'code_size': '105'}
[ { "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;\n scanf(\"%d\",&a);\n a = a * a * a;\n printf(\"%d\\n\",a);\n}\n\nPredict its me...
CDSS_127693
CDSS
#include<stdio.h> #include<stdlib.h> #include<stdint.h> #include<inttypes.h> #include<string.h> #include<math.h> typedef int32_t i32; typedef int64_t i64; #define MAX(a,b) ((a) > (b) ? (a) : (b)) #define MIN(a,b) ((a) < (b) ? (a) : (b)) #define ABS(a) ((a) > (0) ? (a) : -(a)) #define ALLOC(size,type) ((type*) calloc ...
2,060
memory_bytes
{'s_id': 's783098042', 'p_id': 'p01829', 'u_id': 'u011606241', 'date': '1560008795', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '30', 'memory': '2060', 'code_size': '1457'}
[ { "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<stdint.h>\n#include<inttypes.h>\n#include<string.h>\n#include<math.h>\n\ntypedef int32...
CDSS_634887
CDSS
#include <stdio.h> // constants for this code #define len_string_max (int)4 #define sym_pls1 '+' #define sym_mns1 '-' int calculate_points (char* data_string) { // variables for `calculate_points` int points; // STEP.01 // initialize the points points = 0; // STEP.02 // calcu...
128
memory_bytes
{'s_id': 's656287819', 'p_id': 'p03315', 'u_id': 'u484703930', 'date': '1560096781', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '900'}
[ { "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// constants for this code\n#define len_string_max (int)4\n#define sym_pls1 '+'\n#define sym_mns1 '-...
CDSS_318142
CDSS
#include<stdio.h> int main(){ int a,b; char op; scanf("%d %c %d",&a,&op,&b); while(op!='?'){ if(op=='+'){ printf("%d\n",a+b); } else if(op=='-'){ printf("%d\n",a-b); } else if(op=='*'){ printf("%d\n",a*b); } else if(op=='/'){ printf("%d\n",a/b); } scanf("%d %c %d", &a, &op, &b); } return 0; }
600
memory_bytes
{'s_id': 's792515407', 'p_id': 'p02401', 'u_id': 'u909800692', 'date': '1445917375', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '310'}
[ { "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\nint a,b;\nchar op;\n\nscanf(\"%d %c %d\",&a,&op,&b);\n\nwhile(op!='?'){\n\nif(op=='+'){\n\nprintf(...
CDSS_570212
CDSS
//Two-way Priority ABC062-D #include<stdio.h> #include<string.h> #include<stdlib.h> #include<stdbool.h> #define inf 1072114514 #define llinf 4154118101919364364 #define mod 1000000007 #define pi 3.1415926535897932384 #define arrsize 524288 int max(int a,int b){if(a>b){return a;}return b;} int min(int a,int b){if(a<b){...
19,200
memory_bytes
{'s_id': 's010876203', 'p_id': 'p03040', 'u_id': 'u721060623', 'date': '1558837800', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '107', 'memory': '19200', 'code_size': '5446'}
[ { "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//Two-way Priority ABC062-D\n#include<stdio.h>\n#include<string.h>\n#include<stdlib.h>\n#include<stdbool.h>\n#define inf 1072114514\n#...
CDSS_617747
CDSS
#include<stdio.h> #define int long long int n; int x[1010],y[1010]; int c[2]; int a[99]; main(){ scanf("%d",&n); for(int i=0;i<n;i++){ scanf("%lld%lld",x+i,y+i); c[(x[i]+y[i])%2]++; } if(c[0]&&c[1]){ puts("-1"); return 0; } int flag=!!c[0]; int N=39; printf("%d\n",N+flag); for(int i=0;i<N;i++)printf("...
256
memory_bytes
{'s_id': 's851430521', 'p_id': 'p03247', 'u_id': 'u382163500', 'date': '1567374877', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '256', 'code_size': '742'}
[ { "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 int long long\n\nint n;\nint x[1010],y[1010];\nint c[2];\nint a[99];\nmain(){\n\tscanf(\"%d\",&n);\n\tfor(i...
CDSS_112275
CDSS
#include <stdio.h> #include <stdlib.h> #include <assert.h> #if 0 #define PRINT_TREE #endif int A(int sl, int sr) { return sl & sr; } int O(int sl, int sr) { return sl | sr; } int X(int sl, int sr) { return sl ^ sr; } int (*keisan[3])(int, int) = {A, O, X}; char tree_data[100000]; int N; int bubunnsyuugou[10]; int ...
620
memory_bytes
{'s_id': 's739525999', 'p_id': 'p00623', 'u_id': 'u543521645', 'date': '1482848107', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '620', 'code_size': '2946'}
[ { "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 <assert.h>\n\n#if 0\n#define PRINT_TREE\n#endif\n\nint A(int sl, int sr) { return sl...
CDSS_635125
CDSS
#include <stdio.h> int main(void){ int ans=0,i; char S[4]; scanf("%s",S); for(i=0;i<4;i++){ if(S[i]=='+') ans++; if(S[i]=='-') ans--; } printf("%d\n",ans); }
128
memory_bytes
{'s_id': 's106907602', 'p_id': 'p03315', 'u_id': 'u076402393', 'date': '1529977905', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '207'}
[ { "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 ans=0,i;\n char S[4];\n scanf(\"%s\",S);\n \n for(i=0;i<4;i++){\n if(S...
CDSS_366673
CDSS
#include<stdio.h> int main(void){ int i,c; int ans[64]; for (i=0;i<64;i++){ ans[i]=0; } while((c=getchar())!=EOF){ if('A'<=c && c<='Z'){ c=c+('a'-'A'); } ans[c-'a']++; //if(c=='\n')break; } for(int i=0;i<26;i++){ printf("%c : %d\n",i+'a',ans[i]); } return 0; }
2,040
memory_bytes
{'s_id': 's537890750', 'p_id': 'p02417', 'u_id': 'u766573702', 'date': '1570431071', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2040', 'code_size': '312'}
[ { "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 i,c;\n int ans[64];\n\n for (i=0;i<64;i++){\n ans[i]=0;\n }\n\n while((c=getchar())!=...
CDSS_230541
CDSS
#include <stdio.h> int p = 0, q[2000000]; int max_num(int x, int y){ if(q[x]>q[y]) return x; else return y; } insert(int k){ int i, j, temp; p++; q[p] = k; i = p; while(q[i]>q[i/2] && i>1){ temp = q[i]; q[i] = q[i/2]; q[i/2] = temp; i = i/2; } } i...
5,664
memory_bytes
{'s_id': 's758499989', 'p_id': 'p02289', 'u_id': 'u503107846', 'date': '1515343600', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '280', 'memory': '5664', 'code_size': '1000'}
[ { "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 p = 0, q[2000000];\n\nint max_num(int x, int y){\n if(q[x]>q[y]) return x;\n else return y;\n}\n\...
CDSS_391910
CDSS
#include <stdio.h> int main(void){ int N; int oturi; scanf("%d",&N); if (N%1000 ==0) { oturi = 0; } else { oturi = 1000 - N%1000; } printf("%d\n", oturi); return 0; }
1,728
memory_bytes
{'s_id': 's058465779', 'p_id': 'p02612', 'u_id': 'u444396285', 'date': '1593997850', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1728', 'code_size': '220'}
[ { "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 int oturi;\n\n scanf(\"%d\",&N);\n\n if (N%1000 ==0) {\n oturi = ...
CDSS_254952
CDSS
#include <stdio.h> int main(void){// Here your code ! int a,b; scanf("%d %d",&a,&b); printf("%d %d\n",a*b,(a+b)*2); return 0; }
596
memory_bytes
{'s_id': 's033420694', 'p_id': 'p02389', 'u_id': 'u652515771', 'date': '1500172436', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '151'}
[ { "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){// Here your code !\n int a,b;\n scanf(\"%d %d\",&a,&b);\n printf(\"%d %d\\n\",a*b,(a+b)...
CDSS_445686
CDSS
#include<stdio.h> #define MAX 200005 int main() { int n; int a[MAX],c; for(int i = 0;i < MAX;i++) { a[i] = 0; } scanf("%d",&n); for(int i = 0;i < n-1;i++) { scanf("%d",&c); a[c]++; } for(int i = 1;i <= n;i++) { printf("%d\n",a[i]); } return 0; }
2,512
memory_bytes
{'s_id': 's826754546', 'p_id': 'p02707', 'u_id': 'u263881582', 'date': '1587347754', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '38', 'memory': '2512', 'code_size': '269'}
[ { "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 200005\n\nint main()\n{\n\tint n;\n\tint a[MAX],c;\n\tfor(int i = 0;i < MAX;i++)\n\t{\n\t\ta[i] = 0;\n\...
CDSS_514030
CDSS
#include<stdio.h> #include<string.h> #include<math.h> #include<stdlib.h> int main() { int r; scanf("%d", &r); printf("%d", r * r); }
1,692
memory_bytes
{'s_id': 's472872888', 'p_id': 'p02859', 'u_id': 'u782708184', 'date': '1596763070', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1692', '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#include<string.h>\n#include<math.h>\n#include<stdlib.h>\n\nint main() {\n\tint r;\n\n\tscanf(\"%d\", &r);\n\n\tpri...
CDSS_483227
CDSS
#include <stdio.h> #include <stdlib.h> int main(void){ int i,j,k,N,M,temp; scanf("%d %d",&N,&M); if(M == 0){ if(N==1){ printf("%d",0); exit(0); } else if(N==2){ printf("%d",10); exit(0); } else { printf("%d",10...
128
memory_bytes
{'s_id': 's117377478', 'p_id': 'p02761', 'u_id': 'u245847722', 'date': '1583430379', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '1653'}
[ { "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 int i,j,k,N,M,temp;\n scanf(\"%d %d\",&N,&M);\n if(M == 0)...
CDSS_607864
CDSS
#include<stdio.h> int main() { int n; int i,j,k,l; scanf("%d",&n); int a[n],temp,max,ans,sum=0; for(i=0;i<n;i++) { scanf("%d",&a[i]); } for(i=0;i<n;i++) { for(j=0;j<n-i-1;j++) { if(a[j]>a[j+1]) { temp=a[j]; ...
128
memory_bytes
{'s_id': 's107700118', 'p_id': 'p03207', 'u_id': 'u863370423', 'date': '1580090919', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '529'}
[ { "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;\n int i,j,k,l;\n scanf(\"%d\",&n);\n int a[n],temp,max,ans,sum=0;\n for(i=0;i...
CDSS_57224
CDSS
#include<stdio.h> int main(void){ int t; float breakvalue,n,y; while(scanf("%f",&breakvalue) != EOF){ n = breakvalue / 9.8; y = 4.9 * n * n; for(t = 0;5 * t - 5 < y;t ++){ } printf("%d\n",t); } return 0; }
624
memory_bytes
{'s_id': 's993035170', 'p_id': 'p00024', 'u_id': 'u783707634', 'date': '1403092348', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '624', 'code_size': '222'}
[ { "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 t;\n\tfloat breakvalue,n,y;\n\n\twhile(scanf(\"%f\",&breakvalue) != EOF){\n\t\tn = breakva...
CDSS_518970
CDSS
#include<stdio.h> int main() { int n; int i,j; scanf("%d",&n); for(i=1;i<10;i++) for(j=1;j<10;j++) if(i*j==n) { printf("Yes"); return 0; } printf("No"); return 0; }
128
memory_bytes
{'s_id': 's493342739', 'p_id': 'p02880', 'u_id': 'u024208318', 'date': '1572277540', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '181'}
[ { "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 n;\n\tint i,j;\n\tscanf(\"%d\",&n);\n\tfor(i=1;i<10;i++)\n\tfor(j=1;j<10;j++)\n\tif(i*j==n)\n\...
CDSS_447608
CDSS
int main(){ char s[4]; scanf("%s",s); if(s[0]=='7'||s[1]=='7'||s[2]=='7')puts("Yes"); else puts("No"); }
1,640
memory_bytes
{'s_id': 's696126121', 'p_id': 'p02711', 'u_id': 'u354453534', 'date': '1595270012', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1640', '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:\nint main(){ \n char s[4]; \n scanf(\"%s\",s); \n if(s[0]=='7'||s[1]=='7'||s[2]=='7')puts(\"Yes\"); \n else puts(\"No\"); \n}\nPred...
CDSS_226676
CDSS
#include<stdio.h> int main(){ int H,i; int A[250+1]; scanf("%d",&H); for( i=1 ; i<=H ; i++ ) scanf("%d",&A[i]); for( i=1 ; i<=H ; i++ ){ printf("node %d: key = %d, ",i,A[i]); if(i/2>0) printf("parent key = %d, ",A[i/2]); if(2*i<=H) printf("left key = %d, ",A[2*i]); if((2*i+1)<=H) prin...
600
memory_bytes
{'s_id': 's803172410', 'p_id': 'p02287', 'u_id': 'u583673180', 'date': '1498554334', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '389'}
[ { "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 H,i;\n int A[250+1];\n \n scanf(\"%d\",&H);\n for( i=1 ; i<=H ; i++ )\n scanf(\"%d\",&A...
CDSS_567028
CDSS
#include<stdio.h> int main() { int a, p; scanf("%d %d", &a, &p); p += 3 * a; printf("%d\n", p / 2); return 0; }
128
memory_bytes
{'s_id': 's704234071', 'p_id': 'p03029', 'u_id': 'u600300412', 'date': '1558918898', '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\tint a, p;\n\tscanf(\"%d %d\", &a, &p);\n\tp += 3 * a;\n\tprintf(\"%d\\n\", p / 2);\n\treturn 0;\n}...
CDSS_154007
CDSS
#include <stdio.h> int main(){ int a,b; scanf("%d %d",&a, &b); if(b>a){ a^=b; b^=a; a^=b; } printf("%d\n", gcd(a,b)); } int gcd(int a, int b){ if (!(a%b)) return b; return gcd(b,a%b); }
2,108
memory_bytes
{'s_id': 's867906982', 'p_id': 'p02256', 'u_id': 'u220116434', 'date': '1560491167', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '213'}
[ { "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 if(b>a){\n a^=b;\n b^=a;\n a^=b;\n }\n printf(\"...
CDSS_298985
CDSS
#include<stdio.h> int main(void){ int i=1; int x; while(1){ scanf("%d",&x); if(x==0) break; printf("Case %d: %d\n",i,x); i++; } return 0; }
2,032
memory_bytes
{'s_id': 's268279730', 'p_id': 'p02396', 'u_id': 'u376788152', 'date': '1593565850', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2032', '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(void){\n int i=1;\n int x;\n while(1){\n scanf(\"%d\",&x);\n ...
CDSS_467001
CDSS
#include <stdio.h> int main(void){ long n, k; scanf("%ld%ld", &n, &k); n %= k; if(k-n < n) n = k-n; printf("%ld", n); return 0; }
128
memory_bytes
{'s_id': 's481179554', 'p_id': 'p02719', 'u_id': 'u132602393', 'date': '1586055112', '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>\n\nint main(void){\n\tlong n, k;\n\n\tscanf(\"%ld%ld\", &n, &k);\n\n\tn %= k;\n\tif(k-n < n)\n\t\tn = k-n;\n\tprint...
CDSS_731733
CDSS
//set many funcs template //Ver.20181228 #include<stdio.h> #include<string.h> #include<stdlib.h> #include<stdbool.h> #include<time.h> #define inf 1072114514 #define llinf 4154118101919364364 #define mod 1000000007 #define pi 3.1415926535897932384 int max(int a,int b){if(a>b){return a;}return b;} int min(int a,int b){i...
128
memory_bytes
{'s_id': 's381906008', 'p_id': 'p03939', 'u_id': 'u721060623', 'date': '1556494038', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '128', 'code_size': '4843'}
[ { "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//set many funcs template\n//Ver.20181228\n#include<stdio.h>\n#include<string.h>\n#include<stdlib.h>\n#include<stdbool.h>\n#include<ti...
CDSS_310491
CDSS
int main(){ int a,b; scanf("%d%d",&a,&b); printf("%d %d %f\n",a/b,a%b,(double)a/b); return 0; }
636
memory_bytes
{'s_id': 's858362347', 'p_id': 'p02399', 'u_id': 'u480459225', 'date': '1494486130', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '636', 'code_size': '101'}
[ { "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:\nint main(){\n\tint a,b;\n\t\n\tscanf(\"%d%d\",&a,&b);\n\tprintf(\"%d %d %f\\n\",a/b,a%b,(double)a/b);\n\treturn 0;\n}\nPredict its mem...
CDSS_258456
CDSS
#include <stdio.h> int main(void) { int x,y,z,m; scanf("%d",&x); scanf("%d",&y); z=x*y; m=2*x+2*y; printf("%d %d\n",z,m); // your code goes here return 0; }
2,060
memory_bytes
{'s_id': 's139045567', 'p_id': 'p02389', 'u_id': 'u277871505', 'date': '1539670396', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2060', '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\nint main(void) {\n\t\n\tint x,y,z,m;\n\tscanf(\"%d\",&x);\n\tscanf(\"%d\",&y);\n\t\n\tz=x*y;\n\tm=2*x+2*y;\n\t\n...
CDSS_306194
CDSS
#include <stdio.h> int main(void) { int a, b, c; int i; int n = 0; scanf("%d %d %d", &a, &b, &c); for (i = a; i <= b; i++){ if (c % i == 0) { n++; } } printf("%d\n", n); return (0); }
596
memory_bytes
{'s_id': 's301687996', 'p_id': 'p02398', 'u_id': 'u048875676', 'date': '1500598523', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '207'}
[ { "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, b, c;\n\tint i;\n\tint n = 0;\n\t\n\tscanf(\"%d %d %d\", &a, &b, &c);\n\t\n\tfor (i ...
CDSS_40327
CDSS
#include<stdio.h> int main(void) { int i,l,m,n,x,y; i=1; scanf("%d",&n); m=100000; while(i<=n) { m=m*105/100; x=m%1000; if(x!=0) { y=1000-x; m=m+y; } i+=1; } printf("%d\n",m); return 0; }
592
memory_bytes
{'s_id': 's563057006', 'p_id': 'p00007', 'u_id': 'u089494965', 'date': '1353314550', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', 'code_size': '211'}
[ { "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 i,l,m,n,x,y;\n\ti=1;\n\tscanf(\"%d\",&n);\n\tm=100000;\n\twhile(i<=n) {\n\t\tm=m*105/100;\...
CDSS_112452
CDSS
#include <stdio.h> #define N (100) #define N_RESULT (100) int main(){ int shoot, set; int hit, total; char str[N]; int result[N_RESULT]; int i, j; for( i=0; i<N_RESULT; i++ ){ // Scan number of shuut fgets( str, N-1, s...
2,028
memory_bytes
{'s_id': 's636890484', 'p_id': 'p00627', 'u_id': 'u831557238', 'date': '1592281987', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2028', 'code_size': '1046'}
[ { "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 (100)\n#define N_RESULT (100)\n\nint main(){\n int shoot, set;\n int hit, total;...
CDSS_266718
CDSS
#include <stdio.h> int main() { int a = 0; int b = 0; 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': 's534250617', 'p_id': 'p02391', 'u_id': 'u716606000', 'date': '1444738450', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', 'code_size': '271'}
[ { "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 = 0;\n int b = 0;\n \n scanf(\"%d %d\", &a, &b);\n \n if(a < b){\n ...
CDSS_631967
CDSS
#include <stdio.h> int main(){ int a[2],n,x,z = 0,an = 0; scanf("%d %d",&n,&a[0]); for(x=1;x<n;x++){ scanf("%d",&a[1]); if(a[0] == a[1] && z == 0){ an++; z++; a[0] = a[1]; continue; } a[0] = a[1]; z = 0; } pri...
128
memory_bytes
{'s_id': 's017589218', 'p_id': 'p03296', 'u_id': 'u721367699', 'date': '1535745618', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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>\n\nint main(){\n int a[2],n,x,z = 0,an = 0;\n scanf(\"%d %d\",&n,&a[0]);\n\n for(x=1;x<n;x++){\n sc...
CDSS_495058
CDSS
#include<stdio.h> #include<stdlib.h> #include<math.h> #include<string.h> #include <time.h> typedef long long ll; typedef long double ld; #define INF (1LL<<60) /*swap 交換*/ void swap(ll *a, ll *b){ll c;c=*b;*b=*a;*a=c;} /*2つのうち大きい数を返す*/ ll max2(ll a,ll b){return a>=b?a:b;} /*2つのうち小さい数を返す*/ ll min2(ll a,ll b){return a>=b?...
3,324
memory_bytes
{'s_id': 's591047149', 'p_id': 'p02785', 'u_id': 'u004279520', 'date': '1581371669', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '51', 'memory': '3324', 'code_size': '814'}
[ { "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#include <time.h>\ntypedef long long ll;\ntypedef long do...
CDSS_627049
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <limits.h> #define ROOP(i,n) for(i=0;i<n;i++) //prototype declaration int getint(); long long getllint(); double getdint(); char getch(); void setstring(char *s); void showint(int i); void showllint(long long i); void showdint(doubl...
128
memory_bytes
{'s_id': 's576984037', 'p_id': 'p03284', 'u_id': 'u924003610', 'date': '1557273079', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '1328'}
[ { "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#include <limits.h>\n\n#define ROOP(i,n) for(i=0;i<n;...
CDSS_588968
CDSS
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <math.h> #include <stdbool.h> #define LL long long #define INF 1<<31-1 #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 1000000007 #define NUM 100001 void swap(int* a,int* b){int tmp...
128
memory_bytes
{'s_id': 's001906834', 'p_id': 'p03101', 'u_id': 'u596117821', 'date': '1571946763', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '1186'}
[ { "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 I...
CDSS_78582
CDSS
#define max(x,y)((x)>(y)?(x):(y)) #define min(x,y)((x)<(y)?(x):(y)) char map[501*500]; struct{ int h,s; }DP[501][501]; int main(){ int H,W,i,x,y,w,h,s,S; for(;scanf("%d%d\n",&H,&W),H;){ for(i=0;i<(W+1)*H;i++) map[i]=getchar(); memset(DP,0,sizeof(DP)); S=0; for(y=1;y<=H;y++){ for(x=1;x<=W;x++){ if(m...
2,620
memory_bytes
{'s_id': 's466924333', 'p_id': 'p00116', 'u_id': 'u399107199', 'date': '1288775852', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '80', 'memory': '2620', '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#define max(x,y)((x)>(y)?(x):(y))\n#define min(x,y)((x)<(y)?(x):(y))\nchar map[501*500];\nstruct{\n\tint h,s;\n}DP[501][501];\nint mai...
CDSS_454603
CDSS
#include <stdio.h> main(void){ int x; int i; long int total=0; scanf("%d",&x); for(i=1;i<=x;i++){ if(i%3!=0 && i%5!=0)total+=i; } printf("%ld",total); return 0; }
1,728
memory_bytes
{'s_id': 's058203232', 'p_id': 'p02712', 'u_id': 'u260687914', 'date': '1595268954', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '7', 'memory': '1728', '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>\nmain(void){\n int x;\n int i;\n long int total=0;\n scanf(\"%d\",&x);\n for(i=1;i<=x;i++){\n if(i%3!=0 && ...
CDSS_401062
CDSS
#include <stdio.h> int main(){ long n,q,a,b,c,num[100001]={0}; long i,j,result=0,all=0; //input n&a scanf("%ld",&n); for(i=0;i<n;i++){ scanf("%ld",&a); num[a]++; } //pre calc all for(i=1;i<=100000;i++){ all+=(i*num[i]); } //q round start scanf("%ld",&q); result=all; fo...
2,488
memory_bytes
{'s_id': 's902908115', 'p_id': 'p02630', 'u_id': 'u731661595', 'date': '1592790032', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '48', 'memory': '2488', 'code_size': '509'}
[ { "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 n,q,a,b,c,num[100001]={0};\n long i,j,result=0,all=0;\n \n //input n&a\n scanf(\"%ld\",&...
CDSS_233580
CDSS
// Distance.c // 2点 P1(x1, y1), P2(x2, y2) の距離を求めるプログラムを作成せよ。 // 【入力】 // x1, y1, x2, y2 (実数)が空白区切りで与えられます。 // 【出力】 // P1とP2の距離を実数で1行に出力して下さい。0.0001以下の誤差があってもよいものとします。 // 【例】 // 入力1: // 0 0 1 1 // 出力1: // 1.41421356 #include<stdio.h> #include<math.h> int main( void) { double x1, y1, x2, y2; scanf( "%lf %lf %lf %lf...
2,108
memory_bytes
{'s_id': 's472034844', 'p_id': 'p02379', 'u_id': 'u614317997', 'date': '1545525735', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '622'}
[ { "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// Distance.c\n// 2点 P1(x1, y1), P2(x2, y2) の距離を求めるプログラムを作成せよ。\n// 【入力】\n// x1, y1, x2, y2 (実数)が空白区切りで与えられます。\n// 【出力】\n// P1とP2の距離を実数...
CDSS_62286
CDSS
#include<stdio.h> int main(){ int i,j,tmp,card[5]={0},pair[5],count[4]; char *rank[30]; while(scanf("%d,%d,%d,%d,%d",&card[0],&card[1],&card[2],&card[3],&card[4])!=EOF){ for(i=0;i<5;i++) pair[i]=0; for(i=0;i<4;i++) count[i]=0; *rank=""; for(i=0;i<5;i++){ for(j=1;j<5-i;j++){ if(card[j-1]>card[j]){ ...
580
memory_bytes
{'s_id': 's532074330', 'p_id': 'p00038', 'u_id': 'u321071186', 'date': '1364395989', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', 'code_size': '1353'}
[ { "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,j,tmp,card[5]={0},pair[5],count[4];\n\tchar *rank[30];\n\twhile(scanf(\"%d,%d,%d,%d,%d\",&...
CDSS_30890
CDSS
a[3];main(i,j,x){for(scanf("%d",&i);~scanf("%d%d%d",a,a+1,a+2);puts(a[0]*a[0]+a[1]*a[1]-a[2]*a[2]?"NO":"YES"))for(i=0;i<2;i++)for(j=i;j<3;j++)if(a[i]>a[j])x=a[i],a[i]=a[j],a[j]=x;exit(0);}
580
memory_bytes
{'s_id': 's310955829', 'p_id': 'p00003', 'u_id': 'u300645821', 'date': '1349097131', '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:\na[3];main(i,j,x){for(scanf(\"%d\",&i);~scanf(\"%d%d%d\",a,a+1,a+2);puts(a[0]*a[0]+a[1]*a[1]-a[2]*a[2]?\"NO\":\"YES\"))for(i=0;i<2;i++)...
CDSS_714175
CDSS
#include<stdio.h> int main(void){ int a,b; scanf("%d",&a);scanf("%d",&b); int time; time = (a+b)%24; printf("%d",time); return 0; }
128
memory_bytes
{'s_id': 's758529194', 'p_id': 'p03773', 'u_id': 'u165988235', 'date': '1491630289', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '161'}
[ { "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 a,b;\n scanf(\"%d\",&a);scanf(\"%d\",&b);\n \n int time;\n time = (a+b)%24;\n...
CDSS_543319
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> #define reverse_array(type, a, n) \ for (int i = 0; i < n / 2; i++) { \ type __t = a[i]; \ a[i] = a[n - 1 - i]; \ a[n - 1 - i] = __t; \ } int main(void) { char s[100001]; scanf("%s", s...
896
memory_bytes
{'s_id': 's740925462', 'p_id': 'p02954', 'u_id': 'u083910207', 'date': '1567044706', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '896', 'code_size': '1123'}
[ { "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\n#define reverse_array(type, a, n) \\\n for (int i = 0; i < n / ...
CDSS_62435
CDSS
#include<stdio.h> #include<string.h> int conv(char c); int main(void){ int i,l,ans,f,s,t; char a,b,c[100]; while(scanf("%s",c)!=EOF){ ans=0; f=0; for(i=1;i<(int)strlen(c);i++){ a=c[i-1]; b=c[i]; s=conv(a); t=conv(b); if(s<t){ ans+=t-s; i+=1; } else ans+=s; if(...
540
memory_bytes
{'s_id': 's533736898', 'p_id': 'p00039', 'u_id': 'u177407651', 'date': '1349413596', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '540', 'code_size': '646'}
[ { "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 conv(char c);\n\nint main(void){\n\tint i,l,ans,f,s,t;\n\tchar a,b,c[100];\n\t\n\twhile(s...
CDSS_318230
CDSS
#include <stdio.h> int main() { int i=0,j,a[1000],b[1000],ans[1000]; char op[1000]; while(1){ scanf("%d %c %d",&a[i],&op[i],&b[i]); if(op[i]=='?')break; switch(op[i]){ case'+':ans[i]=a[i]+b[i];break; case'-':ans[i]=a[i]-b[i];break; case'*':ans[i]=a[i]*b[i];break; case'/':ans[i]=a[i]/b[i];break; } i...
612
memory_bytes
{'s_id': 's540097982', 'p_id': 'p02401', 'u_id': 'u187737708', 'date': '1455081471', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '612', 'code_size': '388'}
[ { "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 i=0,j,a[1000],b[1000],ans[1000];\n\tchar op[1000];\n\twhile(1){\n\t\tscanf(\"%d %c %d\",&a[i]...
CDSS_23218
CDSS
#include<stdio.h> void bubble_sort(int m[]); int m[10],i,j,temp; int main() { for(i=0;i<10;i++){ scanf("%d",&m[i]); } bubble_sort(m); return 0; } void bubble_sort(int m[]) { for(j=0;j<10-1;j++){ for(i=0;i<10-j-1;i++){ if(m[i]<m[i+1]){ temp=m[i...
600
memory_bytes
{'s_id': 's750332707', 'p_id': 'p00001', 'u_id': 'u011621222', 'date': '1464288653', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '489'}
[ { "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>\nvoid bubble_sort(int m[]);\nint m[10],i,j,temp;\nint main()\n{\n for(i=0;i<10;i++){\n scanf(\"%d\",&m[i])...
CDSS_499618
CDSS
#include <stdio.h> int main(){ int x,y; scanf("%c",&x); y=x+1; printf("%c",y); return 0; }
1,564
memory_bytes
{'s_id': 's484528354', 'p_id': 'p02801', 'u_id': 'u863370423', 'date': '1600235605', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '8', 'memory': '1564', 'code_size': '95'}
[ { "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,y;\n\tscanf(\"%c\",&x);\n\ty=x+1;\n\tprintf(\"%c\",y);\n\treturn 0;\n}\nPredict its memory fo...
CDSS_700057
CDSS
#include<stdio.h> int main(){int n,i,j,c=1,a[100010];scanf("%d", &n);for(i=1;i<=n;i++)scanf("%d",&a[i]);for(j=a[1];j!=2;c++){j=a[j];if(c>n){printf("-1");return 0;}}printf("%d",c);return 0;}
512
memory_bytes
{'s_id': 's187851639', 'p_id': 'p03680', 'u_id': 'u857484987', 'date': '1498620661', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '12', 'memory': '512', 'code_size': '189'}
[ { "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 n,i,j,c=1,a[100010];scanf(\"%d\", &n);for(i=1;i<=n;i++)scanf(\"%d\",&a[i]);for(j=a[1];j!=2;c++){j=a[...
CDSS_608202
CDSS
#include <stdio.h> int main(){ int n,i,m,s,p; scanf("%d",&n); for (s=i=0;i<n;i++) { scanf("%d",&p); if (i==0) m=p; else if (m<p) m=p; s+=p; } printf("%d\n",s-m/2); return 0; }
128
memory_bytes
{'s_id': 's777590823', 'p_id': 'p03207', 'u_id': 'u337657882', 'date': '1544322054', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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>\n\nint main(){\n int n,i,m,s,p;\n \n scanf(\"%d\",&n);\n for (s=i=0;i<n;i++) {\n scanf(\"%d\",&p);\n ...
CDSS_649385
CDSS
#include<stdio.h> #include<stdlib.h> int main(void){ int A,B,C; scanf("%d %d %d",&A,&B,&C); if(A+B < C){ printf("NO\n"); }else{ if (A > C){ printf("NO\n"); }else{ printf("YES\n"); } } }
128
memory_bytes
{'s_id': 's277616316', 'p_id': 'p03377', 'u_id': 'u939401127', 'date': '1523756804', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '269'}
[ { "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 int A,B,C;\n\n scanf(\"%d %d %d\",&A,&B,&C);\n\n if(A+B < C)...
CDSS_168344
CDSS
#include <stdio.h> #define MAX 100 typedef struct{ int A[MAX]; int chenge; }data; void BubbleSort(data *,int); int main(void){ int i,len; data a; scanf("%d",&len); for(i=0;i<len;i++) scanf("%d",&a.A[i]); BubbleSort(&a,len); for(i=1;i<len;i++) printf("%d ",a.A[i-1]); printf("%d\n",a.A[i...
600
memory_bytes
{'s_id': 's628582451', 'p_id': 'p02259', 'u_id': 'u196155867', 'date': '1365741530', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '632'}
[ { "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 100\n\ntypedef struct{\n int A[MAX];\n int chenge;\n}data;\n\nvoid BubbleSort(data *,int);\n\nint ma...
CDSS_236251
CDSS
#include<stdio.h> #include<math.h> int main(){ double str[1001]={0,}; int n,i; double a,m,h; while(1){ scanf("%d",&n); if(n==0){ break; } for(i=0,m=0;i<n;i++){ scanf("%lf",&str[i]); m += str[i]; } m /= n; for(i=0...
2,028
memory_bytes
{'s_id': 's405461242', 'p_id': 'p02381', 'u_id': 'u436907557', 'date': '1588684343', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2028', 'code_size': '455'}
[ { "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 double str[1001]={0,};\n int n,i;\n double a,m,h;\n while(1){\n ...
CDSS_213743
CDSS
/* ALDS1_6_C: QuickSort */ /* 20181121 AOJ */ #define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <stdlib.h> #define N 100000 typedef struct { int order; char suit; int value; } Card; int partition(Card* A, int p, int r); void quickSort(Card* A, int p, int r); void swap(Card* x, Card* y); int stableJudge...
2,960
memory_bytes
{'s_id': 's225716655', 'p_id': 'p02277', 'u_id': 'u761232808', 'date': '1542752737', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '2960', 'code_size': '1509'}
[ { "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/* ALDS1_6_C: QuickSort */\n/* 20181121 AOJ */\n\n#define _CRT_SECURE_NO_WARNINGS\n\n#include <stdio.h>\n#include <stdlib.h>\n#define ...
CDSS_701517
CDSS
#include <stdio.h> int main(void) { int N, a[10003], max=0, min=1000, i; scanf("%d", &N); for(i = 0; i < N; i++){ scanf("%d", &a[i]); if(max < a[i]) max = a[i]; if(min > a[i]) min = a[i]; } printf("%d\n", max-min); return 0; }
128
memory_bytes
{'s_id': 's829742311', 'p_id': 'p03694', 'u_id': 'u818983162', 'date': '1497669127', '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>\nint main(void)\n{\n int N, a[10003], max=0, min=1000, i;\n scanf(\"%d\", &N);\n for(i = 0; i < N; i++){\n sc...
CDSS_383815
CDSS
#include <stdio.h> #include <stdlib.h> #include <math.h> int main(void) { int ans=0; int max=0; char s[4]; scanf("%s",s); for(int i=0;i<3;i++) { if(s[i]=='S') ans*=0; else ans+=1; if(max<ans) max=ans; } printf("%d\n",max); return 0; }
1,728
memory_bytes
{'s_id': 's304167526', 'p_id': 'p02582', 'u_id': 'u410159888', 'date': '1597518607', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1728', '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>\n#include <stdlib.h>\n#include <math.h>\n\nint main(void)\n{\n int ans=0;\n int max=0;\n char s[4];\n scanf(\"%...
CDSS_65202
CDSS
x;main(){x=!puts("10\n6\n10\n0");}
0
memory_bytes
{'s_id': 's860627194', 'p_id': 'p00049', 'u_id': 'u488108750', 'date': '1316700888', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '34'}
[ { "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:\nx;main(){x=!puts(\"10\\n6\\n10\\n0\");}\nPredict its memory footprint.", "role": "user" }, { "content": "0.0", "role":...
CDSS_220246
CDSS
#include <stdlib.h> #include <stdio.h> #define SENTINEL -1 typedef struct { int id, parent, left, right; } node; static void preorder(const node *nodes, int id) { if (id == SENTINEL) return; printf(" %d", id); preorder(nodes, nodes[id].left); preorder(nodes, nodes[id].right); } static void inorder(const node ...
2,108
memory_bytes
{'s_id': 's651795407', 'p_id': 'p02281', 'u_id': 'u633499839', 'date': '1575023236', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '1406'}
[ { "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 <stdlib.h>\n#include <stdio.h>\n#define SENTINEL -1\ntypedef struct { int id, parent, left, right; } node;\n\nstatic void pre...
CDSS_280594
CDSS
#include <stdio.h> int main(){ int x,y,z; scanf("%d %d %d",&x,&y,&z); if(x<y && y<z){ printf("Yes\n"); }else{ printf("No\n"); } return 0; }
2,056
memory_bytes
{'s_id': 's446991825', 'p_id': 'p02392', 'u_id': 'u284542536', 'date': '1580362076', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2056', 'code_size': '153'}
[ { "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,y,z;\n\tscanf(\"%d %d %d\",&x,&y,&z);\n\tif(x<y && y<z){\n\t\tprintf(\"Yes\\n\");\n\t}else{\n...
CDSS_401725
CDSS
#include <stdio.h> int main(void) { int n[5]; for(int i=0;i<5;i++) scanf("%d", &n[i]); for(int i=0;i<5;i++){ if(n[i]==0){ printf("%d",i+1); } } return 0; }
1,700
memory_bytes
{'s_id': 's415905740', 'p_id': 'p02639', 'u_id': 'u488213454', 'date': '1594252251', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1700', '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>\n\nint main(void) {\n int n[5];\n for(int i=0;i<5;i++) scanf(\"%d\", &n[i]);\n\n for(int i=0;i<5;i...
CDSS_639670
CDSS
#include<stdio.h> int main(){ int n; scanf("%d",&n); printf("AB%c",'C'+(n>999)); }
1,704
memory_bytes
{'s_id': 's442950534', 'p_id': 'p03327', 'u_id': 'u218346293', 'date': '1595303721', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1704', 'code_size': '89'}
[ { "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;\n scanf(\"%d\",&n);\n printf(\"AB%c\",'C'+(n>999));\n}\n\nPredict its memory footprint.", ...
CDSS_553126
CDSS
#include <stdio.h> #include <stdlib.h> int main(){ int L,R; scanf("%d %d",&L,&R); int x = L % 2019; int y = R % 2019; int i,j,k; int min = 2019; if(R-L >= 673){ printf("0\n"); }else if(x > y || x == 0 || y == 0){ printf("0\n"); }else{ for(i=x;i<=y-1;i++){ for(j=i+1;j<=y;j++){ ...
128
memory_bytes
{'s_id': 's644395848', 'p_id': 'p02983', 'u_id': 'u184335045', 'date': '1562549766', '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>\n\nint main(){\n int L,R;\n scanf(\"%d %d\",&L,&R);\n int x = L % 2019;\n int y = R % 2019...
CDSS_714528
CDSS
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <limits.h> int dist(int x1,int y1,int x2,int y2){ return abs(x1-x2)+abs(y1-y2); } int main(){ int N,M; int a[100],b[100],c[100],d[100]; scanf("%d %d",&N,&M); for(int i=0;i<N;i++){ scanf("%d %d",&a[i],&b[i]); } for(int j=0;j<M;j++){ scanf(...
128
memory_bytes
{'s_id': 's705664776', 'p_id': 'p03774', 'u_id': 'u231540466', 'date': '1491094340', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '613'}
[ { "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 <limits.h>\n \nint dist(int x1,int y1,int x2,int y2){\n return a...
CDSS_303386
CDSS
#include<stdio.h> int main(void) { int x,y; while(1){ scanf("%d %d",&x,&y); if(x == 0 && y == 0) break; else if(x < y){ printf("%d %d\n",x,y); } else{ printf("%d %d\n",y,x); } } return 0; }
600
memory_bytes
{'s_id': 's410050745', 'p_id': 'p02397', 'u_id': 'u761679437', 'date': '1399171918', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '222'}
[ { "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 x,y;\n\n while(1){\n scanf(\"%d %d\",&x,&y);\n if(x == 0 && y == 0)\n break;\n el...
CDSS_468521
CDSS
#include <stdio.h> int main(void) { char s[32]; scanf("%s", s); if (s[2] == s[3] && s[4] == s[5]) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
128
memory_bytes
{'s_id': 's037459663', 'p_id': 'p02723', 'u_id': 'u520409849', 'date': '1585766720', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '181'}
[ { "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 s[32];\n scanf(\"%s\", s);\n\n if (s[2] == s[3] && s[4] == s[5]) {\n printf(\"Yes\...
CDSS_384545
CDSS
#include <stdio.h> #include <stdlib.h> int d_cnt; long int X, K, D, a, b, c; int main(void) { scanf("%ld %ld %ld", &X, &K, &D); if(X < 0){ d_cnt = 1; X = labs(X); } a = X % D; if(a < 0){ a = a + D; } b = (X - a) / D; if(K > b){ X = X - D * b; if((K-b) >= 2){ if(((K - b) % 2) == 0){ printf("%l...
1,728
memory_bytes
{'s_id': 's983618849', 'p_id': 'p02584', 'u_id': 'u656354192', 'date': '1597525457', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1728', '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#include <stdlib.h>\nint d_cnt;\nlong int X, K, D, a, b, c;\nint main(void) {\n \n\tscanf(\"%ld %ld %ld\", &X, &K,...
CDSS_672715
CDSS
#include <stdio.h> #define N 200 int gcd(int a, int b) { return b == 0 ? a : gcd(b, a % b); } int count(int n) { return n % 2 ? 0 : count(n / 2) + 1; } int main() { int n, g; scanf("%d", &n); g = 0; while (n--) { int a; scanf("%d", &a); g = gcd(g, a); } printf("%d\n", count(g)); return 0; }
128
memory_bytes
{'s_id': 's026059969', 'p_id': 'p03494', 'u_id': 'u000120715', 'date': '1559487330', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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\n#define N 200\n\nint gcd(int a, int b) {\n\treturn b == 0 ? a : gcd(b, a % b);\n}\n\nint count(int n) {\n\tretur...
CDSS_159391
CDSS
#include<stdio.h> #include<math.h> int main(void) { int n,x; int S[10000]; int cprime=0; int num=0; int flag=1; scanf("%d",&n); for(int i=0;i<n;i++){ scanf("%d",&S[i]); } while(num<n){ if(flag==1){ if(S[num]==1){ flag=0; } ...
2,036
memory_bytes
{'s_id': 's890807520', 'p_id': 'p02257', 'u_id': 'u217113158', 'date': '1588068609', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '180', 'memory': '2036', 'code_size': '845'}
[ { "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(void)\n{\n int n,x;\n int S[10000];\n int cprime=0;\n int num=0;\n int fl...
CDSS_163394
CDSS
#include <stdio.h> int min(int x,int y){return x>y?y:x;} int max(int x,int y){return x>y?x:y;} int main(){ int n,x=(int)1e9,y,ans=-(int)1e9,i; scanf("%d%d",&n,&y); for(i=1;i<n;i++){ x=min(x,y); scanf("%d",&y); ans=max(ans,y-x); } printf("%d\n",ans); return 0; }
2,140
memory_bytes
{'s_id': 's234298156', 'p_id': 'p02258', 'u_id': 'u076398897', 'date': '1528722887', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2140', 'code_size': '297'}
[ { "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 min(int x,int y){return x>y?y:x;}\nint max(int x,int y){return x>y?x:y;}\n\nint main(){\n\n int n,x=(int)1e...
CDSS_650796
CDSS
/* * A.c * * Created on: 2018/04/16 * Author: Haruyuk1 */ #include <stdio.h> int main(void){ char string[4]; int i, j, k, res; res = 0; scanf("%s", string); for (i = 0; i <= 2; i++){ if (string[i] == 'a'){ for (j = 0; j <= 2; j++){ if (string[j] == 'b'){ for (k = 0; k <= 2; k++){ ...
128
memory_bytes
{'s_id': 's676272004', 'p_id': 'p03385', 'u_id': 'u025235255', 'date': '1523906447', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '468'}
[ { "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 * A.c\n *\n * Created on: 2018/04/16\n * Author: Haruyuk1\n */\n\n#include <stdio.h>\n\nint main(void){\n\tchar string[4];\...
CDSS_257662
CDSS
#include <stdio.h> int main() { int a; int b; scanf("%d %d", &a, &b); printf("%d %d\n", a*b, 2*(a + b)); return 0; }
2,044
memory_bytes
{'s_id': 's669462691', 'p_id': 'p02389', 'u_id': 'u301759650', 'date': '1596188526', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2044', 'code_size': '154'}
[ { "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; \n int b;\n \n scanf(\"%d %d\", &a, &b);\n printf(\"%d %d\\n\", a*b, 2*(a +...
CDSS_507353
CDSS
#include <stdio.h> int main() { int n; char S[101], T[101]; scanf("%d", &n); scanf("%s %s", S, T); for (int i = 0; i < n; i++) { putchar(S[i]); putchar(T[i]); } putchar('\n'); return 0; }
128
memory_bytes
{'s_id': 's238431516', 'p_id': 'p02830', 'u_id': 'u666964944', 'date': '1587340283', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '212'}
[ { "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 char S[101], T[101];\n scanf(\"%d\", &n);\n scanf(\"%s %s\", S, T);\n for (int i = ...
CDSS_395326
CDSS
#include<stdio.h> int main(void) { int a; scanf("%d", &a); printf("%d\n", a+a*a+a*a*a); return 0; }
1,732
memory_bytes
{'s_id': 's534635387', 'p_id': 'p02621', 'u_id': 'u638678655', 'date': '1593306110', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '7', 'memory': '1732', 'code_size': '106'}
[ { "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; scanf(\"%d\", &a);\n printf(\"%d\\n\", a+a*a+a*a*a);\n return 0;\n}\nPredict its me...
CDSS_239612
CDSS
#include <stdio.h> #include <string.h> const int max_dice_number = 105; void toss_dice_x(int _dice[][7], int x, char direction){ int temp; switch(direction){ case 'N': temp = _dice[x][1]; _dice[x][1] = _dice[x][2]; _dice[x][2] = _dice[x][6]; _dice[x][...
2,112
memory_bytes
{'s_id': 's133867725', 'p_id': 'p02386', 'u_id': 'u672641807', 'date': '1553336406', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '2598'}
[ { "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\nconst int max_dice_number = 105;\n\nvoid toss_dice_x(int _dice[][7], int x, char direction)...
CDSS_614794
CDSS
#include <stdio.h> int main(void){ int N, T; scanf("%d%d", &N, &T); int c[N],t[N]; for (int i = 0; i < N; i++){ scanf("%d%d", &c[i], &t[i]); } int x = 0; int min = c[0]; for(int i = 0; i < N; i++){ if (t[i] > T){ x += 1; } else{ i...
128
memory_bytes
{'s_id': 's176386819', 'p_id': 'p03239', 'u_id': 'u977661421', 'date': '1576690565', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '509'}
[ { "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, T;\n scanf(\"%d%d\", &N, &T);\n int c[N],t[N];\n for (int i = 0; i < N; i++...
CDSS_317163
CDSS
#include <stdio.h> int main(void){ double r; double pai = 3.141592653589; double are, circ; scanf("%lf",&r); are = pai*r*r; circ = 2*pai*r; printf("%f %f\n",are,circ); return 0; }
2,052
memory_bytes
{'s_id': 's791072310', 'p_id': 'p02400', 'u_id': 'u356123368', 'date': '1587617051', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2052', '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>\nint main(void){\n\tdouble r;\n\tdouble pai = 3.141592653589;\n\tdouble are, circ;\n\tscanf(\"%lf\",&r);\n\tare = p...
CDSS_685596
CDSS
#include <stdio.h> int main(void) { int n,seki; int sekisuu=0; scanf("%d",&n); int suuji,suuji2; for(int k=1;k<=n;k++){ scanf("%d",&suuji); scanf("%d",&suuji2); seki=suuji2-suuji+1; sekisuu += seki; } printf("%d\n",sekisuu); return 0; }
128
memory_bytes
{'s_id': 's574682004', 'p_id': 'p03606', 'u_id': 'u104513651', 'date': '1528331226', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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(void)\n{\n int n,seki;\n int sekisuu=0;\n scanf(\"%d\",&n);\n int suuji,suuji2;\n for(int k=1;k<=n...
CDSS_660310
CDSS
#include <stdio.h> int main() { int a,b,x; scanf("%d",&x); scanf("%d",&a); scanf("%d",&b); int x2=(x-a)/b; printf("%d\n",(x-a)-x2*b); return 0; }
128
memory_bytes
{'s_id': 's412210307', 'p_id': 'p03447', 'u_id': 'u302999878', 'date': '1524082555', '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>\n\nint main()\n{\n int a,b,x;\n scanf(\"%d\",&x);\n scanf(\"%d\",&a);\n scanf(\"%d\",&b);\n \n in...
CDSS_563509
CDSS
#include <stdio.h> #include <stdlib.h> int main() { int i, N, W[100], T, S1, S2, delta; char buf[500]; scanf ("%d", &N); for (i=0;i<N;i++) { scanf ("%d", &W[i]); } delta = 100; for (T=1;T<N;T++) { S1 = 0; S2 = 0; for (i=0;i<T;i++) S1+=W[i]; for (i=T;i<N;i++) S2+=W[i]; if...
128
memory_bytes
{'s_id': 's861945962', 'p_id': 'p03012', 'u_id': 'u009286788', 'date': '1561157869', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '392'}
[ { "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 i, N, W[100], T, S1, S2, delta;\n char buf[500];\n \n scanf (\"%d\", ...
CDSS_536530
CDSS
#include <stdio.h> #include <math.h> #include <string.h> int main(void) { int a; char s[10]; scanf("%d", &a); scanf("%s",s); if (a >= 3200) { printf("%s", s); } else { printf("red"); } return 0; }
128
memory_bytes
{'s_id': 's903996990', 'p_id': 'p02933', 'u_id': 'u276980836', 'date': '1566176709', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '215'}
[ { "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#include <string.h>\nint main(void) {\n\tint a;\n\tchar s[10];\n\tscanf(\"%d\", &a);\n\tscanf(\...
CDSS_66250
CDSS
#include <stdio.h> #define N 10000 #define P10000 104743 static int p[ N ]; static int q[ P10000 + 1 ] = { 0 }; /** Application main entry point. */ int main ( int argc, char * argv[ ] ) { int i, j, k; k = 0; for ( i = 2; i <= P10000; ++i ) { if ( q[ i ] ) continue ; p[ k++ ] = i; ...
0
memory_bytes
{'s_id': 's095996142', 'p_id': 'p00053', 'u_id': 'u009961299', 'date': '1319878785', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '601'}
[ { "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 10000\n#define P10000 104743\n\nstatic\nint p[ N ];\nstatic\nint q[ P10000 + 1 ] = { 0 };\n\n/** ...
CDSS_601582
CDSS
#include <stdio.h> #include <stdlib.h> #include <math.h> int main(){ int n,h,w,m; scanf("%d %d %d",&n,&h,&w); m=(n-h+1)*(n-w+1); printf("%d",m); }
128
memory_bytes
{'s_id': 's286438730', 'p_id': 'p03155', 'u_id': 'u676029460', 'date': '1547323498', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '170'}
[ { "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\nint main(){\n \n int n,h,w,m;\n scanf(\"%d %d %d\",&n,&h,&w);\n \n ...
CDSS_732908
CDSS
#include<stdio.h> #include<stdlib.h> #define NEW(p,n){p=malloc((n)*sizeof(p[0]));if(p==NULL){printf("not enough memory\n");exit(1);};} //pの型の変数n個の要素分のメモリを確保し、そのアドレスをpに代入するマクロ #define INFTY 999999 //char型のポインタ(=配列と意味は同じ)をString型と定義([0]から数える) typedef char* String; //文字列の長さを求める関数 int string_len(String str){ int le...
384
memory_bytes
{'s_id': 's993606926', 'p_id': 'p03945', 'u_id': 'u941434715', 'date': '1549265021', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '384', 'code_size': '1504'}
[ { "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 NEW(p,n){p=malloc((n)*sizeof(p[0]));if(p==NULL){printf(\"not enough memory\\n\");exit...
CDSS_721585
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': 's443571976', 'p_id': 'p03815', 'u_id': 'u543284218', 'date': '1516929303', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '1646'}
[ { "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_103628
CDSS
#include<stdio.h> int main(void){ while(1){ int i ,total,m[9]; scanf("%d",&total); if(total == 0) break; else{ for(i=0;i<9;i++){ scanf("%d",&m[i]); total -= m[i]; } printf("%d\n",total); } } return 0; }
2,036
memory_bytes
{'s_id': 's712916400', 'p_id': 'p00466', 'u_id': 'u944271354', 'date': '1526972867', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2036', 'code_size': '233'}
[ { "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 while(1){\n int i ,total,m[9];\n scanf(\"%d\",&total);\n if(total == 0) break;\n else{\n fo...
CDSS_420515
CDSS
#include<stdio.h> int main(){ int unused __attribute__((unused)); long long A, B, C, K, result = 0; unused = scanf("%lld %lld %lld %lld", &A, &B, &C, &K); if(K >= A){ result += A; K -= A; }else{ result += K; K = 0; } K -= B; if(K > 0 && C >= K) result -= K; else if(K > 0 && C < K) re...
1,736
memory_bytes
{'s_id': 's224897481', 'p_id': 'p02682', 'u_id': 'u997413262', 'date': '1589161927', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '1736', 'code_size': '371'}
[ { "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 unused __attribute__((unused));\n long long A, B, C, K, result = 0;\n unused = scanf(\"%lld %l...
CDSS_454885
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <limits.h> #define REP(i,n) for(i=0;i<n;i++) #define MAX 1000000 #define MOD 1000000007 long long fac[MAX], finv[MAX], inv[MAX]; //prototype declaration int i_in(); long long ll_in(); double d_in(); char c_in(); void s_in(char *s)...
2,152
memory_bytes
{'s_id': 's406788478', 'p_id': 'p02712', 'u_id': 'u420082791', 'date': '1588453364', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '9', 'memory': '2152', 'code_size': '4506'}
[ { "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#include <limits.h>\n\n#define REP(i,n) for(i=0;i<n;i...
CDSS_112519
CDSS
#include <stdio.h> c; main(i) { char s[99]; for(;fgets(s,99,stdin),c=i=!strstr(s,"END OF INPUT");printf("%d\n",c-1)) for(;s[i]!=0;) c=s[i++]-32?c+1:!printf("%d",c); }
0
memory_bytes
{'s_id': 's798940690', 'p_id': 'p00628', 'u_id': 'u752673456', 'date': '1331815951', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', '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>\nc;\nmain(i)\n{\n char s[99];\n for(;fgets(s,99,stdin),c=i=!strstr(s,\"END OF INPUT\");printf(\"%d\\n\",c-1))\n ...
CDSS_347254
CDSS
/* * main.c * * Created on: 2020/07/27 * Author: 113896 */ #include <stdio.h> int main() { int arr[52]; for (int i = 0; i < 52; i++) { arr[i] = 0; } int n; scanf("%d", &n); char suit; int num; for (int i = 0; i < n; i++) { scanf(" %c %d", &suit, &num); if (suit == 'S') { arr[num-1] = 1; ...
2,072
memory_bytes
{'s_id': 's578347178', 'p_id': 'p02408', 'u_id': 'u035401074', 'date': '1595827985', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2072', 'code_size': '782'}
[ { "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 * main.c\n *\n * Created on: 2020/07/27\n * Author: 113896\n */\n#include <stdio.h>\n\nint main() {\n\n\tint arr[52];\n\tfo...
CDSS_58783
CDSS
#include <stdio.h> #define N 101 int maxes(const int *n, int *max_array) // 要素数を返す(いくつ最大値があったか) { int counter = 0; int max = 0; int i; for (i=0; i<N; i++) { // 最大値を取得するためのループ if (max < n[i]) { max = n[i]; } } for (i=0; i<N; i++) { if (n[i] == max) { max_array[counter] = i; counter++; } } r...
596
memory_bytes
{'s_id': 's996666697', 'p_id': 'p00028', 'u_id': 'u097842823', 'date': '1406738233', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '627'}
[ { "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 101\n\nint maxes(const int *n, int *max_array) // 要素数を返す(いくつ最大値があったか)\n{\n\tint counter \t= 0;\n\tint ma...
CDSS_450244
CDSS
#include <stdio.h> int main(void) { int N; int a,b,c; scanf("%d", &N); a = N/100; b = (N-100*a)/10; c = N-100*a-10*b; if (a == 7){ printf("Yes\n"); } else { if (b == 7){ printf("Yes\n"); } else { if (c == 7){ printf("Yes\n"); } else { printf("No\n"); } } } ...
1,664
memory_bytes
{'s_id': 's351860030', 'p_id': 'p02711', 'u_id': 'u737545415', 'date': '1586740978', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '1664', 'code_size': '333'}
[ { "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;\n int a,b,c;\n\n scanf(\"%d\", &N);\n a = N/100;\n b = (N-100*a)/10;\n c = N-10...
CDSS_59690
CDSS
i,j,o;main(r,n,s){for(;scanf("%d%d",&n,&s),n+s;printf("%d\n",r))for(r=i=0;i<1024;i++)if(__builtin_popcount(i)==n){for(j=o=0;j<10;j++)o+=(1<<j)&i?j:0;o-s||r++;}}
0
memory_bytes
{'s_id': 's051812002', 'p_id': 'p00030', 'u_id': 'u458173932', 'date': '1284991702', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', '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:\ni,j,o;main(r,n,s){for(;scanf(\"%d%d\",&n,&s),n+s;printf(\"%d\\n\",r))for(r=i=0;i<1024;i++)if(__builtin_popcount(i)==n){for(j=o=0;j<10;...
CDSS_632500
CDSS
i;char s[9999];main(w){for(scanf("%s%d",s,&w);s[i];i+=w)putchar(s[i]);puts("");}
128
memory_bytes
{'s_id': 's022996883', 'p_id': 'p03303', 'u_id': 'u238041222', 'date': '1533252175', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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:\ni;char s[9999];main(w){for(scanf(\"%s%d\",s,&w);s[i];i+=w)putchar(s[i]);puts(\"\");}\nPredict its memory footprint.", "role": "use...
CDSS_570667
CDSS
char s[99]; main(K){ scanf("%*d%d%s",&K,s); s[K-1]+=32; puts(s); }
128
memory_bytes
{'s_id': 's652231213', 'p_id': 'p03041', 'u_id': 'u657913472', 'date': '1558550469', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '72'}
[ { "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:\nchar s[99];\nmain(K){\n scanf(\"%*d%d%s\",&K,s);\n s[K-1]+=32;\n puts(s);\n}\nPredict its memory footprint.", "role": "user" ...
CDSS_95407
CDSS
#include<stdio.h> int main(){ int a, b; scanf("%d %d", &a, &b); printf("%d\n", (a+b)/2); return 0; }
2,108
memory_bytes
{'s_id': 's329410545', 'p_id': 'p00352', 'u_id': 'u435226340', 'date': '1546908694', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '110'}
[ { "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;\n scanf(\"%d %d\", &a, &b);\n printf(\"%d\\n\", (a+b)/2);\n return 0;\n}\n\nPredict i...
CDSS_76205
CDSS
#include <stdio.h> #include <string.h> int main(int argc, char *argv[]){ char *p,eng[1002]; int n; scanf("%d ",&n); while(n--){ fgets(eng,1002,stdin); while(1){ p=strstr(eng,"Hoshino"); if(p != NULL) *(p+6)='a'; else break; } printf("%s",eng); } return 0; }
0
memory_bytes
{'s_id': 's015459627', 'p_id': 'p00101', 'u_id': 'u907526155', 'date': '1335527008', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '287'}
[ { "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(int argc, char *argv[]){\n\tchar *p,eng[1002];\n\tint n;\n\tscanf(\"%d \",&n);\n\t...
CDSS_628874
CDSS
#include <stdio.h> int main(void){ int R; scanf("%d",&R); if(R<1200) printf("ABC"); else if(R<2800) printf("ARC"); else printf("AGC"); return(0); }
256
memory_bytes
{'s_id': 's309173676', 'p_id': 'p03288', 'u_id': 'u284501132', 'date': '1555015216', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '256', '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(void){\n int R;\n scanf(\"%d\",&R);\n \n if(R<1200)\n printf(\"ABC\");\n else if(R<2800...
CDSS_509900
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> int main(){ int a,b,c; scanf("%d%d%d",&a,&b,&c); if(a+b+c >= 22) printf("bust\n"); else printf("win\n"); return 0; }
128
memory_bytes
{'s_id': 's042833684', 'p_id': 'p02835', 'u_id': 'u304097196', 'date': '1575857394', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '204'}
[ { "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 main(){\n\tint a,b,c;\n\tscanf(\"%d%d%d\",&a,&b...
CDSS_220667
CDSS
#include<stdio.h> #include<stdlib.h> #define NIL -1 typedef struct{ int l; int r; short put; } Node; Node *T; short *P,*I; int n; void Postorder(int u,short a){ if(T[u].l!=NIL) Postorder(T[u].l,0); if(T[u].r!=NIL) Postorder(T[u].r,0); printf("%d",u); if(a!=NIL)printf(" "); } void reverse(int root...
2,100
memory_bytes
{'s_id': 's489529320', 'p_id': 'p02282', 'u_id': 'u494048940', 'date': '1547102125', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2100', 'code_size': '1304'}
[ { "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 NIL -1\n\ntypedef struct{\n int l;\n int r;\n short put;\n} Node;\n\nNode *T;\nshort...