identifier
string
space
string
input
string
target
float64
metric_type
string
metadata
string
messages
list
CDSS_224558
CDSS
#include <stdio.h> typedef struct{ int p, k, l, r; }node; node nodes[500001]; int ino_f = 0; int next_id = 0; int next(int z); void ino(int id) { if(id == -1) return ; ino(nodes[id].l); printf(" %d", nodes[id].k); ino(nodes[id].r); } void find(int z) { int x = 0; while(x >= 0 ...
6,864
memory_bytes
{'s_id': 's043079711', 'p_id': 'p02285', 'u_id': 'u248416507', 'date': '1484443550', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '300', 'memory': '6864', 'code_size': '4096'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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\ntypedef struct{\n int p, k, l, r;\n}node;\n\nnode nodes[500001];\n\nint ino_f = 0;\nint next_id = 0;\n\nint n...
CDSS_259476
CDSS
// // main.c // ITP1_1_D // // // #include <stdio.h> int main(int argc, const char * argv[]) { int seconds, hour_sec, minute_sec, h, m, s; scanf("%d", &seconds); minute_sec = 60; hour_sec = minute_sec * minute_sec; h = seconds / hour_sec; m = (seconds % hour_sec) / minute_sec; s = second...
592
memory_bytes
{'s_id': 's796265703', 'p_id': 'p02390', 'u_id': 'u964561278', 'date': '1430582187', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', 'code_size': '402'}
[ { "content": "Your task is to predict the memory 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// ITP1_1_D\n//\n//\n//\n\n#include <stdio.h>\n\nint main(int argc, const char * argv[]) {\n int seconds, hour_sec...
CDSS_689469
CDSS
#include <stdio.h> int main(void){ int N; scanf ("%d", &N); int r = N/100; if (N%10 == r){ printf("Yes"); } else { printf("No"); } return 0; }
1,676
memory_bytes
{'s_id': 's065389256', 'p_id': 'p03631', 'u_id': 'u133485758', 'date': '1594843867', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '7', 'memory': '1676', 'code_size': '168'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n int N;\n scanf (\"%d\", &N);\n int r = N/100;\n if (N%10 == r){\n printf(\"Yes\");\n }...
CDSS_231055
CDSS
#include <stdio.h> #include <string.h> #define HEAP_SIZE 2000000 long int heap[HEAP_SIZE + 1]; int heap_size; void maxHeapify(long int heap[], int i) { int l = i * 2; int r = i * 2 + 1; int largest; long int w; if ((l <= heap_size) && (heap[l] > heap[i])) { largest = l; } else...
9,592
memory_bytes
{'s_id': 's466075449', 'p_id': 'p02289', 'u_id': 'u291427249', 'date': '1533727312', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '350', 'memory': '9592', 'code_size': '1721'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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\n#define HEAP_SIZE 2000000\nlong int heap[HEAP_SIZE + 1];\nint heap_size;\n\nvoid maxHeapify...
CDSS_580047
CDSS
#include<stdio.h> int main(){ int a, b, sum = 0; scanf("%d %d", &a, &b); if( a >= b) { sum += a; a--; } else { sum += b; b--; } if( a >= b) { sum += a; a--; } else { sum += b; b--; } printf("%d", sum); }
128
memory_bytes
{'s_id': 's773275871', 'p_id': 'p03071', 'u_id': 'u203748490', 'date': '1555183570', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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>\n\nint main(){\n\tint a, b, sum = 0;\n\tscanf(\"%d %d\", &a, &b);\n\tif( a >= b) {\n\t\tsum += a;\n\t\ta--;\n\t}\n\t...
CDSS_451045
CDSS
#include<stdio.h> #include<math.h> int main() { int n; scanf("%d",&n); int a=n/100; int b=(n-a*100)/10; int c=n-a*100-b*10; if(a==7||b==7||c==7) printf("Yes"); if(a!=7&&b!=7&&c!=7) printf("No"); }
1,732
memory_bytes
{'s_id': 's589438382', 'p_id': 'p02711', 'u_id': 'u599597776', 'date': '1586740085', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '1732', '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#include<math.h>\nint main()\n{\n\tint n;\n\tscanf(\"%d\",&n);\n\tint a=n/100;\n\tint b=(n-a*100)/10;\n\tint c=n-a*...
CDSS_677176
CDSS
#include <stdio.h> int main(void) { char x,y; scanf("%c %c", &x, &y); if (x > y) { puts(">"); } else if(x < y) { puts("<"); } else { puts("="); } return 0; }
128
memory_bytes
{'s_id': 's985607498', 'p_id': 'p03547', 'u_id': 'u523541800', 'date': '1510944584', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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\nint main(void) {\n\tchar x,y;\n\tscanf(\"%c %c\", &x, &y);\n\tif (x > y) {\n\t\tputs(\">\");\n\t} else if(x < y)...
CDSS_111958
CDSS
K,k,s;main(m){for(;~scanf("%d",&m);k=!k?s=0,K=m-1,~K*K:k+2?:!printf("%d\n",s/K))s+=m;}
0
memory_bytes
{'s_id': 's258592048', 'p_id': 'p00613', 'u_id': 'u399107199', 'date': '1297003886', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', '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:\nK,k,s;main(m){for(;~scanf(\"%d\",&m);k=!k?s=0,K=m-1,~K*K:k+2?:!printf(\"%d\\n\",s/K))s+=m;}\nPredict its memory footprint.", "role...
CDSS_126046
CDSS
/* AOJ 2424 Kakezan 2015/7/24 */ /* !!!!!!!!!!!!!!!!!!!!!fuckin implementation about detect infinite loop!!!!!!!!!!!!!!!!! */ #include<stdio.h> #define N_MAX 1000000 #define D_NUM 6 int powered_ten(int n) { int i, powered = 1; for(i = 0; i < n; i++) { powered = powered * 10; } return po...
600
memory_bytes
{'s_id': 's950089381', 'p_id': 'p01538', 'u_id': 'u578475619', 'date': '1442882518', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '1071'}
[ { "content": "Your task is to predict the memory 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 AOJ 2424\n Kakezan\n 2015/7/24\n*/\n/* \n!!!!!!!!!!!!!!!!!!!!!fuckin implementation about detect infinite loop!!!!!!!!!!!!...
CDSS_547400
CDSS
/* ex4_1 riverstone*/ #include<stdio.h> #include<math.h> //math.h を include する。 int main(void){ //りんごの個数と監視の幅を入力 double apple,range; scanf("%lf %lf",&apple,&range); //1人の監視員は(監視の幅)×2+1のりんごを監視できるので、りんごの数をそれで割ったあと切り上げる int num_watchmen = ceil(apple / (range*2 + 1)); printf("%d",num_wa...
128
memory_bytes
{'s_id': 's660999193', 'p_id': 'p02970', 'u_id': 'u693391925', 'date': '1590687574', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '498'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n/* ex4_1\n riverstone*/\n\n#include<stdio.h>\n#include<math.h> //math.h を include する。\n\n\nint main(void){\n\n //りんごの個数と監視の幅を入力...
CDSS_387110
CDSS
i,s;main(k){ scanf("%d",&k); for(;++i<=k;){s=(s*10+7)%k;if(s%k==0){printf("%d",i);return 0;}} printf("-1");}
1,708
memory_bytes
{'s_id': 's691111428', 'p_id': 'p02596', 'u_id': 'u944651767', 'date': '1599267410', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '19', 'memory': '1708', 'code_size': '108'}
[ { "content": "Your task is to predict the 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,s;main(k){\nscanf(\"%d\",&k);\nfor(;++i<=k;){s=(s*10+7)%k;if(s%k==0){printf(\"%d\",i);return 0;}}\nprintf(\"-1\");}\nPredict its mem...
CDSS_310863
CDSS
#include<stdio.h> int main(){ int a,b,d,r; double f; scanf("%d %d",&a,&b); printf("%d %d %.5f\n",a/b,a%b,(double)a/b); return 0; }
640
memory_bytes
{'s_id': 's273385608', 'p_id': 'p02399', 'u_id': 'u539803218', 'date': '1502895677', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '640', 'code_size': '141'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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,d,r;\n double f;\n\n scanf(\"%d %d\",&a,&b);\n printf(\"%d %d %.5f\\n\",a/b,a%b,(double)a...
CDSS_84895
CDSS
#include <stdio.h> #include <string.h> #include <stdlib.h> int i,j,k,block[500000][5],hhh,max[5],left,from,time; int n,d,l,x; int main(){ while(scanf("%d",&n)*n){ hhh=0;left=0; for(i=0;i<5;i++)max[i]=0; for(;n>0;n--){ scanf("%d %d %d",&d,&l,&x); x--; left+=l; if(d==1){ k=0;j=0; for(i=0;i<l;...
696
memory_bytes
{'s_id': 's447075771', 'p_id': 'p00178', 'u_id': 'u263489624', 'date': '1375771079', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '696', 'code_size': '1127'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n\nint i,j,k,block[500000][5],hhh,max[5],left,from,time;\nint n,d,l,x;\n\...
CDSS_427328
CDSS
#include<stdio.h> #include<math.h> int main() { long long int n, a=100, count=0; scanf("%lld", &n); while(a<n){ a=a+(a/100); count++; } printf("%lld\n", count); return 0; }
1,732
memory_bytes
{'s_id': 's289717204', 'p_id': 'p02694', 'u_id': 'u319733040', 'date': '1594021766', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1732', '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>\n#include<math.h>\n\nint main()\n{\n long long int n, a=100, count=0;\n scanf(\"%lld\", &n);\n while(a<n){\...
CDSS_346124
CDSS
#include <stdio.h> int main(void) { int n,i,j,suu; char gara; int card[4][13]={0}; int mark[4]={'S','H','C','D'}; scanf("%d",&n); for(i=0;i<2*n;i++) { scanf("%c %d",&gara,&suu); if(gara=='S') { card[0][suu-1]=1; } else if(gara=='H') { card[1][suu-1]=1; } else if(gara=='C') { card[2][su...
596
memory_bytes
{'s_id': 's357465323', 'p_id': 'p02408', 'u_id': 'u202010489', 'date': '1500568661', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '739'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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,i,j,suu;\n\tchar gara;\n\tint card[4][13]={0};\n\tint mark[4]={'S','H','C','D'};\n\tsca...
CDSS_647335
CDSS
#include<stdio.h> int main(void) { int i,top=0,price; char str[4]; fgets(str,sizeof(str),stdin); for(i=0;i<3;i++) { if(str[i] == 'o') { top++; } } price = top*100 + 700; printf("%d",price); return 0; }
128
memory_bytes
{'s_id': 's980131156', 'p_id': 'p03369', 'u_id': 'u298244614', 'date': '1569510560', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '249'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\n int i,top=0,price;\n char str[4];\n \n fgets(str,sizeof(str),stdin);\n \n for(i=0;i<3;i++...
CDSS_620340
CDSS
#include <stdio.h> int main(void) { //変数の宣言 int a,b; int ans; //データの読み込み scanf("%d %d",&a,&b); // printf("nは%dです\n", n); // printf("データの読み込み終了\n"); //実際の処理 // printf("計算部分終了\n"); //出力 if(a!=2&&b!=2){ printf("Yes"); }else{ printf("No"); } // printf("結果の出力終了\n"); return 0; }
128
memory_bytes
{'s_id': 's051137715', 'p_id': 'p03260', 'u_id': 'u705931757', 'date': '1537036419', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '400'}
[ { "content": "Your task is to predict the memory 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\n\n\nint main(void)\n{\n\t//変数の宣言\n\tint a,b;\n\tint ans;\n\t\n\t//データの読み込み\n\tscanf(\"%d %d\",&a,&b);\n//\tpri...
CDSS_169323
CDSS
#include <stdio.h> int main(){ int N,i,a,flag,A[100],c=0; scanf("%d",&N); for(i=0; i < N; i++){ scanf("%d",&A[i]); } flag = 1; while(flag){ flag = 0; for(i=N-1; i > 0; i--){ if(A[i] < A[i-1]){ a = A[i]; A[i] = A[i-1]; A[i-1] = a; c += 1; flag = 1; } } } for(...
2,144
memory_bytes
{'s_id': 's233881330', 'p_id': 'p02259', 'u_id': 'u412740510', 'date': '1544071384', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2144', 'code_size': '460'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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,a,flag,A[100],c=0;\n\n scanf(\"%d\",&N);\n\n for(i=0; i < N; i++){\n scanf(\"%d\",&A...
CDSS_499937
CDSS
#include<stdio.h> int main(void) { char C; scanf("%c",&C); printf("%c",C+1); }
128
memory_bytes
{'s_id': 's059373604', 'p_id': 'p02801', 'u_id': 'u456823367', 'date': '1581847630', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '82'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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\tchar C;\n\tscanf(\"%c\",&C);\n\tprintf(\"%c\",C+1);\n}\nPredict its memory footprint.", ...
CDSS_599713
CDSS
#include <stdio.h> #include <math.h> int main(){ int a, b, c, area; scanf("%d %d %d", &a, &b, &c); area = (a + b + c) / 2; area = sqrt(area * (area - a) * (area - b) * (area - c)); printf("%d\n", area); return 0; }
128
memory_bytes
{'s_id': 's651439042', 'p_id': 'p03145', 'u_id': 'u353919145', 'date': '1579841124', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '241'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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\n int a, b, c, area;\n\n scanf(\"%d %d %d\", &a, &b, &c);\n area = (a ...
CDSS_135496
CDSS
#include<stdio.h> #define MAX 100 main() { int i, j, n, a[MAX][MAX] = {0}; scanf("%d", &n); for (i = 0; i < n; i++) { int u, k, v; scanf("%d%d", &u, &k); for (j = 0; j < k; j++) { scanf("%d", &v); a[u...
1,796
memory_bytes
{'s_id': 's963287559', 'p_id': 'p02237', 'u_id': 'u141038857', 'date': '1515166786', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1796', 'code_size': '565'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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\nmain()\n{\n int i, j, n, a[MAX][MAX] = {0};\n scanf(\"%d\", &n);\n for (i = 0...
CDSS_651720
CDSS
#include <stdio.h> int main(void) { int num[3]; int i, j; int diff; int answer; if (scanf("%d%d%d", &num[0], &num[1], &num[2]) != 3) return 1; for (i = 0; i < 3; i++) { for (j = 1; j < 3; j++) { if (num[j - 1] > num[j]) { int t = num[j - 1]; num[j - 1] = num[j]; num[j] = t; } } } diff = ...
128
memory_bytes
{'s_id': 's252668498', 'p_id': 'p03389', 'u_id': 'u646118499', 'date': '1523149446', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '481'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 num[3];\n\tint i, j;\n\tint diff;\n\tint answer;\n\tif (scanf(\"%d%d%d\", &num[0], &num[...
CDSS_350073
CDSS
#include<stdio.h> int main(){ int n, b, f, r, v; int arr[4][3][10]; scanf("%d",&n); for(b=0;b<4;b++) for(f=0;f<3;f++) for(r=0;r<10;r++) arr[b][f][r] = 0; while(n--){ scanf("%d %d %d %d", &b, &f, &r, &v); arr[b-1][f-1][r-1] += v; } for(b=0;b...
2,112
memory_bytes
{'s_id': 's102326534', 'p_id': 'p02409', 'u_id': 'u436776849', 'date': '1592895911', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', '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>\nint main(){\n int n, b, f, r, v;\n int arr[4][3][10];\n scanf(\"%d\",&n);\n for(b=0;b<4;b++)\n f...
CDSS_604524
CDSS
#include<stdio.h> #include<stdlib.h> typedef long long int int64; #define MIN(a,b) ((a)<(b)?(a):(b)) #define POS(i,j) ((i)*n+(j)) void run(void){ int n; scanf("%d",&n); int a[400]; int i,j,k; for(i=0;i<n;i++) scanf("%d",a+i); int64 *dp=(int64 *)calloc(n*n,sizeof(int64)); for(i=2;i<=n;i++){ for(j=0...
1,408
memory_bytes
{'s_id': 's544386602', 'p_id': 'p03173', 'u_id': 'u425248533', 'date': '1548447370', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '26', 'memory': '1408', 'code_size': '600'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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\ntypedef long long int int64;\n\n#define MIN(a,b) ((a)<(b)?(a):(b))\n\n#define POS(i,j) ((i)*n...
CDSS_450924
CDSS
#include<stdio.h> int main(void){ char s[3]; scanf("%s",&s); for(int i=0;i<3;i++){ if(s[i]=='7'){ printf("Yes"); return 0; } } printf("No"); return 0; }
1,736
memory_bytes
{'s_id': 's034404318', 'p_id': 'p02711', 'u_id': 'u073336549', 'date': '1586740145', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '1736', '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>\nint main(void){\nchar s[3];\n scanf(\"%s\",&s);\n for(int i=0;i<3;i++){\n\tif(s[i]=='7'){\n printf(\"Yes\");...
CDSS_153551
CDSS
#include <stdio.h> main(){ int a,b,tmp; scanf("%d %d",&a,&b); while(b > 0){ tmp = a % b; a = b; b = tmp; } printf("%d\n",a); return 0; }
592
memory_bytes
{'s_id': 's064951729', 'p_id': 'p02256', 'u_id': 'u093889642', 'date': '1397184434', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', 'code_size': '169'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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(){\n\n int a,b,tmp;\n\n scanf(\"%d %d\",&a,&b);\n\n while(b > 0){\n\n tmp = a % b;\n a = b;\n b =...
CDSS_70535
CDSS
#include <stdio.h> int main(int argc, const char * argv[]) { int num; double m, kg; while (scanf("%d, %lf, %lf", &num, &kg, &m) != EOF) { double BMI = 0; BMI = kg / (m * m); if (BMI >= 25) { printf("%d\n", num); } } return 0; }
628
memory_bytes
{'s_id': 's758421475', 'p_id': 'p00075', 'u_id': 'u493797593', 'date': '1353570145', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '628', 'code_size': '305'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 argc, const char * argv[])\n{\n \n int num;\n double m, kg;\n \n while (scanf(\"%d, %l...
CDSS_601905
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdbool.h> #include <math.h> #define ll long long //edpc_a ll N,h[100010]; ll dp[100100]; ll min(ll a, ll b){ if(a<b)return a; else return b; } int main(void){ scanf("%lld",&N); for(ll i=0;i<N;i++){ scanf("%lld",&h[i]); ...
3,252
memory_bytes
{'s_id': 's633118131', 'p_id': 'p03160', 'u_id': 'u455586058', 'date': '1594572897', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '24', 'memory': '3252', 'code_size': '514'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <stdbool.h>\n#include <math.h>\n#define ll long long\n\n//edpc_...
CDSS_534064
CDSS
#include<stdio.h> #include<stdlib.h> int main(){ int N; scanf("%d", &N); int *H = malloc( N * sizeof(int)); for(int i = 0; i < N; i++) scanf("%d", &H[i]); int count = 0; int max_count = 0; for(int i = 1; i < N; i++){ if(H[i-1] < H[i]) count = 0; else count++; if(count...
512
memory_bytes
{'s_id': 's781437377', 'p_id': 'p02923', 'u_id': 'u789673251', 'date': '1569943078', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '14', 'memory': '512', 'code_size': '403'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\nint main(){\n int N;\n scanf(\"%d\", &N);\n int *H = malloc( N * sizeof(int));\n fo...
CDSS_568098
CDSS
#include <stdio.h> int main (void) { int a,b; scanf("%d",&a); scanf("%d",&b); if(13<=a) printf("%d",b); else if(6<=a && a<=12) printf("%d",b/2); else putchar('0'); return 0; }
128
memory_bytes
{'s_id': 's269239101', 'p_id': 'p03035', 'u_id': 'u208723543', 'date': '1559257017', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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>\n\nint main (void)\n{\n int a,b;\n scanf(\"%d\",&a);\n scanf(\"%d\",&b);\n if(13<=a)\n\tprintf(\"%d\",b);\n el...
CDSS_345440
CDSS
#include <stdio.h> void to_card(int idx, char *suit, int *rank) { switch (idx/13) { case 0: *suit = 'S'; break; case 1: *suit = 'H'; break; case 2: *suit = 'C'; break; case 3: *suit = 'D'; break; } *rank = idx%13 + 1; } void to_idx(char suit, int rank, int *idx) { switch (suit) { case 'S': *idx = 0*13 + (r...
600
memory_bytes
{'s_id': 's138815209', 'p_id': 'p02408', 'u_id': 'u347010700', 'date': '1474270331', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '865'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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\nto_card(int idx, char *suit, int *rank)\n{\n\tswitch (idx/13)\n\t{\n\tcase 0: *suit = 'S'; break;\n\tcase ...
CDSS_519557
CDSS
#include<stdio.h> #include<math.h> #include<string.h> int main(){ long long int n; scanf("%lld",&n); long long int m=ceil(sqrt(n)); long long int min; for(long long int i=1;i<m+1;i++){ if(n%i==0){ min=n/i; } } long long int a=n/min; long long int ans=a+min-2; printf("%lld\n",...
128
memory_bytes
{'s_id': 's002350608', 'p_id': 'p02881', 'u_id': 'u277253335', 'date': '1574384942', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '11', 'memory': '128', 'code_size': '331'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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(){\n \n long long int n;\n scanf(\"%lld\",&n);\n long long int m...
CDSS_336276
CDSS
int main() { int h,w,i,x,y,z; for(z=0;1;z++){ scanf("%d%d",&h,&w); if(w==0 && h==0)break; for(y=0;y<h;y++){ if(y%2==0){ for(x=0;1;x++){ if(i<w){ printf("#"); i = i+1; } if(i<w){ printf("."); i = i+1 ; } if(i==w) break; ...
572
memory_bytes
{'s_id': 's707864784', 'p_id': 'p02405', 'u_id': 'u505035465', 'date': '1503536711', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '572', '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:\nint main() {\nint h,w,i,x,y,z;\nfor(z=0;1;z++){\nscanf(\"%d%d\",&h,&w);\nif(w==0 && h==0)break;\nfor(y=0;y<h;y++){\n if(y%2==0...
CDSS_230136
CDSS
#include<stdio.h> #include<limits.h> #define M 2000000 int n; int S[M]; int parent(int i){ return i/2; } int left(int i){ return 2*i; } int right(int i){ return 2*i+1; } void heapIncreaseKey(int i,int k){ int tmp; if(k < S[i]) { printf("error"); return; } S[i] = k; while(i > 1 && S[parent(i)]...
4,696
memory_bytes
{'s_id': 's087988729', 'p_id': 'p02289', 'u_id': 'u227789206', 'date': '1435228599', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '480', 'memory': '4696', 'code_size': '1180'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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<limits.h>\n#define M 2000000\n\nint n;\nint S[M];\n\nint parent(int i){\n return i/2;\n}\nint left(int i)...
CDSS_541158
CDSS
#include<stdio.h> int main(){ //nを入力 int a, b, c; scanf("%d", &a); scanf("%d", &b); scanf("%d", &c); //計算 c = c - (a - b); if(c < 0){ c = 0; } //表示 printf("%d", c); return 0; }
128
memory_bytes
{'s_id': 's537876955', 'p_id': 'p02951', 'u_id': 'u057786470', 'date': '1571233385', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '206'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n\t//nを入力\n\tint a, b, c;\n\tscanf(\"%d\", &a);\n\tscanf(\"%d\", &b);\n\tscanf(\"%d\", &c);\n\t//計算\n...
CDSS_326076
CDSS
#include<stdio.h> int main(void){ int n,a,i; long long int max=-1000000,min=1000000,sum=0; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&a); if(min>=a){ min=a; } if(max<=a){ max=a; } sum+=a; } printf("%lld %lld %lld\n",min,max,sum); return 0; }
600
memory_bytes
{'s_id': 's920150200', 'p_id': 'p02402', 'u_id': 'u461145153', 'date': '1503298475', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', '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>\nint main(void){\n\tint n,a,i;\n\tlong long int max=-1000000,min=1000000,sum=0;\n\t\n\tscanf(\"%d\",&n);\n\tfor(i=0;...
CDSS_221701
CDSS
#include <stdio.h> #include <stdlib.h> struct node{ struct node *right; struct node *left; struct node *parent; int key; }; typedef struct node *Node; void insert(int); void Inorder(Node); void Preorder(Node); Node root; int main(){ char s[10]; int k, n, i; scanf("%d", &n); for(i = 0; i < n; i++)...
24,040
memory_bytes
{'s_id': 's051279543', 'p_id': 'p02283', 'u_id': 'u921810101', 'date': '1498016067', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '410', 'memory': '24040', 'code_size': '1103'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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\nstruct node{\n struct node *right;\n struct node *left;\n struct node *parent;\n int ke...
CDSS_93824
CDSS
#include<stdio.h> int main(void) { int bus[24][60] = {0}; int j, i, n,m,l,f=0; scanf("%d",&n); for (j = 1; j <= n; j++) { scanf("%d %d", &m, &l); bus[m][l] = 1; } scanf("%d", &n); for (j = 1; j <= n; j++) { scanf("%d %d", &m, &l); bus[m][l] = 1; } for (j = 0; j < 24; j++) { for (i = 0; i < 60; i++...
628
memory_bytes
{'s_id': 's306208899', 'p_id': 'p00293', 'u_id': 'u964212895', 'date': '1500007373', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '628', 'code_size': '506'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 bus[24][60] = {0};\n\tint j, i, n,m,l,f=0;\n\tscanf(\"%d\",&n);\n\tfor (j = 1; j <= n; j++...
CDSS_134624
CDSS
#include<stdio.h> int main (void){ int n,u,k,v; int d[100][100]={0}; int i,j; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d %d",&u,&k); for(j=0;j<k;j++){ scanf("%d",&v); d[u-1][v-1]=1; } } for(i=0;i<n;i++){ for(j=0;j<n;j++){ printf("%d%c",d[i][j],j==n-1?'\n':' '); } } return 0; }
644
memory_bytes
{'s_id': 's425628582', 'p_id': 'p02237', 'u_id': 'u984563327', 'date': '1466318776', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '644', 'code_size': '309'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main (void){\n\tint n,u,k,v;\n\tint d[100][100]={0};\n\tint i,j;\t\n\n\tscanf(\"%d\",&n);\n\tfor(i=0;i<n;i++)...
CDSS_353743
CDSS
#include <stdio.h> int main(void) { int m,f,r; while(1) { scanf("%d %d %d",&m, &f, &r); if(m == -1 && f == -1 && r == -1) { break; }else if(m == -1 || f == -1){ printf("F\n"); } else if(m+f<30){ printf("F\n"); } else if(m+f>=80){ ...
2,044
memory_bytes
{'s_id': 's553765006', 'p_id': 'p02411', 'u_id': 'u244997053', 'date': '1557450180', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2044', 'code_size': '629'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 m,f,r;\n while(1)\n {\n scanf(\"%d %d %d\",&m, &f, &r);\n if(m == -1 &...
CDSS_633182
CDSS
#include<stdio.h> int main(void) { int n,r,x; int i; scanf("%d",&n); if(n==1 || n==2){ printf("2\n"); return 0; } i = 2; x = n * i; r = n % i; while(r!=0){ n = i; i = r; ...
128
memory_bytes
{'s_id': 's036321615', 'p_id': 'p03307', 'u_id': 'u276193349', 'date': '1539190473', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '397'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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,r,x;\n int i;\n\n scanf(\"%d\",&n);\n\n\n if(n==1 || n==2){...
CDSS_439529
CDSS
#include<stdio.h> #include<math.h> int main(){ double R; double pi = 3.1415926535; scanf("%lf", &R); printf("%lf\n", 2*R*pi); return 0; }
2,212
memory_bytes
{'s_id': 's475923870', 'p_id': 'p02705', 'u_id': 'u246139109', 'date': '1587345554', 'language': 'C', 'original_language': 'C (Clang 10.0.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '2212', 'code_size': '143'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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\tdouble R;\n\tdouble pi = 3.1415926535;\n\tscanf(\"%lf\", &R);\n\tprintf(\"%lf\\n...
CDSS_324529
CDSS
#include<stdio.h> int main(void){ int n,a,b,c,i; long d=0; b=-1000000; c=1000000; scanf("%d",&n); for(a=0;a<n;a++){ scanf("%d",&i); if(b<i){ b=i; } if(c>i){ c=i; } d+=i; } printf("%d %d %ld\n",c,b,d); return 0; }
600
memory_bytes
{'s_id': 's094223260', 'p_id': 'p02402', 'u_id': 'u947295246', 'date': '1481267515', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', '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 \nint main(void){\n \nint n,a,b,c,i;\n \nlong d=0;\n \nb=-1000000;\n \nc=1000000;\n \nscanf(\"%d\",&n);\n \...
CDSS_246247
CDSS
#include <stdio.h> int main() { int a; scanf("%d",&a); a = a*a*a; printf("%d\n",a); return 0; }
1,828
memory_bytes
{'s_id': 's052649776', 'p_id': 'p02388', 'u_id': 'u515938582', 'date': '1507691194', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1828', 'code_size': '102'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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\nint main()\n{\n int a;\n scanf(\"%d\",&a);\n a = a*a*a;\n printf(\"%d\\n\",a);\n return 0;\n}\nPredict its mem...
CDSS_368139
CDSS
#include <stdio.h> #include <string.h> int main() { char s[101]; char ss[201]; char p[101]; scanf("%s", s); scanf("%s", p); strcpy(ss, s); strcat(ss, s); if (strstr(ss, p) != NULL) puts("Yes"); else puts("No"); return 0; }
2,100
memory_bytes
{'s_id': 's776945886', 'p_id': 'p02418', 'u_id': 'u877181703', 'date': '1587273128', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2100', 'code_size': '284'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\nint main()\n{\n char s[101];\n char ss[201];\n char p[101];\n\n scanf(\"%s\", s);...
CDSS_111055
CDSS
#define _CRT_SECURE_NO_WARNINGS //#define _USE_MATH_DEFINES #include<stdio.h> //#include<stdlib.h> //#include<math.h> #include<string.h> //#include<time.h> #define P(type,x) fprintf(stdout,"%"#type"\n",x) const char code[10][10] = {"","',.!?","abcABC","defDEF","ghiGHI","jklJKL","mnoMNO","pqrsPQRS","tuvTUV","wxyzWXYZ" }...
540
memory_bytes
{'s_id': 's430030001', 'p_id': 'p00589', 'u_id': 'u078042885', 'date': '1482002656', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '540', 'code_size': '749'}
[ { "content": "Your task is to predict the memory 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//#define _USE_MATH_DEFINES\n#include<stdio.h>\n//#include<stdlib.h>\n//#include<math.h>\n#include<st...
CDSS_222889
CDSS
#include <stdio.h> #include <stdlib.h> struct Node { int key; struct Node *parent,*left,*right; }; void insert(int); struct Node *find(struct Node *,int); void inorder(struct Node *); void preorder(struct Node *u); struct Node *root,*NIL; int main(){ int m,i,k; char com[20]; scanf("%d",&m); for(i=...
20,604
memory_bytes
{'s_id': 's916048013', 'p_id': 'p02284', 'u_id': 'u953743009', 'date': '1531750711', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '290', 'memory': '20604', 'code_size': '1431'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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\nstruct Node {\n int key;\n struct Node *parent,*left,*right;\n};\n\nvoid insert(int);...
CDSS_643189
CDSS
// // aaaaa.c // // // Created by Fourier Shuzaei on 2018/05/26. // b;x; main(a){ scanf("%d",&a); char n[a+1]; int c[a],d[a],e[a]; scanf("%s",&n); for(b=0;b<a;++b){ c[b]=(n[b]=='W'?1:-1); } d[0]=(c[0]==1?1:0); for(b=1;b<a;++b){ if(c[b]==1)d[b]=d[b-1]+1; else ...
3,968
memory_bytes
{'s_id': 's330771864', 'p_id': 'p03341', 'u_id': 'u398942100', 'date': '1527387498', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '3968', 'code_size': '644'}
[ { "content": "Your task is to predict the memory 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// aaaaa.c\n// \n//\n// Created by Fourier Shuzaei on 2018/05/26.\n//\nb;x;\nmain(a){\n scanf(\"%d\",&a);\n char n[a+1];\...
CDSS_191194
CDSS
#include<stdio.h> int main(){ int n,q,i,j,c=0; int s[10000],t[500]; scanf("%d",&n); for(i=0;i<n;i++) scanf("%d",&s[i]); scanf("%d",&q); for(i=0;i<q;i++) scanf("%d",&t[i]); for(i=0;i<q;i++){ for(j=0;j<n;j++){ if(t[i]==s[j]){ c++; break; } } } printf("%d\n",c); retu...
2,108
memory_bytes
{'s_id': 's098146482', 'p_id': 'p02267', 'u_id': 'u678726538', 'date': '1544755589', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '329'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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,q,i,j,c=0;\n int s[10000],t[500];\n scanf(\"%d\",&n);\n for(i=0;i<n;i++) scanf(\"%d\",&s[i]...
CDSS_676538
CDSS
#include <stdio.h> int main(void){ char s[5]; scanf("%s",s); int a = s[0] - '0'; int b = s[1] - '0'; int c = s[2] - '0'; int d = s[3] - '0'; if(a+b+c+d==7)printf("%d+%d+%d+%d=7\n",a,b,c,d); else if (a + b + c - d == 7)printf("%d+%d+%d-%d=7\n", a, b, c, d); else if (a + b - c + d == 7)printf("%d+%d-%d+%d=7\n...
128
memory_bytes
{'s_id': 's290583462', 'p_id': 'p03545', 'u_id': 'u286120733', 'date': '1511467464', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '688'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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\nint main(void){\n\tchar s[5];\n\n\tscanf(\"%s\",s);\n\tint a = s[0] - '0';\n\tint b = s[1] - '0';\n\tint c = s...
CDSS_264151
CDSS
#include<stdio.h> int main() { int S; scanf("%d",&S); if((0<=S)&&(S<86400)) { printf("%d:%d:%d\n",(S/60)/60,(S/60)%60,S%60); } return 0; }
2,148
memory_bytes
{'s_id': 's421393307', 'p_id': 'p02390', 'u_id': 'u314174905', 'date': '1594128961', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2148', 'code_size': '173'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 S;\n scanf(\"%d\",&S);\n if((0<=S)&&(S<86400))\n {\n printf(\"%d:%d:%d\\n\...
CDSS_499819
CDSS
#include <stdio.h> char in[2]; int main(){ scanf("%s",in); in[0]++; printf("%s\n",in); }
1,612
memory_bytes
{'s_id': 's416257407', 'p_id': 'p02801', 'u_id': 'u831336344', 'date': '1592610662', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '7', 'memory': '1612', '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>\n\n char in[2];\n int main(){\n scanf(\"%s\",in);\n in[0]++;\n printf(\"%s\\n\",in);\n }\nPredict its memory footpr...
CDSS_21504
CDSS
#include<stdio.h> int main(){ int i = 0; int j = 0; for ( i=1; i<10; i++ ) { for ( j=1; j<10; j++ ) { printf("%dx%d=%d\n", i, j, i*j); } } return 0; }
524
memory_bytes
{'s_id': 's267515476', 'p_id': 'p00000', 'u_id': 'u604005096', 'date': '1376425516', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', '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\nint main(){\n\tint i = 0;\n\tint j = 0;\n\t\n\tfor ( i=1; i<10; i++ ) {\n\t\tfor ( j=1; j<10; j++ ) {\n\t\t\tprin...
CDSS_125705
CDSS
//2008dC I;int parse(char *p){ switch(*p){ case 'F': return 0; case 'T': return 1; case 'a': return (I>>0)&1; case 'b': return (I>>1)&1; case 'c': return (I>>2)&1; case 'd': return (I>>3)&1; case 'e': return (I>>4)&1; case 'f': return (I>>5)&1; case 'g': return (I>>6)&1; case '...
556
memory_bytes
{'s_id': 's322206857', 'p_id': 'p01515', 'u_id': 'u300645821', 'date': '1357466792', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '30', 'memory': '556', 'code_size': '1181'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n//2008dC\nI;int parse(char *p){\n switch(*p){\n case 'F': return 0;\n case 'T': return 1;\n case 'a': return (I>>0)&1;\n ...
CDSS_411222
CDSS
#include <stdio.h> #include <stdint.h> #include <inttypes.h> #include <math.h> int main(int argc, char *argv[]) { int64_t a; _Float128 b; { // 手動で読み込む int d1, d2; scanf("%" SCNd64 " %d.%d", &a, &d1, &d2); int d = d1 * 100 + d2; b = (_Float128)d / 100.0F128; } ...
1,720
memory_bytes
{'s_id': 's790851034', 'p_id': 'p02659', 'u_id': 'u947805421', 'date': '1591113615', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1720', 'code_size': '391'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdint.h>\n#include <inttypes.h>\n#include <math.h>\n\nint main(int argc, char *argv[])\n{\n int64_t ...
CDSS_218857
CDSS
#include <stdio.h> #include <stdlib.h> #define Max 100000 #define N -1 struct node{ int l; int r; int p; }; struct node type[Max]; int D[Max],H[Max]; void setDepth(int u, int d){ if(u== N) return; D[u]=d; setDepth(type[u].l,d+1); setDepth(type[u].r,d+1); } int setHeight(int u){ ...
2,128
memory_bytes
{'s_id': 's946331805', 'p_id': 'p02280', 'u_id': 'u080840088', 'date': '1578846006', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2128', 'code_size': '1621'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 Max 100000\n#define N -1\n\nstruct node{\n int l;\n int r;\n int p;\n};\n\n stru...
CDSS_375591
CDSS
#include<stdio.h> long long a[200000]={0}; long long b[200000]={0}; long long c[200000]={0}; long long sum[200000]={0}; int main(){ long long n; int x,m; scanf("%lld %d %d",&n,&x,&m); long long ans=0; a[1]=x; sum[1]=x; b[x]=1; c[x]=1; int i=2; while (i<=n){ a[i]=(a[i-1]*a[i-1])%m; sum[i]=sum[i-1]+...
4,004
memory_bytes
{'s_id': 's668533406', 'p_id': 'p02550', 'u_id': 'u872719242', 'date': '1600594888', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '4004', 'code_size': '755'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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\tlong long a[200000]={0};\n\tlong long b[200000]={0};\n\tlong long c[200000]={0};\n long long sum[200000]={0};\...
CDSS_663480
CDSS
#include<stdio.h> #include<string.h> #include<math.h> int main(){ int a,b; char s[6]; int c; double v; scanf("%d%d",&a,&b); sprintf(s,"%d%d",a,b); c=atoi(s); v=sqrt(c); //printf("%d\n",c); if(ceil(v)==floor(v)){ printf("Yes\n"); }else{ printf("No\n"); } return 0; }
128
memory_bytes
{'s_id': 's438512595', 'p_id': 'p03456', 'u_id': 'u769466725', 'date': '1516660697', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '281'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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>\nint main(){\nint a,b;\nchar s[6];\nint c;\ndouble v;\nscanf(\"%d%d\",&a,&b);\...
CDSS_727228
CDSS
#include <stdio.h> #define MOD 1000000007 int main(void){ int n,m,i; long long int sum = 1; int a[100000]; int asum[100000]={0}; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&a[i]); asum[a[i]]++; } for(i=0;i<n;i++){ if(n%2 == 0 && (asum[i] != 0 && asum[i] != 2)){ printf("0"); ret...
896
memory_bytes
{'s_id': 's962543829', 'p_id': 'p03846', 'u_id': 'u719031067', 'date': '1509908815', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '15', 'memory': '896', 'code_size': '552'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 MOD 1000000007\nint main(void){\n int n,m,i;\n long long int sum = 1;\n int a[100000];\n int asum[1000...
CDSS_537267
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> int cmp(const void *a,const void *b){ if(*(int*)a>*(int*)b){return 1;} else if(*(int*)a<*(int*)b){return -1;} else {return 0;} } int main(void){ int n; int v[55]; scanf("%d",&n); for(int i=0;i<n;i++){ scanf("%d",&v[i]); } ...
128
memory_bytes
{'s_id': 's550312400', 'p_id': 'p02935', 'u_id': 'u932514381', 'date': '1587853638', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '464'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <math.h>\n\n\nint cmp(const void *a,const void *b){\n if(*(i...
CDSS_134925
CDSS
#include<stdio.h> #define MAX (100) int number[MAX][MAX]; int main(void) { int a,b,l,c,i,j; scanf("%d", &l); for(i=0;i<l;i++){ scanf("%d",&a); scanf("%d",&b); for(j = 0; j < b; j++){ scanf("%d", &c); number[a-1][c-1] = 1; } } for(i = 0; i < l; i++){ for(j = 0; j < l-1; j...
628
memory_bytes
{'s_id': 's059959104', 'p_id': 'p02237', 'u_id': 'u258796943', 'date': '1468381921', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '628', 'code_size': '414'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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)\nint number[MAX][MAX];\nint main(void)\n{\n int a,b,l,c,i,j;\n\n scanf(\"%d\", &l);\n for(i=0;...
CDSS_100160
CDSS
#include<stdio.h> int a[1111], b[1111], c[1111], d[1111], p[333], x, y, z, i, j; int main(){ while(scanf("%d %d %d", &a[0], &b[0], &c[0])&&(*a+=*b+*c)){ for(i=332;i;) p[i--] = 2; scanf("%d", &p[0]); for(i=0;i++<*p;) scanf("%d %d %d %d", &a[i], &b[i], &c[i], &d[i]); for(i=0;i++<*p;){ ...
616
memory_bytes
{'s_id': 's089749021', 'p_id': 'p00437', 'u_id': 'u464972055', 'date': '1406216008', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '616', 'code_size': '586'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 a[1111], b[1111], c[1111], d[1111], p[333], x, y, z, i, j;\n\nint main(){\n \n while(scanf(\"%d %d %d\", &a...
CDSS_60332
CDSS
#include <stdio.h> #include <string.h> #include <math.h> int main(void) { int a, b, c, rec = 0, rho = 0; int i, j; char ap, bp; while (scanf("%d%c%d%c%d", &a, &ap, &b, &bp, &c) != EOF){ if (c == sqrt(pow(a, 2) + pow(b, 2)))rec++; if (a == b)rho++; } printf("%d\n%d\n", rec, rho); return (0); }
596
memory_bytes
{'s_id': 's960982042', 'p_id': 'p00032', 'u_id': 'u864079743', 'date': '1412261906', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', '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>\n#include <math.h>\n\nint main(void)\n{\n\tint a, b, c, rec = 0, rho = 0;\n\tint i, j;\n\tchar...
CDSS_165191
CDSS
#include <stdio.h> #define N 100 int main(){ int a,i,v,j,k,count; int A[N]; scanf("%d",&a); for(i=0;i<a;i++){ scanf("%d",&A[i]); } for( i = 1 ; i < a ; i++ ){ v = A[i]; j = i - 1; while( j >= 0 && A[j] > v ){ A[j+1] = A[j]; j--; count++; } A[j+1] = v; } ...
600
memory_bytes
{'s_id': 's945976113', 'p_id': 'p02259', 'u_id': 'u565781955', 'date': '1460560422', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '421'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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\n int a,i,v,j,k,count;\n int A[N];\n\n scanf(\"%d\",&a);\n\n for(i=0;i<a;i++){\...
CDSS_17525
CDSS
#include<stdio.h> int main(){ int i,j; for(i=1;i<10;i++){ for(j=1;j<10;j++){ printf("%dx%d=%d\n",i,j,i*j); } } return 0; }
524
memory_bytes
{'s_id': 's429894073', 'p_id': 'p00000', 'u_id': 'u344155612', 'date': '1405763337', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', 'code_size': '173'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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,j;\n for(i=1;i<10;i++){\n for(j=1;j<10;j++){\n printf(\"%dx%d=%d\...
CDSS_85997
CDSS
// Aizu Vol-1 0194: Delivery Company // 2017.8.28 bal4u@uu #include <stdio.h> #include <string.h> #include <stdlib.h> #define MAX 20 #define QMAX 100000 int H, V, D; int light[MAX+2][MAX+2]; char rc[MAX+2][MAX+2][MAX+2][MAX+2]; int jam[MAX+2][MAX+2][MAX+2][MAX+2]; int s[2], g[2]; int time[MAX+2][MAX+2][102][4]; #defi...
3,496
memory_bytes
{'s_id': 's450626316', 'p_id': 'p00194', 'u_id': 'u847467233', 'date': '1503955473', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '3496', 'code_size': '2536'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n// Aizu Vol-1 0194: Delivery Company\n// 2017.8.28 bal4u@uu\n\n#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n\n#define...
CDSS_86150
CDSS
#include<stdio.h> int main(void){ int i; int s[5][2]; int max,maxI; for(;;){ scanf("%d%d",&s[0][0],&s[0][1]); if(s[0][0]==0 && s[0][1]==0) break; for(i=1;i<5;i++) scanf("%d%d",&s[i][0],&s[i][1]); max=0; maxI=0; for(i=0;i<5;i++) if(max<s[i][0]+s[i][1]){ max=s[...
0
memory_bytes
{'s_id': 's365190271', 'p_id': 'p00195', 'u_id': 'u846661244', 'date': '1330964520', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', '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 main(void){\n int i;\n int s[5][2];\n int max,maxI;\n\n for(;;){\n scanf(\"%d%d\",&s[0][0],&s[0][1]);\...
CDSS_368146
CDSS
#include<stdio.h> #include<string.h>//文字列の長さを知りたい int main(void){ int i=0; char S1[100]={},S2[100]={},P[100]={}; scanf("%s",S2); strcpy(S1,S2);//文字列S1に文字列S2をコピー strcat(S1,S2);//文字列S1に文字列2を連結(リング上の文字から単語を探すため) scanf("%s",P); if(strstr(S1,P)==NULL) printf("No\n"); else printf("Yes\n"); ...
2,112
memory_bytes
{'s_id': 's086653631', 'p_id': 'p02418', 'u_id': 'u336208598', 'date': '1586750960', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '432'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 int i=0;\n char S1[100]={},S2[100]={},P[100]={};\n scan...
CDSS_723771
CDSS
#include<stdio.h> int main(){ char s[20]; scanf("%s",s); s[5]=' '; s[13]=' '; printf("%s",s); return 0;}
128
memory_bytes
{'s_id': 's838921667', 'p_id': 'p03834', 'u_id': 'u071680334', 'date': '1576848239', '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 char s[20];\n scanf(\"%s\",s);\n s[5]=' ';\n s[13]=' ';\n printf(\"%s\",s);\n return 0;}\nPredi...
CDSS_257132
CDSS
#include <stdio.h> int main(void){ int a,b; scanf("%d %d",&a, &b); printf("%d %d\n",a*b ,(a+b)*2); return 0; }
2,112
memory_bytes
{'s_id': 's010906450', 'p_id': 'p02389', 'u_id': 'u652916351', 'date': '1530604220', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', '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(void){\n\n int a,b;\n scanf(\"%d %d\",&a, &b);\n printf(\"%d %d\\n\",a*b ,(a+b)*2);\n\nreturn 0;\n\n}\...
CDSS_542601
CDSS
#include<stdio.h> int main(){ int n; int flag=0; scanf("%d",&n); int h[n+1]; for(int i=1;i<=n;i++){ scanf("%d",&h[i]); } for(int i=n;i>=2;i--){ if(h[i]<h[i-1]){ h[i-1]=h[i-1]-1; } if(h[i]<h[i-1]){ flag=1; break; } } if(flag==0){ printf("Yes"); }els...
512
memory_bytes
{'s_id': 's420068343', 'p_id': 'p02953', 'u_id': 'u215395599', 'date': '1568252822', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '14', 'memory': '512', 'code_size': '361'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 flag=0;\n scanf(\"%d\",&n);\n \n int h[n+1];\n for(int i=1;i<=n;i++){\n scanf...
CDSS_614112
CDSS
#include<stdio.h> int main() { int n; scanf("%d",&n); if(n==1){ printf("Hello World\n"); } else{ int a,b; scanf("%d%d",&a,&b); printf("%d\n",a+b); } return 0; }
128
memory_bytes
{'s_id': 's933668524', 'p_id': 'p03238', 'u_id': 'u353919145', 'date': '1574319891', '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\nint main()\n\n\n{\nint n;\nscanf(\"%d\",&n);\nif(n==1){\nprintf(\"Hello World\\n\");\n}\nelse{\nint a,b;\nscanf(\...
CDSS_225275
CDSS
#include <stdio.h> #include <math.h> #include <string.h> #include <stdlib.h> #define N 200001 #define NI NULL typedef struct node{ int key; int pri; struct node *right , *left; }Node; Node * Delete(Node **,int); Node * del(Node **,int); int find(Node *p,int x) { while(p!=NI) { if(p->key==x)return 1; else if...
8,104
memory_bytes
{'s_id': 's772763170', 'p_id': 'p02286', 'u_id': 'u359564062', 'date': '1577407997', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '140', 'memory': '8104', 'code_size': '2481'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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>\n#include <stdlib.h>\n#define N 200001\n#define NI NULL\n\ntypedef struct n...
CDSS_34385
CDSS
z;main(a){float b,c,d,e,f;for(;z=~scanf("%d%f%f%f%f%f",&a,&b,&c,&d,&e,&f);printf("%.3f %.3f\n",(c-b*f)/a,f/=a*e-b*d))f=a*f-d*c;}
648
memory_bytes
{'s_id': 's647953778', 'p_id': 'p00004', 'u_id': 'u300645821', 'date': '1384072013', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '648', 'code_size': '128'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nz;main(a){float b,c,d,e,f;for(;z=~scanf(\"%d%f%f%f%f%f\",&a,&b,&c,&d,&e,&f);printf(\"%.3f %.3f\\n\",(c-b*f)/a,f/=a*e-b*d))f=a*f-d*c;}\...
CDSS_372187
CDSS
#include<stdio.h> #include<string.h> int main(void){ int q,i,a,b,slen,j; char str[1001]; char ope[10]; char rep[1001]; char tmp; scanf("%s",&str); scanf("%d",&q); for(i = 0;i<q;i++){ scanf("%s",&ope); if(ope[0] == 'p'){ scanf("%d%d",&a,&b); ...
572
memory_bytes
{'s_id': 's783357972', 'p_id': 'p02422', 'u_id': 'u262208047', 'date': '1497858324', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '572', 'code_size': '861'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 int q,i,a,b,slen,j;\n char str[1001];\n char ope[10];\n char rep[...
CDSS_693326
CDSS
#include <stdio.h> int main(){ int n; scanf("%d", &n); printf("ABC%d\n", n); return 0; }
128
memory_bytes
{'s_id': 's295545511', 'p_id': 'p03643', 'u_id': 'u018679195', 'date': '1509994851', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '108'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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\n scanf(\"%d\", &n);\n\n printf(\"ABC%d\\n\", n);\n\n return 0;\n}\nPredict i...
CDSS_554039
CDSS
#include<stdio.h> #include<string.h> int main(void) { int i, cnt = 0; char word[5]; int s[26]; scanf("%s", word); for (i = 0; i < 26; i++) s[i] = 0; for (i = 0; i < strlen(word); i++) { s[word[i]-'A']++; } for (i = 0; i <= 25; i++) { if (s[i] == 2) cnt++; } if (cnt == 2) puts(...
128
memory_bytes
{'s_id': 's723386619', 'p_id': 'p02987', 'u_id': 'u035009844', 'date': '1562564842', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '353'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\n\nint main(void)\n{\n int i, cnt = 0;\n char word[5];\n int s[26];\n scanf(\"%s\", word);\n...
CDSS_173070
CDSS
#include <stdio.h> struct card{ char mark[1]; int value; }; int main(){ int N, min_j, flag=1, i, j; struct card c[36]; struct card d[36]; struct card temp; scanf("%d", &N); for(i=0; i<N; i++){ scanf("%1s%d", c[i].mark, &c[i].value); d[i] = c[i]; } //Bubble while(flag){ flag = 0; for(i=N-1; i>=1;...
612
memory_bytes
{'s_id': 's415787529', 'p_id': 'p02261', 'u_id': 'u619765879', 'date': '1442294491', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '612', 'code_size': '1030'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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\nstruct card{\n\tchar mark[1];\n\tint value;\n};\n\nint main(){\n\n\tint N, min_j, flag=1, i, j;\n\tstruct card c...
CDSS_155269
CDSS
#include<stdio.h> #include<math.h> #define N 10000 int isprime(int); int main(){ int i,j; int n; int number[N]; int result=0; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&number[i]); } for(i=0;i<n;i++){ if(isprime(number[i])==1){ result++; } } printf("%d\n",result); ...
632
memory_bytes
{'s_id': 's445081877', 'p_id': 'p02257', 'u_id': 'u229094612', 'date': '1460009509', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '632', 'code_size': '531'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<math.h>\n#define N 10000\n\nint isprime(int);\n\nint main(){\n int i,j;\n int n;\n int number[N];\n in...
CDSS_174760
CDSS
#include<stdio.h> #include<stdlib.h> #include<string.h> typedef struct { char num[2]; int value; }Roll; void BubbleSort(Roll *); void isStable(Roll * ,Roll *); int N; int main(){ Roll *Cin; Roll *C; Roll *C1; int i,j; Roll c; int mini; scanf("%d",&N); C=(Roll *)malloc(N*sizeof(Roll)); Cin=(R...
2,084
memory_bytes
{'s_id': 's240019355', 'p_id': 'p02261', 'u_id': 'u828676058', 'date': '1580606325', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2084', 'code_size': '1728'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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\ntypedef struct {\n char num[2];\n int value;\n}Roll;\n\nvoid BubbleSor...
CDSS_702738
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': 's253591744', 'p_id': 'p03697', 'u_id': 'u543284218', 'date': '1515132365', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '1396'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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_490648
CDSS
#include <stdio.h> #include <string.h> int main(void) { char s[101]; scanf("%s", &s); int len = strlen(s); int i = 1; while (i <= len) { printf("x"); i++; } return 0; }
128
memory_bytes
{'s_id': 's905910102', 'p_id': 'p02778', 'u_id': 'u904924517', 'date': '1584898323', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '196'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\nint main(void)\n{\n char s[101];\n scanf(\"%s\", &s);\n \n int len = strlen(s);\n int ...
CDSS_108163
CDSS
#include<stdio.h> int main(void){ int s,sum=0,a; for(int i=1; i<=5; i++){ scanf("%d",&s); if(s<40){ s=40; } sum += s; } a = sum/5; printf("%d\n",a); return 0; }
2,052
memory_bytes
{'s_id': 's830109498', 'p_id': 'p00515', 'u_id': 'u833357551', 'date': '1531982797', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2052', 'code_size': '166'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void){\n\nint s,sum=0,a;\n\nfor(int i=1; i<=5; i++){\nscanf(\"%d\",&s);\nif(s<40){\ns=40;\n}\nsum += s;\...
CDSS_307198
CDSS
#include<stdio.h> int main(void){ int a, b, c, f = 0; scanf("%d %d %d", &a, &b, &c); for(int x = a; x <= b; x++){ if(c % x == 0)f++; } printf("%d\n", f); return 0; }
2,108
memory_bytes
{'s_id': 's875857742', 'p_id': 'p02398', 'u_id': 'u797431825', 'date': '1588133759', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', '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 int a, b, c, f = 0;\n scanf(\"%d %d %d\", &a, &b, &c);\n for(int x = a; x <= b; x++){\n ...
CDSS_195815
CDSS
#include<stdio.h> #include<string.h> char ha[1<<21],k[256]; int main(int argc,char *argv[]){ int i,flg; int val,s,t; char c; k['T'] = 1; k['G'] = 2; k['C'] = 3; k['A'] = 4; scanf("%d", &val); getchar(); for(i=0;i<val;i++){ s = 0; t = 1; flg = ( c = getchar() ) == 'i'; while ( ( c ...
1,948
memory_bytes
{'s_id': 's744268839', 'p_id': 'p02269', 'u_id': 'u021560141', 'date': '1470750666', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '100', 'memory': '1948', 'code_size': '500'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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>\nchar ha[1<<21],k[256];\nint main(int argc,char *argv[]){\n int i,flg;\n int val,s,t;\n char ...
CDSS_62194
CDSS
#include <stdio.h> #include <string.h> int main(void){ int i,j,tmp,n[5]; while(scanf("%d",&n[0])!=EOF){ for(i=1;i<5;i++){ scanf(",%d",&n[i]); } for(i=0;i<5;i++){ for(j=i;j<5;j++){ if(n[i]>n[j]){ tmp=n[i]; n[i]=n[j]; n[j]=tmp; } } } if(n[1]==n[2]&&n[2]==n[3]&&(n[3]==n[4]||n[3...
580
memory_bytes
{'s_id': 's837942256', 'p_id': 'p00038', 'u_id': 'u221679506', 'date': '1450584652', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', 'code_size': '926'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\nint main(void){\n\tint i,j,tmp,n[5];\n\twhile(scanf(\"%d\",&n[0])!=EOF){\n\t\tfor(i=1;i<5;i...
CDSS_151250
CDSS
#include <stdio.h> int main() { int x,y,temp,r; scanf("%d %d",&x,&y); if(x<y) { temp = x; x = y; y = temp; } while(y>0) { r = x % y; x = y; y = r; } printf("%d\n",x); return(0); }
592
memory_bytes
{'s_id': 's876689114', 'p_id': 'p02256', 'u_id': 'u374040976', 'date': '1464157867', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', 'code_size': '237'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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,y,temp,r;\n \n scanf(\"%d %d\",&x,&y);\n \n if(x<y)\n {\n\t temp = x;\n\t x =...
CDSS_439783
CDSS
#include<stdio.h> #include<math.h> int main() { double r; scanf("%lf",&r); printf("%lf\n",r*2*M_PI); }
1,732
memory_bytes
{'s_id': 's525350509', 'p_id': 'p02705', 'u_id': 'u725993280', 'date': '1587345264', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1732', 'code_size': '120'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 r;\n scanf(\"%lf\",&r);\n printf(\"%lf\\n\",r*2*M_PI);\n \n}\...
CDSS_543537
CDSS
//set many funcs template //Ver.20190820 #include<stdio.h> #include<string.h> #include<stdlib.h> #include<stdbool.h> #include<time.h> #include<assert.h> #define inf 1072114514 #define llinf 4154118101919364364 #define mod 998244353 #define pi 3.1415926535897932384 int max(int a,int b){if(a>b){return a;}return b;} int ...
36,820
memory_bytes
{'s_id': 's857259848', 'p_id': 'p02956', 'u_id': 'u721060623', 'date': '1576228701', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '157', 'memory': '36820', 'code_size': '6674'}
[ { "content": "Your task is to predict the memory 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.20190820\n#include<stdio.h>\n#include<string.h>\n#include<stdlib.h>\n#include<stdbool.h>\n#include<ti...
CDSS_328253
CDSS
#include<stdio.h> int main(void){ long min=1000000,max=-1000000,goukei=0; int n; long scan; scanf("%d",&n); for(int i=0;i<n;i++){ scanf("%ld",&scan); if(min>scan){ min=scan; } if(max<scan){ max=scan; } goukei=goukei+s...
2,056
memory_bytes
{'s_id': 's043266692', 'p_id': 'p02402', 'u_id': 'u471229742', 'date': '1550036227', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2056', '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>\nint main(void){\n long min=1000000,max=-1000000,goukei=0;\n int n;\n long scan;\n \n scanf(\"%d\",&...
CDSS_443737
CDSS
#include<stdio.h> #include<math.h> int main() { int n, m, a, l; scanf("%d %d", &n, &m); l = n; for (int i = 0; i < m; i++) { scanf("%d", &a); l = l - a; } if (l >= 0) { printf("%d", l); } else { printf("-1"); } }
2,156
memory_bytes
{'s_id': 's758717031', 'p_id': 'p02706', 'u_id': 'u737015864', 'date': '1587345702', 'language': 'C', 'original_language': 'C (Clang 10.0.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '2156', 'code_size': '230'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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\tint n, m, a, l;\n\tscanf(\"%d %d\", &n, &m);\n\tl = n;\n\tfor (int i = 0; i < m...
CDSS_238283
CDSS
#include <stdio.h> int table[66]; int main(void) { int dice[7]; int q; int upper, front; int u, f; int i; table[12] = 3; table[13] = 5; table[15] = 4; table[14] = 2; table[62] = 4; table[63] = 2; table[65] = 3; table[64] = 5; table[21] = 4; table[24] = 6; table[26] = 3; table[23] = 1; table[5...
2,096
memory_bytes
{'s_id': 's342186330', 'p_id': 'p02384', 'u_id': 'u648926140', 'date': '1587110674', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2096', 'code_size': '788'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 table[66];\n\nint main(void)\n{\n\tint dice[7];\n\tint q;\n\tint upper, front;\n\tint u, f;\n\tint i;\n\n\tt...
CDSS_486471
CDSS
#include <stdio.h> int main(void) { int A, B, C; scanf("%d%d%d", &A, &B, &C); if((A == B && B == C) || (A != B && B != C && C != A)) { printf("No\n"); } else { printf("Yes\n"); } return 0; }
1,620
memory_bytes
{'s_id': 's492566864', 'p_id': 'p02771', 'u_id': 'u693209970', 'date': '1597676863', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1620', '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>\n\nint main(void) {\n int A, B, C;\n scanf(\"%d%d%d\", &A, &B, &C);\n\n if((A == B && B == C) || (A != B &...
CDSS_546132
CDSS
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <string.h> #include <math.h> #define Max(a, b) ((a) > (b) ? (a) : (b)) #define Min(a, b) ((a) > (b) ? (b) : (a)) #define Abs(x) ((x) > 0 ? (x) : -(x)) #define REP(i, n) for(int i = 0; i < n; i++) #define INF 1000000000000 //10^12 #define MOD 100000000...
1,664
memory_bytes
{'s_id': 's622772509', 'p_id': 'p02959', 'u_id': 'u801102476', 'date': '1564276850', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '26', 'memory': '1664', 'code_size': '914'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 <stdbool.h>\n#include <string.h>\n#include <math.h>\n#define Max(a, b) ((a) > (b) ? ...
CDSS_206891
CDSS
#include <stdio.h> #include <stdlib.h> #define MAX 2000001 #define VMAX 10000 int main(){ unsigned short *A, *B; int C[VMAX+1]; int n, i, j; scanf("%d", &n); A = malloc(sizeof(short)*n+1); B = malloc(sizeof(short)*n+1); /* your code */ for(i=1;i<=n;i++){ scanf("%d",&A[i]); } for(i=0;i<=VMAX;...
9,600
memory_bytes
{'s_id': 's922347995', 'p_id': 'p02275', 'u_id': 'u445457429', 'date': '1545359241', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '230', 'memory': '9600', 'code_size': '583'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#define MAX 2000001\n#define VMAX 10000\n\nint main(){\n unsigned short *A, *B;\n int C[VMA...
CDSS_88701
CDSS
#include <stdio.h> #include <string.h> char fizz[5]={"Fizz"}; char buzz[5]={"Buzz"}; char fizzbuzz[9]={"FizzBuzz"}; int main() { int n,m; int i,j,k,c,d; while(1) { int p[1001] = {0}; scanf("%d %d",&n,&m); if(n==0 && m==0) break; for(i=0;i<n; i++) p[i] = 1; c = 0; d = 0; for(i=1;i<=m...
620
memory_bytes
{'s_id': 's780901341', 'p_id': 'p00221', 'u_id': 'u952951927', 'date': '1431526274', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '620', 'code_size': '1024'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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\n\nchar fizz[5]={\"Fizz\"};\nchar buzz[5]={\"Buzz\"};\nchar fizzbuzz[9]={\"FizzBuzz\"};\n\ni...
CDSS_231810
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #define max(a, b) (((a) > (b)) ? (a) : (b)) /* 2個の値の最大値 */ #define min(a, b) (((a) < (b)) ? (a) : (b)) /* 2個の値の最小値 */ #define ENTER printf("\n") /* 改行プリント */ /****************************************************************************...
2,108
memory_bytes
{'s_id': 's538519675', 'p_id': 'p02314', 'u_id': 'u157967111', 'date': '1561291704', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '1210'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 <ctype.h>\n#define max(a, b)\t(((a) > (b)) ? (a) : (b))\t\t/* 2...
CDSS_744632
CDSS
#include <stdio.h> #include <stdlib.h> int main(void){ int array[3]; int temp; scanf("%d %d %d", &array[0], &array[1], &array[2]); for(int i = 0; i < 3; i++){ for(int j = i + 1; j < 3; j++){ if(array[i] < array[j]){ temp = array[i]; array[i] = array[j]; array[j] = temp; } } } if(arr...
128
memory_bytes
{'s_id': 's844012371', 'p_id': 'p04043', 'u_id': 'u183866833', 'date': '1549083862', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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\nint main(void){\n int array[3];\n int temp;\n scanf(\"%d %d %d\", &array[0], &array[1], ...
CDSS_262575
CDSS
#include <stdio.h> int main(void){ int S; scanf("%d",&S); printf("%d:%d:%d\n",S/3600,S%3600/60,S%3600%60); return 0; }
592
memory_bytes
{'s_id': 's645603765', 'p_id': 'p02390', 'u_id': 'u940290362', 'date': '1502111660', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', 'code_size': '134'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 S; \n scanf(\"%d\",&S); \n printf(\"%d:%d:%d\\n\",S/3600,S%3600/60,S%3600%60);\n ret...
CDSS_271925
CDSS
#include<stdio.h> int main() { int a,b; scanf("%d %d",&a,&b); if(a>=-1000 && a<=1000 && b>=-1000 && b<=1000) { if(a<b) { printf("a < b\n"); } else if(a>b) { printf("a > b\n"); } else if(a==b) { printf("a == b\n"); } } return 0; }
1,752
memory_bytes
{'s_id': 's739532329', 'p_id': 'p02391', 'u_id': 'u245495144', 'date': '1511162953', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1752', 'code_size': '252'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main() {\n\tint a,b;\n\tscanf(\"%d %d\",&a,&b);\n\tif(a>=-1000 && a<=1000 && b>=-1000 && b<=1000) {\n\t\tif(a<b...