identifier
string
space
string
input
string
target
float64
metric_type
string
metadata
string
messages
list
CDSS_23330
CDSS
#include<stdio.h> int main(){ int buf[10],i,j,n; for(i=0;i<10;i++){ scanf("%d",&buf[i]); } for(i=0;i<9;i++){ for(j=0;j<9-i;j++){ if(buf[j]<buf[j+1]){ n=buf[j]; buf[j]=buf[j+1]; buf[j+1]=n; } } } printf("%d\n",buf[0]); printf("%d\n",buf[1]); printf("%d\n",buf[2]); return 0; }
600
memory_bytes
{'s_id': 's339537841', 'p_id': 'p00001', 'u_id': 'u911435714', 'date': '1468459124', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '285'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n\nint buf[10],i,j,n;\n\nfor(i=0;i<10;i++){\nscanf(\"%d\",&buf[i]);\n}\n\nfor(i=0;i<9;i++){\nfor(j=...
CDSS_264268
CDSS
#include <stdio.h> int main() { int S; scanf("%d", &S); printf("%d:%d:%d\n", S/3600, (S%3600)/60, S%60); return 0; }
2,108
memory_bytes
{'s_id': 's667004596', 'p_id': 'p02390', 'u_id': 'u513898080', 'date': '1586613981', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '137'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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\n scanf(\"%d\", &S);\n\n printf(\"%d:%d:%d\\n\", S/3600, (S%3600)/60, S%60);...
CDSS_628794
CDSS
#include<stdio.h> int main() { int R; scanf("%d",&R); if(R<1200){ printf("ABC"); } else if(1200<=R && R<2800){ printf("ARC");} else{ printf("AGC"); } return 0; }
128
memory_bytes
{'s_id': 's176279045', 'p_id': 'p03288', 'u_id': 'u089230684', 'date': '1582569632', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '234'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n int R;\n scanf(\"%d\",&R);\n if(R<1200){\n printf(\"ABC\");\n }\n else if(1...
CDSS_303371
CDSS
#include<stdio.h> main(){ int x; int y; while(1){ scanf("%d %d",&x,&y); if(x==0 && y==0)break; if(y<=x){ printf("%d %d\n",y,x); } else if(x<=y){ printf("%d %d\n",x,y); } } return 0; }
600
memory_bytes
{'s_id': 's555508694', 'p_id': 'p02397', 'u_id': 'u082259412', 'date': '1398668663', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '229'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nmain(){\n int x;\n int y;\n while(1){\n scanf(\"%d %d\",&x,&y);\n if(x==0 && y==0)break;\n if(y<=x){\...
CDSS_229792
CDSS
#include <stdio.h> #define Max 2000000 int H,A[Max+1]; void maxHeapfy(int n){ int left,right,largest; left=2*n; right=2*n +1; if(left<=H && A[left]>A[n]) largest = left; else largest = n; if(right<=H && A[right]>A[largest]) largest = right; if(largest != n){ int x =A[n]; A[n] = A[largest];...
3,684
memory_bytes
{'s_id': 's299191202', 'p_id': 'p02288', 'u_id': 'u424947823', 'date': '1547177910', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '60', 'memory': '3684', 'code_size': '571'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#define Max 2000000\n\nint H,A[Max+1];\n\n\nvoid maxHeapfy(int n){\n int left,right,largest;\n\n left=2*n;\n ...
CDSS_356862
CDSS
#include<stdio.h> int main(void) { int r,c,i,j,number[101][101]={0}; scanf("%d %d",&r,&c); for(i=0;i<r;i++) { for(j=0;j<c;j++) { scanf("%d",&number[i][j]); number[i][c]+=number[i][j]; number[r][j]+=number[i][j]; } number[r][c]+=number[i][c]; } for(i=0;i<=r;i++) { for(j=0;j<=c;j++) { p...
2,104
memory_bytes
{'s_id': 's752129993', 'p_id': 'p02413', 'u_id': 'u710374386', 'date': '1531819136', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '422'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void)\n{\n\tint r,c,i,j,number[101][101]={0};\n\n\tscanf(\"%d %d\",&r,&c);\n\n\tfor(i=0;i<r;i++)\n\t{\...
CDSS_238347
CDSS
//ITP1-11-B: Dice 2 //2019.05.22 #include <stdio.h> void throwdice(char, int*); typedef struct dice_ { int d[6]; } dice; int main(void){ int q; int top, south, ans_east; dice dice1; for (int i = 0; i < 6; i++) scanf("%d", &dice1.d[i]); scanf("%d\n", &q); for (int i = 0; i < q; i++) { scanf("%d %...
2,032
memory_bytes
{'s_id': 's625211835', 'p_id': 'p02384', 'u_id': 'u123432807', 'date': '1558487889', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2032', 'code_size': '2264'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n//ITP1-11-B: Dice 2\n//2019.05.22\n\n#include <stdio.h>\n\nvoid throwdice(char, int*);\n\ntypedef struct dice_ {\n int d[6];\n} dic...
CDSS_287407
CDSS
#include<stdio.h> main() { int a, b, c; scanf("%d %d %d", &a, &b, &c); if ( a < b && b < c ) printf("%d %d %d\n", a, b, c); else if ( a < c && c < b ) printf("%d %d %d\n", a, c, b); else if ( b < a && a < c ) printf("%d %d %d\n", b, a, c); else if ( b < c && c < a ...
2,100
memory_bytes
{'s_id': 's346724501', 'p_id': 'p02393', 'u_id': 'u013648252', 'date': '1527557264', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2100', 'code_size': '625'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nmain()\n{\n int a, b, c;\n scanf(\"%d %d %d\", &a, &b, &c);\n if ( a < b && b < c )\n\t printf(\"...
CDSS_595105
CDSS
#include <stdio.h> int main() { int i, j, N, M, K[31], A[31][31]; scanf("%d %d", &N, &M); for (i = 1; i <= N; i++) { scanf("%d", &(K[i])); for (j = 1; j <= K[i]; j++) scanf("%d", &(A[i][j])); } int ans = 0, count[31] = {}; for (i = 1; i <= N; i++) { for (j = 1; j <= K[i]; j++) count[A[i][j]]++; } for...
128
memory_bytes
{'s_id': 's268411343', 'p_id': 'p03126', 'u_id': 'u943800443', 'date': '1589077783', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '419'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main()\n{\n\tint i, j, N, M, K[31], A[31][31];\n\tscanf(\"%d %d\", &N, &M);\n\tfor (i = 1; i <= N; i++) {\...
CDSS_22949
CDSS
#include<stdio.h> int main(){ int m[11],i,j,work; for(i=0;i<10;i++){ scanf("%d",&m[i]); } for(i=0;i<10;i++){ for(j=0;j<10;j++){ if(m[i]>m[j]){ work=m[i]; m[i]=m[j]; m[j]=work; } } } for(i=0;i<3;i++){ printf("%d\n",m[i]); } return 0; }
600
memory_bytes
{'s_id': 's792539226', 'p_id': 'p00001', 'u_id': 'u011621222', 'date': '1457889044', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '248'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\nint m[11],i,j,work;\nfor(i=0;i<10;i++){\n scanf(\"%d\",&m[i]);\n}\nfor(i=0;i<10;i++){\n for(j=0;j<10...
CDSS_696735
CDSS
#include <stdio.h> #include <string.h> #define MAX 200000 int main(void) { long long n, i, a[MAX], left=0, right=0, dif, min; scanf("%lld", &n); for(i=0; i<n; i++) { scanf("%lld", &a[i]); right += a[i]; } left = a[0]; right -= a[0]; min = left>right ? left-right : right-left;...
1,664
memory_bytes
{'s_id': 's234360757', 'p_id': 'p03661', 'u_id': 'u768152935', 'date': '1528428119', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '23', 'memory': '1664', 'code_size': '528'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n#define MAX 200000\nint main(void) {\n long long n, i, a[MAX], left=0, right=0, dif, min...
CDSS_647178
CDSS
#include <stdio.h> #include <stddef.h> #include <stdlib.h> #include <ctype.h> #include <string.h> #include <malloc.h> int n; char *b[300]; int main() { int i,x,y,cnt=0; scanf("%d",&n); for(i=0;i<n;i++){ b[i] = (char*)malloc(310); scanf("%s",b[i]); } if( n==1 ){ printf("1\n"); exit(0); } ...
256
memory_bytes
{'s_id': 's943215794', 'p_id': 'p03364', 'u_id': 'u750383873', 'date': '1524970852', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '45', 'memory': '256', 'code_size': '598'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stddef.h>\n#include <stdlib.h>\n#include <ctype.h>\n#include <string.h>\n#include <malloc.h>\n\nint n;...
CDSS_623936
CDSS
/* kadai5_3 nabe9393 */ #include <stdio.h> int main(void){ int height, width, i, j; //タテとヨコのマスの数を入力 scanf("%d %d", &height, &width); int row[height],column[width]; char square[height][width]; for(i=0;i<height;i++){ for(j=0;j<width;j++){ //文字列の入力 空白文字を飛ばす scanf(" %c",&square[i][j]); ...
128
memory_bytes
{'s_id': 's112889766', 'p_id': 'p03273', 'u_id': 'u184596700', 'date': '1591297863', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '995'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n/* kadai5_3\n nabe9393 */\n \n#include <stdio.h>\n \nint main(void){\n int height, width, i, j;\n //タテとヨコのマスの数を入力\n scanf(\"%d ...
CDSS_180429
CDSS
#include <stdio.h> #include <stdlib.h> void push(int); int pop(void); int stack[1000]; int stack_size = 0; int main(){ int a, b; char s[100]; while(scanf("%s",&s[0]) != EOF){ if(s[0] == '+'){ b = pop(); a = pop(); push(a + b); }else if(s[0] == '-'){ b = pop(); a = pop()...
2,052
memory_bytes
{'s_id': 's536618590', 'p_id': 'p02263', 'u_id': 'u379941870', 'date': '1544864847', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2052', 'code_size': '614'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\nvoid push(int);\nint pop(void);\n\nint stack[1000];\nint stack_size = 0;\n\nint main(){\n...
CDSS_208187
CDSS
#include <stdio.h> #include <stdlib.h> #define N 10000 int main(){ int t,i,j,C[N+1]; unsigned short *A,*B; scanf("%d",&t); A = malloc(sizeof(short)*t+1); B = malloc(sizeof(short)*t+1); for(i=0 ; i<=N ; i++){ C[i]=0; } for(i=1 ; i<=t ; i++){ scanf("%d",&A[i]); C[A[i]]++; } for(i=1 ...
8,456
memory_bytes
{'s_id': 's966505301', 'p_id': 'p02275', 'u_id': 'u867772757', 'date': '1464757280', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '380', 'memory': '8456', 'code_size': '533'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#define N 10000\n\nint main(){\n int t,i,j,C[N+1];\n unsigned short *A,*B;\n\n scanf(\"%...
CDSS_702654
CDSS
#include <stdio.h> int main(void){ int A,B; scanf("%d%d",&A,&B); if(A+B >= 10) printf("error\n"); else printf("%d\n",A+B); return 0; }
128
memory_bytes
{'s_id': 's002757428', 'p_id': 'p03697', 'u_id': 'u812973725', 'date': '1550095492', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '147'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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;\n scanf(\"%d%d\",&A,&B);\n\n if(A+B >= 10) printf(\"error\\n\");\n else printf(...
CDSS_720806
CDSS
#include <stdio.h> int main() { int x; scanf("%d", &x); if(x < 1200){ printf("ABC"); } else { printf("ARC"); } return 0; }
128
memory_bytes
{'s_id': 's325419952', 'p_id': 'p03813', 'u_id': 'u459215900', 'date': '1527811076', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '145'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main() {\n int x;\n scanf(\"%d\", &x);\n\n if(x < 1200){\n printf(\"ABC\");\n } else {\n printf(...
CDSS_84733
CDSS
#include <stdio.h> void strrev(char *in, char *out); int main(void) { int i; int a; char in[100]; char out[100]; scanf("%d", &a); while (a != -1){ i = 0; if(a == 0){ printf("0\n"); } else{ while (a != 0){ in[i] = a % 4 + '0'; a /= 4; i++; } in[i] = '\0'; strrev(i...
0
memory_bytes
{'s_id': 's030786121', 'p_id': 'p00175', 'u_id': 'u032763525', 'date': '1314009160', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '589'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nvoid strrev(char *in, char *out);\n\nint main(void)\n{\n\tint i;\n\tint a;\n\tchar in[100];\n\tchar out[100];\...
CDSS_189447
CDSS
#include <stdio.h> #define N 100000 int main(void){ int i,j,n,m,count=0; int s[N],t[N]; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&s[i]); } scanf("%d",&m); for(j=0;j<m;j++){ scanf("%d",&t[j]); } for(j=0;j<m;j++){ for(i=0;i<n;i++){ if(s[i] == t[j]){ count++; b...
2,104
memory_bytes
{'s_id': 's237825108', 'p_id': 'p02267', 'u_id': 'u498708662', 'date': '1526407573', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '382'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#define N 100000\n \nint main(void){\n \n int i,j,n,m,count=0;\n int s[N],t[N];\n \n scanf(\"%d\",&n);\n \n ...
CDSS_109683
CDSS
#include <stdio.h> int main(void) { int n,m,bib[128] = {0},swh,i,j; scanf("%d%d",&n,&m); for(i = 1;i <= n;i++){scanf("%d",&bib[i]);} for(i = 1;i <= m;i++){ for(j = 1;j < n;j++){ if(bib[j] % i > bib[j+1] % i){ swh = bib[j]; bib[j] = bib[j+1]; bib[j+1] = swh; } } } for(i = 1;i <= n;i++){ pr...
596
memory_bytes
{'s_id': 's640223217', 'p_id': 'p00543', 'u_id': 'u444407884', 'date': '1477384844', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '356'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\n\tint n,m,bib[128] = {0},swh,i,j;\n\tscanf(\"%d%d\",&n,&m);\n\tfor(i = 1;i <= n;i++){scanf(\...
CDSS_133862
CDSS
#include<stdio.h> #include<string.h> char s1[1000]; char s2[2000]; int lcs(int l1,int l2){ int i,j,x,answer[1000][1000]; x=0; for(i=0;i<l1;i++)answer[i][0]=0; for(i=0;i<l2;i++)answer[0][i]=0; for(i=0;i<l1;i++){ for(j=0;j<l2;j++){ if(s1[i]==s2[j] && s1[i]!=' '){ if(i==0 || j==0){answer[i][j]=1;} ...
5,600
memory_bytes
{'s_id': 's626811028', 'p_id': 'p02235', 'u_id': 'u041012691', 'date': '1549284235', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '50', 'memory': '5600', 'code_size': '970'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\n\nchar s1[1000];\nchar s2[2000];\n\nint lcs(int l1,int l2){\n int i,j,x,answer[1000][1000];\...
CDSS_624994
CDSS
#include<stdio.h> int main() { int A, B, sy; scanf("%d%d", &A, &B); sy=(A-1)*(B-1); printf("%d", sy); return 0; }
1,724
memory_bytes
{'s_id': 's542561987', 'p_id': 'p03280', 'u_id': 'u018679195', 'date': '1596055093', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '7', 'memory': '1724', 'code_size': '118'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n\tint A, B, sy;\n\tscanf(\"%d%d\", &A, &B);\n\tsy=(A-1)*(B-1);\n\tprintf(\"%d\", sy);\n\treturn 0;...
CDSS_136582
CDSS
#include <stdio.h> int n,G[101][101]; int d[101]; int T = 0; int F[101] = {0}; int k = 0; void visit(int u) { int i,j,v; T++; d[u] = T; for(v=0;v<n;v++) { if(G[u][v] == 1 && d[v] == 0 ) { visit(v); } } T++; F[u] = T; } int main() { int i,j,k,l,u,a,t; for(i=0;i<n;i++) d[i] = 0; ...
636
memory_bytes
{'s_id': 's848452742', 'p_id': 'p02238', 'u_id': 'u149941997', 'date': '1468417477', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '636', 'code_size': '754'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint n,G[101][101];\nint d[101];\nint T = 0;\nint F[101] = {0};\nint k = 0;\n\nvoid visit(int u) {\n int i,j,v;\...
CDSS_70256
CDSS
#include <stdio.h> int main(void){ int h,m,s; while(scanf("%d%d%d",&h ,&m ,&s)!=EOF){ if(h==-1&&m==-1&&s==-1) break; int tl = (3600*2)-(3600*h+60*m+s) ,three = tl*3; printf("%02d:%02d:%02d\n" ,tl/60/60 ,tl/60%60 ,tl%60); printf("%02d:%02d:%02d\n" ,three/60/60 ,three/60%60 ,...
612
memory_bytes
{'s_id': 's668852576', 'p_id': 'p00074', 'u_id': 'u881100444', 'date': '1378130962', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '612', 'code_size': '352'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n int h,m,s;\n \n while(scanf(\"%d%d%d\",&h ,&m ,&s)!=EOF){\n if(h==-1&&m==-1&...
CDSS_370867
CDSS
#include<stdio.h> #include<string.h> int main() { int i,leng,m,h; char ch[250],a[250]; while(1) { scanf("%s",ch); if(ch[0]=='-') break; leng=strlen(ch); scanf("%d",&m); while(m--){ scanf("%d",&h); for(i=0;i<leng;i++){ a[i]=ch[i]; } for(i=h;i<leng;i++){ ch[i-h]=ch...
2,056
memory_bytes
{'s_id': 's021861434', 'p_id': 'p02420', 'u_id': 'u893058769', 'date': '1532597203', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2056', 'code_size': '433'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\nint main()\n{\n int i,leng,m,h;\n char ch[250],a[250];\n\n while(1)\n { \n scanf(\"%s\...
CDSS_317471
CDSS
#include <stdio.h> #include <math.h> #define PI M_PI int main(void) { double r, square, circum; scanf("%lf", &r); square = r * r * PI; circum = r * PI * 2; printf("%lf %lf\n", square, circum); return 0; }
2,064
memory_bytes
{'s_id': 's026493691', 'p_id': 'p02400', 'u_id': 'u873514942', 'date': '1539258089', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2064', 'code_size': '225'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n\n#define PI M_PI\n\nint main(void) {\n\n double r, square, circum;\n\n scanf(\"%lf\", &r);...
CDSS_237120
CDSS
#include <stdio.h> #include <math.h> int main(void) { int n; int i; double x[1000], y[1000]; double d1 = 0, d2 = 0, d3 = 0, dm = 0; double b1 = 0, b2 = 0; double max = 0; double box = 0; scanf("%d", &n); for (i = 0; i < n; i++) { scanf("%lf", &x[i]); } for (i = 0; i < n; i++) { scanf("%lf", &y[i]); ...
2,104
memory_bytes
{'s_id': 's585660591', 'p_id': 'p02382', 'u_id': 'u617677485', 'date': '1545211029', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '883'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n\n\nint main(void)\n{\n\tint n;\n\tint i;\n\tdouble x[1000], y[1000];\n\tdouble d1 = 0, d2 = ...
CDSS_665221
CDSS
#include <stdio.h> int main(){ int n, a[101]; scanf("%d", &n); for(int i=0;i<n;i++) scanf("%d", a+i); for(int i=0; i<n; i++){ for(int j=n-1; j>i; j--){ if(a[j] > a[j-1]){ int t = a[j]; a[j] = a[j-1]; a[j-1] = t; } } } int t = 1; for(int i=1; i<n; i++){ if(a[i] != a[i-1]){ ...
128
memory_bytes
{'s_id': 's895510740', 'p_id': 'p03470', 'u_id': 'u792720861', 'date': '1585793065', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '371'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n int n, a[101];\n scanf(\"%d\", &n);\n for(int i=0;i<n;i++) scanf(\"%d\", a+i);\n\n for(int i...
CDSS_288158
CDSS
#include<stdio.h> int main(){ long long a,b,c,min,temp; long long ar[3]; for(int i=0;i<3;i++){ scanf("%lli",&ar[i]); } min = ar[0]; for(int i=0;i<3;i++){ if(ar[i]<min) min = ar[i]; } for(int i=0;i<3;i++){ if(ar[i]==min){ temp = ar[0]; ar[0] = ar[i]; ar[i] = temp; brea...
2,060
memory_bytes
{'s_id': 's915012262', 'p_id': 'p02393', 'u_id': 'u463426040', 'date': '1582771659', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2060', 'code_size': '465'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\nlong long a,b,c,min,temp;\nlong long ar[3];\nfor(int i=0;i<3;i++){\n scanf(\"%lli\",&ar[i]);\n}\n...
CDSS_201323
CDSS
#include <stdio.h> int i, m, n; int S[100]; int res; solve (i,m) { if (m == 0) { return 1; } if (i >= n) { return 0; } res = solve(i + 1, m) || solve(i + 1, m - S[i]); return res; } int main (void) { int q, i, x; scanf("%d", &n); for (i = 0; i < n; i++) { scanf("%d", &S[i]); } scanf("%d", &q); f...
2,136
memory_bytes
{'s_id': 's057466001', 'p_id': 'p02271', 'u_id': 'u832768753', 'date': '1542719219', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '480', 'memory': '2136', 'code_size': '462'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint i, m, n;\nint S[100];\nint res;\n\nsolve (i,m) {\n\tif (m == 0) {\n\t\treturn 1;\n\t}\n\tif (i >= n) {\n\t...
CDSS_149993
CDSS
#include<stdio.h> /* 配列の要素を順番に出力 */ void trace(int A[], int N) { int i; for ( i = 0; i < N; i++) { if ( i > 0 ) printf(" "); //隣接する要素の間に1つの空白を出力 printf("%d", A[i]); } printf("\n"); } /* 挿入ソート(0オリジン配列)*/ void insertionSort(int A[], int N) { int j, i, v; for ( i = 1; i < N; i++ )...
2,104
memory_bytes
{'s_id': 's452654278', 'p_id': 'p02255', 'u_id': 'u051927633', 'date': '1549655940', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '767'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\n/* 配列の要素を順番に出力 */\nvoid trace(int A[], int N) {\n int i;\n for ( i = 0; i < N; i++) {\n if ( i > 0...
CDSS_546803
CDSS
#include<stdio.h> int main() { int a,b,c,d; scanf("%d",&a); d=a*a*3; printf("%d\n",d); }
128
memory_bytes
{'s_id': 's050712807', 'p_id': 'p02969', 'u_id': 'u816631826', 'date': '1571474363', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '125'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n\n int a,b,c,d;\n scanf(\"%d\",&a);\n d=a*a*3;\n \n printf(\"%d\\n\",d);\n \...
CDSS_671405
CDSS
# include <stdio.h> int main(){ char str[4]; scanf("%s", str); int ma = 0; for (int i =0; i < 3; ++i){ if (str[i] == '1') ma += 1; } printf("%d\n", ma); return 0; }
128
memory_bytes
{'s_id': 's912848733', 'p_id': 'p03493', 'u_id': 'u158587375', 'date': '1580828684', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '223'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n# include <stdio.h>\n\nint main(){\n char str[4];\n scanf(\"%s\", str);\n int ma = 0;\n \n for (int i =0; i < 3; ++i)...
CDSS_61882
CDSS
#include<stdio.h> #define N 1000 int main(void){ int i,num,j,k; char m[9][9],hoge,ans[N]; int c,sf=1; for(i=0;;i++){ ans[i]=0; for(j=0;j<8;j++){ for(k=0;k<8;k++) c=scanf("%c",&m[j][k]); if(c!=1){ sf=0; break; } scanf("%c",&hoge); } if(sf==0) ...
0
memory_bytes
{'s_id': 's916709658', 'p_id': 'p00036', 'u_id': 'u846661244', 'date': '1322875953', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '1606'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#define N 1000\n\nint main(void){\n int i,num,j,k;\n char m[9][9],hoge,ans[N];\n int c,sf=1;\n\n for(i=0;;i++...
CDSS_595147
CDSS
#include<stdio.h> int cnt[100000]; int main() { int n,m,a,b,max=0,j,i; scanf("%d%d",&n,&m); for(i=0;i<n;i++) { scanf("%d",&a); for(j=0;j<a;j++) { scanf("%d",&b); cnt[b]++; if(max<b)max=b; } } int sum=0; for(i=0;i<=max;i++) ...
128
memory_bytes
{'s_id': 's671937870', 'p_id': 'p03126', 'u_id': 'u816631826', 'date': '1580065735', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '399'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint cnt[100000];\nint main()\n{\n int n,m,a,b,max=0,j,i;\n scanf(\"%d%d\",&n,&m);\n for(i=0;i<n;i++)\n ...
CDSS_720872
CDSS
/* A - ABC/ARC <http://abc053.contest.atcoder.jp/tasks/abc053_a> */ int main(int argc, char const *argv[]) { int x; scanf("%d", &x); if( x < 1200 ){ printf("ABC\n"); }else{ printf("ARC\n"); } return 0; }
128
memory_bytes
{'s_id': 's849277751', 'p_id': 'p03813', 'u_id': 'u809235356', 'date': '1492564779', '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 should be a numerical value, with no extra text or explanation.\nThe code is:\n/*\n A - ABC/ARC\n <http://abc053.contest.atcoder.jp/tasks/abc053_a>\n*/\n\nint main(int argc, char const *argv[]) {\n\n int x;\n...
CDSS_213801
CDSS
#include<stdio.h> #define MAX 100000 #define SENTINEL 2000000000 struct Card{ char suit; int value; }; struct Card L[MAX/2 + 2], R[MAX/2 + 2]; void merge(struct Card A[], int n, int left, int mid, int right){ int i, j, k; int n1 = mid - left; int n2 = right -mid; for(i=0; i<n1; i++) L[i] = A[left+i]; f...
4,072
memory_bytes
{'s_id': 's751827343', 'p_id': 'p02277', 'u_id': 'u892925213', 'date': '1533476477', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '4072', 'code_size': '1740'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#define MAX 100000\n#define SENTINEL 2000000000\n\nstruct Card{\n char suit;\n int value;\n};\n\nstruct Card L[...
CDSS_159705
CDSS
#include <math.h> int prime(int val){ if (val==2) return 1; if (val==3) return 1; int count = 0; for (int i = 2; i < sqrt(val) + 1; i++){ if(val%i == 0){ count++; } } if ( count > 0) return 0; else return 1; } int main(){ int Num; scanf("%d",&Num);...
2,108
memory_bytes
{'s_id': 's325903703', 'p_id': 'p02257', 'u_id': 'u083579293', 'date': '1560835457', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '170', 'memory': '2108', 'code_size': '613'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <math.h>\nint prime(int val){\n if (val==2) return 1;\n if (val==3) return 1;\n int count = 0;\n for (int i = 2...
CDSS_471996
CDSS
#include <stdio.h> int main(void){ int n,m; scanf("%d %d",&n,&m); printf("%d",(m*(m-1)+n*(n-1))/2); return 0; }
128
memory_bytes
{'s_id': 's390221171', 'p_id': 'p02729', 'u_id': 'u734195782', 'date': '1584926412', '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 should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n int n,m;\n scanf(\"%d %d\",&n,&m);\n printf(\"%d\",(m*(m-1)+n*(n-1))/2);\n retur...
CDSS_71150
CDSS
#include<stdio.h> #include<math.h> #define dis(a,b) (a)*(a)+(b)*(b) int main(){ double x[3],y[3],a,b,c,sum=0.0; scanf("%lf,%lf%lf,%lf%lf,%lf",&x[0],&y[0],&x[1],&y[1],&x[2],&y[2]); a=dis(x[0]-x[1],y[0]-y[1]); do{ b=dis(x[1]-x[2],y[1]-y[2]); c=dis(x[2]-x[0],y[2]-y[0]); sum+=sqrt((a*b+b*c+c*a)*2-a*a-b*...
0
memory_bytes
{'s_id': 's777287077', 'p_id': 'p00079', 'u_id': 'u361407785', 'date': '1306757130', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '449'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<math.h>\n#define dis(a,b) (a)*(a)+(b)*(b)\nint main(){\n double x[3],y[3],a,b,c,sum=0.0;\n scanf(\"%lf...
CDSS_179164
CDSS
#include<stdio.h> #include<stdlib.h> int top,S[1000]; void push(int x){ S[++top]=x; } int pop(){ top--; return S[top+1]; } int main(){ int a,b; top=0; char s[100]; while(scanf("%s",s)!=EOF){ if(s[0]=='+'){ a=pop(); b=pop(); push(a+b); }else if(s[0]=='-'){ b=pop(); a=pop(); push(a-b); }e...
2,144
memory_bytes
{'s_id': 's190963741', 'p_id': 'p02263', 'u_id': 'u440761437', 'date': '1529906847', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2144', 'code_size': '447'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n\nint top,S[1000];\n\nvoid push(int x){\n\tS[++top]=x;\n}\nint pop(){\n\ttop--;\n\treturn S[t...
CDSS_685475
CDSS
#include <stdio.h> #include <math.h> int main(){ int n, sum = 0; scanf("%d", &n); int a[n], b[n]; for (int i = 0; i < n; i++){ scanf("%d%d", &a[i], &b[i]); sum += abs(b[i]-a[i])+1; } printf("%d\n", sum); return 0; }
128
memory_bytes
{'s_id': 's862363919', 'p_id': 'p03606', 'u_id': 'u109867600', 'date': '1575724608', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '236'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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\tint n, sum = 0;\n\t\n\tscanf(\"%d\", &n);\n\t\n\tint a[n], b[n];\n\t\n\tfo...
CDSS_521642
CDSS
#include <stdio.h> int main(int argc,char *argv[]){ int N,i,j=0; int a[50]; scanf("%d",&N); if(N<2||N>50){ return -1;} i=N; while(i>0){ scanf("%d",&a[j]); j++; i--; } j=0; int k=0; int max=0; for(k=0;k<N;k++){ for(j=k+1;j<N;j++){ max += a[k]*a[j]; } } printf("%d",...
128
memory_bytes
{'s_id': 's260303127', 'p_id': 'p02886', 'u_id': 'u387720785', 'date': '1571860406', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '128', 'code_size': '342'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(int argc,char *argv[]){\n \tint N,i,j=0;\n \tint a[50];\n scanf(\"%d\",&N);\n if(N<2||N>50){ retur...
CDSS_468431
CDSS
#include <stdio.h> int main(int argc, char const *argv[]) { char str[8]; scanf("%s", str); if (str[2] == str[3] && str[4] == str[5]) { printf("Yes\n"); }else{ printf("No\n"); } return 0; }
128
memory_bytes
{'s_id': 's981024179', 'p_id': 'p02723', 'u_id': 'u912952979', 'date': '1586387657', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '212'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(int argc, char const *argv[]) {\n\n char str[8];\n scanf(\"%s\", str);\n\n if (str[2] == str[3] &&...
CDSS_301951
CDSS
#include <stdio.h> int main(void) { int i,x,y; i=0; while(i<3000) { i++; scanf("%d %d",&x,&y); (((x>0)&&(x<10000))&&((y>=0)&&(y<=10000))); if((x==0)&&(y==0))break; if(x<=y) { printf("%d %d\n",x,y); } else { printf("%d %d\n",y,x); } } return 0; }
600
memory_bytes
{'s_id': 's299104527', 'p_id': 'p02397', 'u_id': 'u606900602', 'date': '1499929659', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '283'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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,x,y;\n\ti=0;\n\twhile(i<3000)\n\t{\n\t\ti++;\n\t\tscanf(\"%d %d\",&x,&y);\n\t\t(((x...
CDSS_450244
CDSS
#include <stdio.h> int main(void) { int N; int a,b,c; scanf("%d", &N); a = N/100; b = (N-100*a)/10; c = N-100*a-10*b; if (a == 7){ printf("Yes\n"); } else { if (b == 7){ printf("Yes\n"); } else { if (c == 7){ printf("Yes\n"); } else { printf("No\n"); } } } ...
1,664
memory_bytes
{'s_id': 's351860030', 'p_id': 'p02711', 'u_id': 'u737545415', 'date': '1586740978', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '1664', 'code_size': '333'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n int N;\n int a,b,c;\n\n scanf(\"%d\", &N);\n a = N/100;\n b = (N-100*a)/10;\n c = N-...
CDSS_374538
CDSS
#include <stdio.h> #include <string.h> int main(void){ // Your code here! char str[1010]; scanf("%s",str); int l; l=strlen(str); if(str[l-1]=='s') {strcat(str,"es");} else strcat(str,"s"); printf("%s\n",str); return 0; }
1,616
memory_bytes
{'s_id': 's391006357', 'p_id': 'p02546', 'u_id': 'u385649291', 'date': '1600625432', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1616', 'code_size': '257'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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 // Your code here!\n char str[1010];\n scanf(\"%s\",str);\n i...
CDSS_384876
CDSS
#include<stdio.h> #include<string.h> long long int p_array[5001]; long long int c_array[5001]; int main() { long long int score = -1000000001, n, k; long long int current_score; scanf("%lld %lld", &n, &k); for (int i = 1; i <= n; i++) { scanf("%lld", &p_array[i]); } for (int i = 1; i <= n; i++) { scan...
1,812
memory_bytes
{'s_id': 's024627506', 'p_id': 'p02585', 'u_id': 'u757753683', 'date': '1597596674', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '286', 'memory': '1812', 'code_size': '1376'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\n\nlong long int p_array[5001];\nlong long int c_array[5001];\n\n\nint main()\n{\n\tlong long ...
CDSS_141700
CDSS
#include<stdio.h> #include<stdlib.h> #define MAX 100001 #define INFTY 10000000 typedef struct{ int prev; int next; int cost; } Edge; Edge G[500000]; int d[MAX]; void Dijkstra(int,int); int main(void){ int i, j, k, n, v, u, c; int count=0; scanf("%d", &n); for(i=0; i<n; i++){ scanf("%d%d", &u, &k...
7,584
memory_bytes
{'s_id': 's612856449', 'p_id': 'p02243', 'u_id': 'u068378820', 'date': '1549884377', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '50', 'memory': '7584', 'code_size': '875'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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 100001\n#define INFTY 10000000\n\ntypedef struct{\n int prev;\n int next;\n ...
CDSS_663732
CDSS
#include <stdio.h> #include <stdlib.h> int main() { int i, n, time; int flag = 0; scanf("%d", &n); int t[n], x[n], y[n]; int mem=0, xma=0, yma=0; for(i=0; i<n; i++) { scanf("%d %d %d", &t[i], &x[i], &y[i]); } mem = x[0] + y[0]; if(mem > t[0]) { flag = 1; ...
1,280
memory_bytes
{'s_id': 's042767110', 'p_id': 'p03457', 'u_id': 'u403069529', 'date': '1568325504', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '23', 'memory': '1280', 'code_size': '889'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\nint main()\n{\n int i, n, time;\n int flag = 0;\n scanf(\"%d\", &n);\n\n int ...
CDSS_237609
CDSS
#include<stdio.h> #define T 1 #define S 2 #define E 3 #define W 4 #define N 5 #define B 6 int main(void){ int dice[7],buf[7]; char hoko[101]={NULL}; int i,j; for(i=1;i<=6;i++){ scanf("%d",&dice[i]); } scanf("%s",hoko); for(i=0;(int)hoko[i];i++){ for(j=1;j<=6;j++) buf[j]=dic...
596
memory_bytes
{'s_id': 's512648844', 'p_id': 'p02383', 'u_id': 'u007599122', 'date': '1502332288', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '1210'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#define T 1\n#define S 2\n#define E 3\n#define W 4\n#define N 5\n#define B 6\n \nint main(void){\n int dice[7]...
CDSS_652482
CDSS
#include<stdio.h> int main(void) { int n,d,x,a[101]={0},i,j,c=0; scanf("%d%d%d",&n,&d,&x); for(i=1;i<=n;i++) scanf("%d",&a[i]); for(i=1;i<=n;i++){ j=0; while((1+(j*a[i]))<=d){ c++; j++; } } c+=x; printf("%d\n",c); return 0; }
128
memory_bytes
{'s_id': 's476067379', 'p_id': 'p03400', 'u_id': 'u029818749', 'date': '1591617354', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '313'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\n int n,d,x,a[101]={0},i,j,c=0;\n scanf(\"%d%d%d\",&n,&d,&x);\n for(i=1;i<=n;i++)\n ...
CDSS_527001
CDSS
#include<stdio.h> int h,w,a,b,i,j; int main(){ scanf("%d%d%d%d",&h,&w,&a,&b); for(i=h;i--;){ for(j=w;j--;){ if(j<a&&i<b||j>=a&&i>=b)printf("1"); else printf("0"); } printf("\n"); } return 0; }
1,152
memory_bytes
{'s_id': 's404101629', 'p_id': 'p02903', 'u_id': 'u125212320', 'date': '1569116854', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '1152', 'code_size': '256'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint h,w,a,b,i,j;\nint main(){\n scanf(\"%d%d%d%d\",&h,&w,&a,&b);\n for(i=h;i--;){\n for(j=w;j--;){\n...
CDSS_230802
CDSS
#include<stdio.h> #define MAX 2000000 #define MAX2 99999999 int h,data[MAX+1]; int left(int l){ return 2*l; } int right(int r){ return 2*r+1; } void maxHeapify(int i){ int l,r,largest,t; l=left(i); r=right(i); if(l<=h && data[l]>data[i])largest=l; else largest=i; if(r<=h && data[r]>data[largest])larges...
5,676
memory_bytes
{'s_id': 's386941523', 'p_id': 'p02289', 'u_id': 'u363577051', 'date': '1581434392', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '290', 'memory': '5676', 'code_size': '1114'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#define MAX 2000000\n#define MAX2 99999999\n\nint h,data[MAX+1];\nint left(int l){\n return 2*l;\n}\nint right(i...
CDSS_577453
CDSS
#include<stdio.h> int main() { int a, b, c; scanf("%d %d %d", &a, &b, &c); if (a < b) { if ((a < c) && (c < b)) { printf("Yes\n"); } else { printf("No\n"); } } else { if ((b < c) && (c < a)) { printf("Yes\n"); } else { printf("No\n"); } } return 0; }
128
memory_bytes
{'s_id': 's805888960', 'p_id': 'p03067', 'u_id': 'u719038982', 'date': '1556138147', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '286'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main() {\n\tint a, b, c;\n\tscanf(\"%d %d %d\", &a, &b, &c);\n\tif (a < b) {\n\t\tif ((a < c) && (c < b)) {\n...
CDSS_391726
CDSS
#include <stdio.h> int main() { int N; int i; int t; int kei; scanf("%d", &N); if (N % 1000 > 0) { i = N / 1000; t = i * 1000 + 1000; kei = t - N; printf("%d", kei); } else { kei = N - N; printf("%d", kei); } return 0; }
1,732
memory_bytes
{'s_id': 's309517925', 'p_id': 'p02612', 'u_id': 'u722770490', 'date': '1594000057', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1732', 'code_size': '318'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main()\n{\n int N;\n int i;\n int t;\n int kei;\n\n scanf(\"%d\", &N);\n if (N % 1000 > 0)...
CDSS_74073
CDSS
#include <stdio.h> int main(void) { int a, b; double s; scanf("%d%d", &a, &b); s=a*b/3.305785; printf("%f",s); return 0; }
632
memory_bytes
{'s_id': 's291716888', 'p_id': 'p00094', 'u_id': 'u896419811', 'date': '1408068221', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '632', 'code_size': '139'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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 double s;\n\n scanf(\"%d%d\", &a, &b);\n\n s=a*b/3.305785;\n\n printf(\"%...
CDSS_408338
CDSS
#include <stdio.h> int main () { int n,i; scanf("%d",&n); long long int a[n+3]; for(i=0; i<n; i++) scanf("%lld",&a[i]); int zero =0; for(i=0; i<n; i++) if(a[i]==0) zero ++; if(zero >0) { printf("0\n"); return 0; } long long prod =1;...
2,512
memory_bytes
{'s_id': 's968628127', 'p_id': 'p02658', 'u_id': 'u956253216', 'date': '1592344966', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '33', 'memory': '2512', 'code_size': '561'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main ()\n{\n int n,i;\n scanf(\"%d\",&n);\n long long int a[n+3];\n for(i=0; i<n; i++)\n ...
CDSS_588996
CDSS
#include<stdio.h> int main(void) { int H,W,h,w; scanf("%d %d %d %d",&H,&W,&h,&w); printf("%d\n",(H-h)*(W-w)); return 0; }
128
memory_bytes
{'s_id': 's138519712', 'p_id': 'p03101', 'u_id': 'u490089586', 'date': '1563874448', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '125'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\n\tint H,W,h,w;\n\tscanf(\"%d %d %d %d\",&H,&W,&h,&w);\n\tprintf(\"%d\\n\",(H-h)*(W-w));\n\tret...
CDSS_368294
CDSS
#include <stdio.h> int main(void){ char s[100]; char p[100]; char ss[200]; scanf("%s", s); scanf("%s", p); strcpy(ss, s); strcat(ss, s); if(strstr(ss, p) == NULL){ printf("No\n"); } else{ printf("Yes\n"); } return 0; }
2,112
memory_bytes
{'s_id': 's119455348', 'p_id': 'p02418', 'u_id': 'u765483726', 'date': '1533481031', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '314'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n char s[100];\n char p[100];\n char ss[200];\n \n scanf(\"%s\", s);\n scan...
CDSS_447681
CDSS
#include<stdio.h> int main() { char n[4]; scanf("%s",n); if(n[0]=='7'||n[1]=='7'||n[2]=='7') puts("Yes"); else puts("No"); return 0; }
1,604
memory_bytes
{'s_id': 's943338860', 'p_id': 'p02711', 'u_id': 'u596813883', 'date': '1594349504', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1604', 'code_size': '145'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n\tchar n[4];\n\n\tscanf(\"%s\",n);\n\n\tif(n[0]=='7'||n[1]=='7'||n[2]=='7')\n\t\tputs(\"Yes\");\n\...
CDSS_597589
CDSS
#include <stdio.h> int main(void) { int T, X; scanf("%d %d", &T, &X); printf("%lf\n", (double)T / (double)X); return 0; }
128
memory_bytes
{'s_id': 's339421663', 'p_id': 'p03135', 'u_id': 'u004707990', 'date': '1549245757', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '135'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\n int T, X;\n scanf(\"%d %d\", &T, &X);\n\n printf(\"%lf\\n\", (double)T / (double)X);\n ...
CDSS_581071
CDSS
#include <stdio.h> int main(void){ int n; int h[100]; int count = 1; int i,j; scanf("%d", &n); for(i = 0; i < n; i++){ scanf("%d", &h[i]); } for(i = 1; i < n; i++){ for(j = 0; j < i; j++){ if(h[j] > h[i]){ break; } ...
128
memory_bytes
{'s_id': 's345044929', 'p_id': 'p03072', 'u_id': 'u828593789', 'date': '1555182720', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '445'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n int n;\n int h[100];\n int count = 1;\n int i,j;\n \n scanf(\"%d\", &n);\n...
CDSS_83389
CDSS
#include<stdio.h> int main(){ int a,n; int count=0; scanf("%d",&a); n=a; while(a!=0){ while(n!=1){ if(n%2==0){ n/=2; }else { n*=3; n++; } count++; } printf("%d\n",count); scanf("%d",&a); n=a; count=0; } return 0; }
0
memory_bytes
{'s_id': 's067834611', 'p_id': 'p00158', 'u_id': 'u948800138', 'date': '1313911166', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '258'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n\tint a,n;\n\tint count=0;\n\tscanf(\"%d\",&a);\n\tn=a;\n\twhile(a!=0){\n\t\twhile(n!=1){\n\t\t\ti...
CDSS_191698
CDSS
#include <stdio.h> int main(){ int i, k, n, q, m, l, r, S[100000], T[100000]; k = 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++){ l = 0; r = n; while(l < r){ m = (l + r)/2; if(T[i] == ...
1,192
memory_bytes
{'s_id': 's455697005', 'p_id': 'p02268', 'u_id': 'u059658063', 'date': '1430445692', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '1192', 'code_size': '473'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n int i, k, n, q, m, l, r, S[100000], T[100000];\n k = 0;\n\n scanf(\"%d\", &n);\n for(i = 0; ...
CDSS_653836
CDSS
#include<stdio.h> #include<string.h> int main(void){ int i,j,n,m,max=0,ans; scanf("%d",&n); char s[n][10]; for(i=0;i<n;i++){ scanf("%s",s[i]); } scanf("%d",&m); char t[m][10]; for(i=0;i<m;i++){ scanf("%s",t[i]); } for(i=0;i<n;i++){ ans=0; for(j=0;j<n;j++){ if(strcmp(s[i],s[j])...
128
memory_bytes
{'s_id': 's889589804', 'p_id': 'p03408', 'u_id': 'u992736202', 'date': '1549732397', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '470'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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 int i,j,n,m,max=0,ans;\n scanf(\"%d\",&n);\n char s[n][10];\n for(i=0...
CDSS_490383
CDSS
#include <stdio.h> #include <string.h> int main () { int a,b,c,d; char s[107]; char t[107]; char u[107]; scanf ("%s",s); scanf ("%s",t); scanf ("%d%d",&a,&b); scanf ("%s",u); if (strcmp(u,s)==0) { printf ("%d %d\n",a-1,b); } else { printf ("%d %d\n",a,b-1); } return 0; }
128
memory_bytes
{'s_id': 's057396816', 'p_id': 'p02777', 'u_id': 'u078641435', 'date': '1581278884', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '291'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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\tint a,b,c,d;\n\tchar s[107];\n\tchar t[107];\n\tchar u[107];\n\tscanf (\"...
CDSS_543276
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> int main (void) { char s[100001]; int ans[100001]; memset(s, '\0', 100001); memset(ans, 0, 100001*sizeof(int)); scanf("%s", s); int i, n_char=strlen(s); int r_cnt, l_cnt, r_idx, l_idx; while ( i<n_char ) { r_cnt ...
896
memory_bytes
{'s_id': 's384565921', 'p_id': 'p02954', 'u_id': 'u263564761', 'date': '1581135245', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '9', 'memory': '896', 'code_size': '993'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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 (void) {\n char s[100001];\n int ans[100001];\...
CDSS_170009
CDSS
#include<stdio.h> #define MAX 100 int main(){ int i,j,minj,count,n,A[MAX+1]; scanf("%d",&n); for(i=0;i<n;i++) scanf("%d",&A[i]); count = 0; for(i=0;i<n;i++){ minj = i; for(j=i;j<n;j++){ if(A[j] < A[minj])minj = j; } A[n] = A[i]; A[i] = A[minj]; A[minj] = A[n]; if(i !...
604
memory_bytes
{'s_id': 's211843740', 'p_id': 'p02260', 'u_id': 'u073302075', 'date': '1469069795', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '604', 'code_size': '454'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\n#define MAX 100\n\nint main(){\n int i,j,minj,count,n,A[MAX+1];\n\n scanf(\"%d\",&n);\n for(i=0;i<n;i++)\n ...
CDSS_132511
CDSS
#include <stdio.h> #include <stdlib.h> #include <math.h> #define MAX 100 #define NIL -1 int n, p[MAX], m[MAX][MAX], i, j, k, l; void matrixChainMultiplication() { for (i = 1; i <= n; i++) { m[i][i] = 0; } for (l = 2; l <= n; l++) { for (i = 1; i <= n - l + 1; i++){ j = i + l - 1; m[i][j] = 1000000; ...
1,928
memory_bytes
{'s_id': 's258763114', 'p_id': 'p02234', 'u_id': 'u848284598', 'date': '1542379948', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1928', 'code_size': '679'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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\n#define MAX 100\n#define NIL -1\n\nint n, p[MAX], m[MAX][MAX], i, j, k...
CDSS_626617
CDSS
#include<stdio.h> int main(){ char S[101]; scanf("%s",S); long long K; scanf("%lld",&K); long long i=0; while(S[i]=='1'){ i++; } if(i>=K){ printf("1\n"); return 0; } printf("%c\n",S[i]); return 0; }
128
memory_bytes
{'s_id': 's947309373', 'p_id': 'p03282', 'u_id': 'u573082373', 'date': '1534641703', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '222'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n\tchar S[101];\n\tscanf(\"%s\",S);\n\tlong long K;\n\tscanf(\"%lld\",&K);\n\tlong long i=0;\n\twhi...
CDSS_332528
CDSS
#include<stdio.h> int main(void){ int i, j, a, b; while (1) { scanf("%d %d", &a, &b); if (a == 0 && b == 0) break; for (i = 0; i<a; i++) { for (j = 0; j<b; j++) { printf("#"); } printf("\n"); } printf("\n"); } return 0; }
2,044
memory_bytes
{'s_id': 's355698683', 'p_id': 'p02403', 'u_id': 'u183363727', 'date': '1563045682', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2044', 'code_size': '260'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n\tint i, j, a, b;\n\n\twhile (1)\n\t{\n\t\tscanf(\"%d %d\", &a, &b);\n\t\tif (a == 0 && b == 0) ...
CDSS_220141
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,108
memory_bytes
{'s_id': 's331784800', 'p_id': 'p02281', 'u_id': 'u917751552', 'date': '1580271184', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '909'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#define MAX 10000\n#define NIL -1\n\nstruct Node{\n int p,l,r;\n};\n\nstruct Node T[MAX];\nint n;\n\nvoid prePar...
CDSS_471896
CDSS
#include<stdio.h> int main(void){ int N,M,factn=1,factm=1,a,b,i,v; scanf("%d %d",&N,&M); for(i=N;i>=N-1;i--){ factn=factn*i; }; for(v=M;v>=M-1;v--){ factm=factm*v; }; printf("%d",(factn/2)+(factm/2)); return 0; }
256
memory_bytes
{'s_id': 's597815092', 'p_id': 'p02729', 'u_id': 'u143405027', 'date': '1584928677', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '256', 'code_size': '243'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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,M,factn=1,factm=1,a,b,i,v;\n\n scanf(\"%d %d\",&N,&M);\n \n for(i=N;i>=N-1;i--){\n ...
CDSS_96202
CDSS
#include <stdio.h> int main(void) { int R, B, W, G; if (scanf("%d%d%d%d", &R, &B, &W, &G) != 4) return 1; printf("%d\n", R + B + W + G); return 0; }
2,128
memory_bytes
{'s_id': 's272493576', 'p_id': 'p00399', 'u_id': 'u543521645', 'date': '1577978863', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2128', 'code_size': '155'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\n\tint R, B, W, G;\n\tif (scanf(\"%d%d%d%d\", &R, &B, &W, &G) != 4) return 1;\n\tprintf(\"%d\...
CDSS_732911
CDSS
#include<stdio.h> int main(){ int i=0,ans=0; char s[100001],tmp; scanf("%s",s); tmp=s[0]; while(s[i]!=0){ if(s[i]!=tmp){ ans++; tmp=s[i]; } i++; } printf("%d\n",ans); return 0; }
256
memory_bytes
{'s_id': 's359724881', 'p_id': 'p03945', 'u_id': 'u946810083', 'date': '1541711549', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '256', 'code_size': '179'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\nint i=0,ans=0;\nchar s[100001],tmp;\nscanf(\"%s\",s);\ntmp=s[0];\nwhile(s[i]!=0){\nif(s[i]!=tmp){\...
CDSS_473067
CDSS
#include <stdio.h> //sourav int main(){ int L; scanf("%d",&L); printf("%.12f\n",(double)L*L*L/27); }
128
memory_bytes
{'s_id': 's181824180', 'p_id': 'p02731', 'u_id': 'u353919145', 'date': '1586558065', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '100'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n//sourav\nint main(){\nint L;\nscanf(\"%d\",&L);\nprintf(\"%.12f\\n\",(double)L*L*L/27);\n}\nPredict its memory ...
CDSS_69673
CDSS
#include <stdio.h> #include <stdlib.h> typedef struct Bomb{ int map[8][8]; } BOMB; Input(BOMB *); void explode(BOMB *); int x_cnt, y_cnt; int main() { int input_times, input_cnt; BOMB Bomb[50]; int x, y; scanf("%d", &input_times); for(input_cnt = 0; input_cnt < input_times; input_cnt++){ Input(&Bomb[input...
612
memory_bytes
{'s_id': 's781124196', 'p_id': 'p00071', 'u_id': 'u178215473', 'date': '1476683008', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '612', 'code_size': '2135'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\ntypedef struct Bomb{\n\tint map[8][8];\n} BOMB;\n\nInput(BOMB *);\nvoid explode(BOMB *);\...
CDSS_29331
CDSS
#include<stdio.h> int main(){ int N, i, a, b, c; scanf("%d",&N); for(i=0; i<N; i++){ scanf("%d %d %d", &a, &b, &c); if(a*a == b*b + c*c || b*b == c*c + a*a || c*c == a*a + b*b) printf("YES\n"); else printf("NO\n"); } return 0; }
580
memory_bytes
{'s_id': 's052289160', 'p_id': 'p00003', 'u_id': 'u369381079', 'date': '1424526595', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', 'code_size': '245'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n\tint N, i, a, b, c;\n\tscanf(\"%d\",&N);\n\tfor(i=0; i<N; i++){\n\t\tscanf(\"%d %d %d\", &a, &b, &c...
CDSS_66895
CDSS
// Aizu Vol0 0056: Goldbach's Conjecture // 2017.7.30 #include <stdio.h> #include <stdlib.h> char *gets(char *); #define MAX 50000 #define SQRT 223 // sqrt(MAX) #define HALF 25000 int table[MAX + 5]; int combi[MAX+MAX]; int main() { int i, j, n; char buf[100]; for (i = 2; i <= SQRT; i++) { if (!table[i]...
1,016
memory_bytes
{'s_id': 's018197284', 'p_id': 'p00056', 'u_id': 'u847467233', 'date': '1501387751', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '180', 'memory': '1016', 'code_size': '778'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n// Aizu Vol0 0056: Goldbach's Conjecture\n// 2017.7.30\n\n#include <stdio.h>\n#include <stdlib.h>\n\nchar *gets(char *);\n\n#define ...
CDSS_68363
CDSS
#include<stdio.h> #include<string.h> int main() { char str[102]; int len,count,flg,ans=0; while(fgets(str,102,stdin)!=NULL) { flg=1; len=strlen(str)-1; for(count=0;count<len/2;count++) { if(*(str+count)!=*(str+len-count-1)) { flg=0; } } if(flg) { ans++; } } printf("%d\n",ans); r...
0
memory_bytes
{'s_id': 's436407095', 'p_id': 'p00063', 'u_id': 'u539546618', 'date': '1314868001', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '330'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\n\nint main()\n{\n\tchar str[102];\n\tint len,count,flg,ans=0;\n\n\twhile(fgets(str,102,stdin)...
CDSS_426918
CDSS
#include<stdio.h> int main (void){ int k,a,b; scanf("%d %d %d",&k,&a,&b); for(int i = a;i <=b;i++){ if(i%k==0){ printf("OK"); return 0; } } printf("NG"); return 0; }
1,732
memory_bytes
{'s_id': 's215854362', 'p_id': 'p02693', 'u_id': 'u391247609', 'date': '1588468576', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1732', 'code_size': '208'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main (void){\n int k,a,b;\n \n scanf(\"%d %d %d\",&k,&a,&b);\n \n for(int i = a;i <=b;i++){\n if(i%...
CDSS_607246
CDSS
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <math.h> int main() { int d; scanf("%d", &d); if( d == 25 ) puts("Christmas"); else if( d == 24 ) puts("Christmas Eve"); else if( d == 23 ) puts("Christmas Eve Eve"); else if( d == 22 ) puts("Christmas Eve E...
128
memory_bytes
{'s_id': 's729792057', 'p_id': 'p03206', 'u_id': 'u091936069', 'date': '1587405692', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '128', 'code_size': '349'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n#include <math.h>\n\nint main()\n{\n int d;\n\n scanf(\"%d...
CDSS_70161
CDSS
#include<stdio.h> int main(){ int hour, minute, second, allsecond1, allsecond2; int hour1, minute1, second1; int hour2, minute2, second2; while(1){ scanf("%d %d %d", &hour, &minute, &second); if(hour == -1 && minute == -1 && second == -1) break; allsecond1 = 7200 - (3600 * hour + 60 * minute + se...
0
memory_bytes
{'s_id': 's803880166', 'p_id': 'p00074', 'u_id': 'u278606251', 'date': '1322370211', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '1070'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n int hour, minute, second, allsecond1, allsecond2;\n int hour1, minute1, second1;\n int hour2, ...
CDSS_56281
CDSS
#include<stdio.h> #include<math.h> int main(void) { double xa = 0, ya = 0, ra = 0; double xb = 0, yb = 0, rb = 0; double ab = 0; int i = 0,n = 0; double r = 0; int flag = 5; scanf("%d",&n); for(i = 0; i < n; i++) { scanf("%lf %lf ...
640
memory_bytes
{'s_id': 's213364962', 'p_id': 'p00023', 'u_id': 'u832413980', 'date': '1463118461', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '640', 'code_size': '904'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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{\n double xa = 0, ya = 0, ra = 0;\n double xb = 0, yb = 0, rb ...
CDSS_700448
CDSS
#include<stdio.h> int main(){ int i,j,max=0,min=1e9,c; char s[100010]; scanf("%s",s); for(i=0;i<26;i++){ max=0; c=0; for(j=0;s[j];j++){ if(s[j]=='a'+i){ if(max<c)max=c; c=0; } else c++; }//printf("%c:%d\n",i+'a',max); if(max<c)max=c; if(min>max)min=max; } printf("...
128
memory_bytes
{'s_id': 's689105263', 'p_id': 'p03687', 'u_id': 'u121922047', 'date': '1509579372', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '349'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int i,j,max=0,min=1e9,c;\n char s[100010];\n scanf(\"%s\",s);\n for(i=0;i<26;i++){\n max=0;\...
CDSS_354640
CDSS
#include<stdio.h> int main(){ int n,x,i,j,k,count=0; while(1){ scanf("%d %d",&n,&x); if(n==0 && x==0) break; for(i=1; i<=n; i++){ for(j=i+1; j<=n; j++){ for(k=j+1; k<=n; k++){ if(i+j+k==x ) count++; }}} printf("%d\n",count); count=0; } return 0; }
600
memory_bytes
{'s_id': 's869639547', 'p_id': 'p02412', 'u_id': 'u196669489', 'date': '1461568017', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '277'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n\n\tint n,x,i,j,k,count=0;\n\t\n\twhile(1){\n\tscanf(\"%d %d\",&n,&x);\n\tif(n==0 && x==0) break;\n\...
CDSS_546792
CDSS
#include <stdio.h> int main() { int r; scanf("%d", &r); printf("%d\n", 3 * r * r); return 0; }
128
memory_bytes
{'s_id': 's751030540', 'p_id': 'p02969', 'u_id': 'u416420069', 'date': '1573006922', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '105'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main() {\n int r;\n\n scanf(\"%d\", &r);\n printf(\"%d\\n\", 3 * r * r);\n\n return 0;\n}\nPredict its...
CDSS_509448
CDSS
#include <stdio.h> int main() { int a,b,c,d; scanf("%d%d%d",&a,&b,&c); d=a+b+c; if(d>=22) { printf("bust"); } else { printf("win"); } return 0; }
128
memory_bytes
{'s_id': 's952477614', 'p_id': 'p02835', 'u_id': 'u018679195', 'date': '1581037952', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '202'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main()\n{\n int a,b,c,d;\n scanf(\"%d%d%d\",&a,&b,&c);\n d=a+b+c;\n if(d>=22)\n {\n pr...
CDSS_361202
CDSS
/* ITP1_7_D:Matrix Multiplication */ /* 20181123 AOJ */ #define _CRT_SECURE_NO_WARNINGS #include <stdio.h> int main(void) { int n, m, l; int i, j, k; int A[100][100], B[100][100]; long long C[100][100] = {0}; scanf("%d %d %d", &n, &m, &l); for(i = 0; i < n; i++) { for(j = 0; j < m; j++) { scanf("%d", &A[i...
2,112
memory_bytes
{'s_id': 's833400251', 'p_id': 'p02414', 'u_id': 'u761232808', 'date': '1542961785', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '687'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n/* ITP1_7_D:Matrix Multiplication */\n/* 20181123 AOJ */\n\n#define _CRT_SECURE_NO_WARNINGS\n#include <stdio.h>\n\nint main(void) {\...
CDSS_312004
CDSS
int main(void) { int x, y; scanf("%d %d %d", &x, &y); printf("%d %d %f", x / y, x % y, (double)x / (double)y); return 0; }
2,096
memory_bytes
{'s_id': 's825427189', 'p_id': 'p02399', 'u_id': 'u556018816', 'date': '1596904236', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2096', 'code_size': '152'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n\nint main(void) {\n int x, y;\n \n scanf(\"%d %d %d\", &x, &y);\n \n printf(\"%d %d %f\", x / y, x % y, (double)x / ...
CDSS_289762
CDSS
#include<stdio.h> int main(){ int w,h,x,y,r; scanf("%d %d %d %d %d",&w,&h,&x,&y,&r); if(x>=r&&x<=(w-r)&&y>=r&&y<=(h-r)){ printf("Yes\n"); }else{ printf("No\n"); } return 0; }
584
memory_bytes
{'s_id': 's019166059', 'p_id': 'p02394', 'u_id': 'u652375714', 'date': '1452821161', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '584', 'code_size': '186'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n\tint w,h,x,y,r;\n\tscanf(\"%d %d %d %d %d\",&w,&h,&x,&y,&r);\n\t\n\tif(x>=r&&x<=(w-r)&&y>=r&&y<=(h-...
CDSS_200887
CDSS
#include<stdio.h> #define true 1 #define false 0 int n,A[50]; int solve(i, m){ if( m == 0){ return true; }if( i >= n){ return false; } int res = solve(i + 1, m) || solve(i + 1, m - A[i]); return res; } int main(){ int p,N,j; scanf("%d",&n); for(j=0;j<n;j++){ scanf("%d",&A[j]); }sc...
2,120
memory_bytes
{'s_id': 's399414609', 'p_id': 'p02271', 'u_id': 'u517012203', 'date': '1577352550', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '470', 'memory': '2120', 'code_size': '442'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\n#define true 1\n#define false 0\n\nint n,A[50];\n\nint solve(i, m){\n if( m == 0){\n return true;\n }i...
CDSS_515632
CDSS
#include <stdio.h> int main() { int r; scanf("%d",&r); char vetor[r]; scanf("%s",vetor); if(r%2==0){ for(int x=0;x<r/2;++x){ if(vetor[x]!=vetor[x+(r/2)]){ printf("No\n"); return 0; } } } else{ printf("No\n"); return 0; } printf("Yes\n"); return...
256
memory_bytes
{'s_id': 's865930306', 'p_id': 'p02860', 'u_id': 'u784277111', 'date': '1573957751', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '256', 'code_size': '325'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main() {\n\tint r;\n\tscanf(\"%d\",&r);\n\tchar vetor[r];\n\tscanf(\"%s\",vetor);\n\tif(r%2==0){\n\t for(...
CDSS_123601
CDSS
#include<stdio.h> int main(void) { int a; //入力された数 int i,j,k=0; //カウンタ int sum; while(1){ scanf("%d",&a); if(a==0)break; i=1; for(i=1;i<a;i++){ j=i+1; sum=i; while(1){ sum= sum+j; /* /\* // printf("%d\n",sum); *\/ */ if(sum==a){ k++; //printf("%d\n",...
600
memory_bytes
{'s_id': 's388646693', 'p_id': 'p01314', 'u_id': 'u467070262', 'date': '1462188643', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '443'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\n int a; //入力された数\n int i,j,k=0; //カウンタ\n int sum;\n\n while(1){\n scanf(\"%d\",&a...
CDSS_634002
CDSS
#include <stdio.h> main(){ int max=-1e9; int min=1e9; int t; int n; scanf("%d",&n); int i; for(i=0;i<n;i++){ scanf("%d",&t); if(max<t) max=t; if(min>t) min=t; } printf("%d\n",max-min); }
128
memory_bytes
{'s_id': 's658472909', 'p_id': 'p03308', 'u_id': 'u744344124', 'date': '1530492083', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '229'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nmain(){\n int max=-1e9;\n int min=1e9;\n int t;\n int n;\n scanf(\"%d\",&n);\n int i;\n for(i=0;i<n;i++...
CDSS_684018
CDSS
#include <stdio.h> int main() { int N,A,s,j; scanf("%d",&N); scanf("%d",&A); s=N*N; j=s-A; printf("%d",j); return 0; }
128
memory_bytes
{'s_id': 's052171336', 'p_id': 'p03597', 'u_id': 'u018679195', 'date': '1509584548', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '125'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main()\n{\n\tint N,A,s,j;\n\tscanf(\"%d\",&N);\n\tscanf(\"%d\",&A);\n\ts=N*N;\n\tj=s-A;\n\tprintf(\"%d\",j);...
CDSS_433991
CDSS
#include <stdio.h> int main() { int A,B,C,D; int judge; //勝利判定 int count; //ターンカウント scanf("%d %d %d %d",&A, &B, &C, &D); judge = 0; count = 2; while(judge == 0){ if(count % 2 == 0) //高橋の攻撃 { C = C - B; if(C <= 0) judge = 1; } else //青木の攻撃 { A = A - D; if(A <= 0) judge = 2; ...
1,664
memory_bytes
{'s_id': 's020628764', 'p_id': 'p02700', 'u_id': 'u608492334', 'date': '1587951595', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1664', 'code_size': '506'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main()\n{\n int A,B,C,D;\n int judge;\t//勝利判定\n int count;\t//ターンカウント\n\n scanf(\"%d %d %d %d\",&A, &B, &C...
CDSS_615225
CDSS
#include <stdio.h> int main(){ int n,t,i; scanf("%d %d",&n,&t); int a[n],b[n]; int low = 1001; for(i = 0;i < n;i++){ scanf("%d %d",&a[n],&b[n]); if(b[n] <= t && low > a[n]) low = a[n]; } if(low == 1001) printf("TLE"); else printf("%d",low); return 0; }
128
memory_bytes
{'s_id': 's510167490', 'p_id': 'p03239', 'u_id': 'u981457522', 'date': '1538874824', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '256'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\nint n,t,i;\nscanf(\"%d %d\",&n,&t);\nint a[n],b[n];\nint low = 1001;\nfor(i = 0;i < n;i++){\nscan...
CDSS_734404
CDSS
#include <stdio.h> int color[105]; int main(){ int a,b,c; scanf("%d %d %d",&a,&b,&c); color[a]++; color[b]++; color[c]++; int i; int ans=0; for(i=1;i<=100;i++){ if(color[i]>0){ans++;} } printf("%d\n",ans); return 0; }
128
memory_bytes
{'s_id': 's823297417', 'p_id': 'p03962', 'u_id': 'u305950321', 'date': '1534220249', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '239'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint color[105];\n\nint main(){\n\n\tint a,b,c;\n\n\tscanf(\"%d %d %d\",&a,&b,&c);\n\n\tcolor[a]++;\n\tcolor[b]...