identifier string | space string | input string | target float64 | metric_type string | metadata string | messages list |
|---|---|---|---|---|---|---|
CDSS_242605 | CDSS | #include <stdio.h>
int main(void) {
int x;
printf("");
scanf("%d",&x);
printf("%d\n",x*x*x);
return 0;
} | 596 | memory_bytes | {'s_id': 's378239042', 'p_id': 'p02388', 'u_id': 'u349279194', 'date': '1462949700', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '124'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\n\n int x;\n\n printf(\"\");\n scanf(\"%d\",&x);\n\n \n\n printf(\"%d\\n\",x*x*x);\n\n r... |
CDSS_213976 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<limits.h>
int n,cost;
int A[1001],B[1001];
int L[501],R[502];
void merge(int left,int mid,int right){
int i,j,n1=mid-left,n2=right-mid;
for(i=0;i<n1;i++) L[i]=A[left+i];
L[n1]=INT_MAX;
for(i=0;i<n2;i++) R[i]=A[mid+i];
R[n2]=INT_MAX;
int l=0,r=0;
for(i=lef... | 612 | memory_bytes | {'s_id': 's955643891', 'p_id': 'p02278', 'u_id': 'u339587940', 'date': '1502799641', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '612', 'code_size': '1509'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#include<limits.h>\n\n\n\nint n,cost;\nint A[1001],B[1001];\nint L[501],R[502];\n\n\nvoid merge... |
CDSS_624885 | CDSS | #include <stdio.h>
long long int merge_sort(int N, int a[]){
int pivot=N/2;
long long int merge=0;
int left=0,right=0;
int b[pivot+1],c[N-pivot+1];
if(N==1) return 0;
for(int i=0;i<pivot;i++) b[i]=a[i];
for(int i=0;i<N-pivot;i++) c[i]=a[i+pivot];
merge+=merge_sort(pivot,b);
merge+=merge_sort(N-pivot,... | 2,176 | memory_bytes | {'s_id': 's604767847', 'p_id': 'p03275', 'u_id': 'u618608862', 'date': '1535344724', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '201', 'memory': '2176', 'code_size': '1399'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nlong long int merge_sort(int N, int a[]){\n int pivot=N/2;\n long long int merge=0;\n int left=0,right=0;\n ... |
CDSS_676821 | CDSS | #include<stdio.h>
int main(void)
{
int ope;
char str[8];
fgets(str,sizeof(str),stdin);
ope = str[0] - str[2];
if(ope > 0)
{
puts(">");
}else if(ope == 0)
{
puts("=");
}else
{
puts("<");
}
return 0;
} | 128 | memory_bytes | {'s_id': 's434159634', 'p_id': 'p03547', 'u_id': 'u298244614', 'date': '1569354475', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '246'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\n int ope;\n char str[8];\n \n fgets(str,sizeof(str),stdin);\n \n ope = str[0] - str[2];\... |
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 must 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\t... |
CDSS_235449 | CDSS | #include <stdio.h>
#include <math.h>
double PI;
double deg2rad(double deg){
return (deg / 360) * 2 * PI;
}
int main(){
int a, b, c;
double cr;
PI = acos(-1);
scanf("%d %d %d", &a, &b, &c);
cr = deg2rad(c);
printf("%f\n", (a * b * sin(cr)) / 2); // (1/2)(a b sin c)
... | 2,052 | memory_bytes | {'s_id': 's272458425', 'p_id': 'p02380', 'u_id': 'u083145799', 'date': '1552961476', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2052', 'code_size': '457'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n\ndouble PI;\n\ndouble deg2rad(double deg){\n return (deg / 360) * 2 * PI;\n}\n\nint main(){... |
CDSS_699346 | CDSS | #include<stdio.h>
int main(){
int x,a,b;
scanf("%d%d%d",&x,&a,&b);
if(b<=a){printf("delicious\n");}
if(b>a&&b<=a+x){printf("safe\n");}
if(b>a+x){printf("dangerous\n");}
return 0;
} | 128 | memory_bytes | {'s_id': 's529952896', 'p_id': 'p03679', 'u_id': 'u721060623', 'date': '1507149450', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '205'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n int x,a,b;\n scanf(\"%d%d%d\",&x,&a,&b);\n if(b<=a){printf(\"delicious\\n\");}\n if(b>a... |
CDSS_601530 | CDSS | #include <stdio.h>
int main(){
int w=0,h=0,n=0;
scanf("%d",&n);
scanf("%d",&h);
scanf("%d",&w);
if(h==n && w==n){
printf("%d",1);
} else if ((n-w)==0 ||(n-h)==0){
printf("%d",((n-h)+1)*((n-w)+1));
}else{
printf("%d",((n-w)+1)*((n-h)+1));
}
... | 128 | memory_bytes | {'s_id': 's372757465', 'p_id': 'p03155', 'u_id': 'u461215920', 'date': '1547325626', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '332'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n int w=0,h=0,n=0;\n scanf(\"%d\",&n);\n scanf(\"%d\",&h);\n scanf(\"%d\",&w);\n \n ... |
CDSS_380373 | CDSS | #include<stdio.h>
int main(void){
int n,x,t;
scanf("%d %d %d",&n,&x,&t);
if(n%x!=0)
printf("%d",(n/x+1)*t);
else
printf("%d",(n/x)*t);
return 0;
} | 2,092 | memory_bytes | {'s_id': 's465243707', 'p_id': 'p02576', 'u_id': 'u740019909', 'date': '1599231938', 'language': 'C', 'original_language': 'C (Clang 10.0.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '2092', 'code_size': '159'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n\n\tint n,x,t;\n\n\tscanf(\"%d\t%d\t%d\",&n,&x,&t);\n\n\tif(n%x!=0)\n\t\tprintf(\"%d\",(n/x+1)*t);... |
CDSS_251948 | CDSS | #include<stdio.h>
int main(void){
int a,b;
scanf("%d\n%d",&a,&b);
int mennseki = a * b ,syuu = a * 2 + b * 2 ;
printf("%d %d\n",mennseki,syuu);
return 0;
} | 596 | memory_bytes | {'s_id': 's836688052', 'p_id': 'p02389', 'u_id': 'u042172607', 'date': '1461222477', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '162'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void){\n\tint a,b;\n\tscanf(\"%d\\n%d\",&a,&b);\n\tint mennseki = a * b ,syuu = a * 2 + b * 2 ;\n\tprint... |
CDSS_588386 | CDSS | #include <stdio.h>
#include <stdlib.h>
typedef struct{
int now;
int b;
}data;
int main(void){
int i,j,N;
data a[100];
scanf("%d",&N);
for(i=0;i<N;i++){
scanf("%d",&a[i].b);
a[i].now = i+1;
}
int ans[N],ok=1,k=0;
for(i=N-1;i>=0;i--){
ok=0;
for(j=N-1;j>=0;j--){
if(a[j].b==a[j].now){
ok=1;
an... | 128 | memory_bytes | {'s_id': 's037281530', 'p_id': 'p03089', 'u_id': 'u853477575', 'date': '1553376861', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '501'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\ntypedef struct{\n\tint now;\n\tint b;\n}data;\n\nint main(void){\n\tint i,j,N;\n\tdata a[10... |
CDSS_108742 | CDSS | #include <stdio.h>
int myabs(int a) {
return a<0?-a:a;
}
int mymax(int a,int b) {
return a>=b?a:b;
}
int getCost(int sx,int sy,int tx,int ty) {
int dx=myabs(sx-tx);
int dy=myabs(sy-ty);
if((sx-tx)*(sy-ty)>=0) {
return mymax(dx,dy);
} else {
return dx+dy;
}
}
int main(void) {
int N,i;
int x,y;
int answ... | 596 | memory_bytes | {'s_id': 's275313629', 'p_id': 'p00517', 'u_id': 'u543521645', 'date': '1398328357', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '546'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint myabs(int a) {\n\treturn a<0?-a:a;\n}\n\nint mymax(int a,int b) {\n\treturn a>=b?a:b;\n}\n\nint getCost(int ... |
CDSS_94925 | CDSS | #include<stdio.h>
int main(void){
int e, y;
scanf("%d %d", &e, &y);
if(e==1) printf("%d\n", 1867+y);
else if(e==2) printf("%d\n", 1911+y);
else if(e==3) printf("%d\n", 1925+y);
else if(e==4) printf("%d\n", 1988+y);
else{
if(1988<y) printf("H%d\n"... | 2,148 | memory_bytes | {'s_id': 's526103513', 'p_id': 'p00332', 'u_id': 'u726971073', 'date': '1581071297', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2148', 'code_size': '521'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void){\n int e, y;\n scanf(\"%d %d\", &e, &y);\n\n if(e==1) printf(\"%d\\n\", 1867+... |
CDSS_496338 | CDSS | #include <stdio.h>
int main(void)
{
int N,M;
scanf ("%d %d",&N,&M);
if (N==M) printf ("Yes");
else printf ("No");
}
| 1,732 | memory_bytes | {'s_id': 's418854682', 'p_id': 'p02789', 'u_id': 'u757670973', 'date': '1598815367', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1732', 'code_size': '124'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void)\n{\n int N,M;\n scanf (\"%d %d\",&N,&M);\n if (N==M) printf (\"Yes\");\n else printf (\"No\");\... |
CDSS_609345 | CDSS | #include<stdio.h>
main()
{
char s;
s = getchar();
if (s == '7' || s == '5' || s == '3')
printf("YES");
else
printf("NO");
} | 128 | memory_bytes | {'s_id': 's351976866', 'p_id': 'p03210', 'u_id': 'u682721153', 'date': '1545358387', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '165'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n main()\n {\n char s;\n s = getchar();\n if (s == '7' || s == '5' || s == '3')\n printf(\"YES\");\... |
CDSS_490324 | CDSS | #include<stdio.h>
#include<string.h>
int main(void){
char s[11],t[11],u[11];
int a,b;
scanf("%s %s",s,t);
scanf("%d %d",&a,&b);
scanf("%s",u);
if(strcmp(s,u)==0){
printf("%d %d",a-1,b);
}else{
printf("%d %d",a,b-1);
}
return 0;
} | 128 | memory_bytes | {'s_id': 's082871228', 'p_id': 'p02777', 'u_id': 'u027519288', 'date': '1581279248', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '247'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\nint main(void){\n\tchar s[11],t[11],u[11];\n\tint a,b;\n\n\tscanf(\"%s %s\",s,t);\n\tscanf(\"%d... |
CDSS_77955 | CDSS | #include <stdio.h>
int expr(const char **p);
int term(const char **p);
int factor(const char **p);
int number(const char **p);
int expr(const char **p) {
int val = term(p);
while (1) {
if (**p == '+') {
(*p)++;
val += term(p);
} else if (**p == '-') {
(*p)++;
val -= term(p);
} ... | 1,760 | memory_bytes | {'s_id': 's978919223', 'p_id': 'p00109', 'u_id': 'u449960815', 'date': '1513667651', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1760', 'code_size': '1046'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint expr(const char **p);\nint term(const char **p);\nint factor(const char **p);\nint number(const char **p);\n... |
CDSS_208187 | CDSS | #include <stdio.h>
#include <stdlib.h>
#define N 10000
int main(){
int t,i,j,C[N+1];
unsigned short *A,*B;
scanf("%d",&t);
A = malloc(sizeof(short)*t+1);
B = malloc(sizeof(short)*t+1);
for(i=0 ; i<=N ; i++){
C[i]=0;
}
for(i=1 ; i<=t ; i++){
scanf("%d",&A[i]);
C[A[i]]++;
}
for(i=1 ... | 8,456 | memory_bytes | {'s_id': 's966505301', 'p_id': 'p02275', 'u_id': 'u867772757', 'date': '1464757280', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '380', 'memory': '8456', 'code_size': '533'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#define N 10000\n\nint main(){\n int t,i,j,C[N+1];\n unsigned short *A,*B;\n\n scanf(\"%d\... |
CDSS_284593 | CDSS | #include <stdio.h>
int main(void){
int a,b,c,k,z=0;
scanf("%d %d %d",&a,&b,&c);
while(z==0){
if(a>b){k=a; a=b;b=k;}
if(b>c){k=b; b=c;c=k;}
if(a>c){k=a; a=c;c=k;}
if((a<b&&b<c) ||(a==b&&b==c)||(a==b&&a<c)||(a<b&&b==c)){
z+=1 ;}}
printf("%d %d %d\n",a,b,c);
return 0;
} | 596 | memory_bytes | {'s_id': 's036364965', 'p_id': 'p02393', 'u_id': 'u508220591', 'date': '1481202254', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '270'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\nint a,b,c,k,z=0;\n\nscanf(\"%d %d %d\",&a,&b,&c);\nwhile(z==0){\t\nif(a>b){k=a; a=b;b=k;}\nif(b... |
CDSS_311362 | CDSS | #include <stdio.h>
int main(void){
int a,b,d,r;
double f;
scanf("%d %d\n",&a,&b);
d=a/b;
r=a%b;
f=(double)a/b;
printf("%d %d %f\n",d,r,f);
return(0);
}
| 2,120 | memory_bytes | {'s_id': 's564407458', 'p_id': 'p02399', 'u_id': 'u635574891', 'date': '1525246995', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2120', 'code_size': '205'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\n int a,b,d,r;\n double f;\n \n scanf(\"%d %d\\n\",&a,&b);\n \n d=a/b;\n r=a%... |
CDSS_389399 | CDSS | #include <stdio.h>
#define rep(i,n) for(int i=0; i<n; i++)
#define getInt(n) scanf("%d", &n)
#define showAns(ans) printf("%d\n", ans)
int main(void){
int L, R, d;
getInt(L);
getInt(R);
getInt(d);
int ans = 0;
rep(i,R-L+1) if((L+i)%d==0) ans++;
showAns(ans);
return 0;
} | 1,712 | memory_bytes | {'s_id': 's650994530', 'p_id': 'p02606', 'u_id': 'u634573896', 'date': '1594515935', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1712', 'code_size': '306'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#define rep(i,n) for(int i=0; i<n; i++)\n#define getInt(n) scanf(\"%d\", &n)\n#define showAns(ans) printf(\"%d\\n\... |
CDSS_431110 | CDSS | #include<stdio.h>
int main(void){
int s,w;
scanf("%d %d", &s,&w);
if(s > w)
printf("safe");
else
printf("unsafe");
return 0;
} | 1,732 | memory_bytes | {'s_id': 's033404767', 'p_id': 'p02699', 'u_id': 'u485893928', 'date': '1587949818', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '1732', 'code_size': '145'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void){\n int s,w;\n scanf(\"%d %d\", &s,&w);\n if(s > w)\n printf(\"safe\");\n else\n printf(\... |
CDSS_307132 | CDSS | #include<stdio.h>
int main()
{
int a,b,c,d;
scanf("%d %d %d",&a,&b,&c);
for(int i=a;i<=b;i++){
if(c%i==0){
d++;
}
}
printf("%d\n",d);
return 0;
}
| 2,112 | memory_bytes | {'s_id': 's004447461', 'p_id': 'p02398', 'u_id': 'u170079929', 'date': '1593848162', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '146'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\nint a,b,c,d;\nscanf(\"%d %d %d\",&a,&b,&c);\nfor(int i=a;i<=b;i++){\nif(c%i==0){\nd++;\n}\n}\nprintf... |
CDSS_114088 | CDSS | #include <stdio.h>
int main(){
int n,r,p,c,yama[50],tem[50],i,j;
while(1){
scanf("%d %d",&n,&r);
if((n==0)&&(r==0)) break;
for(i=n-1;i>=0;i--) yama[n-i-1] = i+1;
for(j=0;j<r;j++){
scanf("%d %d",&p,&c);
for(i=0;i<p-1;i++) tem[i] = yama[i];
for(i=0;i<c;i++) yama[i] = yama[i+p-1];
... | 600 | memory_bytes | {'s_id': 's227203867', 'p_id': 'p00710', 'u_id': 'u411540321', 'date': '1430133239', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '417'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n int n,r,p,c,yama[50],tem[50],i,j;\n\n while(1){\n scanf(\"%d %d\",&n,&r);\n if((n==0)&&(r=... |
CDSS_76919 | CDSS | o,x,b;main(a){for(scanf("%d");~scanf("%s",&a);o==3?o=b=x=!printf("%d\n",x):0)for(a%=6,a-5?b=b*2+1,x+=b/8,b&=7:o++;!a&b;b/=2)x++;} | 0 | memory_bytes | {'s_id': 's548533327', 'p_id': 'p00103', 'u_id': 'u756656224', 'date': '1318160697', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '129'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\no,x,b;main(a){for(scanf(\"%d\");~scanf(\"%s\",&a);o==3?o=b=x=!printf(\"%d\\n\",x):0)for(a%=6,a-5?b=b*2+1,x+=b/8,b&=7:o++;!a&b;b/=2)x++... |
CDSS_387436 | CDSS | #include <stdio.h>
int abs(int num){
if(num<0)return num*-1;
else return num;
}
int min(int a,int b){
if(a<b)return a;
else return b;
}
int main(){
int N,ans;
scanf("%d\n",&N);
ans=N;
char c[N];
int Ws[N+1],Rs[N+1];
for(int i=0;i<N;i++)s... | 3,460 | memory_bytes | {'s_id': 's655718886', 'p_id': 'p02597', 'u_id': 'u224820244', 'date': '1599972661', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '22', 'memory': '3460', 'code_size': '808'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint abs(int num){\n if(num<0)return num*-1;\n else return num;\n}\n\nint min(int a,int b){\n ... |
CDSS_647390 | CDSS | #include<stdio.h>
int main(){
int ans = 700;
char s[4];
scanf("%s",&s);
for(int i = 0;i < 3;i++){
if(s[i] == 'o'){
ans += 100;
}
}
printf("%d\n",ans);
return 0;
} | 128 | memory_bytes | {'s_id': 's736090151', 'p_id': 'p03369', 'u_id': 'u008829811', 'date': '1552444999', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '190'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int ans = 700;\n char s[4];\n scanf(\"%s\",&s);\n for(int i = 0;i < 3;i++){\n if(s[i] == 'o'){... |
CDSS_191401 | CDSS | #include <stdio.h>
int main(){
int n,q,S[100000],T[1000],i,j,count=0,a[10000],k,right,left,middle;
scanf("%d",&n);
for(i=0;i<n;i++)
scanf("%d",&S[i]);
scanf("%d",&q);
for(i=0;i<q;i++){
scanf("%d",&T[i]);
right=n;
left=0;
middle=n/2;
while(right!=left){
if(T[i]>S[middle]){//T4行目S2行目
left=middle+1;
... | 2,124 | memory_bytes | {'s_id': 's056262433', 'p_id': 'p02268', 'u_id': 'u643545292', 'date': '1545206871', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2124', 'code_size': '556'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(){\n int n,q,S[100000],T[1000],i,j,count=0,a[10000],k,right,left,middle;\n scanf(\"%d\",&n);\n for(i=0... |
CDSS_22248 | CDSS | #include <stdio.h>
int main()
{
int a[10];
int b, c, tmp;
for(b=0;b<10;b++) {
scanf("%d", &a[b]);
}
for(b=0;b<=9;b++) {
for(c=9;c>b;c--) {
if(a[c]>a[c-1]) {
tmp = a[c];
a[c] = a[c-1];
a[c-1] = tmp;
}
}
}
for(b=0;b<3;b++) {
printf("%d\n", a[b]);
}
return (0);
}
| 2,052 | memory_bytes | {'s_id': 's799542595', 'p_id': 'p00001', 'u_id': 'u011169597', 'date': '1531113379', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2052', 'code_size': '298'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main()\n{\n\tint a[10];\n\tint b, c, tmp;\n\tfor(b=0;b<10;b++) {\n\t\tscanf(\"%d\", &a[b]);\n\t}\n\tfor(b=0;... |
CDSS_115573 | CDSS | // Aizu 1147: ICPC Score Totalizer Software
// 2017.9.13 bal4u@uu
#include <stdio.h>
int main()
{
int n, a, i, sum, min, max;
while (scanf("%d", &n) && n) {
for (min = 1001, max = -1, sum = 0, i = 0; i < n; i++) {
scanf("%d", &a);
if (a < min) min = a;
if (a > max) max = a;
sum += a;
}
printf("%d... | 1,772 | memory_bytes | {'s_id': 's394417223', 'p_id': 'p00728', 'u_id': 'u847467233', 'date': '1505302402', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1772', 'code_size': '366'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n// Aizu 1147: ICPC Score Totalizer Software\n// 2017.9.13 bal4u@uu\n\n#include <stdio.h>\n\nint main()\n{\n\tint n, a, i, sum, min, ma... |
CDSS_62352 | CDSS | #include<stdio.h>
#include<string.h>
int main(){
char roma[100];
int num,tmp1,tmp2,len,i;
while(scanf("%s",roma)!=EOF){
num=0;
tmp2=1001;
len=strlen(roma);
for(i=0;i<len;i++){
if(roma[i]=='I')
tmp1=1;
else if(roma[i]=='V')
tmp1=5;
else if(roma[i]=='X')
tmp1=10;
else if(roma[i]=='L... | 540 | memory_bytes | {'s_id': 's714138549', 'p_id': 'p00039', 'u_id': 'u697640918', 'date': '1425635760', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '540', 'code_size': '595'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\n\nint main(){\n\tchar roma[100];\n\tint num,tmp1,tmp2,len,i;\n\n\twhile(scanf(\"%s\",roma)!=EOF... |
CDSS_384876 | CDSS | #include<stdio.h>
#include<string.h>
long long int p_array[5001];
long long int c_array[5001];
int main()
{
long long int score = -1000000001, n, k;
long long int current_score;
scanf("%lld %lld", &n, &k);
for (int i = 1; i <= n; i++)
{
scanf("%lld", &p_array[i]);
}
for (int i = 1; i <= n; i++)
{
scan... | 1,812 | memory_bytes | {'s_id': 's024627506', 'p_id': 'p02585', 'u_id': 'u757753683', 'date': '1597596674', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '286', 'memory': '1812', 'code_size': '1376'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\n\nlong long int p_array[5001];\nlong long int c_array[5001];\n\n\nint main()\n{\n\tlong long in... |
CDSS_726240 | CDSS | #include<stdio.h>
int main()
{
long long int a,b,sum;
char ch;
scanf("%lld %c %lld",&a,&ch,&b);
if(ch==43)
{
sum=a+b;
}
if(ch==45)
{
sum=a-b;
}
printf("%lld\n",sum);
return 0;
}
| 128 | memory_bytes | {'s_id': 's991124961', 'p_id': 'p03844', 'u_id': 'u863370423', 'date': '1559248921', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '237'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n long long int a,b,sum;\n char ch;\n scanf(\"%lld %c %lld\",&a,&ch,&b);\n if(ch==43)\n ... |
CDSS_185208 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef struct node{
int key;
struct node *next, *prev;
}Node;
Node *nil;
Node* listsearch(int key){
Node *cur = nil->next;
while(cur != nil && cur->key != key){
cur = cur->next;
}
return cur;
}
void init(){
nil = (Node *)malloc(sizeof(Nod... | 31,788 | memory_bytes | {'s_id': 's680539715', 'p_id': 'p02265', 'u_id': 'u013221121', 'date': '1502287802', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '340', 'memory': '31788', 'code_size': '1531'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\ntypedef struct node{\n int key;\n struct node *next, *prev;\n}Node;\... |
CDSS_189487 | CDSS | #include <stdio.h>
int main(void)
{
int n,S[10000],q,T[500],C,i,j;
scanf("%d",&n);
for(i=0;i<n;i++)
{
scanf("%d",&S[i]);
}
scanf("%d",&q);
for(i=0;i<q;i++)
{
scanf("%d",&T[i]);
}
C=0;
for(i=0;i<q;i++)
{
for(j=0;j<n;j++)
{
... | 2,140 | memory_bytes | {'s_id': 's786575590', 'p_id': 'p02267', 'u_id': 'u038159486', 'date': '1529296057', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2140', 'code_size': '476'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void)\n{\n int n,S[10000],q,T[500],C,i,j;\n \n scanf(\"%d\",&n);\n for(i=0;i<n;i++)\n {\n ... |
CDSS_333170 | CDSS | #include<stdio.h>
int main (){
int H,W,i,j;
while(1){
scanf("%d %d",&H,&W);
if(H==0 && W==0)
break;
for(i=0;i<H;i++){
for(j=0;j<W;j++){
if(i==0 || j==0 || i==H-1 || j==W-1 )
{
printf("#");
}
else printf(".");
}
printf("\n");
}
printf("\n");
}
return 0;... | 572 | memory_bytes | {'s_id': 's326947979', 'p_id': 'p02404', 'u_id': 'u411264309', 'date': '1434615202', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '572', 'code_size': '324'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main (){\n\n\n int H,W,i,j;\n\n while(1){\n scanf(\"%d %d\",&H,&W);\n if(H==0 && W==0)\n break;\n ... |
CDSS_671405 | CDSS | # include <stdio.h>
int main(){
char str[4];
scanf("%s", str);
int ma = 0;
for (int i =0; i < 3; ++i){
if (str[i] == '1')
ma += 1;
}
printf("%d\n", ma);
return 0;
} | 128 | memory_bytes | {'s_id': 's912848733', 'p_id': 'p03493', 'u_id': 'u158587375', 'date': '1580828684', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '223'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n# include <stdio.h>\n\nint main(){\n char str[4];\n scanf(\"%s\", str);\n int ma = 0;\n \n for (int i =0; i < 3; ++i){\... |
CDSS_662587 | CDSS | #include <stdio.h>
int main(void) {
int i;
int j;
scanf("%d %d",&i,&j);
if(i%2==1 && j%2==1){
printf("Odd");
}
else {
printf("Even");
}
return 0;
} | 128 | memory_bytes | {'s_id': 's643761139', 'p_id': 'p03455', 'u_id': 'u911147723', 'date': '1536446337', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '195'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void) {\n int i;\n int j;\n scanf(\"%d %d\",&i,&j);\n if(i%2==1 && j%2==1){\n printf(\... |
CDSS_125008 | CDSS | #include <stdio.h>
#include <string.h>
#define ll long long
#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 INF ((1LL<<62)-(1LL<<31))
#define max(p,q)((p)>(q)?(p):(q))
#define min(p,q)((p)<(q)?(p):(q))
#define bit(n,m)((n>>m)&1)
int upll(const void*a, const void*b){retu... | 2,104 | memory_bytes | {'s_id': 's363159758', 'p_id': 'p01428', 'u_id': 'u409832240', 'date': '1528451422', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '1780'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n#define ll long long\n#define rep(i,l,r)for(ll i=(l);i<(r);i++)\n#define repp(i,l,r,k)for(ll ... |
CDSS_482016 | CDSS | #include <stdio.h>
int main() {
int M[3][3], O[3][3];
for (int i = 0; i < 3; i++) {
for (int j = 0; j < 3; j++) {
scanf("%d", &M[i][j]);
}
}
int N, X;
scanf("%d", &N);
for (int i = 0; i < N; i++) {
scanf("%d", &X);
for (int i = 0; i < 3; i++) {
for (int j = 0; j < 3; j++) {
if (M[i]... | 1,620 | memory_bytes | {'s_id': 's205944306', 'p_id': 'p02760', 'u_id': 'u353919145', 'date': '1597875507', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1620', 'code_size': '686'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main() {\n\tint M[3][3], O[3][3];\n\tfor (int i = 0; i < 3; i++) {\n\t\tfor (int j = 0; j < 3; j++) {\n\t\t\... |
CDSS_682027 | CDSS | #include<stdio.h>
char A[60][60];
void search(int a,int b)
{
int i,j;
for(i=a-1;i<=a+1;++i)
for(j=b-1;j<=b+1;++j)
{
if(A[i][j]!='#')
A[i][j]++;
}
}
int main()
{
int W,H,i,j;
scanf("%d%d",&H,&W);
getchar();
for(i=0;i<H;++i)
{
gets(A[i]);
for(j=0;j<W;++j)
if(A[i][j]=='.')
A[i][j]='0';
}
... | 128 | memory_bytes | {'s_id': 's528860282', 'p_id': 'p03574', 'u_id': 'u353919145', 'date': '1522792008', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '506'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nchar A[60][60];\n\nvoid search(int a,int b)\n{\n\tint i,j;\n\tfor(i=a-1;i<=a+1;++i)\n\t\tfor(j=b-1;j<=b+1;++j)\n\t\... |
CDSS_372760 | CDSS | #include <stdio.h>
#define LIMIT 500000
int front = LIMIT, back = LIMIT;
int data[LIMIT * 2];
int main(void) {
int q, i;
if (scanf("%d", &q) != 1) return 1;
for (i = 0; i < q; i++) {
int query, p1, p2;
if (scanf("%d%d", &query, &p1) != 2) return 1;
if (query == 0 && scanf("%d", &p2) != 1) return 1;
switch... | 3,268 | memory_bytes | {'s_id': 's449450555', 'p_id': 'p02432', 'u_id': 'u543521645', 'date': '1537882560', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '60', 'memory': '3268', 'code_size': '556'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\n#define LIMIT 500000\n\nint front = LIMIT, back = LIMIT;\nint data[LIMIT * 2];\n\nint main(void) {\n\tint q, i;\... |
CDSS_104951 | CDSS | #include<stdio.h>
int main(void){
int i,x;
int tm;
for(x=0,i=0;i<4;i++){
scanf("%d",&tm);
x+=tm;
}
printf("%d\n%d\n", x/60,x%60);
return 0;
} | 596 | memory_bytes | {'s_id': 's892951121', 'p_id': 'p00477', 'u_id': 'u619300234', 'date': '1346425746', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '164'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n int main(void){\n int i,x;\n int tm;\n for(x=0,i=0;i<4;i++){\n scanf(\"%d\",&tm);\n x+=tm;\n }\n prin... |
CDSS_526431 | CDSS | #include <stdio.h>
#define ll long long
ll int GCD(ll int x, ll int y) {
if (y == 0) return x;
return GCD(y, x % y);
}
int factorize(ll int n) {
ll int i;
int cnt = 0;
for (i = 2; i * i <= n; i++) {
if (n % i != 0) {
continue;
}
cnt++;
while (n % i == 0) {
n /= i;
}
}
if (n != 1) cnt++;
return ... | 128 | memory_bytes | {'s_id': 's472004497', 'p_id': 'p02900', 'u_id': 'u491330513', 'date': '1569870484', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '128', 'code_size': '461'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#define ll long long\nll int GCD(ll int x, ll int y) {\n\tif (y == 0) return x;\n\treturn GCD(y, x % y);\n}\n\nint... |
CDSS_613289 | CDSS | #include <stdio.h>
typedef long long ll;
int main()
{
ll cokkie[2];
ll k;
ll i, j;
scanf("%lld %lld %lld", &cokkie[0], &cokkie[1], &k);
for (i = 0; i < k; i++) {
if (cokkie[i % 2] & 1) {
cokkie[i % 2]--;
}
cokkie[(i + 1) % 2] += cokkie[i % 2] / 2;
cokk... | 128 | memory_bytes | {'s_id': 's480770990', 'p_id': 'p03228', 'u_id': 'u683588090', 'date': '1542323149', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '408'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\ntypedef long long ll;\n\nint main()\n{\n ll cokkie[2];\n ll k;\n ll i, j;\n\n scanf(\"%lld %lld %lld\"... |
CDSS_140931 | CDSS | #include <stdio.h>
#define N 100
#define INF 1000000000
#define NIL -1
int nm;
int X[N][N], d[N], pi[N], mincost;
int color[N]; // color 0:white 1:gray 2:black
void init(){
int i, j;
for(i = 0; i < N; i++){
for(j = 0; j < N; j++){
X[i][j] = INF; // all index set 'infinity'
... | 2,112 | memory_bytes | {'s_id': 's040267066', 'p_id': 'p02242', 'u_id': 'u217028373', 'date': '1580519659', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '1572'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\n#define N 100\n#define INF 1000000000\n#define NIL -1\n\nint nm;\nint X[N][N], d[N], pi[N], mincost;\nint color[... |
CDSS_271911 | 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 if(a == b){
printf("a == b\n");
}
return 0;
} | 1,740 | memory_bytes | {'s_id': 's001213239', 'p_id': 'p02391', 'u_id': 'u755887155', 'date': '1511161633', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1740', 'code_size': '195'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(){\n\tint a ,b;\n\tscanf(\"%d %d\" ,&a ,&b);\n\tif(a < b){\n\t\tprintf(\"a < b\\n\");\n\t}else if(a > b){... |
CDSS_701578 | CDSS | #include <stdio.h>
int main(){
int n;
int a[100];
int i;
int max = 0;
int min = 1000;
scanf("%d",&n);
for(i = 0;i < n;i++){
scanf("%d",&a[i]);
}
for(i = 0;i < n;i++){
if(a[i] > max) max = a[i];
if(a[i] < min) min = a[i];
}
printf("%d",max - min);
... | 128 | memory_bytes | {'s_id': 's526822397', 'p_id': 'p03694', 'u_id': 'u958128735', 'date': '1497144069', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '128', 'code_size': '336'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n int n;\n int a[100];\n int i;\n int max = 0;\n int min = 1000;\n\n scanf(\"%d\",... |
CDSS_325156 | CDSS | #include <stdio.h>
int main(void){
int num,i,min,max=0,n;
long sum=0;
scanf("%d",&num);
scanf("%d",&n);
min=max=sum=n;
for(i=0;i<num-1;i++){
scanf("%d",&n);
sum+=n;
if(min > n)
min=n;
if(max < n)
max=n;
}
printf("%d %d %ld\n",min,m... | 600 | memory_bytes | {'s_id': 's101934724', 'p_id': 'p02402', 'u_id': 'u048361305', 'date': '1493037247', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '344'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n int num,i,min,max=0,n;\n long sum=0;\n scanf(\"%d\",&num);\n scanf(\"%d\",&n);\n ... |
CDSS_506851 | CDSS | #include <stdio.h>
int main()
{
long long int a,b;
scanf("%lld %lld",&a, &b);
if(a!=1 && b!=1){
printf("1");
}
else if(a!=2 && b!=2){
printf("2");
}
else {
printf("3");
}
return 0;
} | 128 | memory_bytes | {'s_id': 's859469200', 'p_id': 'p02829', 'u_id': 'u863370423', 'date': '1579915469', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '241'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main()\n{\n long long int a,b;\n scanf(\"%lld %lld\",&a, &b);\n if(a!=1 && b!=1){\n printf(\"1... |
CDSS_237119 | CDSS | #include<stdio.h>
#include<math.h>
#define MAX_DATA_SIZE (100)
void calc_distance(double * distance, const int count, const double * x, const double * y, double p);
int main(void)
{
int data_count, data_index;
double x_data[MAX_DATA_SIZE], y_data[MAX_DATA_SIZE];
double manhattan_distance, euc... | 2,052 | memory_bytes | {'s_id': 's018061093', 'p_id': 'p02382', 'u_id': 'u187669863', 'date': '1546675469', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2052', 'code_size': '1849'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<math.h>\n\n#define MAX_DATA_SIZE (100)\n\nvoid calc_distance(double * distance, const int count, const dou... |
CDSS_624972 | CDSS | #include<stdio.h>
int main()
{
int a,b;
scanf("%d %d",&a,&b);
printf("%d\n",a*b-(a+b-1));
return 0;
} | 1,704 | memory_bytes | {'s_id': 's968629259', 'p_id': 'p03280', 'u_id': 'u785727223', 'date': '1599408374', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1704', 'code_size': '105'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n\tint a,b;\n\tscanf(\"%d %d\",&a,&b);\n\tprintf(\"%d\\n\",a*b-(a+b-1));\n\treturn 0;\n}\nPredict its... |
CDSS_184401 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
struct node{
int key;
struct node *next;
struct node *prev;
};
typedef struct node * NodePointer;
NodePointer nil;
/*
NodePointer listSearch(int key){
NodePointer t;
for(t = nil -> next;t != nil;t = t -> next){
if(t -> key ==... | 31,788 | memory_bytes | {'s_id': 's724238851', 'p_id': 'p02265', 'u_id': 'u695667411', 'date': '1430107602', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '340', 'memory': '31788', 'code_size': '2705'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n \nstruct node{\n int key;\n struct node *next;\n struct node *... |
CDSS_721298 | CDSS | /*
https://abc053.contest.atcoder.jp/tasks/abc053_b
*/
// おかしいミスの原因は変数を初期化せず、使ってたから。
// 大きさを比較するときは必ず初期化を行う。
#include <stdio.h>
#include <string.h>
int main() {
char s[200001] = {};
int c_a,c_z;
int flag = 0;
scanf("%s", s);
int len;
len = strlen(s);
for(int i = 0; i < len; i++){
if(s[i] == 'A'... | 384 | memory_bytes | {'s_id': 's596325031', 'p_id': 'p03814', 'u_id': 'u459215900', 'date': '1527812914', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '384', 'code_size': '584'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n/*\nhttps://abc053.contest.atcoder.jp/tasks/abc053_b\n*/\n\n// おかしいミスの原因は変数を初期化せず、使ってたから。\n// 大きさを比較するときは必ず初期化を行う。\n\n#include <stdio.... |
CDSS_102381 | CDSS | #include <stdio.h>
int main(){
int i;
int w[3];
int h1,m1,s1;
int h2,m2,s2;
for(i=0;i<3;i++){
scanf("%d %d %d %d %d %d",&h1,&m1,&s1,&h2,&m2,&s2);
w[i]=(3600*h2+60*m2+s2)-(3600*h1+60*m1+s1);
}
for(i=0;i<3;i++){
h1=w[i]/3600;
m1=(w[i]-h1*3600)/60;
s1=w[i]-h1*3600-m1*60;
printf... | 596 | memory_bytes | {'s_id': 's309262264', 'p_id': 'p00455', 'u_id': 'u864732357', 'date': '1457175057', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '365'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n\n int i;\n int w[3];\n\n int h1,m1,s1;\n int h2,m2,s2;\n\n for(i=0;i<3;i++){\n scanf(\"%d ... |
CDSS_115169 | CDSS | #include <stdio.h>
#define ll long long
#define rep(i,l,r)for(ll i=l;i<r;i++)
#define PLIMIT 1000000
int prime[PLIMIT+10];
void makep(ll n){prime[0]=prime[1]=1;for(int i=2;i*i<=n;i++)if(!prime[i])for(int j=i*i;j<=n;j+=i)prime[j]=1;}
int main(){
makep(PLIMIT);
ll a,d,n;
while(scanf("%lld%lld%lld",&a,&d,&n),n){
ll... | 5,588 | memory_bytes | {'s_id': 's997843343', 'p_id': 'p00722', 'u_id': 'u409832240', 'date': '1558587346', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '5588', 'code_size': '451'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#define ll long long\n#define rep(i,l,r)for(ll i=l;i<r;i++)\n\n#define PLIMIT 1000000\nint prime[PLIMIT+10];\nvoid... |
CDSS_733193 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<math.h>
#define sl(x) scanf("%ld", &x)
#define ss(x) scanf("%s", x)
#define pl(x) printf("%ld\n", x)
#define ps(x) printf("%s\n", x)
#define INF 100000000000
#define M 1000000007
#define min(a,b) (((a)<(b))?(a):(b))
#define max(a,b) (((a)>(b))?(a):(b))... | 1,792 | memory_bytes | {'s_id': 's589918086', 'p_id': 'p03948', 'u_id': 'u617888512', 'date': '1478485854', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '15', 'memory': '1792', 'code_size': '720'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#include<string.h>\n#include<math.h>\n\n#define sl(x) scanf(\"%ld\", &x)\n#define ss(x) scanf(\... |
CDSS_93355 | CDSS | #include <stdio.h>
int main(void){
int c[6]={}, val[]={1, 5, 10, 50, 100, 500};
int sum=0, i;
for( i=0 ; i<6 ; i++ ){
scanf("%d", &c[i]);
sum += c[i] * val[i] ;
}
if( sum>=1000 )
puts("1");
else
puts("0");... | 1,792 | memory_bytes | {'s_id': 's949105120', 'p_id': 'p00291', 'u_id': 'u729040193', 'date': '1506652767', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1792', 'code_size': '341'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n int c[6]={}, val[]={1, 5, 10, 50, 100, 500};\n int sum=0, i;\n\n for( i=0... |
CDSS_605656 | CDSS | #include <stdio.h>
int main()
{
int n;
int ans = 0;
scanf("%d", &n);
while (n) {
if (n % 10 == 2) {
ans = ans + 1;
}
n = n / 10;
}
printf("%d\n", ans);
return 0;
}
| 256 | memory_bytes | {'s_id': 's805430398', 'p_id': 'p03192', 'u_id': 'u683588090', 'date': '1551850592', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '256', 'code_size': '186'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main()\n{\n\tint n;\n\tint ans = 0;\n\n\tscanf(\"%d\", &n);\n\n\twhile (n) {\n\t\tif (n % 10 == 2) {\n\t\t\t... |
CDSS_23330 | CDSS | #include<stdio.h>
int main(){
int buf[10],i,j,n;
for(i=0;i<10;i++){
scanf("%d",&buf[i]);
}
for(i=0;i<9;i++){
for(j=0;j<9-i;j++){
if(buf[j]<buf[j+1]){
n=buf[j];
buf[j]=buf[j+1];
buf[j+1]=n;
}
}
}
printf("%d\n",buf[0]);
printf("%d\n",buf[1]);
printf("%d\n",buf[2]);
return 0;
} | 600 | memory_bytes | {'s_id': 's339537841', 'p_id': 'p00001', 'u_id': 'u911435714', 'date': '1468459124', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '285'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n\nint buf[10],i,j,n;\n\nfor(i=0;i<10;i++){\nscanf(\"%d\",&buf[i]);\n}\n\nfor(i=0;i<9;i++){\nfor(j=0;... |
CDSS_725227 | CDSS | #include <stdio.h>
int main(void)
{
int sx, sy, tx, ty;
scanf("%d %d %d %d", &sx, &sy, &tx, &ty);
int i;
int w = tx - sx;
int h = ty - sy;
// first turn
for (i = 1; i <= w; i++) putchar('R');
for (i = 1; i <= h; i++) putchar('U');
// second turn
for (i = 1; i <= w; i++) ... | 128 | memory_bytes | {'s_id': 's333907330', 'p_id': 'p03836', 'u_id': 'u519655118', 'date': '1510640717', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '724'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n int sx, sy, tx, ty;\n scanf(\"%d %d %d %d\", &sx, &sy, &tx, &ty);\n int i;\n int... |
CDSS_42197 | CDSS | #include<stdio.h>
#define MAX 1000000
int main(){
char prime[MAX];
int num,i,j,ans;
for(i = 0; i < MAX; i++){
prime[i] = 1;
}
prime[0] = prime[1] = 0;
for(i = 2; i < (MAX /2); i++){
if(prime[i]){
for(j=2*i;j<MAX;j+=i){
prime[j] = 0;
}
}
}
while(scanf("%d",&num) != EOF){
... | 1,572 | memory_bytes | {'s_id': 's845703444', 'p_id': 'p00009', 'u_id': 'u782900939', 'date': '1430537904', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '1572', 'code_size': '427'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\n#define MAX 1000000\n\nint main(){\n char prime[MAX];\n int num,i,j,ans;\n\n for(i = 0; i < MAX; i++){\n pr... |
CDSS_552331 | CDSS | #include <stdio.h>
#include <stdlib.h>
#define LENGTH 2000000000
int main(void)
{
int L, R, i, j, ij_2019;
scanf("%d %d", &L, &R);
if (0 > L || 0 > R || L >= R || L > LENGTH || R > LENGTH)
{
exit(0);
}
else
{
if ((R - L) >= 2019)
{
printf("0");
}... | 128 | memory_bytes | {'s_id': 's531967532', 'p_id': 'p02983', 'u_id': 'u586887093', 'date': '1562793844', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1946', 'memory': '128', 'code_size': '1079'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\n#define LENGTH 2000000000\n\nint main(void)\n{\n int L, R, i, j, ij_2019;\n scanf(\"%... |
CDSS_535155 | CDSS | /* a */
#include<stdio.h>
#include<math.h>
int main(void)
{
int m,d,i,j,a,b,f;
scanf("%d %d",&m,&d);
a=0;
for(i=1;i<10;i++){
if(d>=10*i){
a++;
}}
b=d-10*a;
/* printf("%d\t%d\n",a,b);*/
for(i=2;i<a;i++){
for(j=2;j<=9;j++){
if(i*j<=m){
f++;
}}}
if(b>1){
for(j=2;j<... | 128 | memory_bytes | {'s_id': 's938775779', 'p_id': 'p02927', 'u_id': 'u986190948', 'date': '1567110478', '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 must be a numerical value, with no extra text or explanation.\nThe code is:\n/* a */\n#include<stdio.h>\n#include<math.h>\nint main(void)\n{\n int m,d,i,j,a,b,f;\n scanf(\"%d %d\",&m,&d);\n a=0;\n for(i=... |
CDSS_44442 | CDSS | #include <stdio.h>
int main(){
int n, i, j;
while( scanf("%d", &n) != EOF){
int number[n], sum = 0;
number[0] = 0;
for( i = 1; i < n; i++){
number[i] = 1;
}
for( i = 1; i < n; i++){
if( number[i-1] == 1){
for( j = 2; j < i; j += i){
if( i % j == 0){
number[i-1] = 0;
break;
... | 4,500 | memory_bytes | {'s_id': 's186160286', 'p_id': 'p00009', 'u_id': 'u879745691', 'date': '1367226619', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '100', 'memory': '4500', 'code_size': '478'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n\tint n, i, j;\n\t\n\twhile( scanf(\"%d\", &n) != EOF){\n\t\tint number[n], sum = 0;\n\t\tnumber[0... |
CDSS_353649 | CDSS | #include <stdio.h>
int main(){
int m,f,r;
while(1){
scanf("%d%d%d",&m,&f,&r);
if (m == -1 && f == -1 && r == -1)
break;
else if (m == -1 || f == -1)
printf("F\n");
else if ((m + f) >= 80)
printf("A\n");
else if ( (m + f) >= 65)
... | 2,140 | memory_bytes | {'s_id': 's527300597', 'p_id': 'p02411', 'u_id': 'u118351092', 'date': '1581590100', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2140', 'code_size': '607'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n int m,f,r;\n \n while(1){\n scanf(\"%d%d%d\",&m,&f,&r);\n if (m == -1 && f ... |
CDSS_717877 | CDSS | #include <stdio.h>
typedef long long int lli;
int main(void){
lli nums, numc;
scanf("%lld %lld", &nums, &numc);
lli ans = 0;
if(numc >= 2 * nums){
ans += nums;
numc -= 2 * nums;
ans += numc / 4;
}else{
ans += numc / 2;
}
printf("%lld\n", ans);
return 0;
... | 128 | memory_bytes | {'s_id': 's861839450', 'p_id': 'p03797', 'u_id': 'u078832908', 'date': '1541950273', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '321'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\ntypedef long long int lli;\n\nint main(void){\n lli nums, numc;\n scanf(\"%lld %lld\", &nums, &numc);\n\n ... |
CDSS_508432 | CDSS | #include <stdio.h>
long long lcm(long long a, long long b)
{
long long remain;
long long ta = a, tb = b;
while (1)
{
remain = ta % tb;
if (!remain) break;
ta = tb, tb = remain;
}
return a * b / tb;
}
int main(void)
{
long long a, b;
if (scanf("%lld %lld", &a, &b) == 2) printf("%lld", lcm(a, b));
} | 128 | memory_bytes | {'s_id': 's071457959', 'p_id': 'p02831', 'u_id': 'u594500203', 'date': '1577067097', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '312'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nlong long lcm(long long a, long long b)\n{\n\tlong long remain;\n\tlong long ta = a, tb = b;\n\twhile (1)\n\t{\n\t... |
CDSS_515798 | CDSS | #include <stdio.h>
#include <math.h>
#define sq(a) ((a)*(a))
double x[10], y[10];
int count = 0;
double length;
void dfs(int array[], int n, int flag){
if(array[0] == n){
count++;
double newlen = 0;
for(int i=2; i<=n; i++)
newlen = newlen + sqrt(sq(x[array[i]]-x[array[i-1]]) + sq(y[array[i]]-y[arr... | 128 | memory_bytes | {'s_id': 's204992671', 'p_id': 'p02861', 'u_id': 'u792720861', 'date': '1589750865', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '128', 'code_size': '746'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n#define sq(a) ((a)*(a))\n\ndouble x[10], y[10];\nint count = 0;\ndouble length;\n\nvoid dfs(int... |
CDSS_39138 | CDSS | #include<stdio.h>
#include<string.h>
int main()
{
char c[30];
int i,ch;
scanf("%s",c);
ch=strlen(c);
for(i=ch-1;i>=0;i--)
printf("%c",c[i]);
printf("\n");
return 0;
} | 524 | memory_bytes | {'s_id': 's376415704', 'p_id': 'p00006', 'u_id': 'u011621222', 'date': '1394108654', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', 'code_size': '175'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\nint main()\n{\n\tchar c[30];\n\tint i,ch;\n\tscanf(\"%s\",c);\n\tch=strlen(c);\n\tfor(i=ch-1;i>... |
CDSS_703232 | CDSS | #include <stdio.h>
#include <string.h>
int main(){
char S[30] = {};
scanf("%s", S);
for(int i = 0; i < strlen(S); i++){
for(int j = i + 1; j < strlen(S); j++){
if(S[i] == S[j]){
printf("no\n");
return 0;
}
}
}
printf("yes\n");
return 0;
}
| 128 | memory_bytes | {'s_id': 's271958473', 'p_id': 'p03698', 'u_id': 'u889278665', 'date': '1544444671', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '293'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\nint main(){\n char S[30] = {};\n scanf(\"%s\", S);\n\n for(int i = 0; i < strlen(S); i++... |
CDSS_174528 | CDSS | #include<stdio.h>
struct Card{
char suit;
char value;
};
struct Card C1[101], C2[101];
void trace(struct Card C[], int n)
{
int i;
for ( i = 1; i <= n; i++ ){
if ( i > 1 ) printf(" ");
printf("%c%c",C[i].suit, C[i].value);
}
printf("\n");
}
void Bubble(struct Card CB[], int n)
{
struct Card CB... | 612 | memory_bytes | {'s_id': 's621042278', 'p_id': 'p02261', 'u_id': 'u943972932', 'date': '1397743872', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '612', 'code_size': '1304'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nstruct Card{\n char suit;\n char value;\n};\n\nstruct Card C1[101], C2[101];\n\nvoid trace(struct Card C[], int... |
CDSS_190987 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
int main(void)
{
int n;
int q;
int i;
scanf("%d",&n);
int s[n];
for(i=0;i<n;i++)
{
scanf("%d",&s[i]);
}
scanf("%d",&q);
int t[q];
for(i=0;i<q;i++)
{
scanf("%d",&t[i]);
}
int j;
int count=0;
int count2;
for(i=0;i<q;i++)
{
count2=0;
for(j... | 2,048 | memory_bytes | {'s_id': 's327608840', 'p_id': 'p02267', 'u_id': 'u695012870', 'date': '1573888562', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2048', 'code_size': '467'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#include<string.h>\n\n\nint main(void)\n{\n\tint n;\n\tint q;\n\tint i;\n\tscanf(\"%d\",&n);\n\... |
CDSS_558903 | CDSS | #include <stdio.h>
int main(void){
int X, A;
scanf("%d %d", &X, &A);
if (X < A) printf("0\n");
else printf("10\n");
} | 128 | memory_bytes | {'s_id': 's333405466', 'p_id': 'p02999', 'u_id': 'u264627672', 'date': '1588356918', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '128', 'code_size': '126'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n int X, A;\n scanf(\"%d %d\", &X, &A);\n if (X < A) printf(\"0\\n\");\n else printf(\"10\\n... |
CDSS_114122 | CDSS | #include<stdio.h>
int main(void)
{
int n,r,p,c,i,j;
int card[51];
int tem[51];
while(scanf("%d%d",&n,&r),n+r){
for(i=1;i<=n;i++){
card[i]=i;
}
for(i=0;i<r;i++){
scanf("%d%d",&p,&c);
for(j=n-p+1;j>n-p+1-c;j--){
tem[j]=card[j];
}
for(j++;j+c<=n;j++){
card[j]=card[j+c];
}
for(;j<=n;j++){
card[j]=tem[j-p+1];
}
}
printf... | 600 | memory_bytes | {'s_id': 's585343726', 'p_id': 'p00710', 'u_id': 'u221679506', 'date': '1434676424', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '351'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void)\n{\nint n,r,p,c,i,j;\nint card[51];\nint tem[51];\n\nwhile(scanf(\"%d%d\",&n,&r),n+r){\n\nfor(i=1;... |
CDSS_262189 | CDSS | #include<stdio.h>
int main(int argc, char const *argv[]) {
int h,m,s,S;
scanf("%d",&S);
h=S/3600;
m=(S-h*3600)/60;
s=S-(h*3600+m*60);
printf("%d:%d:%d\n", h,m,s);
return 0;
} | 592 | memory_bytes | {'s_id': 's947222451', 'p_id': 'p02390', 'u_id': 'u871003136', 'date': '1495501527', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', 'code_size': '191'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(int argc, char const *argv[]) {\n int h,m,s,S;\n scanf(\"%d\",&S);\n h=S/3600;\n m=(S-h*3600)/60;\n s... |
CDSS_567246 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef struct restaurant {
char name[11];
int P;
int num;
} restaurant;
int compare_string(const void *a, const void *b) {
return strcmp(((restaurant*)a)->name, ((restaurant*)b)->name);
}
int compare_int(const void *a, const void *b) {
return ((resta... | 128 | memory_bytes | {'s_id': 's072605414', 'p_id': 'p03030', 'u_id': 'u227604873', 'date': '1558932326', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '684'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\ntypedef struct restaurant {\n\tchar name[11];\n\tint P;\n\tint num;\n}... |
CDSS_64471 | CDSS | #include <stdio.h>
#include <string.h>
int main(){
char t,tt,bouru = 'A';
while(scanf("%c,%c",&t,&tt) != EOF){
if(bouru == t) {bouru = tt;continue;}
if(bouru == tt) {bouru = t;continue;}
}
printf("%c\n",bouru);
return 0;
} | 0 | memory_bytes | {'s_id': 's515122831', 'p_id': 'p00047', 'u_id': 'u834298964', 'date': '1281609045', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '224'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\nint main(){\nchar t,tt,bouru = 'A';\n\nwhile(scanf(\"%c,%c\",&t,&tt) != EOF){\nif(bouru == ... |
CDSS_620672 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
int main(void)
{
int n,i,j,ans=1,len1;
char w[100][11];
scanf("%d",&n);
for ( i = 0; i < n; i++)
{
scanf("%s",w[i]);
}
for ( i = 1; i < n; i++)
{
len1=strlen(w[i-1]);
if(w[i-1][len1-1]!=w[i][0]) ans=0;
... | 128 | memory_bytes | {'s_id': 's821229167', 'p_id': 'p03261', 'u_id': 'u007202328', 'date': '1575834441', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '490'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#include<string.h>\n\nint main(void)\n{\n int n,i,j,ans=1,len1;\n char w[100][11];\n\n ... |
CDSS_43501 | CDSS | #include <stdio.h>
int isPrime(int n) {
int i;
if (n<2) return 0;
else if (n==2) return 1;
else if (n%2==0) return 0;
for (i=3; i<=n/i; i+=2) {
if (n%i==0) return 0;
}
return 1;
}
int main(void) {
int n, A[30][2], cnt, i=0, j, check=0;
while (scanf("%d", &n) != EOF) {
... | 2,052 | memory_bytes | {'s_id': 's500209281', 'p_id': 'p00009', 'u_id': 'u593518883', 'date': '1528704858', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '110', 'memory': '2052', 'code_size': '803'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint isPrime(int n) {\n int i;\n\n if (n<2) return 0;\n else if (n==2) return 1;\n else if (n%2==0) r... |
CDSS_330547 | CDSS | #include <stdio.h>
int main(void)
{
int H = 1, W = 1, i, j;
while (1)
{
scanf("%d %d", &H, &W);
if ((H == 0) && (W == 0)) break;
for (i = 0; i < H; i++)
{
for (j = 0; j < W; j++)
{
printf("#");
}
printf("\n");
}
printf("\n");
}
return 0;
} | 572 | memory_bytes | {'s_id': 's468803301', 'p_id': 'p02403', 'u_id': 'u928564834', 'date': '1496574816', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '572', 'code_size': '276'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n\tint H = 1, W = 1, i, j;\n\n\twhile (1)\n\t{\n\t\tscanf(\"%d %d\", &H, &W);\n\n\t\tif ((H ==... |
CDSS_123601 | CDSS | #include<stdio.h>
int main(void)
{
int a; //入力された数
int i,j,k=0; //カウンタ
int sum;
while(1){
scanf("%d",&a);
if(a==0)break;
i=1;
for(i=1;i<a;i++){
j=i+1;
sum=i;
while(1){
sum= sum+j;
/* /\* // printf("%d\n",sum); *\/ */
if(sum==a){
k++;
//printf("%d\n",... | 600 | memory_bytes | {'s_id': 's388646693', 'p_id': 'p01314', 'u_id': 'u467070262', 'date': '1462188643', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '443'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\n int a; //入力された数\n int i,j,k=0; //カウンタ\n int sum;\n\n while(1){\n scanf(\"%d\",&a);... |
CDSS_262946 | CDSS | #include<stdio.h>
int main(){
int second;
scanf("%d",&second);
printf("%d:%d:%d\n",second/60/60,(second%3600)/60,(second%3600)%60);
return 0;
} | 1,844 | memory_bytes | {'s_id': 's977893956', 'p_id': 'p02390', 'u_id': 'u162680641', 'date': '1508852713', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1844', 'code_size': '159'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int second;\n scanf(\"%d\",&second);\n printf(\"%d:%d:%d\\n\",second/60/60,(second%3600)/60,... |
CDSS_611259 | CDSS | #include <stdio.h>
int main(){
int x, y;
scanf("%d %d", &x, &y);
printf("%d\n", x + y/2);
return 0;
}
| 128 | memory_bytes | {'s_id': 's607712811', 'p_id': 'p03219', 'u_id': 'u873139556', 'date': '1545121485', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '113'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n int x, y;\n\n scanf(\"%d %d\", &x, &y);\n printf(\"%d\\n\", x + y/2);\n\n return 0;\n}\n\nPred... |
CDSS_264566 | CDSS | #include <stdio.h>
int main(void) {
int S, h, m, s;
scanf("%d", &S);
h = S / 3600;
m = (S % 3600) / 60;
s = S % 60;
printf("%d:%d:%d\n", h, m, s);
}
| 2,112 | memory_bytes | {'s_id': 's355781671', 'p_id': 'p02390', 'u_id': 'u640564984', 'date': '1562579904', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '155'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\n\nint S, h, m, s;\n\nscanf(\"%d\", &S);\n\nh = S / 3600;\nm = (S % 3600) / 60;\ns = S % 60;\n\... |
CDSS_133862 | CDSS | #include<stdio.h>
#include<string.h>
char s1[1000];
char s2[2000];
int lcs(int l1,int l2){
int i,j,x,answer[1000][1000];
x=0;
for(i=0;i<l1;i++)answer[i][0]=0;
for(i=0;i<l2;i++)answer[0][i]=0;
for(i=0;i<l1;i++){
for(j=0;j<l2;j++){
if(s1[i]==s2[j] && s1[i]!=' '){
if(i==0 || j==0){answer[i][j]=1;}
... | 5,600 | memory_bytes | {'s_id': 's626811028', 'p_id': 'p02235', 'u_id': 'u041012691', 'date': '1549284235', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '50', 'memory': '5600', 'code_size': '970'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\n\nchar s1[1000];\nchar s2[2000];\n\nint lcs(int l1,int l2){\n int i,j,x,answer[1000][1000];\n ... |
CDSS_494182 | CDSS | #include<stdio.h>
int main(){
int h,n,i,a[210000], m=0;
scanf("%d %d", &h ,&n);
for(i=0;i<n;i++){
scanf("%d",&a[i]);
m+=a[i];
}
if(m>=h){
printf("Yes\n");
return 0;
}
printf("No\n");
return 0;
}
| 512 | memory_bytes | {'s_id': 's710770100', 'p_id': 'p02784', 'u_id': 'u770369399', 'date': '1584187530', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '11', 'memory': '512', 'code_size': '239'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n\n int h,n,i,a[210000], m=0;\n scanf(\"%d %d\", &h ,&n);\n for(i=0;i<n;i++){\n scanf(\"%d\",&a... |
CDSS_433244 | CDSS | #include "stdio.h"
int main(void)
{
int a,b,c,d;
int i;
int flag=0;
scanf("%d",&a);
scanf("%d",&b);
scanf("%d",&c);
scanf("%d",&d);
for(i=0;i<=100;i++)
{
c=c-b;
if(c<=0)
{
flag=1;
break;
}
a=a-d;
if(a<=0)
... | 1,728 | memory_bytes | {'s_id': 's364130171', 'p_id': 'p02700', 'u_id': 'u328484086', 'date': '1592244450', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '1728', 'code_size': '505'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include \"stdio.h\"\n\nint main(void)\n{\n int a,b,c,d;\n int i;\n int flag=0;\n\n scanf(\"%d\",&a);\n scanf(\"%d\",&b... |
CDSS_666894 | CDSS | #include<stdio.h>
int main(){
int M,x;
scanf("%d",&M);
x = 24 + (24 - M);
printf("%d",x);
}
| 128 | memory_bytes | {'s_id': 's285569681', 'p_id': 'p03473', 'u_id': 'u310549140', 'date': '1520316582', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '100'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int M,x;\n scanf(\"%d\",&M);\n x = 24 + (24 - M);\n printf(\"%d\",x);\n}\n\nPredict its memory fo... |
CDSS_632839 | CDSS | #include<stdio.h>
int main()
{
int a, b;
scanf("%d", &a);
if(a%2==0) printf("%d\n", a);
else printf("%d\n", 2*a);
}
| 1,732 | memory_bytes | {'s_id': 's131898828', 'p_id': 'p03307', 'u_id': 'u816631826', 'date': '1596070164', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '7', 'memory': '1732', 'code_size': '132'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n int a, b;\n scanf(\"%d\", &a);\n if(a%2==0) printf(\"%d\\n\", a);\n else printf(\"%d\\n... |
CDSS_150141 | CDSS | #include<stdio.h>
int main()
{
int A[100],N,i,j,key;
scanf("%d",&N);
for(i=0;i<N;i++) scanf("%d",&A[i]);
for(j=0;j<N;j++){
printf("%d",A[j]);
if(j<N-1) printf(" ");
}
printf("\n");
for(i=1;i<N;i++){
key=A[i];
j=i-1;
while(j>=0 && A[j]>key){
A[j+1]=A[j];
j--;
}
A[j+... | 2,144 | memory_bytes | {'s_id': 's200263999', 'p_id': 'p02255', 'u_id': 'u673629896', 'date': '1543891649', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2144', 'code_size': '447'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main()\n{\n int A[100],N,i,j,key;\n scanf(\"%d\",&N);\n for(i=0;i<N;i++) scanf(\"%d\",&A[i]);\n for(j=0;j... |
CDSS_696385 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <math.h>
/*ソートの時に使う
int sort(const void *a, const void *b){
return *(int*)a-*(int*)b ;
}
qsort (data,sizeof(data),sizeof(int),sort);
*/
int main(void){
int n;
scanf("%d",&n);
long long a[n],sum[n];
for (i... | 3,328 | memory_bytes | {'s_id': 's718462252', 'p_id': 'p03659', 'u_id': 'u750028862', 'date': '1530886231', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '24', 'memory': '3328', 'code_size': '774'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <stdbool.h>\n#include <math.h>\n\n/*ソートの時に使う\nint sort(const vo... |
CDSS_136208 | CDSS | #include <stdio.h>
#define N 100
#define NOT_VISITED 0
#define SEMI_VISITED 1
#define VISITED 2
int n, M[N][N];
int status[N], d[N], f[N], tt;
void dfs_visit(int u) {
int v;
status[u] = SEMI_VISITED;
d[u] = ++tt;
for (v = 0; v < n; v++) {
if (M[u][v] == 0) continue;
if (status[v] == NO... | 2,100 | memory_bytes | {'s_id': 's835704934', 'p_id': 'p02238', 'u_id': 'u514351694', 'date': '1558939616', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2100', 'code_size': '1063'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#define N 100\n#define NOT_VISITED 0\n#define SEMI_VISITED 1\n#define VISITED 2\n\nint n, M[N][N];\nint status[N],... |
CDSS_720782 | CDSS | #include <stdio.h>
int main(void){
int a;
scanf("%d",&a);
if(a<1200) printf("ABC");
else printf("ARC");
return 0;
} | 128 | memory_bytes | {'s_id': 's199359295', 'p_id': 'p03813', 'u_id': 'u987476436', 'date': '1534197279', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '120'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\n int a;\n scanf(\"%d\",&a);\n if(a<1200) printf(\"ABC\");\n else printf(\"ARC\");\n return 0;\n}\... |
CDSS_216843 | CDSS | #include <stdio.h>
#define NIL -1
struct Node{
int parent;
int left;
int right;
};
struct Node L[100005];
int n;
int data[100005];
int dep( int o, int u)
{
data[o] = u;
if( L[o].right != NIL )dep(L[o].right, u);
if( L[o].left != NIL )dep(L[o].left, u+1);
}
void print(int o)
{
int i;
int z;
... | 6,416 | memory_bytes | {'s_id': 's611742531', 'p_id': 'p02279', 'u_id': 'u260256760', 'date': '1578298421', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '30', 'memory': '6416', 'code_size': '1156'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\n#define NIL -1\n\nstruct Node{\n int parent;\n int left;\n int right;\n};\n\nstruct Node L[100005];\nint n;\n... |
CDSS_472539 | CDSS | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
int main() {
char s[100];
scanf("%s", s);
int length = strlen(s);
int former = (length - 1) / 2;
int f_judge = 0;
int judge = 0;
int i;
for(i = 0; i < length; i++) {
if(s[i] == s[length-1-i]) {
continue;
} else {
judge += 1;
break;
... | 128 | memory_bytes | {'s_id': 's903979968', 'p_id': 'p02730', 'u_id': 'u136775014', 'date': '1585073750', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '582'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n\nint main() {\n\n\n\tchar s[100];\n\tscanf(\"%s\", s);\n\n\tint length ... |
CDSS_117135 | CDSS | #include <stdio.h>
#define MAX_N 246912
int isPrime[ MAX_N + 1 ], pNum[ MAX_N + 1 ] = { 0 };
int main( void ) {
int i, j, n;
isPrime[ 1 ] = 0;
for ( i = 2; i <= MAX_N; i++ )
isPrime[ i ] = 1;
for ( i = 4; i <= MAX_N; i += 2 )
isPrime[ i ] = 0;
for ( i = 3; i * i <= MAX_N; i += 2 )
if ( isPrime[ i ] )
... | 2,528 | memory_bytes | {'s_id': 's459257753', 'p_id': 'p00753', 'u_id': 'u340315059', 'date': '1374337705', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2528', 'code_size': '552'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\n#define MAX_N 246912\n\nint isPrime[ MAX_N + 1 ], pNum[ MAX_N + 1 ] = { 0 };\n\nint main( void ) {\n\tint i, j, ... |
CDSS_666777 | CDSS | #include <stdio.h>
int main(int argc, char **argv) {
int m;
while (scanf("%d", &m) != EOF) {
printf("%d\n", 48 - m);
}
return 0;
}
| 128 | memory_bytes | {'s_id': 's567857502', 'p_id': 'p03473', 'u_id': 'u558047531', 'date': '1550541136', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '146'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(int argc, char **argv) {\n int m;\n\n while (scanf(\"%d\", &m) != EOF) {\n printf(\"%d\\n\", 48 - ... |
CDSS_416531 | CDSS | #include <malloc.h>
#include <math.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
//ABC168D
//ABC168C
//ABC168B
int main(void) {
int n, k, i, cou=0, tmp;
char s[110];
scanf("%d %s", &k, s);
for(i=0; s[i]!='\0'; ++i)
; //文字数
if(i<=k) printf("%s", s);
else{
for(i=0; i<k; i++){
pr... | 1,728 | memory_bytes | {'s_id': 's218971196', 'p_id': 'p02676', 'u_id': 'u859946952', 'date': '1589763864', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '9', 'memory': '1728', 'code_size': '374'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <malloc.h>\n#include <math.h>\n#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n\n//ABC168D\n//ABC168C\n//ABC168... |
CDSS_124498 | CDSS | #include <stdio.h>
int main(){
int m,n;
int i,j;
int str[21][21];
int max=-1;
int tmp=0;
scanf("%d %d",&m,&n);
for(j=0;j<m;j++){
for(i=0;i<n;i++){
scanf("%d ",&str[i][j]);
}
}
for(j=0;j<m;j++){
for(i=0;i<n;i++){
tmp += str[i][j];
}
if(tmp>max) max = tmp;
tmp = 0;
}
printf("%d\n",max);
... | 604 | memory_bytes | {'s_id': 's872313075', 'p_id': 'p01376', 'u_id': 'u083188241', 'date': '1436491698', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '604', 'code_size': '334'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n\t\n\tint m,n;\n\tint i,j;\n\tint str[21][21];\n\tint max=-1;\n\tint tmp=0;\n\t\n\tscanf(\"%d %d\",... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.