identifier
string
space
string
input
string
target
float64
metric_type
string
metadata
string
messages
list
CDSS_243119
CDSS
#include<stdio.h> int main(void) { int input, ans = 1, i; scanf("%d", &input); if(input<0 || 100 < input) return -1; for(i=0; i<3; i++) ans *= input; printf("%d\n", ans); return 0; }
596
memory_bytes
{'s_id': 's354671529', 'p_id': 'p02388', 'u_id': 'u915014644', 'date': '1466993841', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '230'}
[ { "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 input, ans = 1, i;\n scanf(\"%d\", &input);\n if(input<0 || 100 < in...
CDSS_703033
CDSS
#include <stdio.h> #include <string.h> #include <stdlib.h> typedef long long ll; typedef int keytype; int gcd(int a, int b){ return (a % b) ? gcd(b, a % b) : b;} int lcm(int a, int b){ return (a / gcd(a, b)) * b;} void quicksort(keytype a[], int first, int last) { int i, j; keytype x, t; x = a[(first + ...
1,628
memory_bytes
{'s_id': 's247460056', 'p_id': 'p03698', 'u_id': 'u906918812', 'date': '1599971566', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1628', 'code_size': '1911'}
[ { "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\ntypedef long long ll;\ntypedef int keytype;\n\nint gcd(int a, int b)...
CDSS_509224
CDSS
#include <stdio.h> int main(void){ int a1, a2, a3; scanf("%d %d %d", &a1, &a2, &a3); int Ten = a1 + a2 + a3; if (Ten >= 22){ printf("bust\n"); } else { printf("win\n"); } return 0; }
128
memory_bytes
{'s_id': 's214974759', 'p_id': 'p02835', 'u_id': 'u818573308', 'date': '1586741337', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '238'}
[ { "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 a1, a2, a3;\n scanf(\"%d %d %d\", &a1, &a2, &a3);\n int Ten = a1 + a2 + a3;\n ...
CDSS_334767
CDSS
#include <stdio.h> #define P printf int main(void){int h,w,i,j;for(;;){scanf("%d %d",&h,&w);if(h+w==0)return 0;for(i=h;i>0;--i){for(j=w;j>0;--j)P(i==h||i==1||j==w||j==1?"#":".");P("\n");}P("\n");}}
588
memory_bytes
{'s_id': 's439488393', 'p_id': 'p02404', 'u_id': 'u309428289', 'date': '1382295769', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '588', 'code_size': '197'}
[ { "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 P printf\nint main(void){int h,w,i,j;for(;;){scanf(\"%d %d\",&h,&w);if(h+w==0)return 0;for(i=h;i>0;--i){...
CDSS_115027
CDSS
#include <stdio.h> #include <math.h> int sosu(int n){ if(n==1)return 0; int i; for(i=2; i<=sqrt(n); i++){ if(n%i==0)return 0; } return 1; } int main(){ int a,d,n; int i,j,k,l,m; int cnt; while(1){ scanf("%d %d %d",&a,&d,&n); if(a==0&&d==0&&n==0)break; cnt=0; while(cnt<n){ if(sosu(a))cnt++; a...
600
memory_bytes
{'s_id': 's472395282', 'p_id': 'p00722', 'u_id': 'u700120734', 'date': '1432617578', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '40', 'memory': '600', 'code_size': '367'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n\nint sosu(int n){\n\tif(n==1)return 0;\n\tint i;\n\tfor(i=2; i<=sqrt(n); i++){\n\t\tif(n%i==...
CDSS_220950
CDSS
#include <stdio.h> #include <stdlib.h> struct node{ struct node *right; struct node *left; struct node *parent; int key; }; typedef struct node * Node; #define NIL NULL void inorder(Node); void preorder(Node); void insert(int); Node root; int main(){ int n, i, x; char com[20]; scanf("%d", &n); ...
25,220
memory_bytes
{'s_id': 's063086633', 'p_id': 'p02283', 'u_id': 'u890530158', 'date': '1531489139', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '340', 'memory': '25220', 'code_size': '1389'}
[ { "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\nstruct node{\n struct node *right;\n struct node *left;\n struct node *parent;\n int ...
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 should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n\nint main(){\n \n int n, k, r;\n scanf(\"%d%d\",&n,&k);\n \n int i=0;\n \n...
CDSS_207342
CDSS
#include<stdio.h> int main(){ int A[10000]; int n,i,x,j,cnt=0;//cutはカウント用 scanf("%d",&n); for(i=0;i<10000;i++){ A[i]=0; } for(i=0;i<n;i++){ scanf("%d",&x); A[x]++; } for(i=0;i<10000;i++){ for(j=0;j<A[i];j++){ printf("%d",i); if(cnt<...
2,052
memory_bytes
{'s_id': 's134901701', 'p_id': 'p02275', 'u_id': 'u041398010', 'date': '1545922487', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '210', 'memory': '2052', 'code_size': '454'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int A[10000];\n int n,i,x,j,cnt=0;//cutはカウント用\n scanf(\"%d\",&n);\n for(i=0;i<10000;i++...
CDSS_200970
CDSS
#include<stdio.h> #define N 20 #define Q 200 int solve(int,int); int n,A[N]; int main(void){ int q,m[Q]; int i; 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[i]); } for(i = 0; i < q; i++){ if(solve(0,m[i]) == 1)...
2,108
memory_bytes
{'s_id': 's831131953', 'p_id': 'p02271', 'u_id': 'u837878575', 'date': '1576816661', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '430', 'memory': '2108', 'code_size': '530'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\n#define N 20\n#define Q 200\n\nint solve(int,int);\n\nint n,A[N];\n\nint main(void){\n int q,m[Q];\n int i;\n...
CDSS_213684
CDSS
#include<stdio.h> #define MAX 100000 #define N 2000000000 typedef struct Card{ char suit; int value; }Card; Card L[MAX / 2 + 2], R[MAX / 2 + 2]; void merge(Card A[], int left, int mid, int right) { int i, j, k,n1,n2; n1 = mid - left; n2 = right - mid; for (i=0;i<n1;i++){ L[i] = A[left + i]; } f...
4,188
memory_bytes
{'s_id': 's079485783', 'p_id': 'p02277', 'u_id': 'u701335376', 'date': '1549853815', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '4188', 'code_size': '1696'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#define MAX 100000\n#define N 2000000000\n\ntypedef struct Card{\n char suit;\n int value;\n}Card;\n\nCard L[MA...
CDSS_94670
CDSS
#include <stdio.h> int main(void) { int w,x; scanf("%d",&w); x=32*w; printf("%d\n",x); return 0; }
1,800
memory_bytes
{'s_id': 's798786948', 'p_id': 'p00330', 'u_id': 'u872842604', 'date': '1506815693', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1800', 'code_size': '103'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void)\n{\n\tint w,x;\n\tscanf(\"%d\",&w);\n\tx=32*w;\n\tprintf(\"%d\\n\",x);\n\treturn 0;\n}\nPredict i...
CDSS_288058
CDSS
#include <stdio.h> #include <stdlib.h> int main() { int a, b, c; int tmp; scanf("%d%d%d", &a, &b, &c); if (a > b) tmp = a, a = b, b = tmp; if (b > c) { tmp = b, b = c, c = tmp; if (a > b) tmp = a, a = b, b = tmp; } printf("%d %d %d\n", a, b, c); return 0; }
2,100
memory_bytes
{'s_id': 's996392549', 'p_id': 'p02393', 'u_id': 'u745437820', 'date': '1588147901', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2100', 'code_size': '273'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer 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\tint a, b, c;\n\tint tmp;\n\n\tscanf(\"%d%d%d\", &a, &b, &c);\n\tif (a > ...
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 should 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_516310
CDSS
#include <stdio.h> int main(void){ int N; scanf("%d", &N); if(N%2==0) printf("%d", N/2-1); else printf("%d", N/2); return 0; }
1,676
memory_bytes
{'s_id': 's530773830', 'p_id': 'p02865', 'u_id': 'u756264154', 'date': '1597434167', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1676', 'code_size': '146'}
[ { "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 scanf(\"%d\", &N);\n if(N%2==0) printf(\"%d\", N/2-1);\n else printf(\"%d...
CDSS_502193
CDSS
#include <stdio.h> int main(){ int k,x; scanf("%d %d",&k,&x); if(500*k>=x) printf("Yes"); else printf("No"); return 0; }
128
memory_bytes
{'s_id': 's947618056', 'p_id': 'p02811', 'u_id': 'u085053899', 'date': '1578708823', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '141'}
[ { "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,x;\n scanf(\"%d %d\",&k,&x);\n \n if(500*k>=x)\n printf(\"Yes\");\n else printf(\"...
CDSS_415541
CDSS
#include<stdio.h> #include<string.h> int main(){ char k[100]; int s; char t[100]; scanf("%d",&s); scanf("%s",k); if(strlen(k)<=s){ printf("%s",k); }else{ strncpy(t,k,s); t[s]='\0'; printf("%s...",t); } return 0; }
1,732
memory_bytes
{'s_id': 's304768750', 'p_id': 'p02676', 'u_id': 'u412896541', 'date': '1594753131', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1732', 'code_size': '265'}
[ { "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 char k[100];\n int s;\n char t[100];\n scanf(\"%d\",&s);\n scanf(\"...
CDSS_723520
CDSS
#include<stdio.h> int main(){ long long m=1e9+7; int n; int a[100000]; scanf("%d",&n); for(int i=2;i<=n;i++){ int x=i; for(int j=2;j<=x;j++){ while(x%j==0){ a[j]++; x/=j; } } } long long res=1; for(int i=1;i<=n;i++){ ...
128
memory_bytes
{'s_id': 's047882426', 'p_id': 'p03830', 'u_id': 'u353919145', 'date': '1550289702', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '405'}
[ { "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\tlong long m=1e9+7;\n int n;\n\tint a[100000];\n\tscanf(\"%d\",&n);\n for(int i=2;i<=n;i++)...
CDSS_647692
CDSS
#include<stdio.h> #define size 200 int main( ) { int n , num[size] , i , j , count= 0 , sum , x , max , k ; scanf("%d%d" , &n , &x); for( i = 1 , sum = 0; i <= n ; i++) { scanf("%d" , &num[i] ); sum += num[i] ; } if( (sum-x) == 0) printf("%d\n" , n); ...
2,120
memory_bytes
{'s_id': 's890104346', 'p_id': 'p03370', 'u_id': 'u018679195', 'date': '1601281555', 'language': 'C', 'original_language': 'C (Clang 10.0.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '12', 'memory': '2120', 'code_size': '786'}
[ { "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 size 200\n\n\nint main( )\n{\n int n , num[size] , i , j , count= 0 , sum , x , max , k ;\n \n s...
CDSS_718194
CDSS
#include <stdio.h> int main (void){ long long int n, m; scanf("%lld %lld", &n, &m); if(m >= n*2){ if(m >= 2){ printf("%lld\n",n+(m-(n*2))/4); } else printf("0\n"); } else{ printf("%lld\n", m/2); } return 0; }
128
memory_bytes
{'s_id': 's699157827', 'p_id': 'p03797', 'u_id': 'u243159170', 'date': '1487472918', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '230'}
[ { "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\tlong long int n, m;\n\tscanf(\"%lld %lld\", &n, &m);\n\tif(m >= n*2){\n\t\tif(m >= 2){\n\t...
CDSS_443596
CDSS
#include<stdio.h> int main() { int n,a,x,i,cnt; int b[100000]; scanf("%d %d",&n,&a); for(i=0;i<a;i++) { scanf("%d",&b[i]); } cnt=0; for(i=0;i<a;i++) { cnt=cnt+b[i]; } x=n-cnt; if(x>=0) printf("%d",x); else printf("-1"); return 0; }
1,752
memory_bytes
{'s_id': 's555235951', 'p_id': 'p02706', 'u_id': 'u402887661', 'date': '1587346220', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '1752', '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>\nint main()\n{\n int n,a,x,i,cnt;\n int b[100000];\n scanf(\"%d %d\",&n,&a);\n for(i=0;i<a;i++)\n {\n ...
CDSS_646616
CDSS
#include<stdio.h> int judge_prime(int n){ int divcnt = 0; for(int i = 1; i <= n; i++){ if(n % i == 0){ divcnt ++; } } if(divcnt == 2){ return 1; } return 0; } void print_array(int data[], int n){ for(int i = 0; i < n; i++){ printf("%d ", data[i...
128
memory_bytes
{'s_id': 's218003979', 'p_id': 'p03362', 'u_id': 'u502731482', 'date': '1580965565', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '605'}
[ { "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>\n\nint judge_prime(int n){\n int divcnt = 0;\n for(int i = 1; i <= n; i++){\n if(n % i == 0){\n ...
CDSS_470708
CDSS
#include <stdio.h> int main(void){ int K,N; int A[2*1000000]; scanf("%d%d",&K,&N); int i; for(i=0;i<N;i++){ scanf("%d",&A[i]); } int max = 0; for(i=0;i<N-1;i++){ if(max<A[i+1]-A[i]){ max = A[i+1]-A[i]; } } if(max<K-A[N-1]+A[0]){ ...
2,944
memory_bytes
{'s_id': 's618152516', 'p_id': 'p02725', 'u_id': 'u792455295', 'date': '1585449080', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '22', 'memory': '2944', 'code_size': '388'}
[ { "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 K,N;\n int A[2*1000000];\n scanf(\"%d%d\",&K,&N);\n \n int i;\n for(i=0;...
CDSS_316683
CDSS
#include <stdio.h> #include <math.h> int main() { double r,m,s; scanf("%lf",&r); m=r*r*M_PI; s=2*r*M_PI; printf("%f %f\n",m,s); }
2,104
memory_bytes
{'s_id': 's671544283', 'p_id': 'p02400', 'u_id': 'u500257793', 'date': '1527758351', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '137'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\nint main()\n{\n double r,m,s;\n scanf(\"%lf\",&r);\n m=r*r*M_PI;\n s=2*r*M_PI;\n printf(\"%f ...
CDSS_336744
CDSS
#include <stdio.h> int main(void){ int h,w,i,j; while(1){ 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 pri...
2,032
memory_bytes
{'s_id': 's218764410', 'p_id': 'p02405', 'u_id': 'u678843586', 'date': '1529976520', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2032', '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>\n \nint main(void){\n int h,w,i,j;\n while(1){\n scanf(\"%d %d\",&h,&w);\n i...
CDSS_139298
CDSS
#include <stdio.h> #define N 101 #define WHITE 0 #define GRAY 1 #define BLACK 2 #define INF 2010 #define NIL -1 int G[N][N]; int n; int prim(void) { int i, mincost, u, num = 0; int d[N], pi[N], color[N]; for(i = 1; i <= n; i++) { d[i] = INF; pi[i] = NIL; color[i] = WHITE; } d[1] = 0; while(1)...
640
memory_bytes
{'s_id': 's565286387', 'p_id': 'p02241', 'u_id': 'u230060231', 'date': '1500429009', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '640', 'code_size': '965'}
[ { "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 101\n#define WHITE 0\n#define GRAY 1\n#define BLACK 2\n#define INF 2010\n#define NIL -1\n\nint G[N][N]...
CDSS_82432
CDSS
#include<stdio.h> int isprime(int n){ int i; for(i = 2; i * i <= n; i ++ ){ if(n % i == 0)return 0; } return 1; } int main(void){ const int NUM = 10001; int i,n,prime[NUM],p1,q1; for(i = 2; i < NUM; i ++ ){ prime[i] = isprime(i); } while(1){ scanf("%d",&n...
640
memory_bytes
{'s_id': 's634076674', 'p_id': 'p00150', 'u_id': 'u978794529', 'date': '1449228117', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '640', 'code_size': '611'}
[ { "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 isprime(int n){\n int i;\n for(i = 2; i * i <= n; i ++ ){\n if(n % i == 0)return 0;\n }\n ...
CDSS_83806
CDSS
#include<stdio.h> int main(){ int i; int b,c,g,h,s; int d[6]={6,7,5,5,20,15}; int m[7][7]; m[0][1]=300; m[0][2]=500; m[0][3]=600; m[0][4]=700; m[0][5]=1350; m[0][6]=1650; m[1][2]=350; m[1][3]=450; m[1][4]=600; m[1][5]=1150; m[1][6]=1500; m[2][3]=250; m[2][4]=400; m[2][5]=1000; m[2]...
0
memory_bytes
{'s_id': 's902556078', 'p_id': 'p00163', 'u_id': 'u361407785', 'date': '1307780060', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '1074'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int i;\n int b,c,g,h,s;\n int d[6]={6,7,5,5,20,15};\n int m[7][7];\n m[0][1]=300;\n m[0][2]=5...
CDSS_242780
CDSS
#include<stdio.h> int main() { int x, y; scanf("%d",&x); y = x*x*x; printf("%d\n",y); return 0; }
596
memory_bytes
{'s_id': 's485856937', 'p_id': 'p02388', 'u_id': 'u202512417', 'date': '1463798857', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '108'}
[ { "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, y;\n\n scanf(\"%d\",&x);\n y = x*x*x;\n printf(\"%d\\n\",y);\n return 0;\n}\nPredict ...
CDSS_502681
CDSS
#include<stdio.h> int main() { int i,len,con=0,count=0; char a[100]; scanf("%d",&len); getchar(); for(i=0;i<len;i++) { scanf("%c",&a[i]); if(a[i]=='A') con=1; else if(a[i]=='B'&&con==1) con++; else if(a[i]=='C'&&con==2) con++; ...
256
memory_bytes
{'s_id': 's938710944', 'p_id': 'p02812', 'u_id': 'u679820235', 'date': '1578722730', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '256', 'code_size': '475'}
[ { "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 i,len,con=0,count=0;\n char a[100];\n scanf(\"%d\",&len);\n getchar();\n for(i...
CDSS_65666
CDSS
#include <stdio.h> #include<string.h> int main() { int i,j,k,len = 0,flag=0; char buf[1000] = { 0 }; char stra[] = "apple", strp[] = "peach"; fgets(buf, 1001,stdin); len = strlen(buf); //printf("%d ",len); for (i = 0; i < len - 1; i++) { if (buf[i] == 'p') { for (j = i + 1, k = 1; j < i + 5; j++, k++...
524
memory_bytes
{'s_id': 's882941632', 'p_id': 'p00050', 'u_id': 'u902207865', 'date': '1493904732', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', 'code_size': '874'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include<string.h>\n\nint main()\n{\n\tint i,j,k,len = 0,flag=0;\n\tchar buf[1000] = { 0 };\n\tchar stra[] = \"a...
CDSS_516509
CDSS
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <ctype.h> #include <math.h> #define MAX(X, Y) (((X) > (Y))? (X) : (Y)) #define MIN(X, Y) (((X) < (Y))? (X) : (Y)) int compare_int(const void *a, const void *b){ return *(long int*)b - *(long int*)a; // 大きい順 } int compare_int_small(const void *a, cons...
512
memory_bytes
{'s_id': 's439623854', 'p_id': 'p02866', 'u_id': 'u980869590', 'date': '1574135268', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '11', 'memory': '512', 'code_size': '2994'}
[ { "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 <ctype.h>\n#include <math.h>\n#define MAX(X, Y) (((X) > (Y))?...
CDSS_531135
CDSS
#include <stdio.h> int main(void){ int n,i; scanf("%d",&n); int b[n-1]; for(i=0;i<n-1;i++) scanf("%d",&b[i]); int sum=b[0]; for(i=1;i<n-1;i++){ if(b[i-1]>b[i]) sum+=b[i]; else sum+=b[i-1]; } printf("%d",sum+b[n-2]); return 0; }
256
memory_bytes
{'s_id': 's884773142', 'p_id': 'p02917', 'u_id': 'u592248346', 'date': '1589077984', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '256', 'code_size': '279'}
[ { "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,i;\n scanf(\"%d\",&n);\n int b[n-1];\n for(i=0;i<n-1;i++) scanf(\"%d\",&b[i]...
CDSS_542004
CDSS
#include <stdio.h> #include <stdbool.h> bool f(int x) { int keta = 0; while (x) { keta++; x /= 10; } return keta%2 == 1; } int main() { int n; scanf("%d", &n); int ans = 0; for (int i = 1; i <= n ; ++i) { if (f(i)) ans++; } printf("%d", ans); return 0;...
128
memory_bytes
{'s_id': 's396130147', 'p_id': 'p02952', 'u_id': 'u804880828', 'date': '1566936515', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '322'}
[ { "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 <stdbool.h>\nbool f(int x) {\n int keta = 0;\n while (x) {\n keta++;\n x /= 10;\n ...
CDSS_556112
CDSS
#include<stdio.h> #include<stdlib.h> #include<stdint.h> #include<inttypes.h> #include<string.h> #include<math.h> typedef int32_t i32; typedef int64_t i64; #define MAX(a,b) ((a)>(b)?(a):(b)) #define MIN(a,b) ((a)<(b)?(a):(b)) #define ABS(a) ((a)>(0)?(a):-(a)) #define ALLOC(size,type) ((type*)calloc((size),sizeof(type)...
25,476
memory_bytes
{'s_id': 's987190942', 'p_id': 'p02992', 'u_id': 'u425248533', 'date': '1561858929', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '65', 'memory': '25476', 'code_size': '1454'}
[ { "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<stdint.h>\n#include<inttypes.h>\n#include<string.h>\n#include<math.h>\n\ntypedef int...
CDSS_605865
CDSS
#include <stdio.h> #include <stdlib.h> int main() { int N,H,W; scanf("%d %d %d",&N,&H,&W); int A[N],B[N]; for (int i = 0; i < N; i++) { scanf("%d %d",&A[i],&B[i]); } int count=0; for (int i = 0; i < N; i++) { if (A[i] >= H && B[i] >= W) { count++; } } printf("%d\n",count); return 0; }
128
memory_bytes
{'s_id': 's461912339', 'p_id': 'p03193', 'u_id': 'u227604873', 'date': '1545534559', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '305'}
[ { "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\tint N,H,W;\n\tscanf(\"%d %d %d\",&N,&H,&W);\n\tint A[N],B[N];\n\tfor (int...
CDSS_293410
CDSS
#include <stdio.h> int main (void) { int w, h, x, y, r; scanf("%d %d %d %d %d", &w, &h, &x, &y, &r); if(((x-r)>=0)&&((y-r)>=0)&&((x+r)<=w)&&((y+r)<=h)) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
2,108
memory_bytes
{'s_id': 's174206202', 'p_id': 'p02394', 'u_id': 'u950102196', 'date': '1588082851', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '262'}
[ { "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 w, h, x, y, r;\n \n scanf(\"%d %d %d %d %d\", &w, &h, &x, &y, &r);\n\n if(...
CDSS_497139
CDSS
#include <stdio.h> int main() { int n, m; scanf("%d%d", &n, &m); if(n==m) printf("Yes\n"); else printf("No\n"); return 0; }
128
memory_bytes
{'s_id': 's156249547', 'p_id': 'p02789', 'u_id': 'u466503296', 'date': '1579463892', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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>\nint main()\n{\n\tint n, m;\n\tscanf(\"%d%d\", &n, &m);\n\tif(n==m)\n\t printf(\"Yes\\n\");\n\telse \n\t pr...
CDSS_136086
CDSS
#include <stdio.h> #define MAX 100 int main(){ int M[MAX][MAX]; int i,j; int n,u,k,v; scanf("%d",&n); for(i=0;i<n;i++){ for(j=0;j<n;j++){ M[i][j]=0; } } for(i=0;i<n;i++){ scanf("%d %d",&u,&k); u--; for(j=0;j<k;j++){ scanf("%d",&v); v--; M[u][v]=1; } } ...
2,088
memory_bytes
{'s_id': 's920540721', 'p_id': 'p02237', 'u_id': 'u643676119', 'date': '1532581973', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2088', 'code_size': '456'}
[ { "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 100\n\nint main(){\n int M[MAX][MAX];\n int i,j;\n int n,u,k,v;\n scanf(\"%d\",&n);\n\n for(i=0...
CDSS_568927
CDSS
#include<stdio.h> int main(){ long int R, D, x[11]; int i; scanf("%ld %ld %ld", &R, &D, &x[0]); for(i=0; i<10; i++){ x[i+1] = R*x[i] - D; printf("%ld\n", x[i+1]); } return 0; }
128
memory_bytes
{'s_id': 's886423703', 'p_id': 'p03036', 'u_id': 'u235231201', 'date': '1558833477', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', '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 should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n long int R, D, x[11];\n int i;\n\n scanf(\"%ld %ld %ld\", &R, &D, &x[0]);\n\n for(i=0...
CDSS_129484
CDSS
#include <stdio.h> int F[45]; //0<=n<=44 int fib(int n){ if(F[n]!=0){ return F[n]; } else { if(n<=1)F[n]=1; // else{ F[n]=fib(n-1)+fib(n-2); } return F[n]; } } int main(void){ int n; scanf("%d",&n); printf("%d\n",fib(n)); return 0; }
596
memory_bytes
{'s_id': 's363539151', 'p_id': 'p02233', 'u_id': 'u947828612', 'date': '1404961204', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', '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\n#include <stdio.h>\nint F[45]; //0<=n<=44\n\nint fib(int n){\n if(F[n]!=0){\n return F[n];\n }\n else\n {\n if(n<=1)...
CDSS_282247
CDSS
#include <stdio.h> int main(int argc, char *argv[]) { int a,b,c; scanf("%d %d %d", &a, &b, &c); if (a <= b && b <= c) { printf("%d %d %d\n", a, b, c); } else if (a <= c && c <= b) { printf("%d %d %d\n", a, c, b); } else if (b <= c && c <= a) { printf("%d %d %d\n", b, c, a); } else if (b <= a && a <= c) { ...
596
memory_bytes
{'s_id': 's988308197', 'p_id': 'p02393', 'u_id': 'u785398368', 'date': '1444140191', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '499'}
[ { "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{\n\tint a,b,c;\n\tscanf(\"%d %d %d\", &a, &b, &c);\n\n\tif (a <= b && b <= ...
CDSS_233375
CDSS
#include<stdio.h> int ta[100010],nt[200010],to[200010],co[200010],gg; int MAX(int a,int b){return a<b?b:a;} int d[100010]; void mkls(int v,int e,int *a,int *b,int *c){ int i; for(i=0;i<v;i++)ta[i]=-1; for(i=0;i<e;i++){ nt[i ]=ta[to[i+e]=a[i]]; nt[i+e]=ta[to[i ]=b[i]]; co[ta[b[i]]=i+e]=co[ta[a[i]]=i]...
8,800
memory_bytes
{'s_id': 's118040297', 'p_id': 'p02371', 'u_id': 'u731027244', 'date': '1497773605', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '30', 'memory': '8800', 'code_size': '1431'}
[ { "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 ta[100010],nt[200010],to[200010],co[200010],gg;\nint MAX(int a,int b){return a<b?b:a;}\nint d[100010];\nvoid ...
CDSS_217230
CDSS
#include <stdio.h> int N; int deg[100001]; int par[100001]; int sib[100001]; int Depth(int); int Height(int); int main() { int j,i; scanf("%d", &N); for(i = 0; i < N; ++i) { par[i] = -1; sib[i] = -1; deg[i] = 0; } for(i = 0; i < N; i++) { int id, lef, rig; scanf("%d %d %d", &id, &lef, &rig...
2,100
memory_bytes
{'s_id': 's433974217', 'p_id': 'p02280', 'u_id': 'u815509365', 'date': '1531196220', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2100', 'code_size': '1117'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint N;\nint deg[100001];\nint par[100001];\nint sib[100001];\nint Depth(int);\nint Height(int);\nint main() {\n ...
CDSS_273965
CDSS
#include <stdio.h> int main() { int a, b; scanf("%d%d", &a, &b); if ( a < b ) { printf("a < b\n"); } else if (a > b) { printf("a > b\n"); } else { printf("a == b\n"); } return 0; }
2,032
memory_bytes
{'s_id': 's835949357', 'p_id': 'p02391', 'u_id': 'u230310520', 'date': '1587393641', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2032', 'code_size': '202'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main() {\n\tint a, b;\n\n\tscanf(\"%d%d\", &a, &b);\n\n\tif ( a < b ) {\n\t\tprintf(\"a < b\\n\");\n\t}\n\...
CDSS_272144
CDSS
#include <stdio.h> int main(void) { int a, b; scanf("%d", &a); scanf("%d", &b); if (a < b) printf("a < b\n"); else if (a > b) printf("a > b\n"); else printf("a == b\n"); return 0; }
2,048
memory_bytes
{'s_id': 's751624125', 'p_id': 'p02391', 'u_id': 'u853655072', 'date': '1523287373', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2048', 'code_size': '197'}
[ { "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 a, b;\n\tscanf(\"%d\", &a);\n\tscanf(\"%d\", &b);\n\tif (a < b)\n\t\tprintf(\"a < b\\n...
CDSS_60087
CDSS
#include <stdio.h> int main(){ int gramme; int weight[10]={512,256,128,64,32,16,8,4,2,1},onOff[10]; int i,flag; while(scanf("%d",&gramme)!=EOF){ flag=0; for(i=0;i<10;i++){ onOff[i]=gramme/weight[i]; gramme%=weight[i]; } for(i=9;i>=0;i--){ if(onOff[i]){ if(flag){ printf(" "); }els...
0
memory_bytes
{'s_id': 's270451896', 'p_id': 'p00031', 'u_id': 'u775414834', 'date': '1304255483', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', '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#include <stdio.h>\n\nint main(){\n\tint gramme;\n\tint weight[10]={512,256,128,64,32,16,8,4,2,1},onOff[10];\n\tint i,flag;\n\t\n\tw...
CDSS_117406
CDSS
// AOJ 1175: And Then. How Many Are There? // 2017.12.21 bal4u@uu #include <stdio.h> #include <string.h> typedef struct { int s, del, m; } Q; Q q[1000]; int top; typedef struct { int x, y, r; } T; T d[25]; int col[4][6], clen[4]; char f[5]; int up[25][25], ulen[25]; // ?????????????????????????????°??¨?????? char vi...
18,252
memory_bytes
{'s_id': 's277929674', 'p_id': 'p00756', 'u_id': 'u847467233', 'date': '1513854424', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '40', 'memory': '18252', 'code_size': '1752'}
[ { "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 1175: And Then. How Many Are There?\n// 2017.12.21 bal4u@uu\n\n#include <stdio.h>\n#include <string.h>\n\ntypedef struct { in...
CDSS_45757
CDSS
#include <stdio.h> int main(void) { int i,s,w,n,a,b,d[32]; for(i = 1;i <= 30;i++){ d[i] = i; } scanf("%d",&w); scanf("%d",&n); for(i = 1;i <= n;i++){ scanf("%d,%d",&a,&b); s = d[a]; d[a] = d[b]; d[b] = s; } for(i = 1;i <= w;i++){ printf("%d\n",d[i]); } return 0; }
592
memory_bytes
{'s_id': 's021300890', 'p_id': 'p00011', 'u_id': 'u444407884', 'date': '1477637810', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', 'code_size': '287'}
[ { "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 i,s,w,n,a,b,d[32];\n\tfor(i = 1;i <= 30;i++){\n\t\td[i] = i;\n\t}\n\tscanf(\"%d\",&w);...
CDSS_621785
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <limits.h> #define ROOP(i,n) for(i=0;i<n;i++) //prototype declaration int getint(); long long getllint(); double getdint(); char getch(); void setstring(char *s); void showint(int i); void showllint(long long i); void showdouble(dou...
128
memory_bytes
{'s_id': 's918505209', 'p_id': 'p03264', 'u_id': 'u924003610', 'date': '1558549779', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '1453'}
[ { "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 <limits.h>\n\n#define ROOP(i,n) for(i=0;i<...
CDSS_568467
CDSS
#include <stdio.h> int main(void) { int A,B; scanf("%d%d",&A,&B); if (A >= 13) { printf("%d\n", B); } else if (6 <= A && A <= 12) { printf("%d\n", B/2); } else { printf("0\n"); } return 0; }
128
memory_bytes
{'s_id': 's529917420', 'p_id': 'p03035', 'u_id': 'u686007983', 'date': '1558832601', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '243'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\n\n int A,B;\n scanf(\"%d%d\",&A,&B);\n \n if (A >= 13) {\n printf(\"%d\\n\", B)...
CDSS_130979
CDSS
#include<stdio.h> #define MAX 44 int fibonacci(int); int f[MAX]; int main(){ int n; scanf("%d", &n); fibonacci(n); printf("%d\n", f[n]); return 0; } int fibonacci(int n){ //nが0,1のとき1を返す if(n == 0 || n == 1){ f[n] = 1; return f[n]; } //値がすでに入っているとき、その値を返す if(f[n] != 0) return f[n]; /...
2,108
memory_bytes
{'s_id': 's528686220', 'p_id': 'p02233', 'u_id': 'u806863554', 'date': '1547526619', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', '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#define MAX 44\n\nint fibonacci(int);\n\nint f[MAX];\n\nint main(){\n int n;\n\n scanf(\"%d\", &n);\n\n fibona...
CDSS_363767
CDSS
#include<stdio.h> int main(){ while(1){ int i,ans = 0; char x[1001]; scanf("%s",x); if(x[0] == '0') break; for(i = 0; x[i] != '\0'; i++) ans += x[i] - '0'; printf("%d\n",ans); } return 0; }
536
memory_bytes
{'s_id': 's952855117', 'p_id': 'p02416', 'u_id': 'u660238915', 'date': '1479009655', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '536', 'code_size': '221'}
[ { "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 while(1){\n int i,ans = 0;\n char x[1001];\n scanf(\"%s\",x);\n if(x[0] == '0') bre...
CDSS_149542
CDSS
#include<stdio.h> void trace(int A[],int N){ int i; for (i=0;i<N;i++){ if(i>0) { printf(" "); } printf("%d",A[i]); } printf("\n"); } void insertionSort(int A[],int N) { int j,i,v; for(i=1;i<N;i++) { v=A[i]; j=i-1; while(j>=0 && A[j]>v...
2,100
memory_bytes
{'s_id': 's184190550', 'p_id': 'p02255', 'u_id': 'u026601330', 'date': '1588935691', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2100', 'code_size': '617'}
[ { "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 trace(int A[],int N){\n int i;\n for (i=0;i<N;i++){\n if(i>0) {\n printf(\" \");\n...
CDSS_506789
CDSS
#include<stdio.h> int main() { int a,b; scanf("%d%d", &a,&b); if(a==1 && b==2) printf("%d\n", 3); else if(a==2 && b==1) printf("%d\n", 3); else if(a==1 && b==3) printf("%d\n", 2); else if(a==3 && b==1) printf("%d\n", 2); else if(a==2 && b==3) printf("...
128
memory_bytes
{'s_id': 's815399206', 'p_id': 'p02829', 'u_id': 'u089230684', 'date': '1581140175', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '399'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main()\n{\n int a,b;\n scanf(\"%d%d\", &a,&b);\n if(a==1 && b==2)\n printf(\"%d\\n\", 3);\n...
CDSS_437413
CDSS
#include <stdio.h> #include <math.h> int main(void) { int r; scanf("%d", &r); printf("%lf", r * 2 * M_PI); return 0; }
1,672
memory_bytes
{'s_id': 's690758333', 'p_id': 'p02705', 'u_id': 'u773833122', 'date': '1596493948', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1672', 'code_size': '127'}
[ { "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 main(void) {\n int r;\n scanf(\"%d\", &r);\n printf(\"%lf\", r * 2 * M_PI);\n return ...
CDSS_327698
CDSS
#include<stdio.h> int main(void){ int a[10000], min, max, n, i; long long sum = 0; scanf("%d", &n); for(i = 0; i < n; i++){ scanf("%d", &a[i]); sum += a[i]; } max=min=a[0]; for(i=1; i<n; i++){ if(a[i]>max)max=a[i]; if(a[i]<min)min=a[i]; } printf("%d %d...
2,140
memory_bytes
{'s_id': 's496144164', 'p_id': 'p02402', 'u_id': 'u499561491', 'date': '1528766226', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2140', 'code_size': '367'}
[ { "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 a[10000], min, max, n, i;\n long long sum = 0;\n scanf(\"%d\", &n);\n for(i = 0...
CDSS_372700
CDSS
#include <stdio.h> #include <stdlib.h> typedef struct { int n; int *arr; } vector; vector A; void pushBack(int x) { A.arr = realloc(A.arr, sizeof(int) * (++A.n)); A.arr[A.n - 1] = x; return; } void randomAccess(int p) { if ( A.n != 0 ) { printf("%d\n", A.arr[p]); } return; } ...
2,672
memory_bytes
{'s_id': 's556824468', 'p_id': 'p02431', 'u_id': 'u490732121', 'date': '1589293904', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2672', 'code_size': '1004'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\ntypedef struct {\n int n;\n int *arr;\n} vector;\n\nvector A;\n\nvoid pushBack(int ...
CDSS_496827
CDSS
#include<stdio.h> int main() { int A,B; scanf("%d %d",&A,&B); if(A!=B) { printf("No"); } else printf("Yes"); return 0; }
128
memory_bytes
{'s_id': 's925987013', 'p_id': 'p02789', 'u_id': 'u353919145', 'date': '1580605017', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '128', 'code_size': '169'}
[ { "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()\n{\n int A,B;\n\n\n scanf(\"%d %d\",&A,&B);\n if(A!=B)\n {\n printf(\"No\");\n }...
CDSS_108952
CDSS
main(){int a,b,c,d,p;scanf("%d%d%d%d%d",&a,&b,&c,&d,&p);printf("%d\n",a*p<b+(p-c)*(c<p?d:0)?a*p:b+(p-c)*(c<p?d:0));return 0;}
596
memory_bytes
{'s_id': 's444240587', 'p_id': 'p00531', 'u_id': 'u198011997', 'date': '1442835092', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '125'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\nmain(){int a,b,c,d,p;scanf(\"%d%d%d%d%d\",&a,&b,&c,&d,&p);printf(\"%d\\n\",a*p<b+(p-c)*(c<p?d:0)?a*p:b+(p-c)*(c<p?d:0));return 0;}\n...
CDSS_707201
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 int main(int argc, char const *argv[]){ int n,m,*a,*b; int cnt[57] = { 0 }; scanf("%d%d",&n,&m); a = (int *)malloc(sizeof(int) * m); b = (int *)malloc(sizeof(int)...
128
memory_bytes
{'s_id': 's482124707', 'p_id': 'p03720', 'u_id': 'u185464141', 'date': '1554041209', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '536'}
[ { "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_363882
CDSS
#include<stdio.h> int main(void) { char x[1001]; int sum[10000]; int number; int i, j; int last = 0; for(i = 0; last != 1; i++) { scanf("%s", x); for(j = 0; x[j] != '\0'; j++) { if(j == 0) { sum[i] = (int)(x[j] - '0'); ...
540
memory_bytes
{'s_id': 's554797907', 'p_id': 'p02416', 'u_id': 'u106156046', 'date': '1481187912', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '540', 'code_size': '644'}
[ { "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 char x[1001];\n int sum[10000];\n int number;\n int i, j;\n int last = 0;\n...
CDSS_83763
CDSS
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> bool ishamming(int n) { if(n == 1) return true; if(n % 2 == 0) return ishamming(n / 2); if(n % 3 == 0) return ishamming(n / 3); if(n % 5 == 0) return ishamming(n / 5); return false; } int main(void) { #if 0 int n; scanf("%d", &n); printf("%d\n", isha...
0
memory_bytes
{'s_id': 's195093120', 'p_id': 'p00162', 'u_id': 'u434428594', 'date': '1336101863', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '70', 'memory': '0', 'code_size': '526'}
[ { "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 <stdbool.h>\n\nbool ishamming(int n) {\n\tif(n == 1) return true;\n\tif(n % 2 == 0...
CDSS_472946
CDSS
#include <stdio.h> #include <math.h> int main() { double l, ans; scanf("%lf", &l); ans = pow(l/3, 3.0); printf("%lf", ans); return(0); }
2,468
memory_bytes
{'s_id': 's845613189', 'p_id': 'p02731', 'u_id': 'u501325458', 'date': '1594872623', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '2468', 'code_size': '151'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n\nint main() {\n double l, ans;\n scanf(\"%lf\", &l);\n\n ans = pow(l/3, 3.0);\n \n prin...
CDSS_730415
CDSS
//プリプロセッサ系 #include <stdio.h> #include <string.h> #include <stdlib.h> #include <math.h> #include <stdlib.h> #include <stdbool.h> #define MOD 1000000007 #define INFTY 2147483646 #define DEBUG 1 #define END printf("\n");return 0; #define QS09(how_data,data) qsort(data,how_data,sizeof(long),(int (*)(const void *,const voi...
896
memory_bytes
{'s_id': 's975321632', 'p_id': 'p03862', 'u_id': 'u926548116', 'date': '1524946094', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '13', 'memory': '896', 'code_size': '10826'}
[ { "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>\n#include <string.h>\n#include <stdlib.h>\n#include <math.h>\n#include <stdlib.h>\n#include <stdbool....
CDSS_493206
CDSS
#include<stdio.h> int main() { int A,H,x,y; scanf("%d%d",&H,&A); if(H%A==0) { x=H/A; printf("%d",x); } else { y=(H/A)+1; printf("%d",y); } return 0; }
128
memory_bytes
{'s_id': 's584831405', 'p_id': 'p02783', 'u_id': 'u816631826', 'date': '1581371615', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '242'}
[ { "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,H,x,y;\n scanf(\"%d%d\",&H,&A);\n if(H%A==0)\n {\n x=H/A;\n print...
CDSS_413220
CDSS
#include <stdio.h> int main() { int a; int b; int c; int d; int k; scanf("%d",&a); scanf("%d", &b); scanf("%d", &c); scanf("%d", &d); scanf("%d", &k); printf("%d", c * 60 + d - k - a * 60 - b); printf("\n"); }
2,148
memory_bytes
{'s_id': 's910377689', 'p_id': 'p02663', 'u_id': 'u224085427', 'date': '1590886944', 'language': 'C', 'original_language': 'C (Clang 10.0.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '2148', '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()\n{\n\n int a;\n int b;\n int c;\n int d;\n int k;\n\n scanf(\"%d\",&a);\n scan...
CDSS_370801
CDSS
#include<stdio.h> #include<string.h> int main(void){ int m,i,h,len; int count=0; char str[404],inc[203]; while(1){ scanf("%s",str); if(str[0]=='-'){ break; } scanf("%d",&m); for(i=0;i<m;i++){ scanf("%d",&h); count+=h; } ...
2,032
memory_bytes
{'s_id': 's583726999', 'p_id': 'p02420', 'u_id': 'u857791651', 'date': '1562288215', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2032', '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#include<string.h>\nint main(void){\n int m,i,h,len;\n int count=0;\n char str[404],inc[203];\n while...
CDSS_150634
CDSS
#include <stdio.h> int main(){ /* Max is the greatest common divisor of two natural numbers x and y*/ int Max, x, y, c; scanf("%d %d", &x, &y); while(1){ if (x % y == 0) break; c = x%y; x = y; y = c; } Max = y; printf("%d\n", Max); return 0; }
592
memory_bytes
{'s_id': 's307622508', 'p_id': 'p02256', 'u_id': 'u734048342', 'date': '1428631553', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', '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>\n\nint main(){\n /* Max is the greatest common divisor of two natural numbers x and y*/\n int Max, x, y, c;\n ...
CDSS_604368
CDSS
#include <stdio.h> #include <stdlib.h> int calculate_dp(int *DP, int k, int *a, int N) { if (DP[k] != 0) return DP[k]; for (int i = N; i >= 1; i--) { if (k >= a[i]) { if (calculate_dp(DP, k - a[i], a, N) == 1) { //printf("相手が負ける選び方(k:%d, a[%d]): %d:", k, i, a[i]); ...
8,320
memory_bytes
{'s_id': 's599043565', 'p_id': 'p03170', 'u_id': 'u619677540', 'date': '1589841592', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '19', 'memory': '8320', 'code_size': '805'}
[ { "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 calculate_dp(int *DP, int k, int *a, int N) {\n if (DP[k] != 0)\n return DP...
CDSS_386894
CDSS
#include <stdio.h> int main(void) { int num = 0; long n,d,x,y; scanf("%ld %ld",&n,&d); for(int i=0; i<n; i++){ scanf("%ld %ld",&x,&y); if(x*x + y*y <= d*d) num++; } printf("%d\n",num); return 0; }
1,732
memory_bytes
{'s_id': 's396251180', 'p_id': 'p02595', 'u_id': 'u411478442', 'date': '1596417922', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '49', 'memory': '1732', 'code_size': '233'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void)\n{\n int num = 0;\n long n,d,x,y;\n \n scanf(\"%ld %ld\",&n,&d);\n for(int i=0; i<n; i++){\n...
CDSS_107718
CDSS
/* AOJ 0582 Title: @kankichi573 */ #include <stdio.h> // #include <stdlib.h> // #include <string.h> // #include <math.h> // #include <float.h> // #include <stdlib.h> istriangle(int a,int b,int c) { return(a+b>c && b+c>a && c+a>b); } isright(int a,int b,int c) { return ((a*a+b*b==c*c)|| \ ...
596
memory_bytes
{'s_id': 's417012049', 'p_id': 'p00505', 'u_id': 'u708993917', 'date': '1381234403', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '1238'}
[ { "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 AOJ 0582\n Title:\n @kankichi573\n*/\n#include <stdio.h>\n// #include <stdlib.h>\n// #include <string.h>\n// #include <math....
CDSS_305534
CDSS
#include <stdio.h> int main() { int a, b, c; scanf("%d%d%d", &a, &b, &c); int i, cnt = 0; for( i = a; i <= b; ++i ) if( c % i == 0 ) ++cnt; printf("%d\n", cnt); return 0; }
596
memory_bytes
{'s_id': 's369373065', 'p_id': 'p02398', 'u_id': 'u968537027', 'date': '1481182429', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '230'}
[ { "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\n#include <stdio.h>\n \nint main()\n{\n int a, b, c;\n scanf(\"%d%d%d\", &a, &b, &c);\n \n int i, cnt = 0;\n for( i...
CDSS_394178
CDSS
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <math.h> int main(void) { int a; double p_a; int ans; scanf("%d", &a); p_a = (double)a; ans = (int) (p_a + pow(p_a, 2) + pow(p_a, 3)); printf("%d", ans); return 0; }
2,556
memory_bytes
{'s_id': 's263270696', 'p_id': 'p02621', 'u_id': 'u942702267', 'date': '1599090806', 'language': 'C', 'original_language': 'C (Clang 10.0.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '2556', 'code_size': '243'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#define _CRT_SECURE_NO_WARNINGS\n\n#include <stdio.h>\n#include <math.h>\n\nint main(void)\n{\n\n\tint a;\n\tdouble p_a;\n\tint ans;...
CDSS_709274
CDSS
#include <stdio.h> #include <string.h> int main() { char A[20], B[20], C[20]; scanf("%s %s %s", A, B, C); int la = strlen(A), lb = strlen(B); if (A[la - 1] == B[0] && B[lb - 1] == C[0]) { printf("YES\n"); } else { printf("NO\n"); } return 0; }
128
memory_bytes
{'s_id': 's479404625', 'p_id': 'p03729', 'u_id': 'u203927510', 'date': '1495601183', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '262'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\nint main()\n{\n\tchar A[20], B[20], C[20];\n\n\tscanf(\"%s %s %s\", A, B, C);\n\n\tint la...
CDSS_362802
CDSS
#include <stdio.h> int main() { char c[1301]; int i = 0, j; while (1) { scanf("%c", &c[i]); if (c[i] == '\n') { break; } i++; } for (j = 0; j < i; j++) { if (c[j] >= 'A' && c[j] <= 'Z') c[j] += 32; else if (c[j]...
2,096
memory_bytes
{'s_id': 's161190011', 'p_id': 'p02415', 'u_id': 'u877181703', 'date': '1587267608', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2096', '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\nint main()\n{\n char c[1301];\n int i = 0, j;\n while (1)\n {\n scanf(\"%c\", &c[i]);\n ...
CDSS_398707
CDSS
#include<stdio.h> int main(void){ int i; char moji; scanf("%c", &moji); if((moji>= 'a') && (moji<='z')){ printf("a"); } else if((moji>= 'A') && (moji<='Z')){ printf("A"); } return 0; }
1,596
memory_bytes
{'s_id': 's384703100', 'p_id': 'p02627', 'u_id': 'u161409383', 'date': '1594224430', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1596', 'code_size': '232'}
[ { "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 i;\n \n \n char moji;\n \n \n \n scanf(\"%c\", &moji);\n \n \n if((moji>= 'a') ...
CDSS_711223
CDSS
#include<stdio.h> int main(){ int n; long a,sum[100000],cnt[2]={},b; scanf("%d",&n); scanf("%ld",&a); sum[0]=a; for(int i=1;i<n;i++){ scanf("%ld",&a); sum[i]=sum[i-1]+a; } b=0; for(int i=0;i<n;i++){ if(i%2==0&&sum[i]+b>=0){ cnt[0]+=sum[i]+b+1; b-=sum[i]+b+1; } else if(i...
896
memory_bytes
{'s_id': 's875027668', 'p_id': 'p03739', 'u_id': 'u611071743', 'date': '1583955127', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '14', 'memory': '896', 'code_size': '715'}
[ { "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;\n long a,sum[100000],cnt[2]={},b;\n scanf(\"%d\",&n);\n scanf(\"%ld\",&a);\n sum[0]=a;\...
CDSS_243040
CDSS
#include <stdio.h> int main(void) { int x; scanf("%d", &x); if (x >= 1 && x <= 100) printf("%d\n", x*x*x); return 0; }
596
memory_bytes
{'s_id': 's444217600', 'p_id': 'p02388', 'u_id': 'u848303657', 'date': '1466314904', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '127'}
[ { "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 x;\n scanf(\"%d\", &x);\n if (x >= 1 && x <= 100) printf(\"%d\\n\", x*x*x);\n retu...
CDSS_419767
CDSS
#include <stdio.h> #include <string.h> #include <stdbool.h> int main(void) { char S[11]; char T[12]; scanf("%s", S); scanf("%s", T); if(strncmp(S, T, strlen(S)) != 0) { printf("No\n"); return 0; } printf("Yes\n"); return 0; }
1,712
memory_bytes
{'s_id': 's095014842', 'p_id': 'p02681', 'u_id': 'u339658123', 'date': '1589159049', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '1712', '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 <string.h>\n#include <stdbool.h>\n\nint main(void) {\n char S[11];\n char T[12];\n\n scanf(\"%...
CDSS_421884
CDSS
#include<stdio.h> #include<stdlib.h> #include<string.h> #include<stdint.h> #include<stdbool.h> #include<tgmath.h> #include<sys/queue.h> #include<time.h> #define ll long long #define min(a, b) ((a) > (b) ? (b) : (a)) #define max(a, b) ((a) > (b) ? (a) : (b)) #define miin(a, b, c) min((a), min((b), (c))) #define maax(a, ...
16,032
memory_bytes
{'s_id': 's874207168', 'p_id': 'p02686', 'u_id': 'u244203620', 'date': '1589338801', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '128', 'memory': '16032', 'code_size': '1689'}
[ { "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<stdint.h>\n#include<stdbool.h>\n#include<tgmath.h>\n#include<sys...
CDSS_96295
CDSS
#include <stdio.h> int main(void) { int a, t, r; double time; scanf( "%d %d %d", &a, &t, &r ); time = ( ( double )t / ( double )a ) * r; printf( "%f\n", time ); return 0; }
2,124
memory_bytes
{'s_id': 's161649051', 'p_id': 'p00411', 'u_id': 'u650473553', 'date': '1590635049', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2124', 'code_size': '182'}
[ { "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 a, t, r;\n\tdouble time;\n\t\n\tscanf( \"%d %d %d\", &a, &t, &r );\n\ttime = ( ( doub...
CDSS_186510
CDSS
#include <stdio.h> #include <stdlib.h> int getNumber() { int input; scanf("%d", &input); return input; } void getString(char* input) { scanf("%s", input); } typedef struct LinkElement { int key; struct LinkElement* pre; struct LinkElement* next; } LE, *PLE; void display(PLE head, PLE tail) { PLE p = head->...
33,012
memory_bytes
{'s_id': 's951266227', 'p_id': 'p02265', 'u_id': 'u244105241', 'date': '1542809069', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '210', 'memory': '33012', 'code_size': '1428'}
[ { "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\nint getNumber()\n{\n\tint input;\n\tscanf(\"%d\", &input);\n\treturn input;\n}\n\nvoid ...
CDSS_420036
CDSS
#include <stdio.h> int main() { long a,b,c,k; long sum=0; int f=0; scanf("%ld",&a); scanf("%ld",&b); scanf("%ld",&c); scanf("%ld",&k); if(a<k){ sum+=a; f=1; k=k-a; } else sum=k; if(f==1&&b<k){ f=2; k=k-b; } if(f==2) sum=sum-k; printf("%ld",sum); return 0; }
1,704
memory_bytes
{'s_id': 's400395560', 'p_id': 'p02682', 'u_id': 'u587922695', 'date': '1591231408', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1704', 'code_size': '301'}
[ { "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 long a,b,c,k;\n long sum=0;\n int f=0;\n scanf(\"%ld\",&a); scanf(\"%ld\",&b); scanf(\"%ld\"...
CDSS_82682
CDSS
#include<stdio.h> const int MAX_V=1000000; int main() { int i,k,n,mini=0,big=0,prime[MAX_V+1]; for(i=2;i<=MAX_V;i++) { prime[i]=1; } for(i = 2; i*i <= MAX_V; i++) { if(prime[i]) { for(k = 2 * i; k <= MAX_V; k += i) { prime[k] = 0; } } } while(1) { scanf("%d", &n); if(n==0) break; for(i=3;i<...
5,584
memory_bytes
{'s_id': 's162318659', 'p_id': 'p00150', 'u_id': 'u245495144', 'date': '1513065414', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '30', 'memory': '5584', 'code_size': '472'}
[ { "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>\nconst int MAX_V=1000000;\nint main() {\n\tint i,k,n,mini=0,big=0,prime[MAX_V+1];\n\tfor(i=2;i<=MAX_V;i++) {\n\t\t...
CDSS_552687
CDSS
#include<stdio.h> int main(){ int l, r; int min = 2018, tmp, tmp1; int i, j; scanf("%d %d",&l ,&r); for(i=l;i<r;i++){ for(j=i+1;j<=r;j++){ tmp = ((i%2019)*(j%2019))%2019; if(tmp < min){ min = tmp; if(min == 0){ printf("%d\n",min); return 0; } ...
128
memory_bytes
{'s_id': 's392711257', 'p_id': 'p02983', 'u_id': 'u651109406', 'date': '1562554121', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '371'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n int l, r;\n int min = 2018, tmp, tmp1;\n int i, j;\n\n scanf(\"%d %d\",&l ,&r);\n\n for(i=l;...
CDSS_62386
CDSS
#include <stdio.h> #include <string.h> int main(void){ int i, len, tmp1=0, tmp2, ans; char roman[101]; while(scanf("%s", roman) != EOF){ len = strlen(roman); ans = 0; tmp2 = 1; for(i = len-1; i >= 0; i--){ switch(roman[i]){ case 'I': tmp1 = 1; break; case 'V': tmp1 = 5; bre...
540
memory_bytes
{'s_id': 's791962915', 'p_id': 'p00039', 'u_id': 'u862498149', 'date': '1484664623', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '540', 'code_size': '656'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\nint main(void){\n int i, len, tmp1=0, tmp2, ans;\n char roman[101];\n\n while(scanf(\"...
CDSS_592522
CDSS
#include<stdio.h> int main(void){ int i, count0, count1, ans, dst; char S[100000]; scanf("%s",S); count0 = count1 = ans = 0; dst = strlen(S); for(i = 0; i < dst; ++i){ if(S[i] == '0'){ count0++; } else { count1++; } } ans = (count0 >= count1) ? count1: count0; printf("%d...
256
memory_bytes
{'s_id': 's437166553', 'p_id': 'p03107', 'u_id': 'u513851782', 'date': '1558043002', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '256', 'code_size': '349'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n \n int i, count0, count1, ans, dst;\n char S[100000];\n scanf(\"%s\",S);\n\n count0 = coun...
CDSS_737154
CDSS
#include <stdio.h> int main(void) { int a,b,h,x; scanf("%d %d %d",&a,&b,&h); x = ((a+b)*h)/2; printf("%d",x); return 0; }
128
memory_bytes
{'s_id': 's611230161', 'p_id': 'p03997', 'u_id': 'u301811731', 'date': '1568432257', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '132'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\n\tint a,b,h,x;\n\n\tscanf(\"%d %d %d\",&a,&b,&h);\n\n\tx = ((a+b)*h)/2;\n\n\tprintf(\"%d\",x...
CDSS_137948
CDSS
#include <stdio.h> #define WHITE 1 #define GRAY 0 #define BLACK -1 #define INF 100000000 #define N 100 void bfs(int); void enqueue(int); int dequeue(void); int Q[N+1],d[N+1],c[N+1],ts,n,S[N+1][N+1],K[N+1]; int head, tail; int main() { int i,j,u,min; scanf("%d",&n); head = 0; tail = 1; for(i=0;i<n;...
636
memory_bytes
{'s_id': 's508863595', 'p_id': 'p02239', 'u_id': 'u914664045', 'date': '1501639265', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '636', 'code_size': '1076'}
[ { "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 WHITE 1\n#define GRAY 0\n#define BLACK -1\n#define INF 100000000\n#define N 100\n \nvoid bfs(int);\nvoid...
CDSS_318106
CDSS
#include <stdio.h> int main(void){ int a, b; int sum, dif, mul, dev; char op; while(1){ scanf("%d %c %d",&a ,&op ,&b); /*limit check*/ if (a>20001 || b>20001) break; /*operator check*/ else if (op == '?') break; else if (op != '+' && op != '-' && op != '*' && op != '/' ){ break;} /*tashiza...
600
memory_bytes
{'s_id': 's611346161', 'p_id': 'p02401', 'u_id': 'u587295825', 'date': '1444527780', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '645'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n\n int a, b;\n int sum, dif, mul, dev;\n char op;\n\n while(1){\n\n scanf(\"%d %c %d\",&...
CDSS_175884
CDSS
#include<stdio.h> int main() { int n,i,j,k,v,x,cnt=0,m=0; int A[1000000]; int G[1000000]; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&A[i]); } G[0]=1; for(i=1;G[i-1]<=n;i++){ m++; G[i]=G[i-1]*3+1; if(m>100)break; } for(i=0;i<m/2;i++){ x=G[i]; G[i]=G[m-i-1]; ...
5,368
memory_bytes
{'s_id': 's362590769', 'p_id': 'p02262', 'u_id': 'u923072008', 'date': '1496036088', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '360', 'memory': '5368', 'code_size': '697'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n int n,i,j,k,v,x,cnt=0,m=0;\n int A[1000000];\n int G[1000000];\n scanf(\"%d\",&n);\n \n f...
CDSS_388191
CDSS
#include <stdio.h> int main(void){ int r,g,b, k; scanf("%d %d %d", &r, &g, &b); scanf("%d", &k); while(g<=r){ g = g*2; k = k-1; if(k<0){ printf("No\n"); break; } } if(k>=0){ while(b<=g){ b = b*2; k = k-1; ...
1,660
memory_bytes
{'s_id': 's920608675', 'p_id': 'p02601', 'u_id': 'u448566806', 'date': '1595729025', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1660', 'code_size': '491'}
[ { "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 r,g,b, k;\n scanf(\"%d %d %d\", &r, &g, &b);\n scanf(\"%d\", &k);\n while(g<...
CDSS_711001
CDSS
#include<stdio.h> #include<string.h> char a[105], b[105]; int main(void) { int i; int lena, lenb; scanf("%s", a); scanf("%s", b); lena = strlen(a); lenb = strlen(b); if (lena > lenb) { printf("GREATER\n"); return 0; } else if (lena < lenb) { printf("LESS\n"); return 0; } else { for (i = 0;...
128
memory_bytes
{'s_id': 's558197413', 'p_id': 'p03738', 'u_id': 'u833298276', 'date': '1537824975', '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#include<string.h>\n\nchar a[105], b[105];\n\n\nint main(void) {\n\n\tint i;\n\n\tint lena, lenb;\n\n\tscanf(\"%s...
CDSS_727720
CDSS
#include<stdio.h> int main() { char ch,ch1={'a','e','i','o','u'}; ch=getchar(); if(isupper(ch)) { ch=tolower(ch); } if(ch=='a' || ch=='e' ||ch=='i' || ch=='o' || ch=='u') { printf("vowel\n"); } else{ printf("consonant\n"); } return 0; }
128
memory_bytes
{'s_id': 's799924275', 'p_id': 'p03852', 'u_id': 'u018679195', 'date': '1541836391', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '305'}
[ { "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 char ch,ch1={'a','e','i','o','u'};\n ch=getchar();\n if(isupper(ch))\n {\n ch=...
CDSS_423930
CDSS
#include<stdio.h> #include<stdlib.h> #include<math.h> #include<string.h> #include<stdbool.h> #include<assert.h> typedef long long ll; typedef long double ld; #define rep(i,l,r)for(ll i=(l);i<(r);i++) #define repp(i,l,r,k)for(ll i=(l);i<(r);i+=(k)) #define rrep(i,l,r)for(ll i=(l);i>=(r);i--) #define INF (1LL<<60) #defin...
1,732
memory_bytes
{'s_id': 's683006076', 'p_id': 'p02688', 'u_id': 'u004279520', 'date': '1588554281', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1732', 'code_size': '2729'}
[ { "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#include<string.h>\n#include<stdbool.h>\n#include<assert.h>\ntypedef long l...
CDSS_635043
CDSS
#include <stdio.h> int main() { char Si[4]; int x = 0; for (int i = 0; i < 8; i++) { scanf("%c", &Si[i]); if (Si[i] == '+') { x++; } else if (Si[i] == '-') { x--; } } printf("%d", x); return 0; }
128
memory_bytes
{'s_id': 's392773930', 'p_id': 'p03315', 'u_id': 'u419781706', 'date': '1532535070', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '306'}
[ { "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 char Si[4];\n int x = 0;\n\n for (int i = 0; i < 8; i++)\n {\n scanf(\"%c\"...
CDSS_285005
CDSS
#include <stdio.h> main() { int a,b,c,x,y,z; scanf("%d%d%d",&a,&b,&c); if(a > b){ x = a; a = b; b = x; } if(b > c){ y = b; b = c; c = y; } if( a > b) { z = a; a = b; b = z; } printf("%d %d %d\n",a,b,c); return 0; }
596
memory_bytes
{'s_id': 's301823634', 'p_id': 'p02393', 'u_id': 'u180183800', 'date': '1492590288', '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>\nmain()\n{\n\tint a,b,c,x,y,z;\n\tscanf(\"%d%d%d\",&a,&b,&c);\n\n\tif(a > b){\n\t\tx = a;\n\t\ta = b;\n\t\tb = x;...
CDSS_215809
CDSS
#include<stdio.h> #define NIL -1 #define MAX 100000 struct Node{ int p,l,r; }; struct Node T[MAX]; int n; int depth(int a){ int num=0,s=T[a].p; while(s!=NIL){ num++; s=T[s].p; } return num; } int main(){ int i,j,x,d,c,l; scanf("%d",&n); for(i=0;i<n;i++) T[i].p = T[i].l = T[i].r = ...
1,788
memory_bytes
{'s_id': 's446193132', 'p_id': 'p02279', 'u_id': 'u494451272', 'date': '1497403847', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '60', 'memory': '1788', 'code_size': '863'}
[ { "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 -1\n#define MAX 100000\n\nstruct Node{\n int p,l,r;\n};\n\nstruct Node T[MAX];\nint n;\n\nint depth(...
CDSS_468838
CDSS
#include<stdio.h> int main() { char a,b,c,d,e,f; scanf("%c%c%c%c%c%c" ,&a,&b,&c,&d,&e,&f); if (c==d & e==f){ printf("Yes"); } else{ printf("No"); } return 0; }
128
memory_bytes
{'s_id': 's401168456', 'p_id': 'p02723', 'u_id': 'u351979856', 'date': '1585445363', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '184'}
[ { "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{\t\n char a,b,c,d,e,f;\n scanf(\"%c%c%c%c%c%c\" ,&a,&b,&c,&d,&e,&f);\n if (c==d & e==f){\n print...
CDSS_111298
CDSS
#include<stdio.h> #include<stdlib.h> #include<string.h> #define BUFF_SIZE 1024 char buffer[1024 * 1024]; int pos = 0; int end = 0; int mygetchar(){ if(pos == end){ end = read(0, buffer, sizeof(buffer)); pos = 0; } return buffer[pos++]; } int getInt(){ int ret = 0, c; c = mygetchar(); while(!isdig...
1,384
memory_bytes
{'s_id': 's070773492', 'p_id': 'p00594', 'u_id': 'u609255173', 'date': '1307789485', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '60', 'memory': '1384', 'code_size': '800'}
[ { "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 BUFF_SIZE 1024\nchar buffer[1024 * 1024];\nint pos = 0;\nint en...