identifier
string
space
string
input
string
target
float64
metric_type
string
metadata
string
messages
list
CDSS_581926
CDSS
#include<stdio.h> #include<string.h> int main(){ int tairu=0,i; char S[100010]; scanf("%s",S); if(S[0]=='0'){ for(i=1;i<strlen(S);i++){ if(i%2==0){ if(S[i]=='1'){ tairu++; } }else{ if(S[i]=='0'){ tairu++; } } } }else if(S[0]=='1'){ for(i=1;i<strlen(S);i++){ if(i%2==0){ ...
256
memory_bytes
{'s_id': 's253616262', 'p_id': 'p03073', 'u_id': 'u937747602', 'date': '1555184609', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '256', 'code_size': '461'}
[ { "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\n\n\nint main(){\n\t\n\tint tairu=0,i;\n\tchar S[100010];\n\t\n\tscanf(\"%s\",S);\n\t\n\tif(...
CDSS_610132
CDSS
#include <stdio.h> int main(void) { int i=0, ch,a[10] = {0}; while((ch = getchar()) != EOF){ a[i] = ch - '0'; i++; } int count = i-1, min = 900; for(i=0; i<count-2; i++){ int num = a[i] * 100 + a[i+1] * 10 + a[i+2]; int a = (753 > num) ? 753-num : num-753; if(min > a){ min = a; } } printf("%d\n...
128
memory_bytes
{'s_id': 's053510461', 'p_id': 'p03211', 'u_id': 'u241908712', 'date': '1543804375', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', '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(void)\n{\n\tint i=0, ch,a[10] = {0};\n\n\twhile((ch = getchar()) != EOF){\n\t\ta[i] = ch - '0';\n\t\t...
CDSS_201646
CDSS
#include<stdio.h> #define datamax 500001 #define banpei 1000000001 int left[datamax/2 +1]; int right[datamax/2 + 1]; int cnt; void merge(int *,int,int,int,int); void mergeSort(int *,int,int,int); int main(){ int a[datamax],n,i; cnt = 0; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&a[i]); } mergeSort(...
5,644
memory_bytes
{'s_id': 's037608077', 'p_id': 'p02272', 'u_id': 'u916841654', 'date': '1545300067', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '100', 'memory': '5644', 'code_size': '1089'}
[ { "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 datamax 500001\n#define banpei 1000000001\nint left[datamax/2 +1];\nint right[datamax/2 + 1];\nint cnt;\n...
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 should 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_602679
CDSS
#include <stdio.h> #include <math.h> long long dp[100005],arr[100005],n,k; long long min(long long a,long long b) {return (a<b?a:b);} long long solve(long long index) { long long mini; if(index<0) return (long long)1000000009; if(index==0) return 0; if(dp[index]!=-1) return dp[index]; else { dp[inde...
4,864
memory_bytes
{'s_id': 's103777016', 'p_id': 'p03161', 'u_id': 'u630286567', 'date': '1574538208', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '49', 'memory': '4864', 'code_size': '742'}
[ { "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\nlong long dp[100005],arr[100005],n,k;\n\nlong long min(long long a,long long b) {return (a<...
CDSS_715925
CDSS
#include<stdio.h> int main() { int x; scanf("%d", &x); int ans; int p = 0; for (ans = 0; p < x; ans++) p += ans; ans--; printf("%d\n", ans); return 0; }
128
memory_bytes
{'s_id': 's959737890', 'p_id': 'p03779', 'u_id': 'u600300412', 'date': '1548561182', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '192'}
[ { "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 x;\n scanf(\"%d\", &x);\n int ans;\n int p = 0;\n for (ans = 0; p < x; ans++)\...
CDSS_658450
CDSS
#include<stdio.h> int main(void){ int N,i,j,A,B,tmp; A=0; B=0; int a[N]; scanf("%d",&N); for(i=0;i<N;i++){ scanf("%d",&a[i]); } for(i=0;i<N-1;i++){ for(j=i+1;j<N;j++){ if(a[j]>a[i]){ tmp = a[j]; a[j]=a[i]; a[i]=tmp; } } } for(i=0;i<N;i++){ if(i...
1,724
memory_bytes
{'s_id': 's803147956', 'p_id': 'p03434', 'u_id': 'u376142113', 'date': '1597159667', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1724', 'code_size': '415'}
[ { "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#include<stdio.h>\nint main(void){\n int N,i,j,A,B,tmp;\n A=0;\n B=0;\n int a[N];\n scanf(\"%d\",&N);\n for(i=0;i<N;i++){\n ...
CDSS_126260
CDSS
// AOJ 2442: ConvexCut // 2017.11.17 bal4u@uu #include <stdio.h> #include <string.h> int x[51], y[51]; long long norm(int dx, int dy) { return (long long)dx*dx + (long long)dy*dy; } int parallel(int x1, int y1, int x2, int y2, int x3, int y3, int x4, int y4) { return (long long)(y2-y1)*(long long)(x4-x3) == (long...
1,820
memory_bytes
{'s_id': 's568077284', 'p_id': 'p01556', 'u_id': 'u847467233', 'date': '1510923432', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1820', 'code_size': '829'}
[ { "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// AOJ 2442: ConvexCut\n// 2017.11.17 bal4u@uu\n\n#include <stdio.h>\n#include <string.h>\n\nint x[51], y[51];\n\nlong long norm(int...
CDSS_137416
CDSS
#include <stdio.h> #define N 100 #define W 0 #define G 1 #define B 2 int n,M[N][N], c[N],d[N],f[N],t; void dfs_visit(int u){ int v; c[u]=G; d[u]=++t; for(v=0;v<n;v++){ if(M[u][v]==0) continue; if(c[v]==W){ dfs_visit(v); } } c[u]=B; f[u]=++t; } void dfs(){ int u; for(u=0;u<n;u++) c[u]=...
2,108
memory_bytes
{'s_id': 's395030602', 'p_id': 'p02238', 'u_id': 'u926405928', 'date': '1532661367', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '750'}
[ { "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 100\n#define W 0\n#define G 1\n#define B 2\n\nint n,M[N][N], c[N],d[N],f[N],t;\n\nvoid dfs_visit(int u...
CDSS_91039
CDSS
a[];main(){gets(a);puts(15&*a&15&*a>>16|15&a[1]?"Open":"Close");exit(0);}
524
memory_bytes
{'s_id': 's007788483', 'p_id': 'p00252', 'u_id': 'u399045574', 'date': '1381313610', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', 'code_size': '73'}
[ { "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:\na[];main(){gets(a);puts(15&*a&15&*a>>16|15&a[1]?\"Open\":\"Close\");exit(0);}\nPredict its memory footprint.", "role": "user" ...
CDSS_643453
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)) void run(void){ int a,b,c; scanf("%d%d%d",&a,&b,&c); int64 k; scanf("%lld",&k); printf("%d\n",(a-b)*(k%2==0?1:-1)); /*...
128
memory_bytes
{'s_id': 's154122143', 'p_id': 'p03345', 'u_id': 'u425248533', 'date': '1527146141', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '524'}
[ { "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\ntypedef long long int int64;\n\n#define MAX(a,b) ((a)>(b)?(a):(b))\n#defi...
CDSS_182706
CDSS
#include<stdio.h> #include<string.h> int isEmpty(void); int dequeue(void); void enqueue(int); int head=0,tail=0,time[100000]; int main(){ int zanshi,n,q,i,total=0; char name[100000][10]; scanf("%d%d",&n,&q); for(i=0;i<n;i++){ scanf("%s%d",name[i],&time[i]); tail++; } while(isEmpty()==0){ if(q>...
3,052
memory_bytes
{'s_id': 's265992636', 'p_id': 'p02264', 'u_id': 'u563967927', 'date': '1529919903', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '3052', 'code_size': '878'}
[ { "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 isEmpty(void);\nint dequeue(void);\nvoid enqueue(int);\n\nint head=0,tail=0,time[100000];...
CDSS_157626
CDSS
#include <stdio.h> #include <math.h> #include <string.h> #include <stdlib.h> int cPrime(int x) { if(x%2==0) return 1; int i, len=sqrt(x); for(i=3;i<=len;i+=2) { if(x%i==0 && x!=i) return 1; } return 0; } int main() { int a,count=0; scanf("%d",&a); while(a--) { int x; scanf("%d",&x); if((cPr...
2,120
memory_bytes
{'s_id': 's842587407', 'p_id': 'p02257', 'u_id': 'u011621222', 'date': '1528912859', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2120', 'code_size': '394'}
[ { "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#include <string.h>\n#include <stdlib.h>\n\nint cPrime(int x)\n{\n\n\tif(x%2==0) return 1;\n\...
CDSS_219088
CDSS
#include <stdio.h> #include <string.h> #include <stdlib.h> #define MAX 100000 #define NIL -1 struct node{ int parent,left,right; }; struct node T[MAX]; int n, D[MAX], H[MAX]; void setdepth(int, int); int setheight(int); int getsibling(int); void print(int); int main(){ int i, v, l, r; int root = 0; scanf(...
2,108
memory_bytes
{'s_id': 's850246276', 'p_id': 'p02280', 'u_id': 'u808202712', 'date': '1547095651', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '1692'}
[ { "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\n#define MAX 100000\n#define NIL -1\n\nstruct node{\n int parent,lef...
CDSS_583638
CDSS
#include<stdio.h> #include<string.h> int main() { int a[5], wait, temp, max; for (int i = 0; i < 5; i++) scanf("%d", &a[i]); max = 0; wait = 0; for (int i = 0; i < 5; i++) { temp = a[i] % 10; if (temp != 0) temp = 10 - temp; if (max < temp) max = temp; wait += a[i] + temp; } printf("%d", wait - max); r...
128
memory_bytes
{'s_id': 's767949252', 'p_id': 'p03076', 'u_id': 'u300968187', 'date': '1557420854', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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\tint a[5], wait, temp, max;\n\tfor (int i = 0; i < 5; i++) scanf(\"%d\", &a[...
CDSS_20519
CDSS
main(i,j,k){if(k==0)while(1);for(i=0;i++<9;)for(j=0;j++<9;printf("%dx%d=%d\n",i,j,i*j));exit(0);}
0
memory_bytes
{'s_id': 's176672749', 'p_id': 'p00000', 'u_id': 'u479246559', 'date': '1320512615', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '97'}
[ { "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:\nmain(i,j,k){if(k==0)while(1);for(i=0;i++<9;)for(j=0;j++<9;printf(\"%dx%d=%d\\n\",i,j,i*j));exit(0);}\nPredict its memory footprint."...
CDSS_683925
CDSS
#include<stdio.h> int main() { int n, a; scanf("%d%d", &n, &a); printf("%d\n", n*n - a); return 0; }
128
memory_bytes
{'s_id': 's583366662', 'p_id': 'p03597', 'u_id': 'u600300412', 'date': '1539053060', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '116'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n int n, a;\n scanf(\"%d%d\", &n, &a);\n printf(\"%d\\n\", n*n - a);\n return 0;\n}\nPr...
CDSS_400108
CDSS
#include<stdio.h> int main() { long long int n,r=0,i=0,j; char a[100]; scanf("%lld",&n); while(1){ if(n==0) break; n--; r=n%26; n=n/26; a[i]='a'+r; i++; } for(j=i-1;j>=0;j--){ printf("%c",a[j]); } return 0; }
1,664
memory_bytes
{'s_id': 's358226916', 'p_id': 'p02629', 'u_id': 'u621146716', 'date': '1598411090', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1664', 'code_size': '231'}
[ { "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\tlong long int n,r=0,i=0,j;\n\tchar a[100];\n\tscanf(\"%lld\",&n);\n\twhile(1){\n\t\tif(n==0) bre...
CDSS_317210
CDSS
#include<stdio.h> #define PI 3.14159265358979323846 int main(void){ double ans_a,ans_c,r; scanf("%lf",&r); ans_a=r*r*PI; ans_c=2*r*PI; printf("%.6f %.6f\n",ans_a,ans_c); return 0; }
2,064
memory_bytes
{'s_id': 's699153619', 'p_id': 'p02400', 'u_id': 'u661435580', 'date': '1584585318', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2064', 'code_size': '207'}
[ { "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 PI 3.14159265358979323846\nint main(void){\n double ans_a,ans_c,r;\n scanf(\"%lf\",&r);\n ans_a...
CDSS_724293
CDSS
#include<stdio.h> int main(){ int k, s; scanf("%d%d", &k, &s); int x, y, z, count = 0; for(x = 0; x <= k; x++){ for(y = 0; y <= k; y++){ z = s-x-y; if(k >= z && z >= 0){ count++; } } } printf("%d\n", count); }
1,700
memory_bytes
{'s_id': 's096279249', 'p_id': 'p03835', 'u_id': 'u108378185', 'date': '1593297136', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '1700', 'code_size': '310'}
[ { "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 k, s;\n scanf(\"%d%d\", &k, &s);\n int x, y, z, count = 0;\n for(x = 0; x <= k; x...
CDSS_153792
CDSS
#include <stdio.h> int main() { int a,b,n,m; scanf("%d%d",&a,&b); if (a<b) { n = a; a = b; b = n; } m = a%b; while(m != 0) { a = b; b = m; m = a%b; } printf("%d\n",b); return 0; }
2,100
memory_bytes
{'s_id': 's253978883', 'p_id': 'p02256', 'u_id': 'u184049209', 'date': '1575872140', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2100', 'code_size': '293'}
[ { "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,n,m;\n \n scanf(\"%d%d\",&a,&b);\n \n if (a<b)\n {\n n = a;\n...
CDSS_149698
CDSS
#include <stdio.h> void insertionSort(int*, int); int main(){ int i,j,k,N,A[100],v; scanf("%d",&N); for(i=0;i<N;i++) scanf("%d",&A[i]); insertionSort(A, N); return 0; } void insertionSort(int *A, int N){ int i,j,k,v; for(i=0;i<N-1;i++) printf("%d ",A[i]); printf("%d\n",A[N-1]); ...
2,032
memory_bytes
{'s_id': 's531416891', 'p_id': 'p02255', 'u_id': 'u016847995', 'date': '1575872531', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2032', 'code_size': '532'}
[ { "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 insertionSort(int*, int);\n\nint main(){\n\n int i,j,k,N,A[100],v;\n\n scanf(\"%d\",&N);\n for(i=0;i<N...
CDSS_451259
CDSS
#include<stdio.h> int main(){ int N, a,b,c; scanf("%d", &N); c = N%10; b = (N%100 - c)/10; a = (N - b - c)/100; if(a == 7 || b == 7 || c == 7){ printf("Yes\n"); }else{ printf("No\n"); } return 0; }
2,088
memory_bytes
{'s_id': 's477845909', 'p_id': 'p02711', 'u_id': 'u246139109', 'date': '1586739995', 'language': 'C', 'original_language': 'C (Clang 10.0.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '2088', 'code_size': '211'}
[ { "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 N, a,b,c;\n\tscanf(\"%d\", &N);\n\tc = N%10;\n\tb = (N%100 - c)/10;\n\ta = (N - b - c)/100;\...
CDSS_547799
CDSS
#include <stdio.h> int main(int argc, char * argv[]) { int n ,d, ans, i; scanf("%d%d", &n, &d); ans = 0; for(i = 0;i < n;){ i += 2*d + 1; ans++; } printf("%d\n", ans); return 0; }
128
memory_bytes
{'s_id': 's978120331', 'p_id': 'p02970', 'u_id': 'u590825849', 'date': '1563823741', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '224'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer 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 int n ,d, ans, i;\n scanf(\"%d%d\", &n, &d);\n ans = 0;\n fo...
CDSS_20554
CDSS
#include <stdio.h> int main() { int i, j; for(i = 1; i <= 9; i ++) { for(j = 1; j <= 9; j ++) { printf("%dx%d=%d\n", i, j, i*j); } } return 0; }
0
memory_bytes
{'s_id': 's077126835', 'p_id': 'p00000', 'u_id': 'u693862667', 'date': '1320731584', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '168'}
[ { "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, j;\n for(i = 1; i <= 9; i ++) {\n for(j = 1; j <= 9; j ++) {\n printf(\"%dx%d=...
CDSS_131442
CDSS
#include <stdio.h> #include <stdlib.h> #include <limits.h> int n; void calculate(int **M, int **cost, int width); int main(int argc, char *argv[]) { int i, j; int **M; int **cost; scanf("%d", &n); M = (int **)malloc(sizeof(int *) * (n + 1)); for (i = 1; i <= n; i++) M[i] = (int *)malloc(sizeof(int) * 2)...
640
memory_bytes
{'s_id': 's459238013', 'p_id': 'p02234', 'u_id': 'u656314902', 'date': '1423678312', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '640', 'code_size': '1297'}
[ { "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 <limits.h>\n\nint n;\n\nvoid calculate(int **M, int **cost, int width);\n\nint mai...
CDSS_618268
CDSS
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> int main(void) { int ni[4], max = 0, min = 10, mid, a, b; scanf("%d%d%d", &ni[0], &ni[1], &ni[2]); for (int i = 0; i < 3; i++) { if (max < ni[i]) { max = ni[i]; a = i; } } for (int i = 0; i < 3; i++) { if (min > ni[i]) { min = ni[i]; b = i; }...
128
memory_bytes
{'s_id': 's867555399', 'p_id': 'p03250', 'u_id': 'u486641442', 'date': '1537751998', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '455'}
[ { "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#define _CRT_SECURE_NO_WARNINGS\n#include <stdio.h>\n\nint main(void) {\n\tint ni[4], max = 0, min = 10, mid, a, b;\n\n\tscanf(\"%d%...
CDSS_140227
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> typedef struct aaa{ struct aaa *next; int v;//ikisaki int w; } slobj; slobj *new_slobj(int iki,int omomi){ slobj *y = (slobj *)malloc(sizeof(slobj)); y->next=NULL; y->v=iki; y->w=omomi; return y; } typedef struct{ slobj *head; } sli...
39,820
memory_bytes
{'s_id': 's457856832', 'p_id': 'p02242', 'u_id': 'u835414158', 'date': '1433510264', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '30', 'memory': '39820', 'code_size': '3582'}
[ { "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#include <ctype.h>\n\ntypedef struct aaa{\n\tstruct aaa *next; \n\tint...
CDSS_343927
CDSS
#include<stdio.h> int main(){ int n; scanf("%d",&n); int num[n]; for( int i=0 ; i<n ; i++ ){ scanf("%d",&num[i]); } int ans[n]; for( int i=n-1 ; i>=0 ; i-- ){ if( i < n-1 )printf(" "); printf("%d",num[i]); } printf("\n"); }
2,040
memory_bytes
{'s_id': 's150482284', 'p_id': 'p02407', 'u_id': 'u132677601', 'date': '1587983181', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2040', '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(){\n int n;\n scanf(\"%d\",&n);\n int num[n];\n for( int i=0 ; i<n ; i++ ){\n scanf(\"%d\",&num...
CDSS_159836
CDSS
#include<stdio.h> #include<math.h> int isprime(int); int main(){ int a,i,n,cnt=0; int x[10000]; scanf("%d",&n); for(i=0;i<n;i++)scanf("%d",&x[i]); for(i=0;i<n;i++){ a=isprime(x[i]); if(a==1)cnt++; } printf("%d\n",cnt); return 0; } int isprime(int x){ int i=3,r; if(x==2)return 1; if(x<2...
2,128
memory_bytes
{'s_id': 's907570880', 'p_id': 'p02257', 'u_id': 'u779655017', 'date': '1544072270', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2128', 'code_size': '427'}
[ { "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>\nint isprime(int);\nint main(){\n int a,i,n,cnt=0;\n int x[10000];\n scanf(\"%d\",&n);\n for...
CDSS_242848
CDSS
#include <stdio.h> int main(){ int x; scanf("%d",&x); printf("%d\n",x * x * x); return 0; }
596
memory_bytes
{'s_id': 's563795332', 'p_id': 'p02388', 'u_id': 'u178313254', 'date': '1464494798', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '101'}
[ { "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 printf(\"%d\\n\",x * x * x);\n\n return 0;\n}\nPredict its memo...
CDSS_521846
CDSS
#include <stdio.h> int main() { int N, i, j, ans; scanf("%d", &N); ans = 0; int d[N]; for(i = 0; i < N; ++i){ scanf("%d", &d[i]); } for(i = 0; i < N; ++i){ for(j = i + 1; j < N; ++j){ ans += d[i] * d[j]; } } printf("%d\n", ans); return 0; }
128
memory_bytes
{'s_id': 's555839547', 'p_id': 'p02886', 'u_id': 'u513851782', 'date': '1571533822', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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 int N, i, j, ans;\n scanf(\"%d\", &N);\n ans = 0;\n int d[N];\n for(i = 0; i < N; ++i){\n \...
CDSS_107231
CDSS
#include<stdio.h> int main(){ int a[201][3],d,n,k,i,j; scanf("%d",&n); for(i=0;i<n;i++)scanf("%d%d%d",&a[i][0],&a[i][1],&a[i][2]); for(k=0;k<3;k++){ for(i=0;i<n;i++){ for(j=i;j<n;j++){ if(i==j)continue; else if(a[i][k]%100==a[j][k]%100){ a[i][k]=a[i][k]+100; a[j][k]=a[j][k]+100; } } ...
2,052
memory_bytes
{'s_id': 's768193536', 'p_id': 'p00500', 'u_id': 'u390505413', 'date': '1535702985', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2052', 'code_size': '448'}
[ { "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[201][3],d,n,k,i,j;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i<n;i++)scanf(\"%d%d%d\",&a[i][0],&a[i][1...
CDSS_647972
CDSS
#include<stdio.h> int main(void){ int N,X; scanf("%d %d",&N,&X); int m[N]; int cost = X; int min_cost = X; for(int i=0;i<N;i++){ scanf("%d",&m[i]); cost -=m[i]; if(min_cost>m[i]){ min_cost = m[i]; } } printf("%d",N+cost/min_cost); return 0...
128
memory_bytes
{'s_id': 's957348339', 'p_id': 'p03370', 'u_id': 'u085356325', 'date': '1524445313', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '323'}
[ { "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,X;\n scanf(\"%d %d\",&N,&X);\n int m[N];\n int cost = X;\n int min_cost ...
CDSS_258372
CDSS
#include <stdio.h> int main(void) { int a, b; scanf("%d %d",&a,&b); printf("%d %d\n",a*b,2*(a+b)); return 0; }
2,104
memory_bytes
{'s_id': 's878532122', 'p_id': 'p02389', 'u_id': 'u845546535', 'date': '1548322364', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '114'}
[ { "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{\nint a, b;\nscanf(\"%d %d\",&a,&b);\nprintf(\"%d %d\\n\",a*b,2*(a+b));\n\n\nreturn 0;\n}\n\n...
CDSS_551255
CDSS
#include <stdio.h> #include <stdlib.h> #include <math.h> int is_integer(int *X_i, int *X_j, int D) { int sum = 0; for (int k = 1; k <= D; k++) { sum += (X_i[k] - X_j[k]) * (X_i[k] - X_j[k]); } int res = (int) sqrt(sum); return (res * res) == sum; } int main() { int N, D; scanf("%d"...
128
memory_bytes
{'s_id': 's823972078', 'p_id': 'p02982', 'u_id': 'u619677540', 'date': '1590532742', '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 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\nint is_integer(int *X_i, int *X_j, int D) {\n int sum = 0;\n for...
CDSS_668997
CDSS
#include <stdio.h> int DigitSum(int x){ return x%10 + (x/10)%10 + (x/100)%10 + (x/1000)%10 + (x/10000)%10; } int main(){ int N,A,B,K,i; scanf("%d %d %d",&N,&A,&B); for(i = 1; i <= N; i++){ if(A <= DigitSum(i) && DigitSum(i) <= B){ K += i; } } printf("%d\n",K); return 0; }
128
memory_bytes
{'s_id': 's919533224', 'p_id': 'p03478', 'u_id': 'u467041847', 'date': '1514275676', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '291'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint DigitSum(int x){\n\treturn x%10 + (x/10)%10 + (x/100)%10 + (x/1000)%10 + (x/10000)%10;\n}\n\nint main(){\n...
CDSS_249987
CDSS
#include<stdio.h> int main() { int a, b; scanf("%d %d",&a,&b); printf("%d %d\n",a*b,2*a+2*b); return 0; }
2,032
memory_bytes
{'s_id': 's474573849', 'p_id': 'p02389', 'u_id': 'u594801710', 'date': '1559280945', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2032', 'code_size': '110'}
[ { "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;\n\tscanf(\"%d %d\",&a,&b);\n\tprintf(\"%d %d\\n\",a*b,2*a+2*b);\n\treturn 0;\n}\n\nPred...
CDSS_462621
CDSS
#include<stdio.h> int main(){ int X,Y,Z; scanf("%d%d%d",&X,&Y,&Z); printf("%d %d %d\n",Z,X,Y); return 0; }
1,708
memory_bytes
{'s_id': 's150661502', 'p_id': 'p02717', 'u_id': 'u113652321', 'date': '1596485691', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1708', 'code_size': '117'}
[ { "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,Y,Z;\n scanf(\"%d%d%d\",&X,&Y,&Z);\n printf(\"%d %d %d\\n\",Z,X,Y);\n return 0;\n}\n\n...
CDSS_640354
CDSS
#include <stdio.h> int main(){ int a,b,i,j,s; scanf("%d%d",&a,&b); for(i=1;i<499500;i++){ s=0; a++; b++; for(j=1;j<1000;j++){ s+=j; if(a==s&&b==s+j+1)printf("%d",i); } } return 0; }
128
memory_bytes
{'s_id': 's856534270', 'p_id': 'p03328', 'u_id': 'u855016901', 'date': '1562262450', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '335', '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>\nint main(){\n int a,b,i,j,s;\n scanf(\"%d%d\",&a,&b);\n for(i=1;i<499500;i++){\n s=0;\n a++;\n b++;\...
CDSS_567007
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <time.h> #define _CRT_SECURE_NO_WARNINGS #define TLong long long #define TBMod 1000000007 int main(int argc, char const *argv[]) { int a,p; scanf("%d%d",&a,&p); printf("%d\n", (3 * a + p) / 2); return 0; }
128
memory_bytes
{'s_id': 's512045871', 'p_id': 'p03029', 'u_id': 'u185464141', 'date': '1558918930', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '298'}
[ { "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#include <math.h>\n#include <time.h>\n\n#define _CRT_SECURE_NO_WARNING...
CDSS_735514
CDSS
#include<stdio.h> #include<stdlib.h> #include<string.h> int fun(char *); int fun(char *s) { char t[17]="CODEFESTIVAL2016"; int i,ans=0; int n=strlen(s); for(i=0;i<n;i++) { if(t[i]!=s[i]) { ans++; } } return ans; } int main() { char a[17]; scanf("%s...
128
memory_bytes
{'s_id': 's980250098', 'p_id': 'p03970', 'u_id': 'u426964396', 'date': '1580966384', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '368'}
[ { "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>\nint fun(char *);\nint fun(char *s)\n{\n char t[17]=\"CODEFESTIVAL2016\...
CDSS_399459
CDSS
#include <stdio.h> int main(void) { int p = 0; int pmin[1000] = { 0 }; int n = 1; int k = 1; int i = 0; int j = 0; int sum = 0; int swap = 0; scanf("%d %d", &n, &k); for (i = 0; i < n; i++) { scanf("%d", &p); if (i < k) { pmin[i] = p; con...
1,740
memory_bytes
{'s_id': 's389867311', 'p_id': 'p02628', 'u_id': 'u871049050', 'date': '1597847291', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1740', 'code_size': '621'}
[ { "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 p = 0;\n int pmin[1000] = { 0 };\n int n = 1;\n int k = 1;\n int i = 0;\...
CDSS_570593
CDSS
#include<stdio.h> #include<string.h> int main(){ int N,K; char s[55]; scanf("%d %d",&N,&K); scanf("%s",s); K-=1; s[K]+=32; printf("%s\n",s); }
128
memory_bytes
{'s_id': 's903615616', 'p_id': 'p03041', 'u_id': 'u619535866', 'date': '1559845518', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '154'}
[ { "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\tint N,K;\n\tchar s[55];\n\tscanf(\"%d %d\",&N,&K);\n\tscanf(\"%s\",s);\n K-=...
CDSS_493034
CDSS
#include <stdio.h> int main(void) { int h, a; scanf("%d%d", &h, &a); printf("%d\n", (h+a-1)/a); return 0; }
128
memory_bytes
{'s_id': 's809551671', 'p_id': 'p02783', 'u_id': 'u796654386', 'date': '1585915837', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '128', 'code_size': '123'}
[ { "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 h, a;\n scanf(\"%d%d\", &h, &a);\n printf(\"%d\\n\", (h+a-1)/a);\n return 0;...
CDSS_520977
CDSS
#include<stdio.h> int A,B,i; int main(void) {scanf("%d %d",&A,&B); i=A-2*B; if(i<=0){ printf("0"); }else{ printf("%d",i); } }
128
memory_bytes
{'s_id': 's921313324', 'p_id': 'p02885', 'u_id': 'u336979293', 'date': '1572305698', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '129'}
[ { "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 A,B,i;\nint main(void)\n{scanf(\"%d %d\",&A,&B);\n\ti=A-2*B;\nif(i<=0){\n\tprintf(\"0\");\n}else{\n\tprintf(...
CDSS_700603
CDSS
#include<stdio.h> int main() { int a,b,c,num; scanf("%d%d%d",&a,&b,&c); num=(a*100)+(b*10)+c; if(num%4==0) printf("YES\n"); else printf("NO\n"); return 0; }
1,620
memory_bytes
{'s_id': 's937191680', 'p_id': 'p03693', 'u_id': 'u816631826', 'date': '1597656037', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1620', 'code_size': '181'}
[ { "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,num;\n scanf(\"%d%d%d\",&a,&b,&c);\n num=(a*100)+(b*10)+c;\n if(num%4==0)\n...
CDSS_731210
CDSS
#include<stdio.h> int MIN(int a,int b){return a<b?a:b;} //添字ヒープを使うための関数達! int R=1,C=1,H[2000010],N[2000010]; //評価関数(いまはMAX) int hyouka(int a,int b){ if(C<b)return 1; if(C<a||b==0)return 0; return N[H[a]]>N[H[b]]?1:0; } //挿入関数 void hin(int a){ int i=C++; for(N[H[0]=R]=a;hyouka(0,i/2);i/=2)H[i]=H[i/2]; H[i]=R...
1,792
memory_bytes
{'s_id': 's063157733', 'p_id': 'p03912', 'u_id': 'u347270828', 'date': '1480185246', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '36', 'memory': '1792', 'code_size': '1240'}
[ { "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 MIN(int a,int b){return a<b?a:b;}\n//添字ヒープを使うための関数達!\nint R=1,C=1,H[2000010],N[2000010];\n//評価関数(いまはMAX)\nint...
CDSS_681670
CDSS
#include<stdio.h> int main(void) { int A,B,C; scanf("%d",&A); scanf("%d",&B); scanf("%d",&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': 's456129955', 'p_id': 'p03573', 'u_id': 'u606407652', 'date': '1509382382', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '226'}
[ { "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,C;\n\n scanf(\"%d\",&A);\n scanf(\"%d\",&B);\n scanf(\"%d\",&C);\n\n if(A == B...
CDSS_204905
CDSS
#define _USE_MATH_DEFINES #include<stdio.h> #include<math.h> void koch(int n, double d, double x, double y, int w) { double r; double x1, y1; if(n == 0){ r = w*M_PI/180.0; x1 = x + d * cos(r); y1 = y + d * sin(r); printf("%.8lf %.8lf\n", x1, y1); return; } ...
644
memory_bytes
{'s_id': 's069705201', 'p_id': 'p02273', 'u_id': 'u656863641', 'date': '1470093434', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '644', 'code_size': '885'}
[ { "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#define _USE_MATH_DEFINES\n#include<stdio.h>\n#include<math.h>\n \nvoid koch(int n, double d, double x, double y, int w)\n{\n dou...
CDSS_543537
CDSS
//set many funcs template //Ver.20190820 #include<stdio.h> #include<string.h> #include<stdlib.h> #include<stdbool.h> #include<time.h> #include<assert.h> #define inf 1072114514 #define llinf 4154118101919364364 #define mod 998244353 #define pi 3.1415926535897932384 int max(int a,int b){if(a>b){return a;}return b;} int ...
36,820
memory_bytes
{'s_id': 's857259848', 'p_id': 'p02956', 'u_id': 'u721060623', 'date': '1576228701', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '157', 'memory': '36820', 'code_size': '6674'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n//set many funcs template\n//Ver.20190820\n#include<stdio.h>\n#include<string.h>\n#include<stdlib.h>\n#include<stdbool.h>\n#include<...
CDSS_651986
CDSS
#include<stdio.h> #include<math.h> #include<stdlib.h> int main() { long long a,b,c,d,e,f; scanf("%lld %lld %lld %lld",&a,&b,&c,&d); if (a>b) { e=a; a=b; b=e; } if (c>d) { e=c; c=d; d=e; } //if (c%2==0) printf("%lld",a+c); //else //printf("%lld",c*2); }
1,716
memory_bytes
{'s_id': 's855416319', 'p_id': 'p03399', 'u_id': 'u353919145', 'date': '1596051233', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '1716', 'code_size': '278'}
[ { "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#include<stdlib.h>\nint main()\n{\nlong long a,b,c,d,e,f;\nscanf(\"%lld %lld %lld %lld\",&a,&b,...
CDSS_375679
CDSS
#include<stdio.h> int main() { int x; scanf("%d", &x); if(x) printf("0"); else printf("1"); return 0; }
1,628
memory_bytes
{'s_id': 's630876432', 'p_id': 'p02552', 'u_id': 'u089230684', 'date': '1600713505', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1628', 'code_size': '140'}
[ { "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 x;\n scanf(\"%d\", &x);\n if(x)\n printf(\"0\");\n else\n printf(...
CDSS_674623
CDSS
//#define DEBUG #include<stdio.h> #include<string.h> #include<stdlib.h> #include<math.h> #define MAX_T 200002 #define MAX_N 100000 int main() { #ifdef DEBUG #endif int N, C; int s[MAX_N], t[MAX_N], c[MAX_N]; int tt[MAX_T] = { 0 }; scanf("%d %d", &N, &C); int i,j; for (i = 0; i < N; i++) { scanf("%d %d %d", &s...
2,944
memory_bytes
{'s_id': 's314545309', 'p_id': 'p03504', 'u_id': 'u539339654', 'date': '1512374928', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '37', 'memory': '2944', 'code_size': '1517'}
[ { "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//#define DEBUG\n#include<stdio.h>\n#include<string.h>\n#include<stdlib.h>\n#include<math.h>\n#define MAX_T 200002\n#define MAX_N 10...
CDSS_647236
CDSS
#include<stdio.h> int main(void){ char ramen[3]; int ryokin=700; for(int i=0; i < 3; i++){ scanf("%c", &ramen[i]); } for(int i=0; i < 3; i++){ if(ramen[i] == 'o'){ ryokin+=100; } } printf("%d\n", ryokin); return 0; }
128
memory_bytes
{'s_id': 's364803098', 'p_id': 'p03369', 'u_id': 'u148856092', 'date': '1589067104', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '250'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n char ramen[3];\n int ryokin=700;\n for(int i=0; i < 3; i++){\n scanf(\"%c\", &ramen[i]);\...
CDSS_554400
CDSS
#include<stdio.h> #include<stdlib.h> int main() { char s[5]; char a,b; int flag=0; scanf("%s",s); if(s[0]==s[1]&&s[2]==s[3]&&s[0]!=s[2])flag=1; if(s[0]==s[2]&&s[1]==s[3]&&s[0]!=s[1])flag=1; if(s[0]==s[3]&&s[1]==s[2]&&s[0]!=s[1])flag=1; if(flag)printf("Yes"); else printf("No"); }
256
memory_bytes
{'s_id': 's469864084', 'p_id': 'p02987', 'u_id': 'u791173062', 'date': '1561857555', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '256', 'code_size': '319'}
[ { "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 char s[5];\n char a,b;\n int flag=0;\n scanf(\"%s\",s);\n if...
CDSS_62509
CDSS
#include<stdio.h> #include<string.h> int main() { char s[257],t[257]; int i,j,k,n; for(scanf("%d\n",&n);n--;) { gets(s); for(i=1;i<=26;i+=2) for(j=0;j<=26;j++) { for(k=0,strcpy(t,s);s[k];k++) if(s[k]>='a'&&s[k]<='z') ...
600
memory_bytes
{'s_id': 's107471467', 'p_id': 'p00040', 'u_id': 'u297518626', 'date': '1437026850', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '498'}
[ { "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 char s[257],t[257];\n int i,j,k,n;\n for(scanf(\"%d\\n\",&n);n--;)\n...
CDSS_684941
CDSS
#include <stdio.h> int main(){ int a; scanf("%d",&a); int b,c; b=a/10; c=a%10; if(b==9||c==9) puts("Yes"); else puts("No"); return 0; }
128
memory_bytes
{'s_id': 's253867408', 'p_id': 'p03605', 'u_id': 'u473296729', 'date': '1541128416', '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 should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(){\nint a;\nscanf(\"%d\",&a);\nint b,c;\nb=a/10;\nc=a%10;\n\nif(b==9||c==9) puts(\"Yes\");\nelse puts(\...
CDSS_337866
CDSS
#include<stdio.h> int main(void){ int i, n; //値を入力 scanf("%d", &n); //3の倍数,3のつく数字を出力 for(i = 1; i <= n; i++){ int x = i; if(x % 3 == 0){ printf(" %d", i); }else{ for(x = i; x > 0; x /= 10){ if(x % 10 == 3){ printf(" %d", i); break; } } } } printf("\n"); return 0; }
600
memory_bytes
{'s_id': 's613119450', 'p_id': 'p02406', 'u_id': 'u574287827', 'date': '1425436024', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '338'}
[ { "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, n;\n\t//値を入力\n\tscanf(\"%d\", &n);\n\t//3の倍数,3のつく数字を出力\n\tfor(i = 1; i <= n; i++){\n\t\...
CDSS_583472
CDSS
#include<stdio.h> int aaa(int s){ return s%10; } int main(){ int a[5]; int k,idx,min=10; for(int i=0;i<5;i++){ scanf("%d",&a[i]); int x=aaa(a[i]); //x:1のくらいの数 if(x!=0&&x<=min){min=x; idx=i; } } //printf("%d\n",min); int sum=0; for(int i=0;i<5;i++){ if(i==idx)sum+=a[...
128
memory_bytes
{'s_id': 's441629389', 'p_id': 'p03076', 'u_id': 'u073336549', 'date': '1589352391', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '468'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint aaa(int s){\n return s%10;\n}\nint main(){\nint a[5];\n int k,idx,min=10;\n for(int i=0;i<5;i++){\n\tscanf...
CDSS_550190
CDSS
#include<stdio.h> int min(int a,int b){if(a>b) return b;return a;} int main(){ int n,a,b; scanf("%d%d%d",&n,&a,&b); printf("%d\n",min(b,n*a)); return 0; }
128
memory_bytes
{'s_id': 's302590734', 'p_id': 'p02981', 'u_id': 'u188486233', 'date': '1581221773', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '170'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint min(int a,int b){if(a>b) return b;return a;}\nint main(){\n int n,a,b;\n scanf(\"%d%d%d\",&n,&a,&b);\n ...
CDSS_498731
CDSS
// ABC 152-D // 2020.1.19 bal4u #include <stdio.h> #define gc() getchar_unlocked() int in() { // 非負整数の入力 int n = 0, c = gc(); do n = 10 * n + (c & 0xf); while ((c = gc()) >= '0'); return n; } int f1[100], f2[100]; void calc(int n) { int k = n % 10; while (n >= 10) n /= 10; ++f1[10*k + n], ++f2[n*10 + k]; }...
128
memory_bytes
{'s_id': 's445709355', 'p_id': 'p02792', 'u_id': 'u759237395', 'date': '1579505127', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '128', 'code_size': '495'}
[ { "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// ABC 152-D\n// 2020.1.19 bal4u\n\n#include <stdio.h>\n\n#define gc() getchar_unlocked()\n\nint in() { // 非負整数の入力\n\tint n = 0, c...
CDSS_585204
CDSS
#include <stdio.h> int main(void) { int n,i,cntR=0,cntB=0; char s[100]; scanf("%d",&n); scanf("%s",s); i=0; while(s[i] != '\0'){ //printf("%c\n",s[i]); if(s[i] == 'R'){ cntR++; }else if(s[i] == 'B'){ cntB++; } i++; } if(cntR > cntB){ printf("Yes\n"); }else{ printf("No\n"); } retur...
128
memory_bytes
{'s_id': 's161024749', 'p_id': 'p03080', 'u_id': 'u573564324', 'date': '1554196136', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '327'}
[ { "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 n,i,cntR=0,cntB=0;\n\tchar s[100];\n\t\n\tscanf(\"%d\",&n);\n\tscanf(\"%s\",s);\n\t\n...
CDSS_273835
CDSS
// // main.c // Hello_world // // Created by 関根 歩 on 2014/06/16. // Copyright (c) 2014年 Ayumu Sekine. All rights reserved. // #include <stdio.h> int main(int argc, const char * argv[]) { int a,b; scanf("%d %d",&a,&b); if(a > b){ printf("a > b\n"); }else if(a == b){ printf("a == b\n"...
580
memory_bytes
{'s_id': 's647370786', 'p_id': 'p02391', 'u_id': 'u726905441', 'date': '1402915978', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', 'code_size': '393'}
[ { "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// main.c\n// Hello_world\n//\n// Created by 関根 歩 on 2014/06/16.\n// Copyright (c) 2014年 Ayumu Sekine. All rights reserved.\...
CDSS_416598
CDSS
#include <stdio.h> #include <math.h> #define PI 3.1415926535897946264338327950288419716939937510L int main(void) { int A, B, H, M; long double theta, ans; scanf("%d %d %d %d", &A, &B, &H, &M); theta = 2 * PI * ((long double)H / 12.0L + ((long double)M / 60.0L) / 12.0L - (long double)M / 60.0L); an...
2,560
memory_bytes
{'s_id': 's107380650', 'p_id': 'p02677', 'u_id': 'u959986248', 'date': '1595745184', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '8', 'memory': '2560', 'code_size': '448'}
[ { "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 3.1415926535897946264338327950288419716939937510L\n\nint main(void)\n{\n int ...
CDSS_335836
CDSS
#include <stdio.h> int main(){ int a,b,c[300],d[300],i,j,k=0,l; while(1){ scanf("%d %d",&a,&b); if(a==0 && b==0) break; c[k]=a; d[k]=b; k++; } for(l=0;l<k;l++){ for(i=0;i<c[l];i++){ for(j=0;j<d[l];j++){ if(i%2==0){ if(j%2==0) printf("#"); else printf("."); } else...
572
memory_bytes
{'s_id': 's260068152', 'p_id': 'p02405', 'u_id': 'u588551436', 'date': '1468049409', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '572', '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>\nint main(){\n\tint a,b,c[300],d[300],i,j,k=0,l;\n\n\twhile(1){\n\t\tscanf(\"%d %d\",&a,&b);\n\t\tif(a==0 && b==0...
CDSS_616528
CDSS
#include<stdio.h> #include<string.h> #include<math.h> int main() { int n, ans; scanf("%d", &n); ans = n / 111; if (n % 111 != 0) { ans++; } printf("%d", ans * 111); }
1,676
memory_bytes
{'s_id': 's123281529', 'p_id': 'p03243', 'u_id': 'u782708184', 'date': '1596592031', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1676', 'code_size': '178'}
[ { "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<math.h>\n\nint main() {\n\tint n, ans;\n\n\tscanf(\"%d\", &n);\n\n\tans = n / 111;\n...
CDSS_710298
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> #define N 200000 #define INF 0x3f3f3f3f3f3f3f3fLL long long min(long long a, long long b) { return a < b ? a : b; } void update(long long *ft, int i, int n, long long x) { while (i < n) { ft[i] = min(ft[i], x); i |= i + 1; } } long long query(long lon...
6,412
memory_bytes
{'s_id': 's187242823', 'p_id': 'p03736', 'u_id': 'u206350900', 'date': '1598099481', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '60', 'memory': '6412', 'code_size': '1080'}
[ { "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\n#define N\t200000\n#define INF\t0x3f3f3f3f3f3f3f3fLL\n\nlong long mi...
CDSS_226144
CDSS
#include<stdio.h> #include<stdlib.h> #define SIZE 250 int main(){ int i,m; int b[SIZE]; scanf("%d",&m); for(i = 1; i <= m; i++){ scanf("%d",&b[i]); } for(i = 1; i <= m; i++){ printf("node %d: key = %d,",i ,b[i]); if(i != 1){ printf(" parent key = %d,",b[i/2]); } if(2...
608
memory_bytes
{'s_id': 's680982905', 'p_id': 'p02287', 'u_id': 'u921303861', 'date': '1435208168', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '608', 'code_size': '478'}
[ { "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 SIZE 250\n \nint main(){\n int i,m;\n int b[SIZE];\n \n scanf(\"%d\",&m);\n \n ...
CDSS_384154
CDSS
#include<stdio.h> #include<stdlib.h> int main(void){ int n; int i,j,u; int ans=0; scanf("%d",&n); int L[n]; for(i=0;i<n;i++) scanf("%d",&L[i]); for(i=0;i<n-2;i++) for(j=i+1;j<n-1;j++) for(u=j+1;u<n;u++) if(L[i]>abs(L[j]-L[u])&&L[i]<L[j]+L[u]&&L[i]!=L[j]&&L[j]!=L[u]&&L[i]!=L[u]){ ans+...
1,732
memory_bytes
{'s_id': 's384208905', 'p_id': 'p02583', 'u_id': 'u987692205', 'date': '1597521690', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1732', '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#include<stdlib.h>\nint main(void){\n\tint n;\n\tint i,j,u;\n\tint ans=0;\n\n\tscanf(\"%d\",&n);\n\n\tint L[n];\n...
CDSS_106590
CDSS
#include <stdio.h> #include <string.h> // AOJ 0568 // Title:Pasta // @kankichi573 int N,K,A,B; char plan[101]; struct memo_st { char first; char second; char str[101]; char len; int size; } memo[10000]; int memoindex; void register_memo(char first,char second,char * ptr,char...
672
memory_bytes
{'s_id': 's313065394', 'p_id': 'p00491', 'u_id': 'u708993917', 'date': '1380941526', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '672', 'code_size': '2167'}
[ { "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// AOJ 0568\n// Title:Pasta\n// @kankichi573\nint N,K,A,B;\nchar plan[101];\n\nstruct memo_...
CDSS_493556
CDSS
#include<stdio.h> int main() { int h,n; scanf("%d %d",&h,&n); int count=0; while(h>0) { h=h-n; count++; } printf("%d",count); return 0; }
256
memory_bytes
{'s_id': 's679371259', 'p_id': 'p02783', 'u_id': 'u918017679', 'date': '1580072340', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '256', 'code_size': '162'}
[ { "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 h,n;\n scanf(\"%d %d\",&h,&n);\n int count=0;\n while(h>0)\n {\n h=h-n;\n count+...
CDSS_96289
CDSS
#include<stdio.h> typedef unsigned long long ll; ll gcd(ll a, ll b){ ll tmp; if(a<b){ tmp = a; a = b; b = tmp; } while(b){ tmp = a; a = b; b = tmp%b; } return a; } ll lcm(ll ...
2,132
memory_bytes
{'s_id': 's941074177', 'p_id': 'p00405', 'u_id': 'u726971073', 'date': '1595657562', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '460', 'memory': '2132', 'code_size': '920'}
[ { "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>\ntypedef unsigned long long ll;\n\nll gcd(ll a, ll b){\n ll tmp;\n if(a<b){\n tmp = a...
CDSS_530989
CDSS
#include "stdio.h" int main(void) { int number; int array[20], barray[20], carray[19]; int sum = 0; scanf("%d", &number); for (int i = 1; i<=number; i++) { scanf("%d", &array[i]); } for (int i = 1; i<=number; i++) { scanf("%d", &barray[i]); } for (int i = 1; i<=number - 1; i++) { scanf("%d", &carray...
128
memory_bytes
{'s_id': 's491591375', 'p_id': 'p02916', 'u_id': 'u852988862', 'date': '1567907077', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '518'}
[ { "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\n\nint main(void) {\n\n\tint number;\n\tint array[20], barray[20], carray[19];\n\tint sum = 0;\n\tscanf(\"%...
CDSS_107648
CDSS
#include<stdio.h> int multi(int ar[3]) { int i; for( i=0; i<3; i++ ){ ar[i]=ar[i]*ar[i]; } } int main() { int cnt=0,cnt_a=0,cnt_b=0,cnt_c=0; while(1){ int array[3]; int temp,i,j; for( i=0; i<3; i++ ){ scanf("%d",&array[i]); } for( i=0; i<2; i++ ){ for( j=i+1; j<3; j++ ...
596
memory_bytes
{'s_id': 's265159020', 'p_id': 'p00505', 'u_id': 'u458712012', 'date': '1434540587', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '878'}
[ { "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 multi(int ar[3])\n{\n int i;\n for( i=0; i<3; i++ ){\n ar[i]=ar[i]*ar[i];\n }\n}\n\nint main()\n{\n ...
CDSS_416719
CDSS
/*ex4_2 series2*/ # include <stdio.h> # include <math.h> int main(void){ //各文字の箱を作って読み取り int l_hand,s_hand,hour,minute; scanf("%d %d %d %d",&l_hand,&s_hand,&hour,&minute); //二本の針の差を0以上pi以下で計算 //2*M_PI*(60*hour+minute)/(12*60)は時針の進んだ角度 //2*M_PI*minute/60は分針の進んだ角度 double diff=2*M_PI*(60*hour+...
2,596
memory_bytes
{'s_id': 's945161870', 'p_id': 'p02677', 'u_id': 'u384804826', 'date': '1590691672', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '2596', 'code_size': '597'}
[ { "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/*ex4_2\nseries2*/\n\n# include <stdio.h>\n# include <math.h>\nint main(void){\n //各文字の箱を作って読み取り\n int l_hand,s_hand,hour,minu...
CDSS_74621
CDSS
#include <stdio.h> int main(void) { int n; int nn; int a,b,cd; long long count; while(scanf("%d",&n)==1) { nn=(n<=1000?n:1000); count=0; for(a=0;a<=nn;a++) { for(b=0;b<=nn;b++) { cd=n-a-b; if(cd<0)break; else if(cd>2000)continue; if(cd<=1000)count+=cd+1; else { int over=cd-1000; ...
596
memory_bytes
{'s_id': 's518499139', 'p_id': 'p00096', 'u_id': 'u543521645', 'date': '1365923958', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '40', 'memory': '596', 'code_size': '401'}
[ { "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;\n\tint nn;\n\tint a,b,cd;\n\tlong long count;\n\twhile(scanf(\"%d\",&n)==1) {\n\t\t...
CDSS_638703
CDSS
#include<stdio.h> int main(void) { int d = 0; int n = 0; int k; long long int ans = 1; scanf("%d %d", &d, &n); if (n == 100) { n = 101; } for (k = 0; k < d; k++) { ans *= 100; } ans *= n; printf("%lld\n", ans); return 0; }
128
memory_bytes
{'s_id': 's148429976', 'p_id': 'p03324', 'u_id': 'u701803294', 'date': '1529362893', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '263'}
[ { "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 d = 0;\n int n = 0;\n int k;\n long long int ans = 1;\n\n scanf(\"%d %d\", &d, &n...
CDSS_212492
CDSS
#include<stdio.h> typedef struct{ int num,id; char mark; } card; void swap(card *a,card* b){ card t=*a;*a=*b,*b=t; } int partition(card *A,int p,int r){ int x=A[r].num,i=p-1,j; for(j=p;j<r;j++){ if(A[j].num<=x){ i=i+1; swap(&A[i],&A[j]); } } swap(&A[i+1],&A[r]); return i+1; } voi...
1,780
memory_bytes
{'s_id': 's816547622', 'p_id': 'p02277', 'u_id': 'u047988051', 'date': '1432855677', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '30', 'memory': '1780', 'code_size': '885'}
[ { "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\ntypedef struct{\n int num,id;\n char mark;\n} card;\n\nvoid swap(card *a,card* b){\n card t=*a;*a=*b,*b=t;\n...
CDSS_723812
CDSS
#include <stdio.h> #include <math.h> #include <string.h> int main(void) { char s[20]; scanf("%s", &s); s[5] = ' '; s[13] = ' '; printf("%s", s); return 0; }
128
memory_bytes
{'s_id': 's910558977', 'p_id': 'p03834', 'u_id': 'u276980836', 'date': '1571780004', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '166'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n#include <string.h>\nint main(void) {\n\tchar s[20];\n\tscanf(\"%s\", &s);\n\ts[5] = ' ';\n\t...
CDSS_217873
CDSS
#include<stdio.h> #define MAX 10000 #define NIL -1 struct Node{ int p, l, r; }; struct Node A1[MAX]; int num; int A2[MAX], A3[MAX]; int getDepth(int m){ int d = 0; while(1){ m = A1[m].p; if ( m == NIL ) break; d++; } return d; } int getSibling(int m){ if ( A1[m].p == NIL ) return NIL; if (...
620
memory_bytes
{'s_id': 's040203446', 'p_id': 'p02280', 'u_id': 'u485551331', 'date': '1465999111', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '620', 'code_size': '1895'}
[ { "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 A1[MAX];\nint num;\nint A2[M...
CDSS_286552
CDSS
#include <stdio.h> int main() { int a,b,c; scanf("%d", &a); scanf("%d", &b); scanf("%d", &c); if (a < b && a < c) { if (b < c) printf("%d %d %d\n", a, b, c); else printf("%d %d %d\n", a, c, b); } else if (b < a && b < c) { if (a < c) printf("%d %d %d\n", b, a, c); else ...
1,784
memory_bytes
{'s_id': 's260298253', 'p_id': 'p02393', 'u_id': 'u620516796', 'date': '1515792164', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1784', 'code_size': '484'}
[ { "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 a,b,c;\n scanf(\"%d\", &a);\n scanf(\"%d\", &b);\n scanf(\"%d\", &c);\n\n if (a < b &&...
CDSS_640044
CDSS
#include <stdio.h> int main(void) { int N; scanf("%d",&N); if (N <=999){ printf("ABC\n");} else {printf("ABD\n");} return 0; }
128
memory_bytes
{'s_id': 's356910221', 'p_id': 'p03327', 'u_id': 'u238235808', 'date': '1528679555', '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 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;\n scanf(\"%d\",&N);\n if (N <=999){\n printf(\"ABC\\n\");}\n else...
CDSS_623343
CDSS
#include <stdio.h> int main(){ int n, i; scanf("%d %d", &n, &i); printf("%d\n", n-i+1); return 0; }
128
memory_bytes
{'s_id': 's521122626', 'p_id': 'p03272', 'u_id': 'u167161639', 'date': '1544283915', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '111'}
[ { "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, i;\n\n scanf(\"%d %d\", &n, &i);\n\n printf(\"%d\\n\", n-i+1);\n\n return 0;\n}\nPred...
CDSS_45591
CDSS
#include<stdio.h> int main (void) { int w,n,a,b,i,tate[31]={0},box; scanf("%d%d",&w,&n); for(i=0;i<=w;i++){ tate[i]=i; } for(i=0;i<n;i++){ scanf("%d,%d",&a,&b); box=tate[a]; tate[a]=tate[b]; tate[b]=box; } for(i=1;i<=w;i++){ printf("%d\n",tate[...
596
memory_bytes
{'s_id': 's575294671', 'p_id': 'p00011', 'u_id': 'u810660681', 'date': '1424849923', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '346'}
[ { "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 w,n,a,b,i,tate[31]={0},box;\n scanf(\"%d%d\",&w,&n);\n for(i=0;i<=w;i++){\n ...
CDSS_227676
CDSS
#include<stdio.h> #define NIL (2e9+1) #define N 2000 typedef struct{ int l,r,p; int key; }E; E A[N]; int left(int i,int H){ if(2 * i > H){ return NIL; } return A[2 * i].key; } int right(int i,int H){ if(2 * i + 1 > H){ return NIL; } return A[2 * i + 1].key; } int parent(int i){ if(i == 1)...
2,108
memory_bytes
{'s_id': 's065911365', 'p_id': 'p02287', 'u_id': 'u592727794', 'date': '1547703282', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '871'}
[ { "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 NIL (2e9+1)\n#define N 2000\n\ntypedef struct{\n int l,r,p;\n int key;\n}E;\n\nE A[N];\n\nint left(int ...
CDSS_379999
CDSS
#include<stdio.h> typedef long long ll; #define IMF 1000000007 int main(void){ int n; scanf("%d",&n); ll a[n]; for(int i = 0;i < n;i ++){ scanf("%lld",&a[i]); } ll ans = 0 , tas = 0; for(int i = 0;i < n;i ++){ tas += a[i]; tas %= IMF; } for(int i = 0;i < n-1;i ++){ if(tas < a[i]){...
3,292
memory_bytes
{'s_id': 's179855274', 'p_id': 'p02572', 'u_id': 'u391247609', 'date': '1598729328', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '43', 'memory': '3292', 'code_size': '468'}
[ { "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\ntypedef long long ll;\n#define IMF 1000000007\n\nint main(void){\n int n;\n scanf(\"%d\",&n);\n\n ll a[n];\n...
CDSS_600266
CDSS
#include<stdio.h> #include<string.h> #include<stdlib.h> #include<math.h> #define max(x,y)(x>y?x:y) #define min(x,y)(x>y?y:x) typedef long long int ll; typedef unsigned long long int ull; int asc_cmp(const void* X,const void* Y){int x=*(int*)X,y=*(int*)Y;if(x<y)return -1;else if(x==y)return 0;else return 1;} int desc_cm...
7,936
memory_bytes
{'s_id': 's947110963', 'p_id': 'p03146', 'u_id': 'u679951803', 'date': '1580085320', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '7936', 'code_size': '685'}
[ { "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#define max(x,y)(x>y?x:y)\n#define min(x,y)(x>y?y:x)\nt...
CDSS_288587
CDSS
#include <stdio.h> int main() { int a,b,c,work; scanf("%d %d %d",&a,&b,&c); if(a>b){ work=a; a=b; b=work; }if(b>c){ work=b; b=c; c=work; }if(a>b){ work=a; a=b; b=work; } printf("%d %d %d\n",a,b,c); return 0; }
596
memory_bytes
{'s_id': 's209404404', 'p_id': 'p02393', 'u_id': 'u556315783', 'date': '1464190270', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', '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{\nint a,b,c,work;\n\nscanf(\"%d %d %d\",&a,&b,&c);\n\nif(a>b){\n work=a;\n a=b;\n b=work;\n ...
CDSS_530688
CDSS
#include <stdio.h> int main(void){ int N; int a[30]; int b[30]; int c[30]; int sum=0; scanf("%d",&N); for(int i=0;i<N;i++){ scanf("%d",&a[i]); } for(int i=0;i<N;i++){ scanf("%d",&b[i]); } for(int i=0;i<N-1;i++){ scanf("%d",&c[i]); } for(int i=0;i<N;i++){ sum=sum+b[i]; if(i!=N-...
128
memory_bytes
{'s_id': 's816863259', 'p_id': 'p02916', 'u_id': 'u275797785', 'date': '1579192968', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '423'}
[ { "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 int N;\n int a[30];\n int b[30];\n int c[30];\n int sum=0;\n\nscanf(\"%d\",&N);...
CDSS_737466
CDSS
#include <stdio.h> int main(void) { // get inputs int top, bottom, height; scanf("%d", &top); scanf("%d", &bottom); scanf("%d", &height); // get area int area = (top + bottom) * height / 2; // output printf("%d\n", area); return 0; }
128
memory_bytes
{'s_id': 's865058467', 'p_id': 'p03997', 'u_id': 'u214957047', 'date': '1512328612', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '252'}
[ { "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\t// get inputs\n\tint top, bottom, height;\n\t\n\tscanf(\"%d\", &top);\n\tscanf(\"%d\", &bo...
CDSS_83286
CDSS
#include<stdio.h> int main(){ int n,c; while(1){ scanf("%d",&n); if(n==0)break; for(c=0;n!=1;c++){ if(n%2==0){ n/=2; } else{ n=n*3+1; } } printf("%d\n",c); } return 0; }
600
memory_bytes
{'s_id': 's005454643', 'p_id': 'p00158', 'u_id': 'u731027244', 'date': '1412847272', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', '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>\nint main(){\n int n,c;\n while(1){\n scanf(\"%d\",&n);\n if(n==0)break;\n for(c=0;n!=1;c++){\n if...
CDSS_179940
CDSS
// c # include<stdio.h> # include<stdlib.h> # include<string.h> int top,S[1000]; void push(int x){ top++; S[top]=x; } int pop(){ top--; return S[top+1]; } int main(){ int a,b,x; char s[100]; top = 0 ; // 読み込みの指定がない場合はEOF判定をする while(scanf("%s",s)!= EOF){ if(s[0] == '+'){ ...
2,104
memory_bytes
{'s_id': 's841902156', 'p_id': 'p02263', 'u_id': 'u145671674', 'date': '1589118412', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '737'}
[ { "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// c\n# include<stdio.h>\n# include<stdlib.h>\n# include<string.h>\nint top,S[1000];\n\nvoid push(int x){\n top++;\n S[top]=x;...
CDSS_735324
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> int descending_compare(const void *a, const void *b){ if (*(int*)a > *(int*)b){ return -1; }else if (*(int*)a == *(int*)b){ return 0; }else{ return 1; } } int ascending_compare(const void *a, const vo...
256
memory_bytes
{'s_id': 's724154374', 'p_id': 'p03965', 'u_id': 'u543284218', 'date': '1517895302', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '256', 'code_size': '1687'}
[ { "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#include <math.h>\n\n\nint descending_compare(const void *a, const voi...
CDSS_221933
CDSS
#include<stdio.h> #include<stdlib.h> struct tree { int data; struct tree *left; struct tree *right; }; struct tree *root = NULL; int Search(struct tree*, int); struct tree *Insert(struct tree*, int); struct tree *Alsearch(struct tree**); struct tree *Remove(struct tree**, int); void Dispm(struct...
17,320
memory_bytes
{'s_id': 's845503809', 'p_id': 'p02283', 'u_id': 'u141038857', 'date': '1514438674', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '350', 'memory': '17320', 'code_size': '3615'}
[ { "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>\nstruct tree {\n int data;\n struct tree *left;\n struct tree *right;\n};...
CDSS_480937
CDSS
#include<stdio.h> #include<stdlib.h> #include<string.h> #include<math.h> #define num sizeof(a)/sizeof(int) #define N 100000 int main(){ char s[3*N],add[2],sagyou[3*N],emp[3*N]; int q,size,t,f,number=0,i,ins,distin=0; scanf("%s%d",s,&q); s[N-1]='\0'; strcpy(sagyou,s); for(size=0;s[size]!='\0';s...
896
memory_bytes
{'s_id': 's516908768', 'p_id': 'p02756', 'u_id': 'u582588783', 'date': '1585725677', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '541', 'memory': '896', 'code_size': '1192'}
[ { "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#include<math.h>\n\n#define num sizeof(a)/sizeof(int)\n#define N 100000\n...
CDSS_70120
CDSS
#include<stdio.h> int main(void){ int T, H, S, Ans1, Ans3, AT1, AH1, AS1, AT3, AH3, AS3; scanf("%d %d %d", &T, &H, &S); while (1) { S = T * 3600 + H * 60 + S; Ans1 = 2 * 3600 - S; Ans3 = 3 * Ans1; AT1 = Ans1 / 3600; AH1 = Ans1 % 3600 / 60; AS1 = Ans1 - AT1 * 3600 - AH1 * 60;...
1,800
memory_bytes
{'s_id': 's302196063', 'p_id': 'p00074', 'u_id': 'u328199937', 'date': '1508393734', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1800', 'code_size': '876'}
[ { "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 int T, H, S, Ans1, Ans3, AT1, AH1, AS1, AT3, AH3, AS3;\n scanf(\"%d %d %d\", &T, &H, &S);\n...
CDSS_145465
CDSS
#include<stdio.h> int main(){ int num,i,j,k,v; int A[1000]; scanf("%d",&num); for(i=0;i<num;i++){ scanf("%d",&A[i]); } for(i=0;i<num-1;i++){ printf("%d ",A[i]); } printf("%d\n",A[i]); for(i = 1 ; i <= num-1 ; i++){ v=A[i]; j=i-1; while(j>=0 && A[j]>v){ ...
604
memory_bytes
{'s_id': 's584862795', 'p_id': 'p02255', 'u_id': 'u395334793', 'date': '1488040678', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '604', 'code_size': '483'}
[ { "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 num,i,j,k,v;\n int A[1000];\n \n \n scanf(\"%d\",&num);\n \n for(i=0;i<num;i++){\n ...
CDSS_171219
CDSS
#include <stdio.h> /* 選択ソート (0オリジン) */ int selectionSort(int A[], int N) { int i, j, t, sw = 0, mini; for(i=0; i<N-1; i++) { mini = i; for(j=i; j<N; j++) { if(A[j] < A[mini]) mini = j; } t = A[i]; A[i] = A[mini]; A[mini] = t; if(i != mini) sw++; } return sw; } int main(void) { ...
2,104
memory_bytes
{'s_id': 's974214601', 'p_id': 'p02260', 'u_id': 'u666307258', 'date': '1527490816', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '575'}
[ { "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/* 選択ソート (0オリジン) */\nint selectionSort(int A[], int N) {\n int i, j, t, sw = 0, mini;\n for(i=0; i<N-1; i++)...
CDSS_422820
CDSS
#include<stdio.h> int main(void){ char s[4]; scanf("%s", s); if (s[1] == 'R') { printf("ABC"); } else printf("ARC"); return 0; }
2,168
memory_bytes
{'s_id': 's352939053', 'p_id': 'p02687', 'u_id': 'u189521276', 'date': '1588554983', 'language': 'C', 'original_language': 'C (Clang 10.0.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '2168', 'code_size': '139'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void){\n\tchar s[4];\n\tscanf(\"%s\", s);\n\tif (s[1] == 'R') {\n\t\tprintf(\"ABC\");\n\t}\n\telse pri...