identifier
string
space
string
input
string
target
float64
metric_type
string
metadata
string
messages
list
CDSS_230500
CDSS
#include <stdio.h> #define error -1 int size=0,list[2000000]; int parent(int i){ return i/2; } int Left(int i){ return 2*i; } int Right(int i){ return 2*i+1; } void maxHeapify(int i){ int left,right,largest,key; left=Left(i); right=Right(i); if(left<=size && list[left]>list[i]) l...
4,696
memory_bytes
{'s_id': 's315881954', 'p_id': 'p02289', 'u_id': 'u119662895', 'date': '1502288146', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '430', 'memory': '4696', 'code_size': '1291'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 error -1\nint size=0,list[2000000];\n \nint parent(int i){\n return i/2;\n}\n \nint Left(int i){\n re...
CDSS_402269
CDSS
#include <stdio.h> int main() { for(int i = 0; i < 5; i++) { int n; scanf("%d", &n); if(n == 0) printf("%d", i + 1); } return 0; }
1,656
memory_bytes
{'s_id': 's121107448', 'p_id': 'p02639', 'u_id': 'u930207599', 'date': '1592183053', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1656', 'code_size': '183'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main()\n{\n for(int i = 0; i < 5; i++)\n {\n int n;\n scanf(\"%d\", &n);\n if(n =...
CDSS_231065
CDSS
#include <stdio.h> #include <math.h> #define MAX 2000000001 #define INF 2000000001 void maxHeapify(int i); int extract(); void increaseKey(int,int); void insert(int); int H,A[MAX+1]; int main(){ int key; char com[10]; while(1){ scanf("%s",com); if(com[0]=='e'&&com[1]=='n') break; if(com[0]=...
5,768
memory_bytes
{'s_id': 's548580458', 'p_id': 'p02289', 'u_id': 'u953743009', 'date': '1533315103', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '290', 'memory': '5768', 'code_size': '1241'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n#define MAX 2000000001\n#define INF 2000000001\n\nvoid maxHeapify(int i);\nint extract();\nvoid...
CDSS_214209
CDSS
#include <stdio.h> #define NIL -1 typedef struct{ int left,right,parent; }Tree; void setDepth(int ,int ); int n,depth[100000]; Tree Node[100000]; int main(void){ int i,j,node,parent,child,prev_child; scanf("%d",&n); for(i=0;i<n;i++){ Node[i].left=NIL; Node[i].right=NIL; Node[i].parent=NIL; } ...
6,540
memory_bytes
{'s_id': 's676447130', 'p_id': 'p02279', 'u_id': 'u483179571', 'date': '1530854561', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '40', 'memory': '6540', 'code_size': '1564'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 NIL -1\ntypedef struct{\n int left,right,parent;\n}Tree;\nvoid setDepth(int ,int );\n\nint n,depth[100000...
CDSS_370581
CDSS
#include <stdio.h> #include <string.h> int main(){ int m, h; char cards[256], temp[256], result[256]; int i, j=0, length; while(1){ scanf("%s", cards); length=strlen(cards); if(strcmp(cards, "-")==0&&length==1)break; scanf("%d", &m); for(;m>0;m--){ s...
2,088
memory_bytes
{'s_id': 's714641937', 'p_id': 'p02420', 'u_id': 'u800408401', 'date': '1529976388', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2088', 'code_size': '723'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\nint main(){\n int m, h;\n char cards[256], temp[256], result[256];\n int i, j=0, l...
CDSS_143141
CDSS
#include<stdio.h> #include<string.h> #define MAX 1000001 #define MAX2 10001 int main(){ int i; int t,p; char T[MAX],P[MAX2]; scanf("%s%s",T,P); t = strlen(T); p = strlen(P); for(i = 0;i < t;i++){ if(strncmp(&T[i],P,p)==0){ printf("%d\n",i); } } return 0; }
1,548
memory_bytes
{'s_id': 's669464686', 'p_id': 'p02248', 'u_id': 'u215276997', 'date': '1501636332', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '730', 'memory': '1548', 'code_size': '307'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 1000001\n#define MAX2 10001\n\n\n\nint main(){\n\n int i;\n int t,p;\n char T[...
CDSS_678956
CDSS
#include<stdio.h> int main(void){ long long n,temp,ans; scanf("%lld",&n); ans=1; temp=1; while(1){ if(temp*temp>n){ break; } ans=temp*temp; temp++; } printf("%lld\n",ans); return 0; }
128
memory_bytes
{'s_id': 's680344732', 'p_id': 'p03556', 'u_id': 'u699796231', 'date': '1520275861', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '260'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n long long n,temp,ans;\n scanf(\"%lld\",&n);\n ans=1;\n temp=1;\n while(1){\n ...
CDSS_680040
CDSS
#include<stdio.h> int main(){ int a,b; scanf("%d%d",&a,&b); printf("%d\n",b+b-a); return 0; }
128
memory_bytes
{'s_id': 's634852026', 'p_id': 'p03563', 'u_id': 'u850894780', 'date': '1535550857', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '101'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int a,b;\n scanf(\"%d%d\",&a,&b);\n printf(\"%d\\n\",b+b-a);\n return 0;\n}\nPredict its memory f...
CDSS_678785
CDSS
#include <stdio.h> #include <stdlib.h> int jagh(int n){ int i=1; while(i>0){ if(pow(i,2)>n){ return pow(i-1,2); } i++; } } int main(){ int n,c=0; scanf("%d",&n); printf("%d",jagh(n)); }
128
memory_bytes
{'s_id': 's366446855', 'p_id': 'p03556', 'u_id': 'u375695365', 'date': '1571804733', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '220'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\nint jagh(int n){\n int i=1;\n while(i>0){\n if(pow(i,2)>n){\n return pow(i-1,2);\...
CDSS_25656
CDSS
#include<stdio.h> int main() { int mon[10] = {0}; int i, j,a; for (i = 0; i < 10;i++) { scanf("%d",&mon[i]); //getchar(); } for (i = 0; i<9; i++) { for (j = i+1; j<10; j++) { if (mon[i] < mon[j]) { a = mon[i]; mon[i] = mon[j]; mon[j] = a; } } } for (i = 0; i < 3; i++) { print...
600
memory_bytes
{'s_id': 's383181856', 'p_id': 'p00001', 'u_id': 'u902207865', 'date': '1487758738', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '355'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 mon[10] = {0};\n\tint i, j,a;\n\tfor (i = 0; i < 10;i++)\n\t{\n\t\tscanf(\"%d\",&mon[i]);\n\...
CDSS_425908
CDSS
#include<stdio.h> int main() { int K,A,B,i,c=0; scanf("%d%d%d",&K,&A,&B); for(i=A;i<=B;i++) { if(i%K==0) c++; } if(c>0) printf("OK\n"); else printf("NG\n"); return 0; }
1,616
memory_bytes
{'s_id': 's638719500', 'p_id': 'p02693', 'u_id': 'u863370423', 'date': '1591921675', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '1616', 'code_size': '255'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 K,A,B,i,c=0;\n scanf(\"%d%d%d\",&K,&A,&B);\n for(i=A;i<=B;i++)\n {\n ...
CDSS_621590
CDSS
#include <stdio.h> #pragma GCC optimize ("O3") inline static int gl(void){ int x = 0; for(;;){ unsigned int c = getchar_unlocked() - 48; if(c < 10){ x = x*10 + c; }else{ break; } } return x; } inline static void pl(unsigned int s){ char str[9...
2,944
memory_bytes
{'s_id': 's190869000', 'p_id': 'p03263', 'u_id': 'u188638030', 'date': '1536472092', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2944', 'code_size': '1919'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#pragma GCC optimize (\"O3\")\n\ninline static int gl(void){\n int x = 0;\n for(;;){\n unsigned int c...
CDSS_336216
CDSS
#include <stdio.h> int main(void) { int H, W, i, j; H = 1; W = 1; while (1) { scanf("%d %d", &H, &W); if ((H == 0) && (W == 0)) { break; } for (i = 0;i < H;i++) { for (j = 0;j < W;j++) { if ((i + j) % 2 == 0) { printf("#"); } if ((i + j) % 2 == 1) { printf("."); ...
572
memory_bytes
{'s_id': 's857154687', 'p_id': 'p02405', 'u_id': 'u231994450', 'date': '1500308346', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '572', 'code_size': '387'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h> \nint main(void)\n{\n\tint H, W, i, j;\n\tH = 1;\n\tW = 1;\n\twhile (1)\n\t{\n\t\tscanf(\"%d %d\", &H, &W);\n\t\tif...
CDSS_485220
CDSS
#include <stdio.h> #include <math.h> int main(){ int n, k, r; scanf("%d%d",&n,&k); int i=0; while( n >= k ){ n = n/k; r = n%k; i++; } i++; printf("%d\n",i); return 0; }
128
memory_bytes
{'s_id': 's958506927', 'p_id': 'p02766', 'u_id': 'u067105756', 'date': '1583015646', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '269'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n\nint main(){\n \n int n, k, r;\n scanf(\"%d%d\",&n,&k);\n \n int i=0;\n \n ...
CDSS_329591
CDSS
#include <stdio.h> typedef struct tagS_RECTANGLE { int H; int W; } S_RECTANGLE; int main( void ) { S_RECTANGLE sRectangle; int i; int j; while( 1 ){ scanf( "%d %d", &sRectangle.H, &sRectangle.W ); if( sRectangle.H == 0 && sRectangle.W == 0 ){ break; } for( i = 0; i < sRectangle.H; i++ ){ for( j =...
572
memory_bytes
{'s_id': 's860892885', 'p_id': 'p02403', 'u_id': 'u356350332', 'date': '1463921103', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '572', 'code_size': '424'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 tagS_RECTANGLE {\n\tint H;\n\tint W;\n} S_RECTANGLE;\n\nint main( void )\n{\n\tS_RECTANGLE sRecta...
CDSS_525678
CDSS
#include <stdio.h> int main() { int n,i,t; scanf("%d",&n); int A[n],a[n]; for(i=0;i<n;i++) { scanf(" %d",&A[i]); t=A[i]; a[t-1]=i+1; } for(i=0;i<n;i++) { printf("%d ",a[i]); } }
1,536
memory_bytes
{'s_id': 's694431093', 'p_id': 'p02899', 'u_id': 'u863370423', 'date': '1572443500', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '1536', '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>\nint main()\n{\n\tint n,i,t;\n\tscanf(\"%d\",&n);\n\tint A[n],a[n];\n\tfor(i=0;i<n;i++)\n\t{\n\t\tscanf(\" %d\",&A[...
CDSS_299894
CDSS
#include <stdio.h> int main(void) {int i,x,y; for(i=0;;i++){ scanf("%d %d",&x,&y); if(x==0&&y==0){ break;} else if(x<=y){ printf("%d %d\n",x,y);} else{ printf("%d %d\n",y,x);} } return 0; }
600
memory_bytes
{'s_id': 's508668779', 'p_id': 'p02397', 'u_id': 'u245181055', 'date': '1430390068', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', '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(void)\n{int i,x,y;\n\tfor(i=0;;i++){\n\tscanf(\"%d %d\",&x,&y);\n\tif(x==0&&y==0){\n\tbreak;}\n\telse i...
CDSS_632284
CDSS
#include<stdio.h> int main() { int a,b; scanf("%d%d",&a,&b); if(a+b==15){ printf("+\n"); } else if(a*b==15){ printf("*\n"); } else{ printf("x\n"); } return 0; }
128
memory_bytes
{'s_id': 's354096453', 'p_id': 'p03302', 'u_id': 'u018679195', 'date': '1579710044', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '206'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n int a,b;\n scanf(\"%d%d\",&a,&b);\n\n if(a+b==15){\n printf(\"+\\n\");\n }\n else if(a...
CDSS_691560
CDSS
#include <stdio.h> int main(){ int n, m; scanf("%d %d", &n, &m); printf("%d\n", (n-1)*(m-1)); return 0; }
128
memory_bytes
{'s_id': 's227279853', 'p_id': 'p03635', 'u_id': 'u889278665', 'date': '1544439356', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '115'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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, m;\n scanf(\"%d %d\", &n, &m);\n printf(\"%d\\n\", (n-1)*(m-1));\n return 0;\n}\n\nPred...
CDSS_127978
CDSS
// AOJ 2781: Help the Princess! // 2018.1.31 bal4u #include <stdio.h> #include <math.h> #define QMAX 40000 typedef struct { int t, r, c; } QUE; QUE que[QMAX]; int qsize; #define PARENT(i) ((i)>>1) #define LEFT(i) ((i)<<1) #define RIGHT(i) (((i)<<1)+1) void min_heapify(int i) { int l, r, min; QUE qt; l = LEFT...
2,080
memory_bytes
{'s_id': 's655588170', 'p_id': 'p01881', 'u_id': 'u847467233', 'date': '1517365448', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2080', 'code_size': '1961'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n// AOJ 2781: Help the Princess!\n// 2018.1.31 bal4u\n\n#include <stdio.h>\n#include <math.h>\n\n#define QMAX 40000\ntypedef struct { i...
CDSS_555401
CDSS
#include<stdio.h> #include<stdlib.h> int compare_int(const void *a, const void *b){ if ( *(int*)a > *(int*)b ) return 1; if ( *(int*)a < *(int*)b ) return -1; return 0; } int main(void){ int n,i,j,temp; scanf("%d",&n); int a[n]; for(i=0; i<n; i++){ scanf("%d",&a[i]); } ...
892
memory_bytes
{'s_id': 's523355767', 'p_id': 'p02989', 'u_id': 'u969559338', 'date': '1563229224', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '26', 'memory': '892', 'code_size': '419'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 compare_int(const void *a, const void *b){\n if ( *(int*)a > *(int*)b ) return 1;\n ...
CDSS_117026
CDSS
void main(){int i,j,n=1<<18;char p[1<<18];for(i=0;i<n;i++)p[i]=(i<2)?0:1;for(i=2;i*i<n;i++)for(j=i*2;j<n;j+=i)p[i]?p[j]=0:0;for(;j=0,scanf("%d",&n),n;printf("%d\n",j))for(i=n+1;i<=2*n;i++)p[i]?j++:0;}
0
memory_bytes
{'s_id': 's702332601', 'p_id': 'p00753', 'u_id': 'u862297061', 'date': '1312273988', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', '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:\nvoid main(){int i,j,n=1<<18;char p[1<<18];for(i=0;i<n;i++)p[i]=(i<2)?0:1;for(i=2;i*i<n;i++)for(j=i*2;j<n;j+=i)p[i]?p[j]=0:0;for(;j=0,s...
CDSS_62408
CDSS
V[]={1e3,500,100,50,10,5,1};char*R="NEDMYWJ";v,n,s=1e3;main(c){for(;c=getchar()+1;s=v)n=c-11?(v=V[strchr(R,c)-R],n+v-s*2*(s<v)):!printf("%d\n",n,v=*V);}
0
memory_bytes
{'s_id': 's615344401', 'p_id': 'p00039', 'u_id': 'u399107199', 'date': '1288439251', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '152'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nV[]={1e3,500,100,50,10,5,1};char*R=\"NEDMYWJ\";v,n,s=1e3;main(c){for(;c=getchar()+1;s=v)n=c-11?(v=V[strchr(R,c)-R],n+v-s*2*(s<v)):!pri...
CDSS_515723
CDSS
#include<stdio.h> #include<string.h> int main(){ int n,i,cnt=0; char s[101]; scanf("%d",&n); scanf("%s",s); if(n%2!=0){ cnt=-1; } else{ for(i=0; i<n/2; i++){ if(s[i]==s[n/2+i]){ cnt++; } } } if(cnt==n/2){ printf("Yes\n"); } else{ printf("No\n"); } return...
128
memory_bytes
{'s_id': 's912910538', 'p_id': 'p02860', 'u_id': 'u481026841', 'date': '1573956600', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '326'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 n,i,cnt=0;\n char s[101];\n scanf(\"%d\",&n);\n scanf(\"%s\",s);\n if(n%...
CDSS_190998
CDSS
#include<stdio.h> #define true 1 #define false 0 int linearSearch(int A[], int key, int n){ int i; for(i = 0; i < n; i++){ if(A[i] == key){ return true; } } return false; } int main(){ int S[10000], T[500]; int i, n, q; int count = 0; scanf("%d", &n); for(i = 0; i < n; i++){ sca...
2,092
memory_bytes
{'s_id': 's640405680', 'p_id': 'p02267', 'u_id': 'u978799212', 'date': '1571986825', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2092', 'code_size': '551'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 true 1\n#define false 0\n\nint linearSearch(int A[], int key, int n){\n int i;\n\n for(i = 0; i < n; i+...
CDSS_97123
CDSS
#include<stdio.h> int main(void){ int n,m; int i,j; char str1[20000]; char str2[100000]; while(scanf(" %d",&n)){ if(n == 0){ break; } for(i = 0;i < n * 2;i++){ scanf(" %c",&str1[i]); } scanf("%d",&m); for(i = 0;i < m;i++){ scanf(" %c",&str2[i]); } i = 0; while(str2[i] != '\0'){ for(j = 0;j < n ...
676
memory_bytes
{'s_id': 's684197985', 'p_id': 'p00424', 'u_id': 'u854735442', 'date': '1450299028', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '676', '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:\n#include<stdio.h>\nint main(void){\n\tint n,m;\n\tint i,j;\n\tchar str1[20000];\n\tchar str2[100000];\n\twhile(scanf(\" %d\",&n)){\n\t...
CDSS_681681
CDSS
#include <stdio.h> int main(){ int A,B,C; scanf("%d %d %d",&A,&B,&C); if(A==B){ printf("%d",C); }else if(A==C){ printf("%d",B); }else{ printf("%d",A); } return 0; }
128
memory_bytes
{'s_id': 's823400687', 'p_id': 'p03573', 'u_id': 'u992407450', 'date': '1508729572', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '191'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n int A,B,C;\n scanf(\"%d %d %d\",&A,&B,&C);\n if(A==B){\n printf(\"%d\",C);\n }else if(A==C)...
CDSS_648584
CDSS
#include<stdio.h> int main() { int a,b,c,x,y; scanf("%d%d%d%d%d",&a,&b,&c,&x,&y); if(a+b<2*c){ printf("%d",a*x+b*y); return 0; } if(a+b>=2*c){ if(x>=y){ if(a<=2*c){ printf("%d",y*2*c+a*(x-y)); return 0; } if(a>2*c){ printf("%d",x*2*c); return 0; ...
1,724
memory_bytes
{'s_id': 's803754937', 'p_id': 'p03373', 'u_id': 'u287365470', 'date': '1593399605', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '7', 'memory': '1724', 'code_size': '509'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main()\n{\n int a,b,c,x,y;\n scanf(\"%d%d%d%d%d\",&a,&b,&c,&x,&y);\n if(a+b<2*c){\n printf(\"%d\",a*x+b...
CDSS_166655
CDSS
#include<stdio.h> static const int N = 100; int main(){ int n,i,j; int v; int count=0; int A[N]; /*scanf data*/ scanf("%d",&n); for(i=0;i<n;i++) scanf("%d",&A[i]); /*bubbule sort*/ for(i=0;i<n-1;i++){ for(j=n-1;j>i;j--){ if(A[j-1]>A[j]){ v=A[j]; A[j]=A[j-1]; A[j-1]=v; ...
600
memory_bytes
{'s_id': 's292290070', 'p_id': 'p02259', 'u_id': 'u547649843', 'date': '1493972753', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', '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 \nstatic const int N = 100;\n \nint main(){\n int n,i,j;\n int v;\n int count=0;\n int A[N];\n \n /*scanf dat...
CDSS_132131
CDSS
#include <stdio.h> int min(int a,int b){ if (a>b) return b; else return a; } int main(){ int i,j,k,n,p[101],m[101][101],s,z; scanf("%d",&n); for(i=0;i<n;i++) scanf("%d%d",&p[i],&s); p[n]=s; for(i=1;i<=n;i++) m[i][i]=0; for(j=2;j<=n;j++){ for(i=1;i<=n-j+1;i++){ z=i+j-1; m[i][z]=1000...
2,056
memory_bytes
{'s_id': 's282535983', 'p_id': 'p02234', 'u_id': 'u089398471', 'date': '1596876279', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2056', 'code_size': '474'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint min(int a,int b){\n if (a>b) return b;\n else return a;\n}\n\nint main(){\n int i,j,k,n,p[101],m[101][101...
CDSS_93557
CDSS
#include <stdio.h> int main( ){ int N,i,P,K; scanf("%d",&N); for(i=0; i < N; i++){ scanf("%d %d",&P,&K); if(P%K == 0){ printf("%d\n",K);} else { printf("%d\n",P%K);} } return 0; }
596
memory_bytes
{'s_id': 's342287686', 'p_id': 'p00292', 'u_id': 'u267391019', 'date': '1492851590', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '215'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main( ){\n int N,i,P,K;\n scanf(\"%d\",&N);\n\n for(i=0; i < N; i++){\n scanf(\"%d %d\",&P,&K);\n if(...
CDSS_634934
CDSS
#include <stdio.h> int main(){ char s[4]; int count_plus=0; scanf("%s", s); for(int i=0;i<4;i++){ if(s[i]=='+'){ count_plus++; } } printf("%d\n", 2*count_plus - 4); }
128
memory_bytes
{'s_id': 's239640867', 'p_id': 'p03315', 'u_id': 'u382431597', 'date': '1553706500', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '194'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n char s[4];\n int count_plus=0;\n scanf(\"%s\", s);\n\n for(int i=0;i<4;i++){\n if(s[i]=='+'...
CDSS_719502
CDSS
#include<stdio.h> int main(){ int N, M, i, j , k , l, flag; char A[50][51], B[50][51]; scanf("%d %d", &N, &M); for (i = 0; i < N; i++){ scanf("%s", A[i]); } for (i = 0; i < M; i++){ scanf("%s", B[i]); } for (i = 0; i <= N - M; i++){ for (j = 0; j <= N - M; j++){ flag = 1; ...
128
memory_bytes
{'s_id': 's591776054', 'p_id': 'p03804', 'u_id': 'u313578168', 'date': '1549652221', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '807'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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, M, i, j , k , l, flag;\n char A[50][51], B[50][51];\n \n scanf(\"%d %d\", &N, &M);\n fo...
CDSS_675460
CDSS
#include <stdio.h> #include <stdlib.h> #include<math.h> int main() { int N; scanf("%d",&N); int a[6]; for(int i=4;i>=1;i--) { a[i]=N%10; N=N/10; } if(a[1]==a[2]&&a[2]==a[3]) printf("Yes"); else if(a[2]==a[3]&&a[3]==a[4]) printf("Yes"); else printf("No"); return 0; }
128
memory_bytes
{'s_id': 's160950228', 'p_id': 'p03543', 'u_id': 'u353919145', 'date': '1511744844', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '300'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include<math.h>\n\nint main()\n{\n int N;\n scanf(\"%d\",&N);\n int a[6];\n for(int i=4;...
CDSS_96212
CDSS
#include<stdio.h> int main(void) { int n; scanf("%d",&n); if(n>=65&&n<=90){ printf("1\n"); } else if(n>=97&&n<=122){ printf("2\n"); } else{ printf("0\n"); } return 0; }
2,052
memory_bytes
{'s_id': 's929389373', 'p_id': 'p00400', 'u_id': 'u288941982', 'date': '1596090570', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2052', 'code_size': '184'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\n\tint n;\n\tscanf(\"%d\",&n);\n\tif(n>=65&&n<=90){\n\t\tprintf(\"1\\n\");\n\t}\n\telse if(n>=97&...
CDSS_176742
CDSS
#include<stdio.h> #include<stdlib.h> #include<string.h> int main(void){ int i = 0; int stack[100]; char s[100]; while(scanf("%s", s) != EOF){ if (s[0] == '+'){ stack[i-2] = stack[i-2] + stack[i-1]; i--; } else if(s[0] == '-'){ stack[i-2] = stack[i-2] - stack[i-1]; i--; ...
548
memory_bytes
{'s_id': 's325759704', 'p_id': 'p02263', 'u_id': 'u353728528', 'date': '1430372536', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '548', 'code_size': '513'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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(void){\n int i = 0;\n int stack[100];\n char s[100];\n \n w...
CDSS_727059
CDSS
#include<stdio.h> //累乗(power)a^n(mod10^9+7) long long power(long long a,long long n){ long long count=a,sum=1; while(n>0){ if(n%2==1) sum*=count; count*=count; count%=1000000007; sum%=1000000007; n/=2; } return sum; } int main(){ int n,i; scanf("%d",&n); int a[n],count[n]; for...
2,488
memory_bytes
{'s_id': 's110022767', 'p_id': 'p03846', 'u_id': 'u917851778', 'date': '1594645887', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '25', 'memory': '2488', 'code_size': '817'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n//累乗(power)a^n(mod10^9+7)\nlong long power(long long a,long long n){\n long long count=a,sum=1;\n while(n>0){\n ...
CDSS_464580
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <limits.h> #include <math.h> #define rep(i,n) for(int i=0; i<n; i++) typedef long long ll; const ll mod=1e9+7; int main(){ ll N,M,tmp,idx,sum=0; ll *A; // int i; scanf("%lld%lld",&N,&M); A = (ll*)malloc(sizeof(ll)*N); rep(i,N){ scanf("%lld",...
128
memory_bytes
{'s_id': 's509708756', 'p_id': 'p02718', 'u_id': 'u420528322', 'date': '1587764175', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '128', 'code_size': '590'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 <limits.h>\n#include <math.h>\n#define rep(i,n) for(int i=0; i<...
CDSS_611687
CDSS
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> int main(void) { int n, t, a, h[1001], index=0, i, poor[1001], min; scanf("%d%d%d", &n, &t, &a); scanf("%d", h); poor[0] = 1000*a-1000*t+h[0]*6; if (poor[0] < 0) { poor[0] *= -1; } min = poor[0]; for (i = 1; i < n; i++) { scanf("%d", h + i); po...
128
memory_bytes
{'s_id': 's833803317', 'p_id': 'p03220', 'u_id': 'u335971372', 'date': '1588707535', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '504'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#define _CRT_SECURE_NO_WARNINGS\n#include <stdio.h>\n\nint main(void) {\n\n\tint n, t, a, h[1001], index=0, i, poor[1001], min;\n\n\ts...
CDSS_591986
CDSS
#include <stdio.h> int main(){ int A,B,K; int i,number,sum=0; int wari[150]={0}; if(scanf("%d %d %d", &A,&B,&K) < 3) { fprintf(stderr, "error: ill-formed fraction.\n"); } for(i=1;i<=110;i++){ if(A%i == 0 && B%i ==0) wari[i]=1; else; // printf("wari[%d]%d ",i,wari[i]); } for(...
128
memory_bytes
{'s_id': 's088627831', 'p_id': 'p03106', 'u_id': 'u410736938', 'date': '1551660090', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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 \nint main(){\n\tint A,B,K;\n \tint i,number,sum=0;\n \tint wari[150]={0};\n \n \n if(scanf(\"%d %d %d\", &A,...
CDSS_687440
CDSS
#include<stdio.h> int main(void) { int n; int a[100000]; int sum[1000000] = {}; int max = 0; scanf("%d", &n); for (int i = 0; i < n; i++) { scanf("%d", &a[i]); if (max < a[i]) { max = a[i]; } } for (int i = 0; i < n; i++) { if(a[i]==0){ sum[a[i]]++; sum[a[i] + 1]++; ...
4,480
memory_bytes
{'s_id': 's707635072', 'p_id': 'p03611', 'u_id': 'u015875086', 'date': '1569193751', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '12', 'memory': '4480', 'code_size': '593'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\n\tint n;\n\tint a[100000];\n\tint sum[1000000] = {};\n\tint max = 0;\n\tscanf(\"%d\", &n);\n\tfo...
CDSS_675004
CDSS
#include<stdio.h> #include<stdlib.h> #include<math.h> typedef long long int int64; #define MAX(a,b) ((a)>(b)?(a):(b)) #define MIN(a,b) ((a)<(b)?(a):(b)) #define ABS(a) ((a)>(0)?(a):-(a)) int cmp(const void *a,const void *b){ return *(int *)a-*(int *)b; } int calc(int index,int *d,int *f){ if(index>12){ int ...
128
memory_bytes
{'s_id': 's795436695', 'p_id': 'p03535', 'u_id': 'u425248533', 'date': '1524206676', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '1569'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#include<math.h>\n\ntypedef long long int int64;\n\n#define MAX(a,b) ((a)>(b)?(a):(b))\n#define...
CDSS_202868
CDSS
#include<stdio.h> #define N 500000 void merge(int *, int, int, int); void mergeSort(int *, int, int); int count=0; int main() { int i, n, S[N]; scanf("%d", &n); for(i = 0; i < n; i++){ scanf("%d", &S[i]); } mergeSort(S, 0, n); for(i = 0; i < n-1; i++){ printf("%d ", S[i]); } printf("%d\n"...
4,516
memory_bytes
{'s_id': 's701707324', 'p_id': 'p02272', 'u_id': 'u175028675', 'date': '1466314219', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '160', 'memory': '4516', 'code_size': '1019'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#define N 500000\n\nvoid merge(int *, int, int, int);\nvoid mergeSort(int *, int, int);\n\nint count=0;\n\nint main...
CDSS_709010
CDSS
#include<string.h> #include<stdio.h> int main(void){ char a[10],b[10],c[10]; scanf("%s %s %s",a,b,c); if((a[strlen(a)-1]==b[0]) && (b[strlen(b)-1]==c[0])) printf("YES\n"); else printf("NO\n"); return 0; }
128
memory_bytes
{'s_id': 's902371220', 'p_id': 'p03729', 'u_id': 'u992736202', 'date': '1550902113', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '214'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<string.h>\n#include<stdio.h>\nint main(void){\n char a[10],b[10],c[10];\n scanf(\"%s %s %s\",a,b,c);\n if((a[strlen(a)-1]=...
CDSS_732412
CDSS
#include <stdio.h> int main() { int a, b, c; scanf("%d %d %d",&a,&b,&c); if (a + c == b||a+b==c||b+c==a) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
128
memory_bytes
{'s_id': 's870476401', 'p_id': 'p03943', 'u_id': 'u305950321', 'date': '1478484294', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '178'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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;\n\n\tscanf(\"%d %d %d\",&a,&b,&c);\n\n\tif (a + c == b||a+b==c||b+c==a) {\n\t\tpr...
CDSS_520286
CDSS
#define _CRT_SECURE_NO_WARNINGS #define PI 3.1415926535 #include<stdio.h> #include<math.h> int halftilting(double a, double b, double x); int main() { double a, b, x; long double alpha; scanf("%lf %lf %lf", &a, &b, &x); if (halftilting(a, b, x) == 1) { double tmp = 2 * (a * a * b - x) / (a * a * a); alpha = at...
256
memory_bytes
{'s_id': 's703074316', 'p_id': 'p02882', 'u_id': 'u596740622', 'date': '1572976415', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '256', 'code_size': '573'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#define _CRT_SECURE_NO_WARNINGS\n#define PI 3.1415926535\n#include<stdio.h>\n#include<math.h>\nint halftilting(double a, double b, dou...
CDSS_419350
CDSS
#include<stdio.h> #include <string.h> int main(){ char S[11]={}; char T[11]={}; int n=0; scanf("%s",S); scanf("%s",T); n = strlen(S); // if(n==0){ // printf("No\n"); // }else{ if(strncmp(S,T,n)==0){ if(T[n]==0){ printf("No\n"); }else{ if(T[n+1]==0){ ...
1,684
memory_bytes
{'s_id': 's657823632', 'p_id': 'p02681', 'u_id': 'u185703744', 'date': '1589160454', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '1684', 'code_size': '512'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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(){\nchar S[11]={};\nchar T[11]={};\nint n=0;\nscanf(\"%s\",S);\nscanf(\"%s\",T);\nn =...
CDSS_128660
CDSS
// AOJ 3027: OOllOll // 2018.3.28 bal4u #include <stdio.h> int main() { int N, i; scanf("%d", &N); if (N == 1) { puts("1"); return 0; } for (i = 0; (1<<i) < N; i++); if ((1<<i)-1 > N) i--; printf("%d\n", i); return 0; }
2,104
memory_bytes
{'s_id': 's393418773', 'p_id': 'p02125', 'u_id': 'u847467233', 'date': '1522245085', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '231'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n// AOJ 3027: OOllOll\n// 2018.3.28 bal4u\n\n#include <stdio.h>\n\nint main()\n{\n\tint N, i;\n\n\tscanf(\"%d\", &N);\n\tif (N == 1) { ...
CDSS_288508
CDSS
#include <stdio.h> int main(void) { int a[3]; int i, j, temp; scanf("%d", &a[0]); scanf("%d", &a[1]); scanf("%d", &a[2]); for (i = 0; i < 2; i++) { if (a[0] <= a[1] && a[1] <= a[2]) { break; } for (j = 0; j < 2; j++) { if (a[j] > a[j + 1]) { temp = a[j]; a[j] = a[j + 1]; a[j + 1] = temp...
2,140
memory_bytes
{'s_id': 's920649215', 'p_id': 'p02393', 'u_id': 'u934102130', 'date': '1539742165', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2140', 'code_size': '390'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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[3];\n\tint i, j, temp;\n\n\tscanf(\"%d\", &a[0]);\n\tscanf(\"%d\", &a[1]);\n\tscanf(\"...
CDSS_454407
CDSS
#include <stdio.h> int main(void){ long long int n; scanf("%lld",&n); long long int s=0; long long int i; for(i=1;i<=n;i++){ if(i%3!=0&&i%5!=0){ s=s+i; } } printf("%lld",s); return 0; }
1,724
memory_bytes
{'s_id': 's958173188', 'p_id': 'p02712', 'u_id': 'u996704180', 'date': '1597459870', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '8', 'memory': '1724', 'code_size': '220'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\n long long int n;\n scanf(\"%lld\",&n);\n long long int s=0;\n long long int i;\n\n for(i=1;...
CDSS_394507
CDSS
#include <stdio.h> int main(void){ int a; printf(" "); scanf("%d",&a); printf("%d\n", a+a*a+a*a*a); return 0; }
1,724
memory_bytes
{'s_id': 's736506359', 'p_id': 'p02621', 'u_id': 'u566837284', 'date': '1595354105', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1724', 'code_size': '125'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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;\n printf(\" \");\n scanf(\"%d\",&a);\nprintf(\"%d\\n\", a+a*a+a*a*a);\nreturn 0;...
CDSS_361508
CDSS
#include <stdio.h> #include <ctype.h> int main(){ char ch; for(;;){ scanf("%c",&ch); if(ch == '\n')break; if(islower(ch)){ ch = toupper(ch); printf("%c",ch); } else if(isupper(ch)){ ch = tolower(ch); printf("%c",ch); } else{ printf("%c",ch); } }...
524
memory_bytes
{'s_id': 's503374164', 'p_id': 'p02415', 'u_id': 'u994128288', 'date': '1436431781', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', 'code_size': '353'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <ctype.h>\nint main(){\n char ch;\n\n for(;;){\n scanf(\"%c\",&ch);\n\n if(ch == '\\n')break;\n\n...
CDSS_128514
CDSS
#include<stdio.h> #define ll long long #define rep(i,l,r)for(ll i=(l);i<(r);i++) typedef struct atai{ll nxt,n,c;}atai; atai x[200010]; //* //プラキュー(二分ヒープ)(最低限バージョン) //int PQhikaku(int i,int j);//jの方が優先度が高いならtrueを返す int PQhikaku(ll*heap,int i,int j){return x[heap[i]].nxt>x[heap[j]].nxt;} void heap_utod(ll*heap,int n){ ...
10,976
memory_bytes
{'s_id': 's673506284', 'p_id': 'p02057', 'u_id': 'u409832240', 'date': '1568519361', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '380', 'memory': '10976', 'code_size': '1522'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 ll long long\n#define rep(i,l,r)for(ll i=(l);i<(r);i++)\n\ntypedef struct atai{ll nxt,n,c;}atai;\natai x[20...
CDSS_632821
CDSS
#include <stdio.h> #include <math.h> #include <stdlib.h> #include <stdbool.h> int main(){ int a; scanf("%d",&a); if (a%2==0) printf("%d",a); else printf("%d",a*2); return 0; }
1,720
memory_bytes
{'s_id': 's246160281', 'p_id': 'p03307', 'u_id': 'u554784585', 'date': '1599364319', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1720', 'code_size': '196'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n#include <stdlib.h>\n#include <stdbool.h>\nint main(){\n int a;\n scanf(\"%d\",&a);\n ...
CDSS_381033
CDSS
#include<stdio.h> int main(){ int n,x,t; scanf("%d%d%d",&n,&x,&t); n=(n-1)/x+1; printf("%d\n",t*n); return 0; }
1,728
memory_bytes
{'s_id': 's791758093', 'p_id': 'p02576', 'u_id': 'u917851778', 'date': '1598122913', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1728', 'code_size': '122'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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,x,t;\n scanf(\"%d%d%d\",&n,&x,&t);\n n=(n-1)/x+1;\n printf(\"%d\\n\",t*n);\n return 0;\n}\...
CDSS_81530
CDSS
// Aizu Vol-2 0143 Altair and Vega // 2017.8.8 #include <stdio.h> int atSameSide(int x1, int y1, int x2, int y2, int xa, int ya, int xb, int yb) { long long sa, sb; sa = (x2 - x1) * (ya - y1) + (y2 - y1) * (x1 - xa); sb = (x2 - x1) * (yb - y1) + (y2 - y1) * (x1 - xb); if (sb == 0 || sa == 0) while (1); // ...
584
memory_bytes
{'s_id': 's075792347', 'p_id': 'p00143', 'u_id': 'u847467233', 'date': '1502193104', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '584', 'code_size': '967'}
[ { "content": "Your task is to predict the memory 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-2 0143 Altair and Vega\n// 2017.8.8\n\n#include <stdio.h>\n\nint atSameSide(int x1, int y1, int x2, int y2, int xa, int ...
CDSS_296900
CDSS
#include <stdio.h> int main(){ int x[10000]; int i=0; int j; while(1){ i++; scanf("%d",&x[i]); if(x[i]==0){ break; } } for(j=1;j<i;j++){ printf("Case %d: %d\n",j,x[j]); } return 0; }
636
memory_bytes
{'s_id': 's386531090', 'p_id': 'p02396', 'u_id': 'u156207800', 'date': '1498028309', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '636', 'code_size': '286'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 x[10000];\n int i=0;\n int j;\n \n while(1){\n i++;\n scanf(\"%d\...
CDSS_566513
CDSS
#include<stdio.h> int main() { long long int a,p,ans; scanf("%lld %lld",&a,&p); ans=((3*a)+p)/2; printf("%lld\n",ans ); return 0; }
128
memory_bytes
{'s_id': 's191288327', 'p_id': 'p03029', 'u_id': 'u288013915', 'date': '1570328533', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '150'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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\t\n\tlong long int a,p,ans;\n\tscanf(\"%lld %lld\",&a,&p);\n\t\n\tans=((3*a)+p)/2;\n\tprintf(\"%lld...
CDSS_335302
CDSS
#include<stdio.h> int main(void){ int h, w, i, j; for(;;){scanf("%d %d", &h, &w); if(h == 0 && w == 0){ break;} for(i=1;i<=h;i++){ for(j=1;j<=w;j++){ if((i+j)%2==0){ printf("#"); } else if((i+j)%2==1){ printf("."); } } printf("\n"); } printf("\n"); } return 0; }
2,128
memory_bytes
{'s_id': 's146218507', 'p_id': 'p02405', 'u_id': 'u351440844', 'date': '1556005969', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2128', 'code_size': '311'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\nint h, w, i, j;\n\tfor(;;){scanf(\"%d %d\", &h, &w);\n\t\tif(h == 0 && w == 0){\n\t\t\tbreak;}\n\t...
CDSS_60958
CDSS
#include<stdio.h> int n,i,a,b,f,x,y,z; int main(){ scanf("%d",&n); while(n--){ scanf("%d",&a); b=f=0;x=y=1; for(i=1;i<10;i++){ scanf("%d",&z); if(a>z && b>z)f=1; else if(a<z && b<z){ if(a>b)a=z; else b=z; }else{ if(a>b)b=z; else a=z; } } printf("%s\n",(f==0)?("YES"):("NO"));...
0
memory_bytes
{'s_id': 's985676947', 'p_id': 'p00033', 'u_id': 'u435952407', 'date': '1304426800', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '338'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint n,i,a,b,f,x,y,z;\n\nint main(){\n\tscanf(\"%d\",&n);\n\twhile(n--){\n\t\tscanf(\"%d\",&a);\n\t\tb=f=0;x=y=1;\...
CDSS_201269
CDSS
#include <stdio.h> int n,A[20]; int solve(int,int); int main(){ int i,m,q; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&A[i]); } scanf("%d",&q); for(i=0;i<q;i++){ scanf("%d",&m); if(solve(0,m)==1) printf("yes\n"); else printf("no\n"); } return 0; } int solve(int i,int m){ int res;...
2,108
memory_bytes
{'s_id': 's379980870', 'p_id': 'p02271', 'u_id': 'u710713036', 'date': '1545100337', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '500', 'memory': '2108', 'code_size': '429'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint n,A[20];\n\nint solve(int,int);\n\nint main(){\n int i,m,q;\n scanf(\"%d\",&n);\n for(i=0;i<n;i++){\n ...
CDSS_577843
CDSS
#include<stdio.h> #include<stdlib.h> #include<math.h> #include<string.h> int main(void){ int length; char *string; int k; scanf("%d",&length); string=(char *)malloc(sizeof(char)*length); scanf("%s",string); scanf("%d",&k); int i; for(i=0;i<length;i++){ if(string[i]!=string[k...
128
memory_bytes
{'s_id': 's652391776', 'p_id': 'p03068', 'u_id': 'u389834932', 'date': '1584302420', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '409'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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>\nint main(void){\n int length;\n char *string;\n ...
CDSS_594384
CDSS
#include <stdio.h> int main(){ int A,B; scanf("%d %d",&A,&B); if(B%A==0) printf("%d\n",A+B); else printf("%d\n",B-A); return 0; }
128
memory_bytes
{'s_id': 's927538971', 'p_id': 'p03125', 'u_id': 'u347116006', 'date': '1592199296', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '140'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n int A,B;\n scanf(\"%d %d\",&A,&B);\n if(B%A==0) printf(\"%d\\n\",A+B);\n else printf(\"%d\\n\"...
CDSS_73948
CDSS
#include <stdio.h> int main(void) { int leap_year[3001] = {0}; int i, a, b; const char *result, *separator = ""; for (i = 0; i < 3001; i++) { leap_year[i] = (i % 4 == 0 && i % 100) || (i % 400 == 0); } while (1) { scanf("%d %d", &a, &b); if (!a && !b) break; printf("%s", separator); result = "NA\...
616
memory_bytes
{'s_id': 's606104358', 'p_id': 'p00093', 'u_id': 'u782850731', 'date': '1381237653', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '616', 'code_size': '485'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 leap_year[3001] = {0};\n\tint i, a, b;\n\tconst char *result, *separator = \"\";\n\n\tfor ...
CDSS_443531
CDSS
#include<stdio.h> int main(void){ int n,m; scanf("%d%d",&n,&m); int a[m]; for(int i=0;m>i;++i) scanf("%d",&a[i]); int sum=0; for(int i=0;m>i;++i){ sum+=a[i]; } if(n-sum<0) printf("-1"); else { printf("%d",n-sum); } return 0; }
1,728
memory_bytes
{'s_id': 's641043536', 'p_id': 'p02706', 'u_id': 'u270535768', 'date': '1587346513', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '1728', 'code_size': '298'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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,m;\n scanf(\"%d%d\",&n,&m);\n int a[m];\n for(int i=0;m>i;++i)\n scanf(\"%d\...
CDSS_684409
CDSS
#include<stdio.h> int main() { int K, N, i, sum = 0; int x[100]; scanf("%d", &N); scanf("%d", &K); for(i = 0; i < N; i++) { scanf("%d", &x[i]); } for(i = 0; i < N; i++) { if(x[i] < K -x[i]) { sum += 2 * x[i]; } else ...
128
memory_bytes
{'s_id': 's851096490', 'p_id': 'p03598', 'u_id': 'u358838535', 'date': '1505610780', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '128', 'code_size': '401'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main()\n{\n int K, N, i, sum = 0;\n int x[100];\n\n \n scanf(\"%d\", &N);\n scanf(\"%d\", &K);...
CDSS_306745
CDSS
#include <stdio.h> int main(void){ int a,b,c,i; scanf("%d %d %d",&a,&b,&c); int count=0; for(i=a;i<=b;i++) if(c%i==0){ count++; } printf("%d\n",count); return 0; }
2,104
memory_bytes
{'s_id': 's419043682', 'p_id': 'p02398', 'u_id': 'u900764118', 'date': '1526121799', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '218'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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;\n scanf(\"%d %d %d\",&a,&b,&c);\n int count=0;\n for(i=a;i<=b;i++)\n ...
CDSS_526711
CDSS
// ABC-142 D: // 2019.9.28 bal4u // Template for Online Contest #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> typedef long long ll; #define SIZE 1000 int size; int factor[SIZE]; int ptbl[] = { 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 6...
128
memory_bytes
{'s_id': 's760922884', 'p_id': 'p02900', 'u_id': 'u759237395', 'date': '1569721415', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '128', 'code_size': '1937'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n// ABC-142 D:\n// 2019.9.28 bal4u\n// Template for Online Contest\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#in...
CDSS_586609
CDSS
/* ex 5_4 UMAboogie */ #include <stdio.h> #include <string.h> int main(void){ char str[11]; //文字列をいれる要素数11の配列を宣言 int length, count = 0, ans = 0; scanf("%s",str); length = strlen(str); //文字列の長さを計算しlengthに代入 for(int i = 0;i < length;i++){ //文字列内の各文字について if(str[i] == 'A'||str[i] == 'T'||str[i] == 'G'||s...
1,708
memory_bytes
{'s_id': 's539302356', 'p_id': 'p03086', 'u_id': 'u426254738', 'date': '1593914938', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1708', 'code_size': '873'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n/* ex 5_4\n UMAboogie */\n\n#include <stdio.h>\n#include <string.h>\n\nint main(void){\n char str[11]; //文字列をいれる要素数11の配列を宣言\n int ...
CDSS_582971
CDSS
#include<stdio.h> int main(void){ int a,b,c,d,e,k; scanf("%d %d %d %d %d %d",&a,&b,&c,&d,&e,&k); if(e-a<=k){ printf("Yay!"); } else printf(":("); return 0; }
128
memory_bytes
{'s_id': 's083654904', 'p_id': 'p03075', 'u_id': 'u521382680', 'date': '1554821525', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '207'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n int a,b,c,d,e,k;\n scanf(\"%d %d %d %d %d %d\",&a,&b,&c,&d,&e,&k);\n if(e-a<=k){\n ...
CDSS_585090
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; }
128
memory_bytes
{'s_id': 's564012402', 'p_id': 'p03079', 'u_id': 'u686007983', 'date': '1553976391', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '178'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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(\"Yes\\n...
CDSS_297217
CDSS
#include <stdio.h> int main(void){ int x; int i=1; while(1){ scanf("%d",&x); if(x == 0){ break; } printf("Case %d: %d\n",i,x); i++; } return 0; }
600
memory_bytes
{'s_id': 's130910048', 'p_id': 'p02396', 'u_id': 'u940290362', 'date': '1502729757', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '194'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n int x;\n int i=1;\n while(1){\n scanf(\"%d\",&x);\n if(x == 0){\n break;...
CDSS_205659
CDSS
#include<stdio.h> #include<math.h> struct Point{ double x; double y; }; void koch(int n, struct Point a, struct Point b){ struct Point s, t, u; double th; if(n == 0) return; th = M_PI * 60.0 / 180.0; s.x = (2.0 * a.x + 1.0 * b.x) / 3.0; s.y = (2.0 * a.y + 1.0 * b.y) / 3.0; t.x = (1.0 * a.x + 2.0 ...
2,096
memory_bytes
{'s_id': 's299355802', 'p_id': 'p02273', 'u_id': 'u059633273', 'date': '1533793335', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2096', 'code_size': '900'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<math.h>\n\nstruct Point{\n double x;\n double y;\n};\n\nvoid koch(int n, struct Point a, struct Point b)...
CDSS_401496
CDSS
#include <stdio.h> int main(){ int x[5]; for(int i=0;i<5;i++){ scanf("%d",&x[i]); if(x[i]==0){ printf("%d",i+1); return 0; } } }
1,704
memory_bytes
{'s_id': 's234059224', 'p_id': 'p02639', 'u_id': 'u455691947', 'date': '1600228757', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1704', 'code_size': '159'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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[5];\n for(int i=0;i<5;i++){\n scanf(\"%d\",&x[i]);\n if(x[i]==0){\n printf(\"%d...
CDSS_239533
CDSS
#include <stdio.h> #include <string.h> typedef struct{ int face[7]; }cube; int rotation(char direction,cube *C){ int temp; //cube C; switch(direction){ case 'N': temp=C->face[4]; C->face[4]=C->face[0]; C->face[0]=C->face[1]; C->face[1]=C->face[5]; C->face[5]=temp; break; case 'E': temp=C->fa...
2,104
memory_bytes
{'s_id': 's894268896', 'p_id': 'p02386', 'u_id': 'u330494287', 'date': '1594562183', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '1722'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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>\ntypedef struct{\n\tint face[7];\n}cube;\nint rotation(char direction,cube *C){\n\tint temp;\n...
CDSS_611368
CDSS
//set many funcs template //Ver.20180717 #include<stdio.h> #include<string.h> #include<stdlib.h> #include<stdbool.h> #include<time.h> #define inf 1072114514 #define llinf 4154118101919364364 #define mod 1000000007 #define pi 3.1415926535897932384 int max(int a,int b){if(a>b){return a;}return b;} int min(int a,int b){i...
128
memory_bytes
{'s_id': 's900441944', 'p_id': 'p03219', 'u_id': 'u721060623', 'date': '1541579413', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '4258'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n//set many funcs template\n//Ver.20180717\n#include<stdio.h>\n#include<string.h>\n#include<stdlib.h>\n#include<stdbool.h>\n#include<ti...
CDSS_573751
CDSS
#include <stdio.h> #include <string.h> #include <limits.h> #include <stdlib.h> int main(void) { int n; int i, j, k; int a = 0, b = 0; int sum = 0; int min = 0; int count = 0; char str[10000][20]; scanf("%d", &n); for(i = 0; i < n ; i++) { scanf("%s", str[i]); for(j = 0; j < strlen(str[i]) - 1; j++) ...
384
memory_bytes
{'s_id': 's928467118', 'p_id': 'p03049', 'u_id': 'u833841247', 'date': '1557627636', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '384', 'code_size': '749'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n#include <limits.h>\n#include <stdlib.h>\n\nint main(void)\n{\n\tint n;\n\tint i, j, k;\n\tin...
CDSS_653239
CDSS
i,j;main(a){ for(puts("98 99");i<98;i++) { i%49||scanf("%d",&a); for(int j=0;j<99;j++) { putchar((i%2|j%2||a--<2)^i>48?'#':'.'); } puts(""); } }
128
memory_bytes
{'s_id': 's025253089', 'p_id': 'p03404', 'u_id': 'u657913472', 'date': '1522362592', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '160'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\ni,j;main(a){\n\tfor(puts(\"98 99\");i<98;i++)\n\t{\n\t\ti%49||scanf(\"%d\",&a);\n\t\tfor(int j=0;j<99;j++)\n\t\t{\n\t\t\tputchar((i%2|...
CDSS_622267
CDSS
/* ex7_1 suzuto */ #include <stdio.h> typedef struct point{ /*直交座標を表す構造体を作る*/ int x_elem; int y_elem; }point; #define point_scanf(z) scanf("%d %d", &z.x_elem, &z.y_elem); /*point型を入力をする関数を定義*/ #define point_printf(z) printf("%d %d", z.x_elem, z.y_elem); /*point型を出力をする関数を定義*/ point shift_point(point bef_point...
1,732
memory_bytes
{'s_id': 's092097777', 'p_id': 'p03265', 'u_id': 'u337525741', 'date': '1594569483', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1732', 'code_size': '1855'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n/*\tex7_1\n\tsuzuto\t*/\n\n#include <stdio.h>\n\ntypedef struct point{ /*直交座標を表す構造体を作る*/\n int x_elem;\n int y_elem;\n}point;\n\n#de...
CDSS_293977
CDSS
#include <stdio.h> int main(){ int x; int i=0; while(1){ scanf("%d", &x); if(x==0)break; printf("Case %d: %d\n", ++i, x); } return 0; }
2,040
memory_bytes
{'s_id': 's645633814', 'p_id': 'p02396', 'u_id': 'u669978656', 'date': '1540278276', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2040', 'code_size': '181'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n int x;\n int i=0;\n while(1){\n scanf(\"%d\", &x);\n if(x==0)break;\n ...
CDSS_493347
CDSS
#include<stdio.h> int main(void){ int A,H,i=0; scanf("%d %d",&H,&A); while(H>0){ H -= A; i++; } printf("%d\n",i); return 0; }
128
memory_bytes
{'s_id': 's446798112', 'p_id': 'p02783', 'u_id': 'u724684140', 'date': '1580646649', '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>\n\nint main(void){\n int A,H,i=0;\n\n scanf(\"%d %d\",&H,&A);\n while(H>0){\n H -= A;\n i++;\...
CDSS_556726
CDSS
#include<stdio.h> int main() { long n,i,d,c=0,a[5],k=0,dig=0; scanf("%ld",&n); while(dig<4) { d=n%10; a[k]=d; k++; n=n/10; dig++; } for(i=0;i<3;i++) { if(a[i]==a[i+1]) { c++; break; } } if(c>0) { printf("Bad"); } else { printf("Good"); } return...
128
memory_bytes
{'s_id': 's542009285', 'p_id': 'p02993', 'u_id': 'u629354426', 'date': '1561339309', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '325'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n long n,i,d,c=0,a[5],k=0,dig=0;\n scanf(\"%ld\",&n);\n while(dig<4)\n {\n d=n%10;\n a[k]=d...
CDSS_524783
CDSS
#include<stdio.h> int main(void){ int n,k,count=0; scanf("%d %d",&n,&k); int h[n]; for(int i=0;i<n;i++){ scanf("%d",&h[i]); if(h[i]>=k){count++;} } printf("%d",count); return 0; }
2,040
memory_bytes
{'s_id': 's034479155', 'p_id': 'p02898', 'u_id': 'u452450985', 'date': '1594210924', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '17', 'memory': '2040', '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\nint n,k,count=0;\n\nscanf(\"%d %d\",&n,&k);\n\nint h[n];\n\nfor(int i=0;i<n;i++){\n scanf(\"%...
CDSS_354391
CDSS
#include<stdio.h> int main(void){ int n, target, i, j, k, count=0; while(1){ scanf("%d %d", &n, &target); if(n == 0 && target == 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 == target) count...
600
memory_bytes
{'s_id': 's570658359', 'p_id': 'p02412', 'u_id': 'u067950468', 'date': '1430969276', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '437'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n int n, target, i, j, k, count=0;\n while(1){\n scanf(\"%d %d\", &n, &target);\n ...
CDSS_430072
CDSS
#include<stdio.h> int main(void){ int S,W; scanf("%d%d",&S,&W); if(S<=W) printf("unsafe\n"); else printf("safe\n"); return 0; }
1,620
memory_bytes
{'s_id': 's014086492', 'p_id': 'p02699', 'u_id': 'u639431458', 'date': '1588481363', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1620', '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>\nint main(void){\nint S,W;\nscanf(\"%d%d\",&S,&W);\nif(S<=W) printf(\"unsafe\\n\");\nelse printf(\"safe\\n\");\n ...
CDSS_490283
CDSS
#include<stdio.h> #include<string.h> int main(void){ int na, nb; char a[10], b[10], str[10]; scanf("%s", a); scanf("%s", b); scanf("%d %d", &na, &nb); scanf("%s", str); if(strcmp(a, str) == 0){ printf("%d %d\n", na-1,nb); }else{ printf("%d %d\n", na, nb-1); } return 0; }
128
memory_bytes
{'s_id': 's315810143', 'p_id': 'p02777', 'u_id': 'u693283973', 'date': '1581279677', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '290'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\n\nint main(void){\n\t\n\tint na, nb;\n\tchar a[10], b[10], str[10];\n\t\n\tscanf(\"%s\", a);\n\...
CDSS_404956
CDSS
#include <stdio.h> int main() { char s[101]; scanf("%s",s); printf("%c%c%c\n",s[0],s[1],s[2]); return 0; }
1,732
memory_bytes
{'s_id': 's869234224', 'p_id': 'p02645', 'u_id': 'u315630804', 'date': '1592162522', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '1732', 'code_size': '113'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main()\n{\n\tchar s[101];\n\tscanf(\"%s\",s);\n\tprintf(\"%c%c%c\\n\",s[0],s[1],s[2]);\n\t\n\treturn 0;\n}\n...
CDSS_745451
CDSS
#include <stdio.h> #include <stdlib.h> int compara(void const *a, void const *b){ char *x = (char *)a, *y = (char *)b; int i = 0; while(x[i] != '\0' && y[i] != '\0'){ if(x[i] < y[i]) return -1; if(x[i] > y[i]) return 1; i++; } if(x[i] < y[i]) return -1; if(x[i] > y[i]) return 1; return 0; } int main(){ c...
128
memory_bytes
{'s_id': 's843417430', 'p_id': 'p04044', 'u_id': 'u355322985', 'date': '1570670485', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '604'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\nint compara(void const *a, void const *b){\n\tchar *x = (char *)a, *y = (char *)b;\n\tint i =...
CDSS_573871
CDSS
#include<stdio.h> int main(void) { long long i,j,N,sum=0; scanf("%lld",&N); for (i = 1; i*i <= N; i++) { if((N-i)%i==0) { j=(N-i)/i; if(j&&N/j==N%j)sum+=j; } if(N/i==N%i) sum+=i; } printf("%lld\n",sum); return 0; }
128
memory_bytes
{'s_id': 's819175871', 'p_id': 'p03050', 'u_id': 'u143413102', 'date': '1564426667', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '21', 'memory': '128', 'code_size': '267'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void)\n{\n long long i,j,N,sum=0;\n\n scanf(\"%lld\",&N);\n\n for (i = 1; i*i <= N; i++)\n {\n if...
CDSS_369340
CDSS
#include<stdio.h> #include<string.h> int main(){ char W[10],T[1000]; int i,count=0; scanf("%s",W); while(1){ scanf("%s",T); if(strcmp(T,"END_OF_TEXT")==0)break; for(i=0;i<strlen(T);i++) if(T[i] >= 'A' && T[i] <= 'Z')T[i] += 32; if(strcmp(T,W)==0)count++; } printf("%d\n",count);...
548
memory_bytes
{'s_id': 's606626120', 'p_id': 'p02419', 'u_id': 'u932691750', 'date': '1502979403', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '548', 'code_size': '334'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\n \nint main(){\n char W[10],T[1000];\n int i,count=0;\n \n scanf(\"%s\",W);\n while(1){\n ...
CDSS_131867
CDSS
#include<stdio.h> int count=100; int min(int a,int b) { if(a<b)return a; else return b; } int main() { int i,j,k,l,num,A[count+1],M[count+1][count+1]; scanf("%d",&num); for(i=1;i<=num;i++)scanf("%d %d",&A[i-1],&A[i]); for(i=1;i<=num;i++)M[i][i]=0; for(j=2;j<=num;j++) { for(i=1;i<=num-j+1;i++) ...
636
memory_bytes
{'s_id': 's519664843', 'p_id': 'p02234', 'u_id': 'u163386631', 'date': '1499309586', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '636', 'code_size': '511'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 count=100;\nint min(int a,int b)\n{\n if(a<b)return a;\n else return b;\n}\nint main()\n{\n int i,j,k,l,nu...
CDSS_248414
CDSS
#include<stdio.h> int main(void){ int x; scanf("%d",&x); printf("%d\n",x*x*x); return 0; }
2,092
memory_bytes
{'s_id': 's437693269', 'p_id': 'p02388', 'u_id': 'u334850205', 'date': '1595165321', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2092', 'code_size': '121'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void){\n int x;\n \n scanf(\"%d\",&x);\n \n printf(\"%d\\n\",x*x*x);\n \n return 0;\n...
CDSS_358813
CDSS
#include <stdio.h> int main(int argc, const char * argv[]) { int e[101][101] = {}; int R, C, r, c; int s, total; //表の行数と列数 scanf("%d %d", &R, &C); //表を入力 for (r=1; r<=R; r++) { for (c=1; c<=C; c++) { scanf("%d", &e[r][c]); } } //列の合計を配列eの0行...
2,104
memory_bytes
{'s_id': 's072719196', 'p_id': 'p02413', 'u_id': 'u506224871', 'date': '1558680378', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '1066'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(int argc, const char * argv[]) {\n int e[101][101] = {};\n int R, C, r, c;\n int s, total;\n ...
CDSS_586410
CDSS
#include <stdio.h> int main (){ char a; scanf ("%c",&a); if (a=='A'){ printf ("T"); } if (a=='T'){ printf ("A"); } if (a=='C'){ printf ("G"); } if (a=='G'){ printf ("C"); } return 0; }
128
memory_bytes
{'s_id': 's031170133', 'p_id': 'p03085', 'u_id': 'u444555640', 'date': '1553457851', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '128', 'code_size': '189'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main (){\nchar a;\nscanf (\"%c\",&a);\n\nif (a=='A'){\nprintf (\"T\");\n} \nif (a=='T'){\nprintf (\"A\");\n}\...
CDSS_469156
CDSS
#include<stdio.h> void main() { int n; scanf("%d",&n); int m=n/500; int r=n%500; int c=r/5; printf("%d",m*1000+c*5); }
1,704
memory_bytes
{'s_id': 's033659370', 'p_id': 'p02724', 'u_id': 'u458110208', 'date': '1596602541', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1704', 'code_size': '133'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 main()\n{\n int n;\n scanf(\"%d\",&n);\n int m=n/500;\n int r=n%500;\n int c=r/5;\n printf(\"%d\",m*1000...
CDSS_241585
CDSS
#include <stdio.h> int main(void) { int n; scanf("%d", &n); printf("%d\n", n*n*n); return 0; }
596
memory_bytes
{'s_id': 's978691109', 'p_id': 'p02388', 'u_id': 'u818198177', 'date': '1457660817', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '112'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n int n;\n scanf(\"%d\", &n);\n printf(\"%d\\n\", n*n*n);\n\n return 0;\n}\nPredic...
CDSS_216456
CDSS
/* left-child,right-sibling representation */ #include<stdio.h> #include<stdlib.h> typedef struct{ int p; //parent int l; //left_child int r; //right_sibling }Node; int main(void){ int now_id,depth_cnt,n,k,c; int i,j; Node *node; scanf("%d",&n); node=(Node*)malloc(n*sizeof(Node)); for(i=0;i<n;i++){ no...
1,788
memory_bytes
{'s_id': 's488034415', 'p_id': 'p02279', 'u_id': 'u314507166', 'date': '1402622547', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '70', 'memory': '1788', 'code_size': '1147'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n/*\nleft-child,right-sibling representation\n*/\n\n#include<stdio.h>\n#include<stdlib.h>\n\ntypedef struct{\n\tint p;\t//parent\n\tint...
CDSS_720571
CDSS
#include <stdio.h> int main(){ int rate; scanf("%d",&rate); if(rate<1200){ printf("ABC"); } else printf("ARC"); return 0; }
128
memory_bytes
{'s_id': 's787129277', 'p_id': 'p03813', 'u_id': 'u296176729', 'date': '1583297192', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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>\nint main(){\n int rate;\n scanf(\"%d\",&rate);\n if(rate<1200){\n printf(\"ABC\");\n }\n els...
CDSS_313290
CDSS
#include<stdio.h> #include<math.h> int main(void){ double r,s,c; scanf("%lf",&r); s=r*r*M_PI; c=2*r*M_PI; printf("%lf %lf\n",s,c); return 0; }
648
memory_bytes
{'s_id': 's376934575', 'p_id': 'p02400', 'u_id': 'u083853290', 'date': '1444395028', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '648', '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<math.h>\nint main(void){\n double r,s,c;\n scanf(\"%lf\",&r);\n s=r*r*M_PI;\n c=2*r*M_PI;\n ...
CDSS_331949
CDSS
#include<stdio.h> int main(){ int h,w; int i,j; while(1){ scanf("%d %d",&h,&w); if(h==0 && w==0) break; for(i=0;i<h;i++){ for(j=0;j<w;j++){ printf("#"); } printf("\n"); } printf("\n"); } return 0; }
2,056
memory_bytes
{'s_id': 's076464261', 'p_id': 'p02403', 'u_id': 'u679210025', 'date': '1530088789', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2056', 'code_size': '307'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int h,w;\n int i,j;\n\n while(1){\n scanf(\"%d %d\",&h,&w);\n\n if(h==0 && w==...