identifier
string
space
string
input
string
target
float64
metric_type
string
metadata
string
messages
list
CDSS_278923
CDSS
#include <stdio.h> int main(void) { int a,b,c; scanf("%d %d %d",&a,&b,&c); if(a < b&&b < c) printf("Yes\n"); else printf("No\n"); return 0; }
1,812
memory_bytes
{'s_id': 's009932272', 'p_id': 'p02392', 'u_id': 'u602671616', 'date': '1508294466', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1812', '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>\n\nint main(void)\n{\n int a,b,c;\n\n scanf(\"%d %d %d\",&a,&b,&c);\n\n if(a < b&&b < c)\n printf...
CDSS_57087
CDSS
int main(i){ double v; while(~scanf("%lf",&v)){ i=0; while(v*v>98*(++i-1)); printf("%d\n",i); } return 0; }
628
memory_bytes
{'s_id': 's684737208', 'p_id': 'p00024', 'u_id': 'u643705886', 'date': '1363262411', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '628', 'code_size': '107'}
[ { "content": "Your task is to predict the 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(i){\ndouble v;\nwhile(~scanf(\"%lf\",&v)){\ni=0;\nwhile(v*v>98*(++i-1));\nprintf(\"%d\\n\",i);\n}\nreturn 0;\n}\nPredict its ...
CDSS_516475
CDSS
#include<stdio.h> typedef long long ll; int main(void){ int N; scanf("%d", &N); printf("%d", N%2 == 0 ? N/2-1: N/2); return 0; }
128
memory_bytes
{'s_id': 's383716733', 'p_id': 'p02865', 'u_id': 'u408173306', 'date': '1573351330', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '146'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 long long ll;\n\nint main(void){\n int N;\n scanf(\"%d\", &N);\n printf(\"%d\", N%2 == 0 ? N/2-1...
CDSS_229525
CDSS
#include<stdio.h> /* 値を入れ替える関数 */ void swap (int *x, int *y) { int temp; // 値を一時保存する変数 temp = *x; *x = *y; *y = temp; } /* pushdouwn操作 */ void pushdown (int array[], int first, int last) { int parent = first; // 親 int child = 2*parent; // 左の子 while (child <= last) { if ((child < last) && (ar...
3,652
memory_bytes
{'s_id': 's738391263', 'p_id': 'p02288', 'u_id': 'u483476789', 'date': '1579498067', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '60', 'memory': '3652', 'code_size': '971'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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/* 値を入れ替える関数 */\nvoid swap (int *x, int *y) {\n int temp; // 値を一時保存する変数\n\n temp = *x;\n *x = *y;\n *y = t...
CDSS_237934
CDSS
#include <stdio.h> int face[7][7][4] = { {{0},{0},{0},{0},{0},{0},{0}}, {{0},{0},{0,1,2,3},{0,1,3,5},{0,1,4,2},{0,1,5,4},{0}}, {{0},{0,2,1,4},{0},{0,2,3,1},{0,2,4,6},{0},{0,2,6,3}}, {{0},{0,3,1,2},{0,3,2,6},{0},{0},{0,3,5,1},{0,3,6,5}}, {{0},{0,4,1,5},{0,4,2,1},{0},{0},{0,4,5,6},{0,4,6,2}}, {{0},{0,5,1,3},{0},{0,5,3,6...
2,104
memory_bytes
{'s_id': 's797809824', 'p_id': 'p02384', 'u_id': 'u397862444', 'date': '1532189475', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '709'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 face[7][7][4] = {\n{{0},{0},{0},{0},{0},{0},{0}},\n{{0},{0},{0,1,2,3},{0,1,3,5},{0,1,4,2},{0,1,5,4},{0}},\n{...
CDSS_51330
CDSS
#include<stdlib.h> #include<stdio.h> int cmp(const void *a,const void *b){ return (*(int *)b-*(int *)a); } int main(){ int i,five[5]; scanf("%d %d %d %d %d",five,five+1,five+2,five+3,five+4); qsort(five,5,sizeof(int),cmp); printf("%d %d %d %d %d\n",five[0],five[1],five[2],five[3],five[4]); return 0; }
0
memory_bytes
{'s_id': 's128843901', 'p_id': 'p00018', 'u_id': 'u540597234', 'date': '1309117402', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '315'}
[ { "content": "Your task is to predict the memory footprint (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>\nint cmp(const void *a,const void *b){\n return (*(int *)b-*(int *)a);\n}\nint main(){\n int i...
CDSS_387196
CDSS
#include <stdio.h> int a[1000001]; int main(){ int K; scanf("%d",&K); a[1]=7%K; for(int i=2;i<=K;i++)a[i]=(a[i-1]*10+7)%K; for(int i=1;i<=K;i++)if(a[i]==0){ printf("%d\n",i); return 0; } printf("-1\n"); }
5,540
memory_bytes
{'s_id': 's481619127', 'p_id': 'p02596', 'u_id': 'u642384509', 'date': '1597255907', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '5540', '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 a[1000001];\nint main(){\n int K;\n scanf(\"%d\",&K);\n a[1]=7%K;\n for(int i=2;i<=K;i++)a[i]=(a[i...
CDSS_224049
CDSS
#include<stdio.h> #include<string.h> #define MAX 500000 #define NIL -2000000001 struct becs{ int id,key,p,l,r; }; typedef struct becs node; node A[MAX]; void inp(int a,int u){ if(u==NIL || a==u)return; if(A[a].key<A[u].key){ A[a].p=u; inp(a,A[u].l); if(A[u].l==NIL)A[u].l=a; return; } else{ ...
11,492
memory_bytes
{'s_id': 's522688422', 'p_id': 'p02284', 'u_id': 'u648561061', 'date': '1547474123', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '250', 'memory': '11492', 'code_size': '1283'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 MAX 500000\n#define NIL -2000000001\nstruct becs{\n int id,key,p,l,r;\n};\ntypedef s...
CDSS_737065
CDSS
#include<stdio.h> int main() { int a,b,h; int s; scanf("%d\n%d\n%d",&a,&b,&h); s=(a+b)*h/2; printf("%d",s); return 0; }
128
memory_bytes
{'s_id': 's251407969', 'p_id': 'p03997', 'u_id': 'u363594351', 'date': '1583350625', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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>\nint main()\n{\n int a,b,h;\n int s;\n \n scanf(\"%d\\n%d\\n%d\",&a,&b,&h);\n \n s=(a+b)*h/2;\n \n printf(\"...
CDSS_115450
CDSS
#include<stdio.h> int main(void) { int n; //????????° int i,j; //????????????????????? int a; int x[20]; //??????????????°????´? int sum; int k=0; //????????????????????????????????? int max, min; for(i=0;i<20;i++){ scanf("%d", &n); if(n==0)break; sum=0; max=0; min=1000; ...
600
memory_bytes
{'s_id': 's400486224', 'p_id': 'p00728', 'u_id': 'u467070262', 'date': '1462790052', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '534'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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; //????????°\n int i,j; //?????????????????????\n int a;\n int x[20]; //???????...
CDSS_137962
CDSS
#include<stdio.h> #define LEN 100 #define INF 100000000 int Q[LEN]; int G[LEN][LEN]; int head,tail; int d[LEN]; int n; void enqueue(int x){ Q[tail] = x; tail = (tail+1) % LEN; } int dequeue(){ int x = Q[head]; head = (head+1)%LEN; return x; } int enpty(){ if(tail == head)return 1; else return 0; } void ...
636
memory_bytes
{'s_id': 's366532736', 'p_id': 'p02239', 'u_id': 'u570450279', 'date': '1502248603', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '636', 'code_size': '958'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 LEN 100\n#define INF 100000000\nint Q[LEN];\nint G[LEN][LEN];\nint head,tail;\nint d[LEN];\nint n;\nvoid e...
CDSS_135722
CDSS
#include<stdio.h> static const int N = 100; int main(){ int M[N][N]; int n, u, k, v; scanf("%d",&n); for(int i=0;i<n;i++){ for(int j=0;j<n;j++)M[i][j] = 0; } for(int i=0;i<n;i++){ scanf("%d %d", &u, &k); u--; for(int j=0;j<k;j++){ scanf(" %d",&v); v--; M...
2,060
memory_bytes
{'s_id': 's563337971', 'p_id': 'p02237', 'u_id': 'u881737484', 'date': '1579766159', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2060', 'code_size': '491'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nstatic const int N = 100;\n\nint main(){\n \n int M[N][N];\n int n, u, k, v;\n \n \n scanf(\"%d\",&n);\n \...
CDSS_291276
CDSS
#include <stdio.h> int main (){ int x,y,w,h,r; scanf("%d %d %d %d %d",&w,&h,&x,&y,&r); if(((x-r)<0)||((y-r)<0)||((x+r)>w)||((y+r)>h)) printf("No\n"); else printf("Yes\n"); return 0; }
584
memory_bytes
{'s_id': 's317627935', 'p_id': 'p02394', 'u_id': 'u924810243', 'date': '1492402967', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '584', 'code_size': '200'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n \nint main (){\n int x,y,w,h,r;\n \n scanf(\"%d %d %d %d %d\",&w,&h,&x,&y,&r);\n if(((x-r)<0)||((y-r)<0)||((x+...
CDSS_737154
CDSS
#include <stdio.h> int main(void) { int a,b,h,x; scanf("%d %d %d",&a,&b,&h); x = ((a+b)*h)/2; printf("%d",x); return 0; }
128
memory_bytes
{'s_id': 's611230161', 'p_id': 'p03997', 'u_id': 'u301811731', 'date': '1568432257', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '132'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\n\tint a,b,h,x;\n\n\tscanf(\"%d %d %d\",&a,&b,&h);\n\n\tx = ((a+b)*h)/2;\n\n\tprintf(\"%d\",x);...
CDSS_697750
CDSS
#include<stdio.h> int main() { int a, b, c; scanf("%d %d %d", &a, &b, &c); int ab = a + b, bc = b + c, ca = a + c; if (ab <= bc && ab <= ca) { printf("%d\n", ab); } else if (bc <= ab && bc <= ca) { printf("%d\n", bc); } else { printf("%d\n", ca); } return ...
128
memory_bytes
{'s_id': 's054036154', 'p_id': 'p03671', 'u_id': 'u420082791', 'date': '1499803647', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '324'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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, c;\n scanf(\"%d %d %d\", &a, &b, &c);\n \n int ab = a + b, bc = b + c, ca = ...
CDSS_629190
CDSS
#include <stdio.h> int main(void) { int R; scanf("%d", &R); puts(R<1200? "ABC":(R<2800? "ARC":"AGC") ); return 0; }
128
memory_bytes
{'s_id': 's789448515', 'p_id': 'p03288', 'u_id': 'u793440937', 'date': '1533517634', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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:\n#include <stdio.h>\n\nint main(void)\n{\n int R;\n scanf(\"%d\", &R);\n \n puts(R<1200? \"ABC\":(R<2800? \"ARC\":\"AGC\") );\n re...
CDSS_56748
CDSS
#include<stdio.h> #include<math.h> #include<string.h> #include<ctype.h> int main(void) { int kaisu; int i; scanf("%d",&kaisu); for(i=0;i<kaisu;i++){ double a,b,c,d,e,f; double kyori; scanf("%lf %lf %lf %lf %lf %lf",&a,&b,&c,&d,&e,&f); kyori=sqrt((d-a)*(d-a)+(e-b)*(e-b)); if(kyori<c-f) puts("2"); ...
620
memory_bytes
{'s_id': 's416923802', 'p_id': 'p00023', 'u_id': 'u214600613', 'date': '1400424471', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '620', 'code_size': '426'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<math.h>\n#include<string.h>\n#include<ctype.h>\nint main(void)\n{\n int kaisu;\n int i;\n scanf(\"%d\",...
CDSS_541743
CDSS
#include <stdio.h> int main() { long int n; scanf("%ld",&n); if(n<10) { printf("%ld\n",n); } else if(n>=10 && n<100) { printf("9\n"); } else if(n>=100 && n<1000) { printf("%ld\n",10+n-100); } else if(n>=1000 && n<10000) { printf("909\n"); } else if(n>=10000 && n<100000) { printf("%ld\n",910+n-10000); } else if(n==100...
1,672
memory_bytes
{'s_id': 's183655887', 'p_id': 'p02952', 'u_id': 'u089230684', 'date': '1600480659', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1672', '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{\nlong int n;\nscanf(\"%ld\",&n);\n\nif(n<10)\n{\nprintf(\"%ld\\n\",n);\n}\nelse if(n>=10 && n<100)...
CDSS_522325
CDSS
#include<stdio.h> int main() { long n,i,cnt=0; char a[100010]={}; while(~scanf("%ld",&n)){ getchar(); gets(a); for(i=0;i<n;i++){ while(a[i]==a[i+1]){ i++; }cnt++; }printf("%ld\n",cnt); cnt=0; } }
256
memory_bytes
{'s_id': 's009117356', 'p_id': 'p02887', 'u_id': 'u123937268', 'date': '1571535209', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '256', 'code_size': '219'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n\tlong n,i,cnt=0;\n\tchar a[100010]={};\n\twhile(~scanf(\"%ld\",&n)){\n\t\tgetchar();\n\t\tgets(a);\...
CDSS_17568
CDSS
#include <stdio.h> int main(void) { 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': 's731534726', 'p_id': 'p00000', 'u_id': 'u471822363', 'date': '1407300520', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', 'code_size': '156'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 i, j;\n\t\n\tfor(i=1 ; i<10 ; i++){\n\t\tfor(j=1 ; j<10 ; j++){\n\t\t\tprintf(\"%dx%d=%...
CDSS_656895
CDSS
#include <limits.h> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> // 内部定数 #define D_CHAR_KIND 5 // 文字種類 // 内部変数 static long long sl1Cnt[D_CHAR_KIND]; // 各文字毎の人数 static long long slSum; // 合計 // 内部変数 - テスト用 #ifdef D_TEST static int siRes; st...
128
memory_bytes
{'s_id': 's752539679', 'p_id': 'p03425', 'u_id': 'u088333128', 'date': '1530219726', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '128', 'code_size': '2218'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <limits.h>\n#include <math.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <time.h>\n\n// 内部定数\n#d...
CDSS_413400
CDSS
#include <stdio.h> int main (void) { char s[200000]; int len,i=0; scanf("%s", &s); while(s[i]){ len++; i++; } for(i=0;i<len;i++){ if(s[i] == '?' && s[i-1] == 'P') s[i] = 'D'; if(s[i] == '?' && s[i+1] == 'D') s[i] = 'P'; else if(s[i] == '?') s[i] = 'D'; } ...
1,920
memory_bytes
{'s_id': 's082687680', 'p_id': 'p02664', 'u_id': 'u418217648', 'date': '1590890425', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1920', 'code_size': '359'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 char s[200000];\n int len,i=0;\n \n scanf(\"%s\", &s);\n \n while(s[i]){\n len++;\n...
CDSS_171943
CDSS
#include <stdio.h> /* 選択ソート(0オリジン) */ int selectionSort(int A[], int N) { int i, j, t, sw =0, minj; for(i=0;i<N-1;i++) { minj = i; for(j=i;j<N;j++) { if(A[j]<A[minj]) minj = j; } t=A[i]; A[i]=A[minj]; A[minj]=t; if(i!=minj) sw++; } return sw; } int ...
2,148
memory_bytes
{'s_id': 's486714656', 'p_id': 'p02260', 'u_id': 'u026167198', 'date': '1594248760', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2148', 'code_size': '612'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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/* 選択ソート(0オリジン) */\nint selectionSort(int A[], int N) {\n int i, j, t, sw =0, minj;\n for(i=0;i<N-1;i++) ...
CDSS_288058
CDSS
#include <stdio.h> #include <stdlib.h> int main() { int a, b, c; int tmp; scanf("%d%d%d", &a, &b, &c); if (a > b) tmp = a, a = b, b = tmp; if (b > c) { tmp = b, b = c, c = tmp; if (a > b) tmp = a, a = b, b = tmp; } printf("%d %d %d\n", a, b, c); return 0; }
2,100
memory_bytes
{'s_id': 's996392549', 'p_id': 'p02393', 'u_id': 'u745437820', 'date': '1588147901', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2100', 'code_size': '273'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\nint main()\n{\n\tint a, b, c;\n\tint tmp;\n\n\tscanf(\"%d%d%d\", &a, &b, &c);\n\tif (a > b)...
CDSS_52837
CDSS
#include <stdio.h> #include <stdlib.h> #include <math.h> #define PI 3.14159265358979323 //int calc1(float a,float b,float c,float d,float e,float f,float *x,float *y); //void quick(int *,long long,long long); //int comp(char *a,char *b); int main(){ long long a; int i; scanf("%d",&i); for(a=1;i>1;a=a*i,i--); ...
592
memory_bytes
{'s_id': 's051011369', 'p_id': 'p00019', 'u_id': 'u846233849', 'date': '1381865143', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', 'code_size': '381'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <math.h>\n#define PI 3.14159265358979323\n\n//int calc1(float a,float b,float c,floa...
CDSS_740307
CDSS
#include <stdio.h> long long f(long long b,long long x){return x<b?x:f(b,x/b)+x%b;} long long g(){ long long n,s,b=2,r=-1,z; scanf("%lld%lld",&n,&s); if(n<s)return -1; if(n==s)return n+1; for(;b*b<=n;b++)if(f(b,n)==s)return b; for(b=1;b*b<=n;b++)if((n-s)%b==0&&f(z=(n-s)/b+1,n)==s)r=z; return r; } int main(){prin...
128
memory_bytes
{'s_id': 's546922601', 'p_id': 'p04016', 'u_id': 'u280667879', 'date': '1472451933', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '23', 'memory': '128', 'code_size': '338'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nlong long f(long long b,long long x){return x<b?x:f(b,x/b)+x%b;}\nlong long g(){\n\tlong long n,s,b=2,r=-1,z;\n\ts...
CDSS_70070
CDSS
#include<stdio.h> int main(void){ int a,b,c,i;int A[2]={0},B[2]={0},C[2]={0}; while(1){ scanf("%d %d %d",&a,&b,&c); if(a==-1&&b==-1&&c==-1)break; b=b+a*60; C[0]=7200-(c+b*60); C[1]=C[0]*3; for(i=0;i<2;i++){ B[i]=C[i]/60; C[i]=C[i]%60; ...
612
memory_bytes
{'s_id': 's749583547', 'p_id': 'p00074', 'u_id': 'u324596395', 'date': '1436263905', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '612', 'code_size': '453'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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,i;int A[2]={0},B[2]={0},C[2]={0};\n while(1){\n scanf(\"%d %d %d\",&a,&b,&...
CDSS_39817
CDSS
#include <stdio.h> #include <math.h> int main(){ int n,i,interest; int debt=100000; double temp1; int temp2; scanf("%d",&n); for (i=1;i<=n;i++) { temp1 = 0.05*debt/1000.0; temp2 = 0.05*debt/1000.0; if (temp1>temp2) temp2=temp2+1; interest = temp2*1000; debt= debt + interest; } printf("%d\n",debt)...
592
memory_bytes
{'s_id': 's693870744', 'p_id': 'p00007', 'u_id': 'u862581875', 'date': '1490307118', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', 'code_size': '337'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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,i,interest;\n\tint debt=100000;\n\tdouble temp1;\n\tint temp2;\n\tscanf(...
CDSS_653165
CDSS
#include<stdio.h> int main(void) { int n,b=0,i,c; scanf("%i",&n); int a[n+1],ans; a[0]=0; for(i=1;i<=n;i++) { scanf("%i",&a[i]); if(a[i]>a[i-1])b=b+a[i]-a[i-1]; else b=b+a[i-1]-a[i]; if(i==n-1)c=b; } i--; if(a[i]>0)b=b+a[i]; else b=b-a[i]; for(...
1,536
memory_bytes
{'s_id': 's963369951', 'p_id': 'p03403', 'u_id': 'u816631826', 'date': '1559685437', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '1536', 'code_size': '700'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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,b=0,i,c;\n scanf(\"%i\",&n);\n int a[n+1],ans;\n a[0]=0;\n for(i=1;i<=n;i+...
CDSS_414075
CDSS
#include <stdio.h> int main() { int N; scanf("%d",&N); if(N<=999) { N = N%10%10; if(N==3) { printf("bon"); }else if(N==0 || N==1 || N==6 || N==8) { printf("pon"); }else { printf("hon"); } } return 0; }
1,724
memory_bytes
{'s_id': 's140272563', 'p_id': 'p02675', 'u_id': 'u964030261', 'date': '1595271295', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1724', 'code_size': '250'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main() {\n int N;\n scanf(\"%d\",&N);\n if(N<=999) {\n N = N%10%10;\n if(N==3) {\n printf(\"bo...
CDSS_481442
CDSS
#include <stdio.h> int main(void) { int n, last; scanf("%d", &n); last = n % 2; printf("%d\n", n / 2 + last); return 0; }
128
memory_bytes
{'s_id': 's866767928', 'p_id': 'p02759', 'u_id': 'u632734596', 'date': '1590762337', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '131'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n\tint n, last;\n\n\tscanf(\"%d\", &n);\n\n\tlast = n % 2;\n\n\tprintf(\"%d\\n\", n / 2 + last...
CDSS_712160
CDSS
#include<stdio.h> #include<string.h> int a[4]; void abcd(int l,int r) { int i=l,j=r,t; int p=a[(l+r)/2]; while(i<=j) {while(a[i]<p) {i++;} while(a[j]>p) {j--;} if(i<=j) {t=a[i]; a[i]=a[j]; a[j]=t; i++; j--;}} if(l<j) abcd(l,j); if(i<r) abcd(i,r); ...
128
memory_bytes
{'s_id': 's340298034', 'p_id': 'p03759', 'u_id': 'u263933075', 'date': '1536891018', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '486'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 a[4];\nvoid abcd(int l,int r)\n{\n int i=l,j=r,t;\n int p=a[(l+r)/2];\n while(i<=j...
CDSS_56959
CDSS
main(){ double v; while(scanf("%lf",&v)!=-1) printf("%.0lf\n",v*v/98.0+1.499999999999999999999999999); return 0; }
0
memory_bytes
{'s_id': 's375937761', 'p_id': 'p00024', 'u_id': 'u361407785', 'date': '1302035438', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '124'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nmain(){\n double v;\n while(scanf(\"%lf\",&v)!=-1)\n printf(\"%.0lf\\n\",v*v/98.0+1.499999999999999999999999999);\n return 0;\n}...
CDSS_78853
CDSS
#include <stdio.h> #include <string.h> char island[101][101]; int h, w; void dfs(int i, int j, char c){ int di, dj; island[i][j] = 'x'; for (di = -1; di <= 1; di += 2){ if (0 <= i + di && i + di < h && island[i + di][j] == c){ dfs(i + di, j, c); } } for (dj = -1; dj <= 1; dj += 2){ if (0 <= j + dj ...
0
memory_bytes
{'s_id': 's785711181', 'p_id': 'p00118', 'u_id': 'u032763525', 'date': '1319941494', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', '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 <string.h>\n\nchar island[101][101];\nint h, w;\n\nvoid dfs(int i, int j, char c){\n\tint di, dj;\n\t\n\t...
CDSS_186468
CDSS
#include<stdio.h> #include<string.h> #include<stdlib.h> struct node{ unsigned int key; struct node *next; struct node *prev; }; typedef struct node * NodePointer; NodePointer nil; //与えられたキーをもつノードを探し、そのポインタを返す NodePointer listSearch(int key){ /* your code */ NodePointer *x; x=&nil->next; while((...
36,108
memory_bytes
{'s_id': 's617694922', 'p_id': 'p02265', 'u_id': 'u827484500', 'date': '1548254539', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '210', 'memory': '36108', 'code_size': '2164'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\nstruct node{\n unsigned int key;\n struct node *next;\n struct node *p...
CDSS_336157
CDSS
#include<stdio.h> int main(void) { int h,w,i,j,a,b; do{ scanf("%d %d",&h,&w); if(h<=300 && w<=300) { for(i=0;i<h;i++) { for(j=0;j<w;j++) { a=i%2;b=j%2; if((a==0 && b==0) || (a==1 && b==1))printf("#"); if((a==1 && b==0) || (a==0 && b==1))pri...
572
memory_bytes
{'s_id': 's793729823', 'p_id': 'p02405', 'u_id': 'u043944086', 'date': '1496898416', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '572', 'code_size': '465'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 h,w,i,j,a,b;\n do{\n scanf(\"%d %d\",&h,&w);\n if(h<=300 && w<=300)\n {\n ...
CDSS_392496
CDSS
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> int main() { int n; char s[100000][4]; char t[4][4]={"AC", "WA", "TLE", "RE"}; int c[4]={0}; int i, j; scanf("%d", &n); for (i=0;i<n;i++) scanf("%s", s[i]); for (i=0;i<n;i++) { for (j=0;j<4;j++) {...
2,092
memory_bytes
{'s_id': 's078150052', 'p_id': 'p02613', 'u_id': 'u264818289', 'date': '1594769448', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '22', 'memory': '2092', 'code_size': '521'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <math.h>\n#include <string.h>\n\nint main() {\n int n;\n char s[100000][4];\n ...
CDSS_232351
CDSS
#include <stdio.h> #define MOD 1000000007 int dp[1010][1010]; //dp[n][k]=nをk個以下の整数の和で表す場合の数 // =nをk以下の整数の和で表す場合の数 int main(){ int n,m; scanf("%d%d",&n,&m); for(int j=0;j<=m;j++)dp[0][j]=1; for(int i=1;i<=n;i++)for(int j=1;j<=m;j++)dp[i][j]=(dp[i][j-1]+(i-j>=0?dp[i-j][j]:0))%MOD; printf("%d\n",(dp[n][m]-dp[...
5,748
memory_bytes
{'s_id': 's824404146', 'p_id': 'p02342', 'u_id': 'u409832240', 'date': '1564370521', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '5748', '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#define MOD 1000000007\n\nint dp[1010][1010];\n//dp[n][k]=nをk個以下の整数の和で表す場合の数\n// =nをk以下の整数の和で表す場合の数\nint ma...
CDSS_256449
CDSS
#include<stdio.h> int main(){ int width, height; scanf("%d %d", &width, &height); printf("%d %d\n", width * height, 2 * width + 2 * height); return 0; }
2,100
memory_bytes
{'s_id': 's295073535', 'p_id': 'p02389', 'u_id': 'u085441951', 'date': '1524823891', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2100', '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(){\n int width, height;\n scanf(\"%d %d\", &width, &height);\n printf(\"%d %d\\n\", width * height, 2...
CDSS_38357
CDSS
#include <stdio.h> int main(void){ char str[21], *p = str; fgets(str, 21, stdin); for(; *p && *p != '\n'; ++p); while(--p >= str){ printf("%c", *p); } printf("\n"); return 0; }
0
memory_bytes
{'s_id': 's354986805', 'p_id': 'p00006', 'u_id': 'u997325904', 'date': '1308131924', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', '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 char str[21], *p = str;\n \n fgets(str, 21, stdin);\n for(; *p && *p != '\\n'; ++p);\n whi...
CDSS_705543
CDSS
#include <stdio.h> #include <string.h> #include <math.h> int main(void) { int h,w; while(scanf("%d %d",&h,&w)!=EOF) { int i; int j; int count=1; char s[101][101]={0}; char q[101]; for(i=1;i<=h;i++) { char q[101]={0}; scanf("%s",&q); for(j=1;j<=w;j++) { s[count][j]=q[j-1]; } count+...
128
memory_bytes
{'s_id': 's526477518', 'p_id': 'p03712', 'u_id': 'u353919145', 'date': '1509042443', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '555'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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(void)\n{\n\tint h,w;\n\twhile(scanf(\"%d %d\",&h,&w)!=EOF)\n\t{\n...
CDSS_574914
CDSS
#include<stdio.h> int main(void){ double a,c; int d,b; scanf("%lf%d%lf",&a,&b,&c); c=c+0.5; d=(int)c/a; d=d*b; printf("%d",d); }
128
memory_bytes
{'s_id': 's049743214', 'p_id': 'p03059', 'u_id': 'u734857533', 'date': '1566355289', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '137'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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){\ndouble a,c;\n int d,b;\nscanf(\"%lf%d%lf\",&a,&b,&c);\nc=c+0.5;\nd=(int)c/a;\n d=d*b;\n printf(...
CDSS_713553
CDSS
#include <stdio.h> #include <stdlib.h> typedef long long int value_type; /* ソートするキーの型 */ value_type med3(value_type x, value_type y, value_type z) /* x, y, z の中間値を返す */ { if (x < y) if (y < z) return y; else if (z < x) return x; else return z; else if (z < y) return y; else if (x < z) return x; el...
2,560
memory_bytes
{'s_id': 's423038868', 'p_id': 'p03767', 'u_id': 'u838742270', 'date': '1491095747', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '55', 'memory': '2560', 'code_size': '1633'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 value_type; /* ソートするキーの型 */\n\nvalue_type med3(value_type x, value_ty...
CDSS_402314
CDSS
#include<stdio.h> int main(void) { int a[5],i; for(i=0;i<5;i++){ scanf("%d", &a[i]); if(a[i] == 0) break; } printf("%d", i+1); return 0; }
1,712
memory_bytes
{'s_id': 's837341712', 'p_id': 'p02639', 'u_id': 'u418217648', 'date': '1592182981', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1712', '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(void)\n{\n int a[5],i;\n \n for(i=0;i<5;i++){\n scanf(\"%d\", &a[i]);\n if(a[i] == 0)\n br...
CDSS_153373
CDSS
#include <stdlib.h> #include <stdio.h> #include <time.h> int gcd(int a, int b) { return b == 0 ? a : gcd(b, a % b); } int main() { srand(time(0)); int a, b; int k = rand() % 2; scanf("%d %d", &a, &b); if (k) printf("%d\n", gcd(a, b)); else printf("0"); return 0; }
592
memory_bytes
{'s_id': 's671780482', 'p_id': 'p02256', 'u_id': 'u053777771', 'date': '1360254842', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', 'code_size': '275'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n\n#include <stdlib.h>\n#include <stdio.h>\n#include <time.h>\n\nint gcd(int a, int b) {\n\treturn b == 0 ? a : gcd(b, a % b);\n}\n\nin...
CDSS_576154
CDSS
#include<stdio.h> #include<string.h> int max(int a,int b){ if(a > b)return a; return b; } int min(int a,int b){ if(a < b)return a; return b; } int zet(int a){ if(a > 0)return a; return -a; } void swap(int *x,int *y) { int temp = *x; *x = *y; *y = temp; } int partition(int array[],int left,int right) {...
128
memory_bytes
{'s_id': 's521785468', 'p_id': 'p03060', 'u_id': 'u008829811', 'date': '1556413850', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '1056'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 max(int a,int b){\n if(a > b)return a;\n return b;\n}\nint min(int a,int b){\n if(a < b)...
CDSS_369983
CDSS
#include <stdio.h> #include <string.h> #include <stdlib.h> void shuffle(int h, char *s0) { int length; length = strlen(s0); char temp[length-h+1],s1[length+1]; strcpy(temp,s0+h); strncpy(s1, s0, h); s1[h]='\0'; sprintf(s0, "%s%s", temp, s1); } int main() { int i,h; char s0[201]; while(1) { ...
2,040
memory_bytes
{'s_id': 's860480364', 'p_id': 'p02420', 'u_id': 'u250813039', 'date': '1532134289', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2040', 'code_size': '536'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 \n \nvoid shuffle(int h, char *s0) {\n int length;\n length = strlen(...
CDSS_111925
CDSS
#include <stdio.h> int main(void) { int k, c, sum; int i; while (scanf("%d", &k), k != 0){ sum = 0; for (i = 1; i <= k * (k - 1) / 2; i++){ scanf("%d", &c); sum += c; } printf("%d\n", sum / (k - 1)); } return (0); }
600
memory_bytes
{'s_id': 's989633586', 'p_id': 'p00613', 'u_id': 'u192770095', 'date': '1459408177', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '600', 'code_size': '245'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 k, c, sum;\n\tint i;\n\t\n\twhile (scanf(\"%d\", &k), k != 0){\n\t\tsum = 0;\n\t\t\n\t\...
CDSS_280784
CDSS
#include <stdio.h> int main(void) { int a,b,c; scanf("%d%d%d", &a,&b,&c); if (a<b && b<c) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
2,040
memory_bytes
{'s_id': 's033339061', 'p_id': 'p02392', 'u_id': 'u744537426', 'date': '1557545691', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2040', 'code_size': '190'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n \nint main(void)\n{\n int a,b,c;\n scanf(\"%d%d%d\", &a,&b,&c);\n if (a<b && b<c) {\n printf(\"Ye...
CDSS_376045
CDSS
#include <stdio.h> #include <string.h> #include <stdlib.h> int main(){ int a; scanf("%d", &a); if (a == 1){ printf("0\n"); } if (a == 0){ printf("1\n"); } }
1,616
memory_bytes
{'s_id': 's016382491', 'p_id': 'p02552', 'u_id': 'u043132744', 'date': '1600024564', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1616', 'code_size': '195'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n\nint main(){\n int a;\n scanf(\"%d\", &a);\n if (a == 1){\n ...
CDSS_186163
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdbool.h> typedef struct _node { int x; struct _node *prev; struct _node *next; } Node; typedef struct { Node *head; } List; Node *alloc() { return malloc(sizeof(Node)); } void set(Node *ptr, int x, Node *prev, Node *next) { ...
32,956
memory_bytes
{'s_id': 's617180351', 'p_id': 'p02265', 'u_id': 'u194274940', 'date': '1586375015', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '350', 'memory': '32956', 'code_size': '2956'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\ntypedef struct _node {\n int x;\n struct _...
CDSS_496773
CDSS
#include<stdio.h> int main() { int n,m; scanf("%d %d",&n,&m); if ((n<m)||(m==n)) printf("Yes\n"); else printf("No\n"); return 0; }
128
memory_bytes
{'s_id': 's428692874', 'p_id': 'p02789', 'u_id': 'u863370423', 'date': '1581120543', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '167'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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,m;\n scanf(\"%d %d\",&n,&m);\n if ((n<m)||(m==n))\n printf(\"Yes\\n\");\n ...
CDSS_130084
CDSS
#include<stdio.h> #define max 44 int fibo(int); int F[max]; int main(){ int a; scanf("%d",&a); printf("%d\n",fibo(a)); return 0; } int fibo(int n){ int i; F[0] = 1; F[1] = 1; for(i=2;i<=n;i++){ F[i] = F[i-2] + F[i-1]; } return F[n]; }
596
memory_bytes
{'s_id': 's257842996', 'p_id': 'p02233', 'u_id': 'u278177648', 'date': '1499218192', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '270'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 44\n\nint fibo(int);\nint F[max];\n\nint main(){\n\n int a;\n\n scanf(\"%d\",&a);\n\n printf(\"%d\\n...
CDSS_258079
CDSS
#include<stdio.h> int main(){ int a, b; scanf("%d %d", &a, &b); printf("%d %d\n", a*b, 2*a+2*b); return 0; }
2,068
memory_bytes
{'s_id': 's949163606', 'p_id': 'p02389', 'u_id': 'u978799212', 'date': '1568962397', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2068', 'code_size': '118'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n\tint a, b;\n\t\n\tscanf(\"%d %d\", &a, &b);\n\tprintf(\"%d %d\\n\", a*b, 2*a+2*b);\n\t\n\treturn 0;...
CDSS_709388
CDSS
#include <stdio.h> int main() { char a[3][11]; int n[3]; scanf("%s%s%s", a[0], a[1], a[2]); for (int i = 0; i < 3; i++) { for (int j = 0; a[i][j] != '\0'; j++) { n[i] = j; } } if (a[0][n[0]] == a[1][0] && a[1][n[1]] == a[2][0]) { printf("YES"); } else { printf("NO"); } return 0; }
128
memory_bytes
{'s_id': 's876538038', 'p_id': 'p03729', 'u_id': 'u857484987', 'date': '1493515055', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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>\nint main() {\n\tchar a[3][11];\n\tint n[3];\n\tscanf(\"%s%s%s\", a[0], a[1], a[2]);\n\n\tfor (int i = 0; i < 3; i+...
CDSS_548803
CDSS
#include <stdio.h> int main(void){ int N; int max[2]; scanf("%d",&N); int A[N]; for(int i=0;i<N;i++){ scanf("%d",&A[i]); } max[0] = 1; max[1] = 1; for(int i=0;i<N;i++){ if(A[i]>=max[0]){ max[1] = max[0]; max[0] = A[i]; }else if(A[i]>=ma...
2,304
memory_bytes
{'s_id': 's398359908', 'p_id': 'p02971', 'u_id': 'u651802048', 'date': '1563671806', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '39', 'memory': '2304', '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>\nint main(void){\n int N;\n int max[2];\n scanf(\"%d\",&N);\n int A[N];\n for(int i=0;i<N;i++){\n ...
CDSS_91295
CDSS
#include<stdio.h> #include<stdlib.h> #include<string.h> #include<math.h> #define FOR(n) for(int i=0;i<n;i++) #define FORJ(n) for(int j=0;j<n;j++) #define PRN(n) printf("%d\n",n) #define PRF(n) printf("%lf\n",n) #define PRL(n) printf("%lld\n",n) #define PRS(s) printf("%s\n",s) #define PRC(c) printf("%c",c) #define mod 1...
2,104
memory_bytes
{'s_id': 's290484179', 'p_id': 'p00253', 'u_id': 'u029152603', 'date': '1567762272', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '1315'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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#define FOR(n) for(int i=0;i<n;i++)\n#define FORJ(n) for(...
CDSS_431436
CDSS
#include<stdio.h> int main() { int s,w; while(scanf("%d %d",&s,&w)!=EOF) { if(w>=s) { printf("unsafe\n"); } else printf("safe\n"); } return 0; }
1,664
memory_bytes
{'s_id': 's364447751', 'p_id': 'p02699', 'u_id': 'u069472419', 'date': '1587949460', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '1664', 'code_size': '221'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 s,w;\n while(scanf(\"%d %d\",&s,&w)!=EOF)\n {\n if(w>=s)\n {\n ...
CDSS_667530
CDSS
int main(void) { int N, C[499], S[499], F[499], ans[499], i, j; scanf("%d", &N); for (i = 0; i < N - 1; i++) { if (i != N - 1) scanf("%d %d %d", &C[i], &S[i], &F[i]); ans[i] = S[i] + C[i]; } for (i = 0; i < N - 2; i++) { for (j = i + 1; j < N - 1; j++) { if (ans[i] >= S[j]) { if (ans[i] % F[j] == 0) a...
128
memory_bytes
{'s_id': 's654158497', 'p_id': 'p03475', 'u_id': 'u189521276', 'date': '1587846936', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '128', 'code_size': '515'}
[ { "content": "Your task is to predict the 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(void) {\n\tint N, C[499], S[499], F[499], ans[499], i, j;\n\tscanf(\"%d\", &N);\n\tfor (i = 0; i < N - 1; i++) {\n\t\tif (i !...
CDSS_448046
CDSS
#include<stdio.h> int main() { int num; scanf("%d",&num); if(((num / 100) == 7) || (((num % 100) / 10) == 7) || ((num % 10) == 7)){ printf("Yes\n"); } else{ printf("No\n"); } return 0; }
1,624
memory_bytes
{'s_id': 's840648675', 'p_id': 'p02711', 'u_id': 'u723188974', 'date': '1587947238', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '1624', 'code_size': '201'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 num;\n\tscanf(\"%d\",&num);\n\tif(((num / 100) == 7) || (((num % 100) / 10) == 7) || ((num % 1...
CDSS_678006
CDSS
#include<stdio.h> #include<math.h> int main(void){ int n, m; int ans; scanf("%d %d", &n, &m); ans = (1900 * m + 100 * (n-m)) / (1 /pow(2,m)); printf("%d\n", ans); return 0; }
128
memory_bytes
{'s_id': 's804177357', 'p_id': 'p03551', 'u_id': 'u543284218', 'date': '1510899514', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '187'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<math.h>\n\nint main(void){\n int n, m;\n int ans;\n scanf(\"%d %d\", &n, &m);\n ans = (1900 * m + 100 ...
CDSS_203191
CDSS
#include <stdio.h> #define INFTY 1000000000 void merge(int *,int ,int ,int); void mergeSort(int *,int,int); int S[500000],L[500000],R[500000]; int count; int main(){ int n,i; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&S[i]); } mergeSort(S,0,n); for(i=0;i<n;i++){ printf("%d",S[i]); i...
5,488
memory_bytes
{'s_id': 's595302279', 'p_id': 'p02272', 'u_id': 'u680829537', 'date': '1496199712', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '160', 'memory': '5488', 'code_size': '1050'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 INFTY 1000000000\n\nvoid merge(int *,int ,int ,int);\nvoid mergeSort(int *,int,int);\n\nint S[500000],L[...
CDSS_603099
CDSS
#include <stdio.h> int hap[100001][3]; int dp[100001][3]; int max1(int a, int b) { if (a > b) return a; else return b; } int main(void) { int N,i; scanf("%d",&N); for(i=0;i<N;i++){ scanf("%d%d%d",&hap[i][0],&hap[i][1],&hap[i][2]); dp[i][0]=dp[i][1]=dp[i][2]=0; } for(i=1;i<=N;i++){ ...
2,560
memory_bytes
{'s_id': 's161399614', 'p_id': 'p03162', 'u_id': 'u656797515', 'date': '1569498894', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '26', 'memory': '2560', 'code_size': '650'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 hap[100001][3];\nint dp[100001][3];\n\nint max1(int a, int b) {\n if (a > b)\n return a;\n else...
CDSS_722043
CDSS
/* cat <<EOF >mistaken-paste */ #pragma GCC diagnostic ignored "-Wincompatible-pointer-types" #define _USE_MATH_DEFINES #include <stdio.h> #include <stdint.h> #include <stdlib.h> #include <string.h> #include <stdbool.h> #include <math.h> #include <time.h> #define BIG 2000000007 #define VERYBIG 200000000000007LL #de...
16,432
memory_bytes
{'s_id': 's267006126', 'p_id': 'p03819', 'u_id': 'u238041222', 'date': '1527727142', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '312', 'memory': '16432', 'code_size': '7012'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n/*\ncat <<EOF >mistaken-paste\n*/\n\n#pragma GCC diagnostic ignored \"-Wincompatible-pointer-types\"\n#define _USE_MATH_DEFINES\n\n#in...
CDSS_475730
CDSS
#include<stdio.h> #include<math.h> #include<stdlib.h> #include<string.h> #define max(x,y)(x>y?x:y) #define min(x,y)(x>y?y:x) #define MOD (int)1e9+7 int dx4[]={1,0,-1,0}; int dy4[]={0,-1,0,1}; typedef long long int ll; typedef unsigned long long int ull; ll gcd(ll x,ll y){if(!y)return x;return gcd(y,x%y);} ll lcm(ll x,l...
128
memory_bytes
{'s_id': 's130031435', 'p_id': 'p02742', 'u_id': 'u679951803', 'date': '1584234571', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '917'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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<stdlib.h>\n#include<string.h>\n#define max(x,y)(x>y?x:y)\n#define min(x,y)(x>y?y:x)\n#de...
CDSS_662012
CDSS
#include<stdio.h> #include <math.h> int main() { int a,b,c,d; scanf("%d %d",&a,&b); if(a*b %2 == 0){ printf("Even\n"); }else{ printf("Odd\n"); } return 0; }
128
memory_bytes
{'s_id': 's064439281', 'p_id': 'p03455', 'u_id': 'u246809151', 'date': '1580745779', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '165'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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{\nint a,b,c,d;\nscanf(\"%d %d\",&a,&b);\nif(a*b %2 == 0){\n printf(\"Even\\n\");\n...
CDSS_514766
CDSS
#include <stdio.h> int main(void){ int r = 0; scanf("%d",&r); printf("%d",r*r); return 0; }
128
memory_bytes
{'s_id': 's590783623', 'p_id': 'p02859', 'u_id': 'u302000346', 'date': '1573956131', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '103'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n int r = 0;\n scanf(\"%d\",&r);\n \n printf(\"%d\",r*r);\n return 0;\n}\nPredict its memor...
CDSS_284771
CDSS
#include<stdio.h> int main(void){ int a,b,c,n; scanf("%d %d %d",&a,&b,&c); while(a>b || a>c || b>c){ if(a>b){ n=a; a=b; b=n; }else if(a>c){ n=a; a=c; c=n; }else if(b>c){ n=b; b=c; c=n; } } printf("%d %d %d\n",a,b,c); return 0; }
596
memory_bytes
{'s_id': 's708489047', 'p_id': 'p02393', 'u_id': 'u732613014', 'date': '1488867174', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', '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>\nint main(void){\n\tint a,b,c,n;\n\tscanf(\"%d %d %d\",&a,&b,&c);\n\twhile(a>b || a>c || b>c){\n\t\tif(a>b){\n\t\t\t...
CDSS_681575
CDSS
#include <stdio.h> int main(void) { int a,b,c; scanf("%d%d%d",&a,&b,&c); if(a == b) {printf("%d\n",c);} if(a == c) {printf("%d\n",b);} if(b == c) {printf("%d\n",a);} return 0; }
128
memory_bytes
{'s_id': 's748967399', 'p_id': 'p03573', 'u_id': 'u150386598', 'date': '1549987520', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '191'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n\tint a,b,c;\n\tscanf(\"%d%d%d\",&a,&b,&c);\n\tif(a == b)\n\t\t{printf(\"%d\\n\",c);}\n\tif(a...
CDSS_616554
CDSS
#include<stdio.h> int main(){ int n; scanf("%d",&n); if(n%111==0) printf("%d\n",n); else printf("%d\n",111*(1+n/111)); return 0; }
128
memory_bytes
{'s_id': 's812559405', 'p_id': 'p03243', 'u_id': 'u917851778', 'date': '1590592564', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '149'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 if(n%111==0)\n printf(\"%d\\n\",n);\n else\n printf(\"%d\\n\",...
CDSS_671201
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> int main(int argc, char* argv[]){ char buf[128]={0}; int s[3]={0}; int ans = 0; memset(buf, 0, sizeof(buf)); if(fgets(buf, sizeof(buf)-1, stdin)==NULL){ return 1; } for(int i=0; i<3; i++...
128
memory_bytes
{'s_id': 's657087670', 'p_id': 'p03493', 'u_id': 'u606600497', 'date': '1591418174', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '478'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\nint main(int argc, char* argv[]){\n char buf[128]={0};\n ...
CDSS_220222
CDSS
#include <stdio.h> #define MAX 10000 #define NIL -1 struct Node {int p, l, r;}; struct Node T[MAX]; int n; void preParse(int u) { if(u == NIL) return; printf(" %d",u); preParse(T[u].l); preParse(T[u].r); } void inParse(int u) { if(u == NIL) return; inParse(T[u].l); printf(" %d",u); inParse(T[u].r); ...
2,104
memory_bytes
{'s_id': 's963036102', 'p_id': 'p02281', 'u_id': 'u266663425', 'date': '1577081644', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '935'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\n#define MAX 10000\n#define NIL -1\n\nstruct Node {int p, l, r;};\nstruct Node T[MAX];\nint n;\n\nvoid preParse(i...
CDSS_403345
CDSS
#include<stdio.h> int main() { int x,y; scanf("%d %d",&x,&y); for (int i=0;i<=x;i++) { if (i*2+(x-i)*4==y) { printf("Yes\n"); break; } if (i==x) { printf("No\n"); } } return 0; }
1,656
memory_bytes
{'s_id': 's496161290', 'p_id': 'p02640', 'u_id': 'u686878489', 'date': '1592183710', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1656', '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>\nint main() {\n int x,y;\n scanf(\"%d %d\",&x,&y);\n \n for (int i=0;i<=x;i++) {\n \n if (i*2+(x-i)*4==y) ...
CDSS_54841
CDSS
#include<stdio.h> #include<ctype.h> int main() { int n; double x1, y1, x2, y2, x3, y3, x4, y4; scanf("%d", &n); while (n--) { scanf("%lf%lf%lf%lf%lf%lf%lf%lf", &x1, &y1, &x2, &y2, &x3, &y3, &x4, &y4); puts((y1-y2)*(x3-x4)==(y3-y4)*(x1-x2) ? "YES" : "NO"); } return 0; }
0
memory_bytes
{'s_id': 's789641947', 'p_id': 'p00021', 'u_id': 'u399107199', 'date': '1286742289', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '279'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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<ctype.h>\nint main()\n{\n\tint n;\n\tdouble x1, y1, x2, y2, x3, y3, x4, y4;\n\tscanf(\"%d\", &n);\n\twhile...
CDSS_187648
CDSS
#include <stdio.h> int S[100000]; int T[100000]; int main(){ int n,q,i,j,key,count=0; 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++){ key = T[i]; for(j=0;j<n;j++){ if(S[j] == key){ count++;...
644
memory_bytes
{'s_id': 's645486652', 'p_id': 'p02267', 'u_id': 'u753809902', 'date': '1461810480', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '644', '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\n\nint S[100000];\nint T[100000];\n\n\nint main(){\n\n int n,q,i,j,key,count=0;\n\n\n scanf(\"%d\",&n);\n\n fo...
CDSS_313262
CDSS
#include<stdio.h> int main(void){ double r,S,L; scanf("%lf",&r); S = 3.141592653589 * r * r; L = 2* 3.141592653589 *r; printf("%.6lf %.6lf\n",S,L); return 0; }
652
memory_bytes
{'s_id': 's166639919', 'p_id': 'p02400', 'u_id': 'u762527436', 'date': '1442249580', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '652', '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\tdouble r,S,L;\n\tscanf(\"%lf\",&r);\n\tS = 3.141592653589 * r * r;\n\tL = 2* 3.141592653589 *r...
CDSS_603205
CDSS
#include<stdio.h> #include<stdlib.h> #define MAX(a,b) ((a)>(b)?(a):(b)) void run(void){ int n; scanf("%d",&n); int dp[6]={0}; int now=0; while(n--){ int next=now^3; int i,j; for(i=0;i<3;i++){ int a; scanf("%d",&a); for(j=0;j<3;j++){ if(i==j) continue; dp[next+i]=MAX(dp[next+i...
128
memory_bytes
{'s_id': 's157110841', 'p_id': 'p03162', 'u_id': 'u425248533', 'date': '1546805494', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '32', 'memory': '128', 'code_size': '466'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n\n#define MAX(a,b) ((a)>(b)?(a):(b))\n\nvoid run(void){\n int n;\n scanf(\"%d\",&n);\n int d...
CDSS_604206
CDSS
#include <stdio.h> #define DENOM 1000000007LL int main(void) { int i, j, H, W; char map[1010][1010]; long long dp[1010][1010]; scanf("%d%d", &H, &W); for (i=1;i<=H;i++) scanf("%s", &map[i][1]); for (i=1;i<=H;i++) for (j=1;j<=W;j++) { if (map[i][j] == '#') dp[i][j] = 0; else if...
9,088
memory_bytes
{'s_id': 's453341524', 'p_id': 'p03167', 'u_id': 'u677149117', 'date': '1550503598', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '11', 'memory': '9088', 'code_size': '587'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 DENOM 1000000007LL\n\nint main(void) {\n int i, j, H, W;\n char map[1010][1010];\n long long dp...
CDSS_400243
CDSS
#include <stdio.h> #include <stdlib.h> int main(void) { long int n; scanf("%ld", &n); --n; int i; long int sum = 0, p = 1, offset; for (i = 0;; ++i) { if (sum > n) { offset = n - (sum - p); break; } p *= 26; sum += p; } int j; char* ans = malloc(i * sizeof(char));...
2,000
memory_bytes
{'s_id': 's345712149', 'p_id': 'p02629', 'u_id': 'u809594616', 'date': '1593050807', 'language': 'C', 'original_language': 'C (Clang 10.0.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '2000', 'code_size': '484'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 long int n;\n scanf(\"%ld\", &n);\n --n;\n int i;\n long int sum =...
CDSS_107686
CDSS
#include<stdio.h> void bable(int *); int main(){ int sides[3]; int tri=0,acute=0,right=0,obtuse=0; while(scanf("%d%d%d",&sides[0],&sides[1],&sides[2])!=EOF){ bable(sides); if( sides[0]<(sides[1]+sides[2]) && sides[2]>(sides[0]-sides[1]) ){ tri++; if(sides[0]*sides[0] == sides[1]*sides[1] + s...
2,036
memory_bytes
{'s_id': 's980986270', 'p_id': 'p00505', 'u_id': 'u336705996', 'date': '1524067068', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2036', 'code_size': '808'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 bable(int *);\nint main(){\n int sides[3];\n int tri=0,acute=0,right=0,obtuse=0;\n\n while(scanf(\"%d%d%d\"...
CDSS_284510
CDSS
#include <stdio.h> main(){ int a,b,c,x,y,z; scanf("%d%d%d",&a,&b,&c); if(a > b){ x = a; a = b; b = x; } if(b > c){ y = b; b = c; c = y; } if(a > b){ z = a; a = b; b = z; } printf("%d %d %d\n",a,b,c); return 0; }
596
memory_bytes
{'s_id': 's577534288', 'p_id': 'p02393', 'u_id': 'u660238915', 'date': '1480827977', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '296'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nmain(){\n \n int a,b,c,x,y,z;\n \n scanf(\"%d%d%d\",&a,&b,&c);\n \n if(a > b){ \n x = a;\n a = b;\n...
CDSS_744484
CDSS
#include<stdio.h> int main(){ int f = 0, s = 0; int buf; for(int i=0; i<3; i++){ scanf("%d", &buf); if(buf == 5){ f++; } if(buf == 7){ s++; } } if(f == 2 && s == 1){ printf("YES"); }else{ printf("NO"); } ret...
128
memory_bytes
{'s_id': 's926082235', 'p_id': 'p04043', 'u_id': 'u071680334', 'date': '1566761273', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '328'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 f = 0, s = 0;\n int buf;\n for(int i=0; i<3; i++){\n scanf(\"%d\", &buf);\n ...
CDSS_668188
CDSS
#include <stdio.h> int main() { int a, b, c, d, l, r; scanf("%d%d%d%d", &a, &b, &c, &d); l = a + b; r = c + d; if (l > r){ printf("Left"); }else if (l == r){ printf("Balanced"); }else{ printf("Right"); } }
128
memory_bytes
{'s_id': 's457746078', 'p_id': 'p03477', 'u_id': 'u695857481', 'date': '1544555104', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '243'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main()\n{\n\tint a, b, c, d, l, r;\n \tscanf(\"%d%d%d%d\", &a, &b, &c, &d);\n \tl = a + b; r = c + d;\n \...
CDSS_202172
CDSS
#include <stdlib.h> #define INFINITY 1000000001 void merge(int *, int, int, int); void mergeSort(int *, int, int); int nn=0; main(){ int n, *arryA, i; scanf("%d", &n); arryA = (int *)malloc(sizeof(int) * n); for(i=0; i<n; i++) scanf("%d", arryA+i); mergeSort(arryA, 0, n); for(i=0; i<n-1; i++) printf("%...
4,484
memory_bytes
{'s_id': 's227246992', 'p_id': 'p02272', 'u_id': 'u290461361', 'date': '1431657882', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '180', 'memory': '4484', 'code_size': '1470'}
[ { "content": "Your task is to predict the memory footprint (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#define INFINITY 1000000001\n\nvoid merge(int *, int, int, int);\nvoid mergeSort(int *, int, int);\n\nint nn=0;\n...
CDSS_422820
CDSS
#include<stdio.h> int main(void){ char s[4]; scanf("%s", s); if (s[1] == 'R') { printf("ABC"); } else printf("ARC"); return 0; }
2,168
memory_bytes
{'s_id': 's352939053', 'p_id': 'p02687', 'u_id': 'u189521276', 'date': '1588554983', 'language': 'C', 'original_language': 'C (Clang 10.0.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '2168', 'code_size': '139'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void){\n\tchar s[4];\n\tscanf(\"%s\", s);\n\tif (s[1] == 'R') {\n\t\tprintf(\"ABC\");\n\t}\n\telse print...
CDSS_25282
CDSS
#include<stdio.h> int main() { int i, j, tmp; int data[10]; for(i = 0; i < 10; i++){ scanf("%d",&data[i]); } for(i = 0; i < 9; i++) { for(j = 0; j < 9 - i; j++) { if(data[j] < data[j+1]) { tmp = data[j]; data[j] = data[j+1]; ...
600
memory_bytes
{'s_id': 's698834815', 'p_id': 'p00001', 'u_id': 'u146816547', 'date': '1382798166', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '453'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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, j, tmp;\n\tint data[10];\n\n for(i = 0; i < 10; i++){\n\t\tscanf(\"%d\",&data[i]);\n\t}...
CDSS_629376
CDSS
#include <stdio.h> #include <string.h> int main(){ int a=0,c=0,f=0,m; char s[11]; scanf("%s",s); m=strlen(s); if(s[0]=='A')f++; for(int i=2;i<m-1;i++)if(s[i]=='C')c++; if(c==1)f++; for(int i=1;i<m;i++)if(!('a'<=s[i]&&s[i]<='z'))a++; if(a==1)f++; puts(f==3?"AC":"WA"); return 0; }
128
memory_bytes
{'s_id': 's419500145', 'p_id': 'p03289', 'u_id': 'u855016901', 'date': '1562268224', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '301'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\nint main(){\n int a=0,c=0,f=0,m;\n char s[11];\n scanf(\"%s\",s);\n m=strlen(s);\n if(s[...
CDSS_482142
CDSS
#include<stdio.h> int main(void) { int a[3][3], n, b[100], i, f, x=0, g; for(i=0;i<3;i++) for(f=0;f<3;f++) scanf("%d",&a[i][f]); scanf("%d",&n); for(g=0;g<n;g++) scanf("%d",&b[g]); for(i=0;i<3;i++) for(f=0;f<3;f++) for(g=0;g<n;g++) if(a[i][f]==b[g]) ...
128
memory_bytes
{'s_id': 's353159250', 'p_id': 'p02760', 'u_id': 'u212857313', 'date': '1588537746', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '700'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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[3][3], n, b[100], i, f, x=0, g;\n\n for(i=0;i<3;i++)\n for(f=0;f<3;f++)\n ...
CDSS_620344
CDSS
#include<stdio.h> int main(){ int a,b; scanf("%d%d",&a,&b); if(a%2 !=0 && b%2 !=0) { printf("Yes"); } else { printf("No"); } return 0; }
128
memory_bytes
{'s_id': 's155472721', 'p_id': 'p03260', 'u_id': 'u518959075', 'date': '1536966150', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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(){\n\tint a,b;\n\t\n scanf(\"%d%d\",&a,&b);\n\tif(a%2 !=0 && b%2 !=0)\n {\n\t\tprintf(\"Yes\");\n...
CDSS_517903
CDSS
#include <stdio.h> int main(void) { int a, b, c; scanf("%d %d", &a, &b); if (a <= 9 && b <= 9) { c = a * b; printf("%d", c); } else { c = -1; printf("%d", c); } return 0; }
128
memory_bytes
{'s_id': 's447572004', 'p_id': 'p02879', 'u_id': 'u015063067', 'date': '1572226728', '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>\nint main(void)\n{\n int a, b, c;\n \n scanf(\"%d %d\", &a, &b);\n if (a <= 9 && b <= 9) {\n c = a * b;\n ...
CDSS_73789
CDSS
a,f,z;main(b){for(;~scanf("%d%d",&a,&b),a;f?f=0:puts("NA"))for(z++&&puts("");a<=b;++a)a%4||(a%400&&!(a%100))||printf("%d\n",f=a);}
0
memory_bytes
{'s_id': 's686673054', 'p_id': 'p00093', 'u_id': 'u479246559', 'date': '1321700315', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '130'}
[ { "content": "Your task is to predict the 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,f,z;main(b){for(;~scanf(\"%d%d\",&a,&b),a;f?f=0:puts(\"NA\"))for(z++&&puts(\"\");a<=b;++a)a%4||(a%400&&!(a%100))||printf(\"%d\\n\",f...
CDSS_302234
CDSS
#include<stdio.h> int main() { int x, y, tmp; while (1){ scanf("%d %d", &x, &y); if (x==0 && y==0) break; if (x>y){ tmp = x; x = y; y = tmp; } printf("%d %d\n", x, y); } return 0; }
1,748
memory_bytes
{'s_id': 's307139855', 'p_id': 'p02397', 'u_id': 'u589139267', 'date': '1508918264', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1748', 'code_size': '264'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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, tmp;\n\n while (1){\n scanf(\"%d %d\", &x, &y);\n if (x==0 && y==0)\n ...
CDSS_43396
CDSS
#include<stdio.h> #include<math.h> #define MAX 999999 int Primes[ MAX + 1 ] ; int IsPrime( int n ) { if( n < 2 ) { return 0 ; } else if( n == 2 ) { return 1 ; } else if( n % 2 == 0 ) { return 0 ; } else { int i = 3 ; for( ; i <= sqrt( n ) ; i += 2 ) { if( n % i == 0 ) { return ...
5,760
memory_bytes
{'s_id': 's816060885', 'p_id': 'p00009', 'u_id': 'u302788563', 'date': '1517296892', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '90', 'memory': '5760', 'code_size': '567'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\n\n#define MAX 999999\n\n\nint Primes[ MAX + 1 ] ;\n\n\nint IsPrime( int n )\n{\n\tif( n < 2 )\n...
CDSS_614671
CDSS
#include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <inttypes.h> #include <ctype.h> #include <stdint.h> #include <string.h> #include <wchar.h> #define MIN(a, b) ((a) < (b) ? (a) : (b)) #define MAX(a, b) ((a) > (b) ? (a) : (b)) #define ABS(a) ((a) < 0 ? -(a) : (a)) #define ABSS(a, b) ((a) > (b) ? (a) -...
128
memory_bytes
{'s_id': 's545180917', 'p_id': 'p03238', 'u_id': 'u615782628', 'date': '1538874105', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '801'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdbool.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <inttypes.h>\n#include <ctype.h>\n#include <stdint.h>\n#includ...
CDSS_528749
CDSS
#include <stdio.h> int main() { long long int i,j,a,b,c,s[100000],s1[1000002],k; scanf("%lld",&a); scanf("%lld",&b); scanf("%lld",&c); j=b-c; for(i=0;i<a;i++) { s[i]=0; } for(i=0;i<c;i++) {scanf("%lld",&s1[i]); s[s1[i]-1]+=1; } for(i=0;i<a;i++) {...
3,712
memory_bytes
{'s_id': 's725987993', 'p_id': 'p02911', 'u_id': 'u353919145', 'date': '1587265794', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '14', 'memory': '3712', '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>\nint main()\n{\n\tlong long int i,j,a,b,c,s[100000],s1[1000002],k;\n\tscanf(\"%lld\",&a);\n scanf(\"%lld\",&b);...
CDSS_41613
CDSS
#include <stdio.h> int main(void) { int a, b, c, d; int ans; int n; while (scanf("%d", &n) == 1){ ans = 0; for (a = 0; a < 10; a++){ for (b = 0; b < 10; b++){ for (c = 0; c < 10; c++){ for (d = 0; d < 10; d++){ if ( a + b + c + d == n){ ans++; } } } } } printf("...
592
memory_bytes
{'s_id': 's776797758', 'p_id': 'p00008', 'u_id': 'u580977620', 'date': '1364284971', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', 'code_size': '359'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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, d;\n\tint ans;\n\tint n;\n\t\n\twhile (scanf(\"%d\", &n) == 1){\n\t\tans = 0;\...
CDSS_503444
CDSS
#include<stdio.h> #include<string.h> int main() { char S[100]; char T[100]; scanf("%s %s",&S,&T); printf("%s%s\n",T,S); return 0; }
1,728
memory_bytes
{'s_id': 's288296063', 'p_id': 'p02817', 'u_id': 'u816631826', 'date': '1595321512', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '8', 'memory': '1728', '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#include<string.h>\nint main()\n{\n char S[100];\n char T[100];\n \n scanf(\"%s %s\",&S,&T);\n \n \n \...
CDSS_106629
CDSS
// Aizu Vol-5 0570: Zig-Zag Numbers // 2017.9.5 bal4u@uu #include <stdio.h> #include <string.h> #define UP 0 #define DOWN 1 #define M 10000 char a[503], b[503]; int la, lb; int m; int dp[2][2][2][10][502]; // prev, org?, up/down, digit, sum %m int zigzag(char *c, int len) { int i, j, k, s, t, x, k1, k2; memset...
1,896
memory_bytes
{'s_id': 's884100524', 'p_id': 'p00493', 'u_id': 'u847467233', 'date': '1504568277', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '160', 'memory': '1896', 'code_size': '2064'}
[ { "content": "Your task is to predict the memory 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-5 0570: Zig-Zag Numbers\n// 2017.9.5 bal4u@uu\n\n#include <stdio.h>\n#include <string.h>\n\n#define UP 0\n#define DOWN 1\n...
CDSS_155309
CDSS
#include<stdio.h> #include<math.h> int main() { int n,i,a[10000],count=0,j,limit; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&a[i]); } for(i=0;i<n;i++){ if(a[i]>=2){ limit=(int)sqrt((double)a[i]); for(j=limit;j>1;j--){ if(a[i]%j == 0) break; } if(j==1)count++; } } printf...
632
memory_bytes
{'s_id': 's401992216', 'p_id': 'p02257', 'u_id': 'u751252207', 'date': '1460037500', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '170', 'memory': '632', 'code_size': '349'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<math.h>\nint main()\n{\n int n,i,a[10000],count=0,j,limit;\n scanf(\"%d\",&n);\n for(i=0;i<n;i++){\n ...
CDSS_173662
CDSS
#include <stdio.h> typedef struct{ char c; int n; }back; int main() { back card1[36],card2[36],tmp[36],temp; char c; int minj,i,j,a,N; scanf("%d",&N); for(i=0;i<N;i++){ scanf(" %c%d",&card1[i].c,&card1[i].n); scanf("%c",&c); } for(j=0;j<N;j++){ card2[j]=card1[j]; } a=0; ...
608
memory_bytes
{'s_id': 's668947819', 'p_id': 'p02261', 'u_id': 'u222256110', 'date': '1499308815', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '608', 'code_size': '1360'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 char c;\n int n;\n}back;\n \nint main()\n{\n back card1[36],card2[36],tmp[36],temp;\n cha...