identifier string | space string | input string | target float64 | metric_type string | metadata string | messages list |
|---|---|---|---|---|---|---|
CDSS_142051 | CDSS | #include<stdio.h>
#define N 8
int a[N],b[N],c[16],d[16];
char e[N][N];
int koukan1(int x,int y){
return 7-x+y;
}
int koukan2(int x,int y){
return x+y;
}
int plbslv(int x){
int y;
if(x==N)return 1;
if(a[x])return plbslv(x+1);
for(y=0;y<N;++y){
if(b[y])continue;
if(c[koukan1(x,y)])continue;
if(d... | 2,144 | memory_bytes | {'s_id': 's315103562', 'p_id': 'p02244', 'u_id': 'u736192631', 'date': '1580904688', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2144', 'code_size': '986'} | [
{
"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 8\nint a[N],b[N],c[16],d[16];\nchar e[N][N];\nint koukan1(int x,int y){\n return 7-x+y;\n }\nint koukan... |
CDSS_124369 | CDSS | #include <stdio.h>
#include <string.h>
int main() {
char key[] = {'y','h','n','u','j','m','i','k','o','p','l','\0'};
char str[33];
int hand,cha,i,j;
while(1) {
scanf("%s",str);
if(str[0] == '#') break;
for(i=0;i<strlen(key); i++) {
if(key[i] == str[0]) break;
}
//rgiht:0 left:1
if(... | 540 | memory_bytes | {'s_id': 's864870094', 'p_id': 'p01369', 'u_id': 'u952951927', 'date': '1433164092', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '540', 'code_size': '758'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\n\nint main() {\n\n char key[] = {'y','h','n','u','j','m','i','k','o','p','l','\\0'};\n ch... |
CDSS_276291 | CDSS | #include<stdio.h>
int main(void){
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
if(a<b&&b<c){
printf("Yes\n");}
else{
printf("No\n");}
return 0;
} | 580 | memory_bytes | {'s_id': 's600633724', 'p_id': 'p02392', 'u_id': 'u773591706', 'date': '1461294070', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', 'code_size': '156'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void){\n\n\nint a,b,c;\n\n\nscanf(\"%d %d %d\",&a,&b,&c);\n\n\nif(a<b&&b<c){\n\n\nprintf(\"Yes\\n\");}\n... |
CDSS_458977 | CDSS | #include <stdio.h>
#define rep(i, n) for(int i=1; i<(int)(n);i++)
int main(){
int a, b, c, k, ans=0;
int gcd_3(int ,int ,int );
scanf("%d",&k);
rep(a,k+1){
rep(b,k+1){
rep(c,k+1){
ans += gcd_3(a,b,c);
}
}
}
printf("%d",ans);
}
int gcd_3(int a,int b,int c){
int gcd(int ,int )... | 1,728 | memory_bytes | {'s_id': 's271790093', 'p_id': 'p02713', 'u_id': 'u697715013', 'date': '1586796889', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '217', 'memory': '1728', 'code_size': '398'} | [
{
"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=1; i<(int)(n);i++)\n\nint main(){\n int a, b, c, k, ans=0;\n int gcd_3(int ,int ,int... |
CDSS_536842 | CDSS | #include <stdio.h>
int main()
{
int number;
scanf("%d",&number);
double kazu[number];
double kazuneo[number];
double goukei;
for(int i=0;i<number;i++){
scanf("%lf",&kazu[i]);
kazuneo[i]=1/kazu[i];
goukei+=kazuneo[i];
}
printf("%lf",1/goukei);
return 0;
} | 128 | memory_bytes | {'s_id': 's310256949', 'p_id': 'p02934', 'u_id': 'u950180790', 'date': '1569452767', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '314'} | [
{
"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 number;\n scanf(\"%d\",&number);\n double kazu[number];\n double kazuneo[number];\... |
CDSS_675817 | CDSS | #include <stdio.h>
int main() {
int N, i;
long long int La = 2LL, Lb = 1LL, tmp;
scanf("%d", &N);
if(N==0){
printf("2\n");
return 0;
}else if(N==1){
printf("1\n");
return 0;
}
for(i=2;i<=N;i++){
tmp = Lb;
Lb += La;
La = tmp;
}
printf("%lld", Lb);
return 0;
}
| 128 | memory_bytes | {'s_id': 's292279933', 'p_id': 'p03544', 'u_id': 'u915797797', 'date': '1568688088', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '317'} | [
{
"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, i;\n long long int La = 2LL, Lb = 1LL, tmp;\n \n scanf(\"%d\", &N);\n \n if(N==0){\n... |
CDSS_625963 | CDSS | int main()
{
int N,C,A,i,o;
scanf("%d",&N);
C=0;
A=0;
for(i=1;N>=i;i++)
{
if(i%2!=0)
{
for(o=1;i>=o;o++)
{
if(i%o==0)
{
C++;
}
}
if(C==8)
{
A++;
}
C=0;
}
}
printf("%d",A);... | 128 | memory_bytes | {'s_id': 's553658726', 'p_id': 'p03281', 'u_id': 'u231455327', 'date': '1534646259', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', '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:\nint main()\n{\n int N,C,A,i,o;\n scanf(\"%d\",&N);\n C=0;\n A=0;\nfor(i=1;N>=i;i++)\n{\n if(i%2!=0)\n {\n for... |
CDSS_605355 | CDSS | #include <stdio.h>
int main(void)
{
int A,B,C,result;
scanf("%d %d %d",&A,&B,&C);
if ((A+B+1)>=C) result=B+C;
else result=2*B+A+1;
printf("%d",result);
return 0;
} | 128 | memory_bytes | {'s_id': 's940703256', 'p_id': 'p03186', 'u_id': 'u468663659', 'date': '1552328147', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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>\nint main(void)\n{\n int A,B,C,result;\n scanf(\"%d %d %d\",&A,&B,&C);\n if ((A+B+1)>=C) result=B+C;\n else res... |
CDSS_255240 | CDSS | #include<stdio.h>
int main(){
int a,b,c,ans;
scanf("%d%d",&a,&b);
c=a*b;
ans=(a+b)*2;
printf("%d %d\n",c,ans);
return 0;
} | 596 | memory_bytes | {'s_id': 's651169811', 'p_id': 'p02389', 'u_id': 'u996284260', 'date': '1503564882', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '136'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int a,b,c,ans;\n scanf(\"%d%d\",&a,&b);\n\n c=a*b;\n ans=(a+b)*2;\n\n printf(\"%d %d\\n\",c,ans)... |
CDSS_232683 | CDSS | // AOJ DSL_2_C Range Search (kD Tree)
// 2018.5.17 bal4u
#include <stdio.h>
#include <stdlib.h>
#if 1
#define gc() getchar_unlocked()
#define pc(c) putchar_unlocked(c)
#else
#define gc() getchar()
#define pc(c) putchar(c)
#endif
int in()
{
int n = 0, c = gc();
if (c == '-') { c = gc();
do n = 10*n + (c & 0xf), c... | 26,136 | memory_bytes | {'s_id': 's863131242', 'p_id': 'p02347', 'u_id': 'u847467233', 'date': '1526544307', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '650', 'memory': '26136', 'code_size': '2649'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n// AOJ DSL_2_C Range Search (kD Tree)\n// 2018.5.17 bal4u\n\n#include <stdio.h>\n#include <stdlib.h>\n\n#if 1\n#define gc() getchar_un... |
CDSS_90115 | CDSS | #include<stdio.h>
int main(){
int i[1000],p[1000],q[1000],r[1000],P,Q,R,C,n,j,a[1000],b[1000],c[1000],d;
while(1){
scanf("%d",&n);
if(n==0){
break;
}
for(j=0;j<n;j++){
scanf("%d%d%d%d",&i[j],&p[j],&q[j],&r[j]);
a[j]=(p[j]+r[j])*4;
b[j]=q[j]*9;
c[j]=a[j]+b[j];
}
scanf("%d%d%d%d",&P,&Q,&R,&... | 632 | memory_bytes | {'s_id': 's397295224', 'p_id': 'p00239', 'u_id': 'u071792305', 'date': '1472021304', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '632', 'code_size': '526'} | [
{
"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 i[1000],p[1000],q[1000],r[1000],P,Q,R,C,n,j,a[1000],b[1000],c[1000],d;\n\t\n\twhile(1){\n\t\tsca... |
CDSS_132183 | CDSS | #include <stdio.h>
#include <math.h>
int main(){
int i,n,j,k,l,q;
int p[301],m[301][301];
scanf("%d",&n);
for(i=1;i<=n;i++)
scanf("%d %d",&p[i-1],&p[i]);
for(i=1;i<=n;i++)
m[i][i]=0;
for(l=2;l<=n;l++)
for(i=1;i<=n;i++){
j=i+l-1;
m[i][j]=2000000;
for(k=i;k<=j;k++){
q=m[i][k]+... | 2,052 | memory_bytes | {'s_id': 's207821311', 'p_id': 'p02234', 'u_id': 'u128683476', 'date': '1580102087', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2052', 'code_size': '429'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n\nint main(){\n int i,n,j,k,l,q;\n int p[301],m[301][301];\n scanf(\"%d\",&n);\n for(i=1;i<... |
CDSS_363348 | CDSS | #include<stdio.h>
int main(){
char s[1001];
int ans=0,i=0,ch;
while(1){
i=0;
scanf("%s",s);
ans=0;
if(s[0]=='0') break;
while(s[i]!='\0'){
ans += s[i]-'0';
i++;
}
printf("%d\n",ans);
}
return 0;
}
| 536 | memory_bytes | {'s_id': 's983539400', 'p_id': 'p02416', 'u_id': 'u762527436', 'date': '1442816922', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '536', '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\nint main(){\n\tchar s[1001];\n\tint ans=0,i=0,ch;\n\twhile(1){\n\t\ti=0;\n\t\tscanf(\"%s\",s);\n\t\tans=0;\n\t\ti... |
CDSS_124475 | 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,312 | memory_bytes | {'s_id': 's755237125', 'p_id': 'p01371', 'u_id': 'u409832240', 'date': '1528226351', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '370', 'memory': '2312', 'code_size': '942'} | [
{
"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_351387 | CDSS | #include <stdio.h>
int main(void){
int n,m;
scanf("%d %d\n",&n,&m);
int A[n][m];
int b[m][1];
int c[n][1];
for(int i=1; i<=n; i++){
for(int j=1; j<=m; j++){
scanf("%d ",&A[i-1][j-1]);
c[i-1][0] = 0;
}
}
for(int j=1; j<=m; j++){
scanf("%d\n",&b[j-1][0]);
}
for(int i=1; i<=... | 2,144 | memory_bytes | {'s_id': 's741781985', 'p_id': 'p02410', 'u_id': 'u679700431', 'date': '1529479666', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2144', 'code_size': '459'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\n int n,m;\n\n scanf(\"%d %d\\n\",&n,&m);\n int A[n][m];\n int b[m][1];\n int c[n][1];\n\n f... |
CDSS_94327 | CDSS | #include <stdio.h>
int main(void){
int times, dist, len;
scanf("%d %d", &dist, &len);
times = (dist/len) + (dist%len);
printf("%d\n", times);
return 0;
} | 596 | memory_bytes | {'s_id': 's801409589', 'p_id': 'p00312', 'u_id': 'u293390752', 'date': '1502239827', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '180'} | [
{
"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 times, dist, len;\n scanf(\"%d %d\", &dist, &len);\n times = (dist/len) + (dist%... |
CDSS_274220 | 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,088 | memory_bytes | {'s_id': 's765543337', 'p_id': 'p02391', 'u_id': 'u944059918', 'date': '1565443568', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2088', 'code_size': '180'} | [
{
"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{\nint a,b;\nscanf(\"%d\",&a);\nscanf(\"%d\",&b);\nif(a<b){\nprintf(\"a < b\\n\");\n}else if(a>b){\... |
CDSS_672277 | CDSS | #include <stdio.h>
#define min(x, y) ((x)<(y) ? (x) : (y))
int main(){
int n; scanf("%d", &n);
int ans = 1<<30;
while(n--){
int a; scanf("%d", &a);
int count = 0;
while(a % 2 == 0){
count++;
a >>= 1;
}
ans = min(ans, count);
}
printf("%d\n", ans);
return 0;
}
| 1,704 | memory_bytes | {'s_id': 's948483254', 'p_id': 'p03494', 'u_id': 'u792720861', 'date': '1594581662', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '1704', 'code_size': '305'} | [
{
"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 min(x, y) ((x)<(y) ? (x) : (y))\nint main(){\n int n; scanf(\"%d\", &n);\n\tint ans = 1<<30;\n while(n-... |
CDSS_200891 | CDSS | #include<stdio.h>
int func(int, int);
int N,A[20];
int main(){
int Q,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",&q);
if(func(0,q)==1) printf("yes\n");
else printf("no\n");
}
return 0;
}
int func(int i,int q){
int R;
... | 2,140 | memory_bytes | {'s_id': 's982792799', 'p_id': 'p02271', 'u_id': 'u211518929', 'date': '1577331507', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '500', 'memory': '2140', 'code_size': '421'} | [
{
"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 func(int, int);\n\nint N,A[20];\nint main(){\n\n int Q,q;\n int i;\n\n scanf(\"%d\",&N);\n for(i=0;i<N;i+... |
CDSS_664288 | CDSS | #include <stdio.h>
int main() {
int n, a, b;
scanf("%d%d%d", &n, &a, &b);
if ((b - a) % 2 == 0) {
printf("Alice\n");
} else {
printf("Borys\n");
}
return 0;
} | 128 | memory_bytes | {'s_id': 's333362142', 'p_id': 'p03463', 'u_id': 'u030504180', 'date': '1588439116', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '168'} | [
{
"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 n, a, b;\n\tscanf(\"%d%d%d\", &n, &a, &b);\n\tif ((b - a) % 2 == 0) {\n\t\tprintf(\"Alice\\n\"... |
CDSS_317744 | CDSS | #include <stdio.h>
int main(void) {
int a, b;
char op;
while(scanf("%d %c %d",&a, &op, &b)!=EOF){
if(op=='?'){
break;
}
switch(op){
case '+':
a=a+b;
break;
case '-':
a=a-b;
break;
case '*':
a=a*b;
break;
case '/':
a=a/b;
break;
}
printf("%d\n", a);
}
return 0;
} | 600 | memory_bytes | {'s_id': 's023342312', 'p_id': 'p02401', 'u_id': 'u344155612', 'date': '1405786541', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', '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(void) {\n\tint a, b;\n\tchar op;\n\twhile(scanf(\"%d %c %d\",&a, &op, &b)!=EOF){\n\t\tif(op=='?'){\n\t\... |
CDSS_281684 | CDSS | #include <stdio.h>
int main(void){
int a, b, c;
scanf("%d%d%d\n", &a, &b, &c);
if(a <= b && b <= c) printf("%d %d %d\n", a, b, c);
else if(a <= c && c <= b) printf("%d %d %d\n", a, c, b);
else if(b <= a && a <= c) printf("%d %d %d\n", b, a, c);
else if(b <= c && c <= a) printf("%d %d %d\n", b, c, a);
... | 600 | memory_bytes | {'s_id': 's668413782', 'p_id': 'p02393', 'u_id': 'u564208050', 'date': '1414453709', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', '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 \nint main(void){\n int a, b, c;\n scanf(\"%d%d%d\\n\", &a, &b, &c);\n \n if(a <= b && b <= c) printf(\"%d %d ... |
CDSS_629025 | CDSS | #include <stdio.h>
int main(){
int a;
scanf ("%d",&a);
if (a<1200){
printf ("ABC");}
else if (a<2800){
printf ("ARC");}
else{
printf ("AGC");}
return 0;
} | 128 | memory_bytes | {'s_id': 's215038594', 'p_id': 'p03288', 'u_id': 'u444555640', 'date': '1540359056', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '160'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(){\nint a;\nscanf (\"%d\",&a);\nif (a<1200){\n printf (\"ABC\");}\nelse if (a<2800){\n printf (\"ARC\");}... |
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 must 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_504099 | CDSS | #include<stdio.h>
int main()
{
long long int a,b,k;
scanf("%lld %lld %lld",&a,&b,&k);
if(k>a){
b=b-(k-a);
a=0;
if(b<0){
b=0;
}
}
else if(k<a){
a=a-k;
b=b;
}
else if(k==a){
a=0;
b=b;
}
printf("%lld %lld"... | 1,708 | memory_bytes | {'s_id': 's137937970', 'p_id': 'p02818', 'u_id': 'u816631826', 'date': '1600580308', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1708', 'code_size': '331'} | [
{
"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,k;\n scanf(\"%lld %lld %lld\",&a,&b,&k);\n if(k>a){\n\n b=b-(k-... |
CDSS_56657 | CDSS | #include<stdio.h>
#include<math.h>
int main(){
int n,i,j,flag;
double xa,ya,ra,xb,rb,yb,m,p,d;
scanf("%d",&n);
while(n--){
scanf("%lf %lf %lf %lf %lf %lf",&xa,&ya,&ra,&xb,&yb,&rb);
flag=(ra>=rb?2:1);
p=fabs(ra-rb);
m=ra+rb;
d=sqrt((xb-xa)*(xb-xa)+(yb-ya)*(yb-ya));
//printf("p=%f,m=%f,d=%f,flag=%d\n",p,... | 620 | memory_bytes | {'s_id': 's358899035', 'p_id': 'p00023', 'u_id': 'u510563501', 'date': '1383905791', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '620', 'code_size': '510'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<math.h>\n\nint main(){\n\tint n,i,j,flag;\n\tdouble xa,ya,ra,xb,rb,yb,m,p,d;\n\tscanf(\"%d\",&n);\n\twhile... |
CDSS_568630 | CDSS | #include<stdio.h>
int main ()
{
int n=10;
long long int r,d,x;
scanf("%lld %lld %lld", &r, &d, &x);
while (n--)
{
x = r*x - d;
printf("%lld\n",x);
}
return 0;
}
| 128 | memory_bytes | {'s_id': 's196257854', 'p_id': 'p03036', 'u_id': 'u976152094', 'date': '1575039690', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '177'} | [
{
"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=10;\n\n\tlong long int r,d,x;\n\n\tscanf(\"%lld %lld %lld\", &r, &d, &x);\n\n\twhile (n--... |
CDSS_414438 | CDSS | #include <stdio.h>
int main(){
int n;
scanf("%d",&n);
switch(n%10){
case 2:
case 4:
case 5:
case 7:
case 9:
printf("hon");
break;
case 0:
case 1:
case 6:
case 8:
printf("pon");
break;
case 3:
printf("bon");
}
} | 1,724 | memory_bytes | {'s_id': 's718187288', 'p_id': 'p02675', 'u_id': 'u731661595', 'date': '1590289725', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '1724', 'code_size': '294'} | [
{
"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;\n \n scanf(\"%d\",&n);\n \n switch(n%10){\n case 2:\n case 4:\n case 5:\n ca... |
CDSS_474244 | CDSS | #define _CRT_SECURE_NO_WARNINGS
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <inttypes.h>
#include <limits.h>
#include <ctype.h>
#include <stdint.h>
#include <string.h>
#include <wchar.h>
#include <math.h>
#define N_MAX (100)
#define P_MAX (100)
#define DP_ARRAY_SIZE (N_MAX * P_MAX / 32 + 1)
... | 256 | memory_bytes | {'s_id': 's520868178', 'p_id': 'p02735', 'u_id': 'u615782628', 'date': '1584839517', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '256', 'code_size': '12013'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#define _CRT_SECURE_NO_WARNINGS\n\n#include <stdbool.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <inttypes.h>\n#include <lim... |
CDSS_623413 | CDSS | #include<stdio.h>
int main()
{
int a,b;
scanf("%d %d", &a,&b);
// 出力
printf("%d\n",a-b+1);
return 0;
} | 128 | memory_bytes | {'s_id': 's968288097', 'p_id': 'p03272', 'u_id': 'u281715712', 'date': '1535771441', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '129'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer 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\n scanf(\"%d %d\", &a,&b);\n\n // 出力\n printf(\"%d\\n\",a-b+1);\n\n retur... |
CDSS_568699 | CDSS | #include <stdio.h>
int r, D, x;
int main(void){
scanf("%d%d%d", &r, &D, &x);
int i = 0;
if(2<=r&&r<=5&&1<=D&&D<=100&&D<=x&&x<=200){
while(i<10){
x=r*x-D;
printf("%d\n",x);
i++;
}
}
return 0;
} | 128 | memory_bytes | {'s_id': 's565402096', 'p_id': 'p03036', 'u_id': 'u542160288', 'date': '1563282297', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '286'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint r, D, x;\n\nint main(void){\n scanf(\"%d%d%d\", &r, &D, &x);\n int i = 0;\n if(2<=r&&r<... |
CDSS_112318 | CDSS | #include <stdio.h>
int main(void)
{
int n,i,sum,hit;
while(scanf("%d", &n), n != 0){
sum = 0;
n /= 4;
for(i = 0; i < n; i++){
scanf("%d", &hit);
sum += hit;
}
printf("%d\n", sum);
}
return(0);
} | 600 | memory_bytes | {'s_id': 's080679925', 'p_id': 'p00627', 'u_id': 'u873749699', 'date': '1412302435', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '232'} | [
{
"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 n,i,sum,hit;\n\t\n\twhile(scanf(\"%d\", &n), n != 0){\n\t\t\n\t\tsum = 0;\n\t\t\n\t\tn... |
CDSS_608759 | CDSS | #include <stdio.h>
int main(void) {
long n,x;
scanf("%ld %ld", &n, &x);
long p[n+1],b[n+1],all[n+1];
p[0] = 1;
b[0] = 0;
all[0] = 1;
for (int i = 1; i <= n; i++) {
p[i] = p[i-1]*2+1;
b[i] = b[i-1]*2+2;
all[i] = p[i]+b[i];
}
long eat = 0;
for (int i = n; i >= 0; i--) {
if (x < all[i... | 128 | memory_bytes | {'s_id': 's199218402', 'p_id': 'p03209', 'u_id': 'u581816556', 'date': '1588378953', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '707'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\n\n long n,x;\n scanf(\"%ld %ld\", &n, &x);\n long p[n+1],b[n+1],all[n+1];\n p[0] = 1;\n b... |
CDSS_128387 | CDSS | #include <stdio.h>
int main(void) {
char S[1024];
int i;
int dir = 0;
int count[4] = {0};
int mikisinn = 0;
if (scanf("%1023s", S) != 1) return 1;
for (i = 0; S[i] != '\0'; i++) {
if (S[i] == 'L') {
dir = (dir + 3) % 4;
if (dir == 0) {
count[0] = count[1] = count[2] = count[3] = 0;
}
} else if ... | 2,112 | memory_bytes | {'s_id': 's123495671', 'p_id': 'p02004', 'u_id': 'u543521645', 'date': '1579539414', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', '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\nint main(void) {\n\tchar S[1024];\n\tint i;\n\tint dir = 0;\n\tint count[4] = {0};\n\tint mikisinn = 0;\n\tif (s... |
CDSS_238450 | CDSS | #include<stdio.h>
int main()
{
int d1[6];
int d2[6];
int m;
int temp;
for(int i = 0; i < 6; i++)
{
scanf("%d", &d1[i]);
}
for(int i = 0; i < 6; i++)
{
scanf("%d", &d2[i]);
}
while(1)
{
while(1)
{
for(int i = 0; i < 6; i++)
{
if(d1[1] == d2[i])
{
... | 2,140 | memory_bytes | {'s_id': 's894265132', 'p_id': 'p02385', 'u_id': 'u975956813', 'date': '1540445541', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2140', 'code_size': '1636'} | [
{
"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 d1[6];\n int d2[6];\n int m;\n int temp;\n\n for(int i = 0; i < 6; i++)\n {\n sc... |
CDSS_509915 | CDSS | #include<stdio.h>
int main()
{
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
if(a+b+c<=21){
printf("win\n");
}else{
printf("bust\n");
}
return 0;
} | 128 | memory_bytes | {'s_id': 's512199166', 'p_id': 'p02835', 'u_id': 'u391170527', 'date': '1575857235', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '148'} | [
{
"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;\nscanf(\"%d %d %d\",&a,&b,&c);\nif(a+b+c<=21){\n printf(\"win\\n\");\n}else{\n prin... |
CDSS_305934 | CDSS | #include <stdio.h>
int main(void) {
int a,b,c;
int i,num= 0;
scanf("%d %d %d", &a, &b, &c);
for(i=a;i <= b;i++){
if(c % i == 0){
num++;
}
}
printf("%d\n",num);
return 0;
} | 596 | memory_bytes | {'s_id': 's199535311', 'p_id': 'p02398', 'u_id': 'u630116972', 'date': '1494309175', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '194'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n \nint main(void) {\n\tint a,b,c;\n\n\tint i,num= 0;\n\tscanf(\"%d %d %d\", &a, &b, &c);\n\n\tfor(i=a;i <= b;i++){... |
CDSS_692876 | CDSS | #define _CRT_SECURE_NO_WARNINGS
#include <limits.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#define true 1
#define false 0
typedef unsigned long long int ulli;
int main() {
int n;
int ans = 0;
int zero = 0, one = 0, two = 0;
int temp = 0;
ulli s[100000];... | 896 | memory_bytes | {'s_id': 's434669026', 'p_id': 'p03639', 'u_id': 'u858196007', 'date': '1512592735', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '14', 'memory': '896', 'code_size': '1155'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#define _CRT_SECURE_NO_WARNINGS\n#include <limits.h>\n#include <math.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\... |
CDSS_620874 | CDSS | #include <stdio.h>
int main(void){
int n;
scanf("%d",&n);
char a[n][12];
for(int i=0;i<n;i++){
for(int j=0;j<12;j++){
a[i][j]='0'; }
}
for(int i=0;i<n;i++){
scanf("%s",a[i]);
}
int b=1;
int x;
for(int i=0;i<n;i++){
for(int j=0;j<n;j++){
x=0;
for(int k=0;k<12;k++){
if(a[i][k]==a[j][k])x++;
... | 128 | memory_bytes | {'s_id': 's390207454', 'p_id': 'p03261', 'u_id': 'u546925116', 'date': '1536878689', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '499'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\n\tint n;\n\tscanf(\"%d\",&n);\n\tchar a[n][12];\n\tfor(int i=0;i<n;i++){\n\t\tfor(int j=0;j<12;j+... |
CDSS_66075 | CDSS | #include <stdio.h>
int main(){
int i, j, sum, prm[1000000], ls[78498];
for(i = 0; i < 1000000; i++) prm[i] = 1;
for(i = 4; i < 1000000; i += 2) prm[i] = 0;
prm[0] = prm[1] = 0;
for(i = 3; i * i < 1000000; i += 2)
if(prm[i])
for(j = i * 2; j < 1000000; j += i) prm[j] = 0;... | 4,808 | memory_bytes | {'s_id': 's141628590', 'p_id': 'p00053', 'u_id': 'u834339402', 'date': '1420042356', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '4808', 'code_size': '571'} | [
{
"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 i, j, sum, prm[1000000], ls[78498];\n\t\n for(i = 0; i < 1000000; i++) prm[i] = 1;\n\t\n... |
CDSS_440470 | CDSS | #include <stdio.h>
int main()
{
int r;
double pi=3.1416,c;
scanf("%d",&r);
c=2*pi*r;
printf("%.2lf\n",c);
return 0;
} | 1,744 | memory_bytes | {'s_id': 's111284948', 'p_id': 'p02705', 'u_id': 'u273985618', 'date': '1587344913', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1744', 'code_size': '142'} | [
{
"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 r;\n double pi=3.1416,c;\n scanf(\"%d\",&r);\n c=2*pi*r;\n printf(\"%.2lf\\n\",... |
CDSS_709684 | CDSS | #include<stdio.h>
int main(void)
{
int fund, mod, num, i, j=1;
scanf("%d%d%d", &fund, &mod, &num);
for(i=1; i<=mod; i++)
{
if((fund*i)%mod==num) j=0;
}
if(j==0) printf("YES");
else printf("NO");
return 0;
} | 128 | memory_bytes | {'s_id': 's570223944', 'p_id': 'p03730', 'u_id': 'u817824419', 'date': '1520478955', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '226'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\n int fund, mod, num, i, j=1;\n scanf(\"%d%d%d\", &fund, &mod, &num);\n for(i=1; i<=mod; i++)\... |
CDSS_168503 | CDSS | #include<stdio.h>
int BubbleSort(int *A,int length) {
int i, j, tmp, cnt=0;
for(i = 0; i < length; i++) {
for(j = length-1; j > i; j--) {
if(A[j] < A[j-1]) {
tmp = A[j];
A[j] = A[j-1];
A[j-1] = tmp;
cnt++;
}
}
}
return cnt;
}
main()
{
int i;
int n;
int Arr[100];
int cnt = 0;
... | 600 | memory_bytes | {'s_id': 's144917091', 'p_id': 'p02259', 'u_id': 'u284228152', 'date': '1397753089', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', '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\nint BubbleSort(int *A,int length) {\n\n int i, j, tmp, cnt=0;\n for(i = 0; i < length; i++) {\n for(j = leng... |
CDSS_541640 | CDSS | #include<stdio.h>
#include<math.h>
#include<stdlib.h>
int main(){
int A,B,C;
scanf("%d %d %d",&A,&B,&C);
if(A-B>=C){
printf("0\n");
}
else{
C=C-(A-B);
printf("%d\n",C);
}
return 0;
} | 128 | memory_bytes | {'s_id': 's221105190', 'p_id': 'p02951', 'u_id': 'u348231925', 'date': '1564967154', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '234'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<math.h>\n#include<stdlib.h>\nint main(){\n int A,B,C;\n scanf(\"%d %d %d\",&A,&B,&C);\n if(A-B>=C... |
CDSS_743066 | CDSS | #include <stdio.h>
#include <string.h>
int main(){
char input[100001];
int i,len;
scanf("%s",input);
len=strlen(input);
for(i=0;i<(len-1);i++){
if(input[i]==input[i+1]){
printf("%d %d",i+1,i+2);
return 0;
}
}
for(i=0;i<(len-2);i++){
if(input[i]==input[i+2]){
printf(... | 256 | memory_bytes | {'s_id': 's471069777', 'p_id': 'p04032', 'u_id': 'u731661595', 'date': '1592078633', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '256', 'code_size': '387'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\nint main(){\n char input[100001];\n int i,len;\n \n scanf(\"%s\",input);\n len=strlen(... |
CDSS_28969 | CDSS | #include <stdio.h>
int main(void) {
int a,b,sum,count;
while(scanf("%d %d", &a,&b)!=EOF){
sum = a + b;
count=0;
while(sum!=0)
{
sum=sum/10;
count++;
}
printf("%d\n",count);
}
return 0;
} | 600 | memory_bytes | {'s_id': 's801818709', 'p_id': 'p00002', 'u_id': 'u011621222', 'date': '1397764671', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '225'} | [
{
"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,sum,count;\n \n while(scanf(\"%d %d\", &a,&b)!=EOF){\n \t\tsum = a + b;\n \t\tco... |
CDSS_548466 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <math.h>
int N;
int *A;
int main(int argc, char *argv[]) {
int sr;
int i;
int ret;
int em, em_s, ei;
int emax(int *, int *, int *);
sr=scanf("%d", &N);
A = malloc(sizeof(int)*N);
for (i=0; i<N; i++) {
sr=scanf("%d", A+i);
}
em = emax(A, &em_s, &ei);
for... | 2,304 | memory_bytes | {'s_id': 's584484269', 'p_id': 'p02971', 'u_id': 'u049652688', 'date': '1563724153', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '39', 'memory': '2304', 'code_size': '651'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <math.h>\n\nint N;\nint *A;\n\nint main(int argc, char *argv[]) {\n\tint sr;\n\tint ... |
CDSS_125593 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define MOD_BY 1000000009ULL
typedef unsigned long long ull;
typedef struct {
int x;
ull y;
} xy_t;
ull matrix[64][75][75];
void matrix_mul(ull in1[75][75],ull in2[75][75],ull out[75][75],int n) {
ull result[75][75];
int i,j,k;
for(i=0;i<n;i++) {
fo... | 3,324 | memory_bytes | {'s_id': 's429598632', 'p_id': 'p01511', 'u_id': 'u543521645', 'date': '1334478389', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5730', 'memory': '3324', 'code_size': '2249'} | [
{
"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#define MOD_BY 1000000009ULL\n\ntypedef unsigned long long ull;\n\ntyp... |
CDSS_76416 | CDSS | #include <stdio.h>
int main(void)
{
int n;
int data[11][11] = {0};
int h, w;
while (scanf("%d", &n)){
if (n == 0){
break;
}
for (h = 0; h < n; h++){
for (w = 0; w < n; w++){
scanf("%d", &data[h][w]);
data[h][n] += data[h][w];
data[n][w] += data[h][w];
}
data[n][n] += data[h][n];... | 616 | memory_bytes | {'s_id': 's548133148', 'p_id': 'p00102', 'u_id': 'u957294880', 'date': '1453975413', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '616', '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>\n\nint main(void)\n{\n\tint n;\n\tint data[11][11] = {0};\n\tint h, w;\n\t\n\twhile (scanf(\"%d\", &n)){\n\t\tif (n... |
CDSS_652481 | CDSS | #include<stdio.h>
int main(void)
{
int N,D,X,A[105];
int i,j,k=0;
scanf("%d",&N); // menber
scanf("%d%d",&D,&X); // days rest
for(i=0;i<N;i++)
scanf("%d",&A[i]); // number
for(i=0;i<N;i++){
for(j=1;j<100;j++){
if(j*A[i]+1<=D) k++;
else break;
}
... | 128 | memory_bytes | {'s_id': 's122360936', 'p_id': 'p03400', 'u_id': 'u670199931', 'date': '1591744047', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '375'} | [
{
"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 {\n int N,D,X,A[105];\n int i,j,k=0;\n\n scanf(\"%d\",&N); // menber\n scanf(\"%... |
CDSS_268529 | CDSS | #include <stdio.h>
int main(void){
int a,b;
scanf("%d %d",&a,&b);
int s=a-b;
if(s>0){
printf("a > b\n");
}
else if(s<0){
printf("a < b\n");
}
else{
printf("a == b\n");
}
return 0;
} | 580 | memory_bytes | {'s_id': 's593867807', 'p_id': 'p02391', 'u_id': 'u492087359', 'date': '1468066032', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', 'code_size': '185'} | [
{
"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\nint a,b;\nscanf(\"%d %d\",&a,&b);\n\nint s=a-b;\n\nif(s>0){\nprintf(\"a > b\\n\");\n}\n\nelse i... |
CDSS_174077 | CDSS | #include<stdio.h>
typedef struct{
int k;
char mozi;
}card;
int main(){
int m,min;
card num[36],suit[36],temp;
scanf("%d",&m);
int i,j;
for(i=0;i<m;i++){
scanf(" %c%d",&num[i].mozi,&num[i].k);
suit[i].mozi=num[i].mozi;
suit[i].k=num[i].k;
}
for(i=0;i<m;i++){
for(j=m-1;j>i;j--){
if(num[j].k<num[j-1].k){
temp=num[j]... | 1,784 | memory_bytes | {'s_id': 's076086024', 'p_id': 'p02261', 'u_id': 'u648209196', 'date': '1510712635', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1784', 'code_size': '839'} | [
{
"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 struct{\nint k;\nchar mozi;\n}card;\n \nint main(){\nint m,min;\ncard num[36],suit[36],temp;\nscanf(\"%d\... |
CDSS_340636 | CDSS | #include<stdio.h>
int main(void){
int n,i,x;
scanf("%d\n",&n);
for(i=1;i<=n;i++){
x=i;
if(x%3==0){
printf(" %d",i);
continue;
}
if(x%10==3){
printf(" %d",i);
continue;
}
for(;;){
x/=10;
if... | 2,100 | memory_bytes | {'s_id': 's602149623', 'p_id': 'p02406', 'u_id': 'u477034604', 'date': '1588934941', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2100', '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>\nint main(void){\n int n,i,x;\n scanf(\"%d\\n\",&n);\n for(i=1;i<=n;i++){\n x=i;\n if(x%3==0)... |
CDSS_633705 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<math.h>
#define MAX(p,q) ((p>q)?(p):(q))
#define MIN(p,q) ((p<q)?(p):(q))
#define REP(i,n) for(i=0;i<n;i++)
int gcd(int a,int b);
int main(void)
{
int n;
scanf("%d",&n);
int a[100];
int i;
int min=10000000000,max=0;
REP(i,n)
{
scan... | 128 | memory_bytes | {'s_id': 's751074994', 'p_id': 'p03308', 'u_id': 'u779216084', 'date': '1559503771', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '629'} | [
{
"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 MAX(p,q) ((p>q)?(p):(q))\n#define MIN(p,q) ((p<... |
CDSS_408296 | CDSS | #include <stdio.h>
#include <math.h>
int main(void){
int n;
scanf("%d",&n);
long int a[n];
int i, j=0;
double m=0, k=0;
long int ans=1;
for(i=0; i<n; i++){
scanf("%ld", &a[i]);
if(a[i]==0){
k++;
}
m+=log10(a[i]);
ans*=a[i];
}
if(k!=0){
printf("0\n");
return 0;
... | 3,152 | memory_bytes | {'s_id': 's099806086', 'p_id': 'p02658', 'u_id': 'u419845534', 'date': '1592639459', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '33', 'memory': '3152', 'code_size': '446'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n\nint main(void){\n int n;\n scanf(\"%d\",&n);\n \n long int a[n];\n int i, j=0;\n double... |
CDSS_344026 | CDSS | #include<stdio.h>
int main()
{
int ara[10000],i,n;
scanf("%d",&n);
for(i=0;i<n;i++)
{
scanf("%d",&ara[i]);
}
for(i=n-1;i>=0;i--)
{
printf("%d",ara[i]);
if(i>0)
{
printf(" ");
}
}
printf("\n");
return 0;
}
| 2,092 | memory_bytes | {'s_id': 's076450298', 'p_id': 'p02407', 'u_id': 'u621098854', 'date': '1573291752', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2092', 'code_size': '298'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n int ara[10000],i,n;\n scanf(\"%d\",&n);\n for(i=0;i<n;i++)\n {\n scanf(\"%d\",&a... |
CDSS_399651 | CDSS | #include <stdio.h>
int main()
{
int n,k,p[10000];
int i,j,t;
scanf("%d %d",&n,&k);
for(i = 0;i <n;i++)
scanf("%d",&p[i]);
for(i=0;i<n-1;i++)
for(j=i+1;j <n;j++)
{
if(p[i] > p[j])
{
t = p[i];
p[i] = p[j];
... | 1,720 | memory_bytes | {'s_id': 's819701617', 'p_id': 'p02628', 'u_id': 'u085526499', 'date': '1593038181', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '7', 'memory': '1720', 'code_size': '459'} | [
{
"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 n,k,p[10000];\n\n int i,j,t;\n\n scanf(\"%d %d\",&n,&k);\n\n for(i = 0;i <n;i++)... |
CDSS_548802 | CDSS | #include <stdio.h>
int main(void){
// Your code here!
int n;
int a[200000];
int fst=0;
int scn=0;
int fn=0;
int sn=0;
scanf("%d",&n);
for(int i=0;i<n;i++){
scanf("%d",&a[i]);
if(a[i]>fst){
scn=fst;
sn=fn;
fst=a[i];
fn=i;... | 2,304 | memory_bytes | {'s_id': 's366999855', 'p_id': 'p02971', 'u_id': 'u944651767', 'date': '1563671809', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '39', 'memory': '2304', 'code_size': '565'} | [
{
"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 // Your code here!\n int n;\n int a[200000];\n int fst=0;\n int scn=0;\n int f... |
CDSS_517705 | CDSS | #include<stdio.h>
int main(){
int a=0,b=0;
scanf("%d%d",&a,&b);
if(a<10&&b<10){
printf("%d",a*b);
}
else{
printf("-1");
}
return 0;
} | 128 | memory_bytes | {'s_id': 's565047982', 'p_id': 'p02879', 'u_id': 'u018679195', 'date': '1572479728', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '156'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n\tint a=0,b=0;\n\t\n\tscanf(\"%d%d\",&a,&b);\n\tif(a<10&&b<10){\n\t\tprintf(\"%d\",a*b);\n\t\t\n\t}\... |
CDSS_357910 | CDSS | #include<stdio.h>
int main(void){
int r,c,i,j;
int sheet[101][101];
scanf("%d %d\n",&r ,&c);
for(i=0;i <= r;i++){
for(j=0;j <= c;j++){
sheet[i][j]=0;
}
}
for(i=0;i < r;i++){
for(j=0;j < c;j++){
if (j == c-1){
scanf("%d\n",&sheet[i][j]);
}else{
scanf("%d ",&sheet[i][j]);
}
}
}
for(i=0;i < r;i++){
for(j=0;j < c;j++){
she... | 640 | memory_bytes | {'s_id': 's588556899', 'p_id': 'p02413', 'u_id': 'u588491011', 'date': '1495257167', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '640', 'code_size': '627'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\nint r,c,i,j;\nint sheet[101][101];\nscanf(\"%d %d\\n\",&r ,&c);\nfor(i=0;i <= r;i++){\nfor(j=0;j <... |
CDSS_87228 | CDSS | a[6],x;main(i,j){for(;~j;++i)i<6?x|=1<<(scanf("%d",&j),a[i]=--j):i>10?x=i=0:printf("%d\n",x-(x&-x)&&x-7?j=a[i-5],x&2?x&1?j+1:j:j?1:2:3);} | 600 | memory_bytes | {'s_id': 's801807965', 'p_id': 'p00205', 'u_id': 'u647134562', 'date': '1368723228', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '137'} | [
{
"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:\na[6],x;main(i,j){for(;~j;++i)i<6?x|=1<<(scanf(\"%d\",&j),a[i]=--j):i>10?x=i=0:printf(\"%d\\n\",x-(x&-x)&&x-7?j=a[i-5],x&2?x&1?j+1:j:j?... |
CDSS_567238 | CDSS | #include<stdio.h>
#include<string.h>
int main(){
int n,i,j,d[100],t,x[100];
char s[100][100];
scanf("%d",&n);
for(i=0;i<n;++i){
scanf("%s %d",s[i],&d[i]);
for(j=i;j>0;--j){
t=strcmp(s[i],s[x[j-1]]);
if(t<0 || (t==0&&d[i]>d[x[j-1]])){
x[j] = x[j-1]... | 128 | memory_bytes | {'s_id': 's593218667', 'p_id': 'p03030', 'u_id': 'u605402887', 'date': '1558980598', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '484'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\n\nint main(){\n int n,i,j,d[100],t,x[100];\n char s[100][100];\n scanf(\"%d\",&n);\n ... |
CDSS_393348 | CDSS | #include<stdio.h>
int main(){
int h, w, k;
scanf("%d%d%d",&h,&w,&k);
char c[h][w];
for(int i = 0; i < h; i++)
scanf("%s",c[i]);
int ans = 0;
for(int i = 0; i < (1 << h); i++){
for(int j = 0; j < (1 << w); j++){
int b = 0;
for(int l = 0; l < h; l++){
... | 1,732 | memory_bytes | {'s_id': 's787215011', 'p_id': 'p02614', 'u_id': 'u188486233', 'date': '1594016617', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1732', '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>\nint main(){\n int h, w, k;\n scanf(\"%d%d%d\",&h,&w,&k);\n char c[h][w];\n for(int i = 0; i < h; i++)\n... |
CDSS_675184 | CDSS | #include <stdio.h>
int main(){
int a;
scanf("%d",&a);
((a/10)%111==0 || (a%1000)%111==0)?puts("Yes"):puts("No");
return 0;
} | 128 | memory_bytes | {'s_id': 's395097660', 'p_id': 'p03543', 'u_id': 'u855016901', 'date': '1561408238', '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 must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(){\n int a;\n scanf(\"%d\",&a);\n ((a/10)%111==0 || (a%1000)%111==0)?puts(\"Yes\"):puts(\"No\");\n re... |
CDSS_459352 | CDSS | #include<stdio.h>
int min(int a,int b){
if(a>b) return b;
else return a;
}
int gcd(int a,int b){
if(a>=b){
if(b == 1) return 1;
if(a%b == 0) return b;
else
return gcd(b,a%b);
}
else{
if(a == 1) return 1;
if(b%a == 0) return a;
else
... | 1,732 | memory_bytes | {'s_id': 's652057903', 'p_id': 'p02713', 'u_id': 'u270825463', 'date': '1586742067', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '134', 'memory': '1732', 'code_size': '630'} | [
{
"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 min(int a,int b){\n if(a>b) return b;\n else return a;\n}\n\nint gcd(int a,int b){\n if(a>=b){\n ... |
CDSS_680316 | CDSS | #include<stdio.h>
int main(void){
int n,k;
int num=1;
scanf("%d %d",&n,&k);
for(int i=0;i<n;i++){
if(num*2<num+k){
num*=2;
}else{
num+=k;
}
}
printf("%d\n",num);
return 0;
} | 128 | memory_bytes | {'s_id': 's547395378', 'p_id': 'p03564', 'u_id': 'u716903426', 'date': '1588482609', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '211'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n int n,k;\n int num=1;\n scanf(\"%d %d\",&n,&k);\n for(int i=0;i<n;i++){\n if(num*2<num+k){... |
CDSS_345189 | CDSS | #include<stdio.h>
int main()
{
int t[4][14];
int n, i,j,c;
char m, d;
for(i=0; i < 4; i++){
for(j=0; j < 14; j++){
t[i][j]=0;
}
}
scanf("%d", &c);
for(i = 0; i < c; i++){
scanf("%c", &d);
scanf("%c %d", &m, &n);
if(m == 'S'){
t[0][n] = 1;
}
else if(m == 'H'){
... | 596 | memory_bytes | {'s_id': 's388230811', 'p_id': 'p02408', 'u_id': 'u962041986', 'date': '1461153968', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '793'} | [
{
"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 t[4][14];\n int n, i,j,c;\n char m, d;\n for(i=0; i < 4; i++){\n for(j=0; j < 14; j++... |
CDSS_239067 | CDSS | #include<stdio.h>
struct dice{
int a[6];
};
struct dice dice1;
struct dice dice2;
void tate(){
int cmp=dice2.a[0];
dice2.a[0]=dice2.a[4];
dice2.a[4]=dice2.a[5];
dice2.a[5]=dice2.a[1];
dice2.a[1]=cmp;
}
void yoko(){
... | 2,112 | memory_bytes | {'s_id': 's264489284', 'p_id': 'p02385', 'u_id': 'u800408401', 'date': '1533654321', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '1202'} | [
{
"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 dice{\n int a[6];\n };\nstruct dice dice1;\nstruct dice dice2;\n \nvoid tate(){\n ... |
CDSS_658188 | CDSS | #define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main(void){
int N,A;
int test = 0;
scanf("%d%d",&N,&A);
test = N % 500 ;
test = test - A;
if (test <= 0) {
printf("Yes");
} else {
printf("No");
}
} | 128 | memory_bytes | {'s_id': 's364931967', 'p_id': 'p03433', 'u_id': 'u163626492', 'date': '1528662902', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '217'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#define _CRT_SECURE_NO_WARNINGS\n\n#include <stdio.h>\n\nint main(void){\nint N,A; \nint test = 0;\nscanf(\"%d%d\",&N,&A);\n\ntest = N... |
CDSS_191220 | CDSS | #include<stdio.h>
#define N 10000
int main(){
int S[N];
int n,T,i,q,result;
int sum = 0;
scanf("%d",&n);
for(i=0; i<n; i++){
scanf("%d",&S[i]);
}
scanf("%d",&q);
for(i=0; i<q; i++){
scanf("%d",&T);
result = search(S, n, T);
if(result != -1){
sum++;
}
}
printf("%d\n",s... | 2,048 | memory_bytes | {'s_id': 's431695813', 'p_id': 'p02267', 'u_id': 'u320661612', 'date': '1544677932', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2048', 'code_size': '485'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#define N 10000\n\n\n\nint main(){\n int S[N];\n int n,T,i,q,result;\n int sum = 0;\n\n scanf(\"%d\",&n);\n fo... |
CDSS_334684 | CDSS | #include<stdio.h>
int main(){
int high[100];
int width[100];
int i;
int j;
int count=0;
int z;
while(1){
scanf("%d %d",&high[count],&width[count]);
if(high[count] == 0 && width[count]==0) break;
count++;
}
for(z=0;z<count;z++){
for(i=0;i<high[z];i++){
for(j=0;j<width[z];j++){
if(... | 2,056 | memory_bytes | {'s_id': 's718407181', 'p_id': 'p02404', 'u_id': 'u081512179', 'date': '1529975218', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2056', 'code_size': '502'} | [
{
"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 high[100];\n int width[100];\n int i;\n int j;\n int count=0;\n int z;\n\n \n while(1){\n... |
CDSS_637926 | CDSS | #include<stdio.h>
#include<math.h>
int main(void){
long long int d,n;
scanf("%lld %lld",&d,&n);
if(n==100){n++;}
printf("%lld",n*(long long int)pow(100,d));
return 0;
} | 128 | memory_bytes | {'s_id': 's924271084', 'p_id': 'p03324', 'u_id': 'u075447091', 'date': '1588878650', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '173'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<math.h>\nint main(void){\n\tlong long int d,n;\n\tscanf(\"%lld %lld\",&d,&n);\n\tif(n==100){n++;}\n\tprint... |
CDSS_123790 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
#define MN 205
#define INF 1<<25
#define init(a) memset(a,0x0f,sizeof(a))
#define min(a,b) (a<b?a:b)
int N,M,R,de[1005],S[MN][MN],L[MN][MN],i,j,k,x,y,s;
int dp[1005][205];
int main()
{
for(;scanf("%d%d",&N,&M),N;)
{
init(S);init(L);init(dp);
for(i=0;i<N;i++... | 1,744 | memory_bytes | {'s_id': 's750218888', 'p_id': 'p01317', 'u_id': 'u363039534', 'date': '1404263743', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '420', 'memory': '1744', 'code_size': '1027'} | [
{
"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#define MN 205\n#define INF 1<<25\n#define init(a) memset(a,0x0f,sizeof(a))... |
CDSS_77790 | CDSS | #include<stdio.h>
#include<math.h>
int main(){
int a,b,c,d,e,g,i;
long int f;
while(1){
scanf("%d %d %d\n",&a,&b,&c);
if(a==0 && b==0 && c==0){
break;
}
else{
if(a>b){
e=a;
a=b;
b=e;
}
if(b>c){
e=b;
b=c;
c=e;
}
if(a>b){
e=a;
a=b;
b=e;
}
f=a*a+b*b;
scanf("%d\n",&g);
for(i=0;i<g;i++){
scanf("%d\n",&d);
if(d>sqrt(f)/2){
p... | 1,996 | memory_bytes | {'s_id': 's765204918', 'p_id': 'p00107', 'u_id': 'u222399748', 'date': '1541681804', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1996', 'code_size': '381'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<math.h>\nint main(){\nint a,b,c,d,e,g,i;\nlong int f;\nwhile(1){\nscanf(\"%d %d %d\\n\",&a,&b,&c);\nif(a==... |
CDSS_726624 | CDSS | #include <stdio.h>
int main(void)
{
char c;
long long int a,b;
scanf("%d %c %d",&a,&c,&b);
if(c=='+'){
printf("%d\n",a+b);
} else{
printf("%d\n",a-b);
}
return 0;
} | 128 | memory_bytes | {'s_id': 's415996609', 'p_id': 'p03844', 'u_id': 'u630250284', 'date': '1486683454', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '182'} | [
{
"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\t\n\tint main(void)\n{\n\tchar c;\n\tlong long int a,b;\n\t\n\tscanf(\"%d %c %d\",&a,&c,&b);\n\t\n\tif(c=='+'){\n... |
CDSS_307480 | CDSS | #include <stdio.h>
int main()
{
int a,b,c,i,count;
count = 0;
scanf("%d %d %d", &a,&b,&c);
for(i=a;i<=b;i++) {
if(c%i == 0) {
count = count + 1;
}
}
printf("%d\n", count);
return(0);
}
| 2,112 | memory_bytes | {'s_id': 's999886784', 'p_id': 'p02398', 'u_id': 'u318645613', 'date': '1553319802', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '244'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main()\n{\n int a,b,c,i,count;\n count = 0;\n scanf(\"%d %d %d\", &a,&b,&c);\n\n for(i=a;i<=b;i+... |
CDSS_588100 | CDSS | #include <stdio.h>
#include <string.h>
int main(void){
int N,Q;
scanf("%d%d",&N,&Q);
int sum[N+1];
char S[100000];
scanf("%s",S);
for(int i = 0;i <= N;i++){
sum[i] = 0;
}
int flag = 0;
for(int i = 0;i < strlen(S);i++){
if(S[i] == 'A'){
flag = 1;
}else if(S[i] == 'C' && flag == 1)... | 1,280 | memory_bytes | {'s_id': 's230768681', 'p_id': 'p03087', 'u_id': 'u812973725', 'date': '1553460003', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '29', 'memory': '1280', 'code_size': '608'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\nint main(void){\n int N,Q;\n scanf(\"%d%d\",&N,&Q);\n\n int sum[N+1];\n char S[100000];... |
CDSS_176914 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
#define MAX 100
void initialize(void);
int Empty(int);
int isFull(int);
void push(int, int*);
int pop(void);
int top=0, S[100];
int main(){
int x;
char s[100];
while( scanf("%s", s) != EOF ){
if ( s[0] == '+' ){
S[top-1] += pop();
} else if (... | 548 | memory_bytes | {'s_id': 's611408608', 'p_id': 'p02263', 'u_id': 'u153802040', 'date': '1461204563', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '548', 'code_size': '750'} | [
{
"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#define MAX 100\nvoid initialize(void);\nint Empty(int);\nint isFull(int);\... |
CDSS_486202 | CDSS | #include <stdio.h>
const int mod = 1000000007;
int pow(int a, int n);
// aの逆元の計算
int inv(int a) {
return pow(a, mod - 2);
}
int add(int a, int b) {
a %= mod;
b %= mod;
return (a + b) % mod;
}
int sub(int a, int b) {
a %= mod;
b %= mod;
return (a + mod - b) % mod;
}
int mul(int a, int b) {
... | 256 | memory_bytes | {'s_id': 's096880951', 'p_id': 'p02768', 'u_id': 'u426683236', 'date': '1582642037', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '256', 'code_size': '1407'} | [
{
"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>\nconst int mod = 1000000007;\nint pow(int a, int n);\n// aの逆元の計算\nint inv(int a) {\n return pow(a, mod - 2);\n}\... |
CDSS_111040 | CDSS | #include <stdio.h>
#include <string.h>
int shelf_max;
int result[10001][3];
char map[40004];
char map2[10001];
/*prev now status*/
const int costs[3][3][4]={
{
{0,1,3,3},
{1,1,2,2},
{2,2,2,2}
},{
{1,1,2,2},
{0,1,1,2},
{1,2,1,2}
},{
{2,2,2,2},
{1,2,1,2},
{0,3,1,3}
}
};
int main(void) {
int case... | 0 | memory_bytes | {'s_id': 's350178940', 'p_id': 'p00588', 'u_id': 'u543521645', 'date': '1333440593', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '1590'} | [
{
"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 shelf_max;\nint result[10001][3];\nchar map[40004];\nchar map2[10001];\n\n/*prev now st... |
CDSS_227499 | CDSS | #include <stdio.h>
int main(){
int n,i,a[100001];
scanf("%d",&n);
for(i=1;i<=n;i++){
scanf("%d",&a[i]);
}
for(i=1;i<=n;i++){
printf("node %d: key = %d, ",i,a[i]);
if((i/2)>=1){
printf("parent key = %d, ",a[i/2]);
}
if((2*i)<=n){
printf("left key = %d, ",a[2*i]);
}
if... | 2,044 | memory_bytes | {'s_id': 's598427791', 'p_id': 'p02287', 'u_id': 'u474504093', 'date': '1579160524', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2044', 'code_size': '423'} | [
{
"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,i,a[100001];\n\n scanf(\"%d\",&n);\n for(i=1;i<=n;i++){\n scanf(\"%d\",&a[i]);\n }\n\... |
CDSS_224561 | CDSS | #include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
typedef struct binary_search_tree_t *binary_search_tree_t;
typedef void (*binary_search_tree_callback_t)(int64_t);
extern binary_search_tree_t binary_search_tree_create(void);
extern void binary_search_tree_destroy(binary_search_tree_t t);
extern void binary_... | 19,368 | memory_bytes | {'s_id': 's703327854', 'p_id': 'p02285', 'u_id': 'u827214117', 'date': '1496336651', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '410', 'memory': '19368', 'code_size': '8011'} | [
{
"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 <stdbool.h>\n#include <stdint.h>\n#include <stdio.h>\n\ntypedef struct binary_search_tree_t *binary_search_tree_t;\ntypedef v... |
CDSS_693927 | CDSS | //
// main.c
// procon
//
// Created by Lee, Chanyeong | Naru | MSDD on 2017. 10. 16..
// Copyright © 2017년 Lee, Chanyeong | Naru | MSDD. All rights reserved.
//
#include <stdio.h>
int main(int argc, const char * argv[]) {
// insert code here...
int a;
scanf("%d", &a);
// printf("%d", a);
int c... | 128 | memory_bytes | {'s_id': 's593351396', 'p_id': 'p03644', 'u_id': 'u486342718', 'date': '1510704282', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '473'} | [
{
"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//\n// main.c\n// procon\n//\n// Created by Lee, Chanyeong | Naru | MSDD on 2017. 10. 16..\n// Copyright © 2017년 Lee, Chanyeong | ... |
CDSS_46569 | CDSS | #include <stdio.h>
int main()
{
int ans=0;
float x1,y1,x2,y2,x3,y3,x,y;
for(;~scanf("%f%f%f%f%f%f%f%f",&x1,&y1,&x2,&y2,&x3,&y3,&x,&y);)
{
ans=0;
if(((x2-x1)*(y-y1)-(y2-y1)*(x-x1))<0)
ans--;
else
ans++;
if(((x3-x2)*(y-y2)-(y3-y2)*(x-x2))<0)
ans--;
else
ans++;
if(... | 0 | memory_bytes | {'s_id': 's153274017', 'p_id': 'p00012', 'u_id': 'u752673456', 'date': '1341301254', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '480'} | [
{
"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 ans=0;\n float x1,y1,x2,y2,x3,y3,x,y;\n for(;~scanf(\"%f%f%f%f%f%f%f%f\",&x1,&y1,&x2,&y2,&x... |
CDSS_247535 | CDSS | #include<stdio.h>
int main()
{
int x;
scanf("%d", &x);
printf("%d\n", x*x*x);
return 0;
}
| 2,032 | memory_bytes | {'s_id': 's744570794', 'p_id': 'p02388', 'u_id': 'u324261218', 'date': '1528267368', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2032', 'code_size': '110'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main()\n{\n int x;\n scanf(\"%d\", &x);\n\n printf(\"%d\\n\", x*x*x);\n\n return 0;\n}\n\n\nPredi... |
CDSS_686936 | CDSS | #include <stdio.h>
#include <string.h>
int main(){
char s[100005], v[100005];
int b = 0;
scanf("%s", s);
int a = strlen(s);
for(int j = 0; j < a; ++j){
if (j%2 == 0){
v[b] = s[j];
b += 1;
}
}
printf("%s\n", v);
return 0;
} | 384 | memory_bytes | {'s_id': 's461433362', 'p_id': 'p03610', 'u_id': 'u234128291', 'date': '1577808758', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '384', 'code_size': '262'} | [
{
"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[100005], v[100005];\n int b = 0;\n scanf(\"%s\", s);\n\n int a = s... |
CDSS_496137 | CDSS | //set many funcs template
//Ver.20190820
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<stdbool.h>
#include<time.h>
#include<assert.h>
#define inf 1072114514
#define llinf 4154118101919364364
#define mod 1000000007
#define pi 3.1415926535897932384
int max(int a,int b){if(a>b){return a;}return b;}
int... | 256 | memory_bytes | {'s_id': 's211597531', 'p_id': 'p02787', 'u_id': 'u721060623', 'date': '1580070327', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '28', 'memory': '256', 'code_size': '5519'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n//set many funcs template\n//Ver.20190820\n#include<stdio.h>\n#include<string.h>\n#include<stdlib.h>\n#include<stdbool.h>\n#include<ti... |
CDSS_39414 | CDSS | #include <stdio.h>
int main(void)
{
int n;
int re = 100000;
int i;
scanf("%d", &n);
for (i = 0; i < n; i++){
re *= 1.05;
// printf("%d\n", re);
re = (re + 999) / 1000 * 1000;
}
printf("%d\n", re);
return (0);
} | 592 | memory_bytes | {'s_id': 's605096661', 'p_id': 'p00007', 'u_id': 'u864079743', 'date': '1410657363', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', 'code_size': '228'} | [
{
"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 n;\n\tint re = 100000;\n\tint i;\n\t\n\tscanf(\"%d\", &n);\n\tfor (i = 0; i < n; i++){\... |
CDSS_700527 | CDSS | #include<stdio.h>
#include<stdlib.h>
typedef long long int int64;
#define POS(i,j) ((i)*W+(j))
void run(void){
int H,W,h,w;
scanf("%d%d%d%d",&H,&W,&h,&w);
if(H%h==0 && W%w==0){
printf("No\n");
return;
}
int *b=(int *)calloc(H*W,sizeof(int));
const int m=(1000000000-1)/(h*w-1);
int64 sum=0;
in... | 3,840 | memory_bytes | {'s_id': 's851693506', 'p_id': 'p03689', 'u_id': 'u425248533', 'date': '1539472135', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '25', 'memory': '3840', 'code_size': '674'} | [
{
"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 long long int int64;\n\n#define POS(i,j) ((i)*W+(j))\n\nvoid run(void){\n int H,W,h,... |
CDSS_490581 | CDSS | #include<stdio.h>
#include<string.h>
int main(void)
{
int i,n,j;
char s[100];
scanf("%s",s);
n=strlen(s);
for (i=0;i<n;i++)
printf("x");
printf("\n");
return 0;
}
| 128 | memory_bytes | {'s_id': 's856949753', 'p_id': 'p02778', 'u_id': 'u916239077', 'date': '1587666754', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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#include<string.h>\nint main(void)\n{\n int i,n,j;\n char s[100];\n\n scanf(\"%s\",s);\n n=strlen(s);\n for (i... |
CDSS_33925 | CDSS | #include <stdio.h>
int main(int argc, const char * argv[])
{
double ax, by, c, dx, ey, f;
double x, y;
while (scanf("%lf %lf %lf %lf %lf %lf", &ax, &by, &c, &dx, &ey, &f) != EOF) {
y = (c * dx - ax * f) / (by * dx - ax * ey);
x = (c - by * y) / ax;
printf("%.3lf %.3lf\n", x, y... | 652 | memory_bytes | {'s_id': 's114896298', 'p_id': 'p00004', 'u_id': 'u493797593', 'date': '1354712734', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '652', 'code_size': '349'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(int argc, const char * argv[])\n{\n\n double ax, by, c, dx, ey, f;\n double x, y;\n \n whil... |
CDSS_459767 | CDSS | #include<stdio.h>
int gcd(int n, int m){
int r;
if (n > m){
int t = m;
m = n;
n = t;
}
while ((r = m % n) != 0){
m = n;
n = r;
}
return n;
}
int main(void){
int K,i,j,k;
int ans = 0;
scanf("%d",&K);
for(i = 1;i <= K;i++){
for(j ... | 1,728 | memory_bytes | {'s_id': 's562188972', 'p_id': 'p02713', 'u_id': 'u045767587', 'date': '1586740552', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '165', 'memory': '1728', 'code_size': '482'} | [
{
"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 gcd(int n, int m){\n int r;\n if (n > m){\n int t = m;\n m = n;\n n = t;\n }\n ... |
CDSS_567014 | CDSS | #include <stdio.h>
#include <stdlib.h>//random,NULL
#include <string.h>
#include <time.h>
#include <unistd.h>//sleep()
#include <math.h>
#include <stdbool.h>
#define rep(i,n) for(int i=0; i<((int)n); i++)
#define REP(i,n) for(int i=0; i<=((int)n); i++)
#define srep(i,a,n) for(int i=a; i<((int)n); i++)
#define SREP(i,a... | 128 | memory_bytes | {'s_id': 's018187814', 'p_id': 'p03029', 'u_id': 'u885352715', 'date': '1558918919', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '639'} | [
{
"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>//random,NULL\n#include <string.h>\n#include <time.h>\n#include <unistd.h>//sleep()\n#include <... |
CDSS_320596 | CDSS | #include<stdio.h>
int main(void){
while(1){
int a, b;
char op;
scanf("%d %c %d", &a, &op, &b);
if(op=='?') break;
if(op=='+') printf("%d\n", a+b);
if(op=='-') printf("%d\n", a-b);
if(op=='*') printf(... | 2,116 | memory_bytes | {'s_id': 's066287028', 'p_id': 'p02401', 'u_id': 'u726971073', 'date': '1582721951', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2116', 'code_size': '413'} | [
{
"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 while(1){\n int a, b;\n char op;\n scanf(\"... |
CDSS_659168 | CDSS | #include<stdio.h>
int pow(int a,int b){int i,r=1;for(i=1;i<=b;i++){r*=a;}return r;}
int main(){
int a[4][4];
scanf("%d%d%d",&a[1][1],&a[1][2],&a[1][3]);
scanf("%d%d%d",&a[2][1],&a[2][2],&a[2][3]);
scanf("%d%d%d",&a[3][1],&a[3][2],&a[3][3]);
if(pow(a[1][2]+a[2][1]-a[1][1]-a[2][2],2)+pow(a[1][3]+a[3]... | 128 | memory_bytes | {'s_id': 's290741715', 'p_id': 'p03435', 'u_id': 'u721060623', 'date': '1519098634', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '480'} | [
{
"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 pow(int a,int b){int i,r=1;for(i=1;i<=b;i++){r*=a;}return r;}\n\nint main(){\n int a[4][4];\n scanf(\"%d%... |
CDSS_468233 | CDSS | #include<stdio.h>
#include<string.h>
int main()
{
char s[7];
scanf("%s",s);
if(s[2]-'0'==s[3]-'0'&&s[4]-'0'==s[5]-'0') printf("Yes\n");
else printf("No\n");
return 0;
}
| 128 | memory_bytes | {'s_id': 's636679596', 'p_id': 'p02723', 'u_id': 'u056367462', 'date': '1590570439', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '189'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\nint main()\n{\n char s[7];\n scanf(\"%s\",s);\n if(s[2]-'0'==s[3]-'0'&&s[4]-'0'==s[5]-... |
CDSS_421975 | CDSS | #include <stdio.h>
#include <string.h>
int main(void) {
char s[4];
scanf("%s", s);
if(strcmp(s, "ABC")) {
printf("ABC");
} else if(strcmp(s, "ARC")) {
printf("ARC");
}
return 0;
}
| 1,728 | memory_bytes | {'s_id': 's957770878', 'p_id': 'p02687', 'u_id': 'u773833122', 'date': '1597956715', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1728', 'code_size': '201'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\nint main(void) {\n char s[4];\n scanf(\"%s\", s);\n if(strcmp(s, \"ABC\")) {\n printf... |
CDSS_642299 | CDSS | #include <stdio.h>
int main(void)
{
int a, b;
int c;
scanf("%d %d", &a, &b);
if ((a + b) > (a - b)) {
c = a + b;
} else {
c = a - b;
}
if ((a * b) > c) {
c = a * b;
}
printf("%d\n", c);
return 0;
}
| 128 | memory_bytes | {'s_id': 's696151886', 'p_id': 'p03337', 'u_id': 'u752697533', 'date': '1527384390', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '128', 'code_size': '273'} | [
{
"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;\n int c;\n \n scanf(\"%d %d\", &a, &b);\n if ((a + b) > (a - b)) {\... |
CDSS_471335 | CDSS | #include<stdio.h>
int ta[200010],nt[400010],to[400010],cc[400010];
long long u[200010],ANS[200020],ans[200020];
int mbk(long long a,int n,int m){return n?(mbk((a*a)%m,n/2,m)*(n%2?a:1))%m:1;}
int inv(int a,int m){return mbk((long long)a,m-2,m);}
long long pp[200010],ip[200010],M=1e9+7;
int f(int s){//printf("!%d\n",s);
... | 15,360 | memory_bytes | {'s_id': 's516627541', 'p_id': 'p02728', 'u_id': 'u121922047', 'date': '1585526688', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '670', 'memory': '15360', 'code_size': '1874'} | [
{
"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 ta[200010],nt[400010],to[400010],cc[400010];\nlong long u[200010],ANS[200020],ans[200020];\nint mbk(long long a... |
CDSS_131549 | CDSS | #include <stdio.h>
#define N 100
#define INF 100000
int matrixChainOrder(int *);
int min(int, int);
int n,A[N][2],m[N][N];
int main(){
int i, p[N];
scanf("%d",&n);
for(i =0;i<n;i++){
scanf("%d%d", &A[i][0], &A[i][1]);
p[i] = A[i][0];
if(i == n-1) p[i+1] =A[i][1];
}
printf("%d\n", matrixCh... | 636 | memory_bytes | {'s_id': 's825952542', 'p_id': 'p02234', 'u_id': 'u809678626', 'date': '1467261719', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '636', 'code_size': '723'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\n#define N 100\n#define INF 100000\n\nint matrixChainOrder(int *);\nint min(int, int);\n\nint n,A[N][2],m[N][N];\... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.