identifier string | space string | input string | target float64 | metric_type string | metadata string | messages list |
|---|---|---|---|---|---|---|
CDSS_180360 | CDSS | #include <stdio.h>
#include <stdlib.h>
int main() {
int m = 1;
for (int i = 0; i < m; i++)
{
char line[1000];
char t = getchar();
int cnt = 0;
while(t != '\n') {
line[cnt] = t;
t = getchar();
cnt++;
}
int mark = 0, exception = 0, negative = 0;
int array[1000];
for (int j = 0; j < 1... | 2,052 | memory_bytes | {'s_id': 's011494669', 'p_id': 'p02263', 'u_id': 'u629954615', 'date': '1550153234', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2052', 'code_size': '1854'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\nint main() {\n\tint m = 1;\n\tfor (int i = 0; i < m; i++)\n\t{\n\t\tchar line[1000];\n\t\tc... |
CDSS_510475 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
int main()
{
int i,j,k;
int N;
int syou;
char S[101];
scanf("%s",S);
N = strlen(S);
syou = N/2;
k = 0;
for(i=0;i<syou;i++){
j = (N-1)-i;
if( S[i] == S[j] ){
}
else{
k++;
}
}
printf("%d\... | 128 | memory_bytes | {'s_id': 's931226905', 'p_id': 'p02836', 'u_id': 'u307737725', 'date': '1575858536', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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#include <stdlib.h>\n#include <string.h>\n#include <math.h>\n\nint main()\n{\n int i,j,k;\n int N;\n int syou;\... |
CDSS_186150 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
typedef struct node{
int num;
struct node *left;
struct node *right;
}node;
node * makenode(int x){
node *new=malloc(sizeof(node));
new->right=NULL;
new->left=NULL;
new->num=x;
return new;
}
int main(){
int n,i,x;
char com[13];
node *front=NULL;
... | 32,944 | memory_bytes | {'s_id': 's131115459', 'p_id': 'p02265', 'u_id': 'u627641877', 'date': '1591769507', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '240', 'memory': '32944', 'code_size': '1381'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 num;\n struct node *left;\n struct node *right... |
CDSS_503578 | CDSS | #include<stdio.h>
#include<string.h>
int main()
{
char S[101];
char T[101];
scanf("%s",S);
scanf("%s",T);
printf("%s",strcat(T,S));
} | 128 | memory_bytes | {'s_id': 's828254595', 'p_id': 'p02817', 'u_id': 'u089230684', 'date': '1586554896', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '138'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 S[101];\n\tchar T[101];\n\tscanf(\"%s\",S);\n\tscanf(\"%s\",T);\n\tprintf... |
CDSS_474265 | CDSS | char buf[1<<20];sz;
main()
{
read(0,buf,1<<20);
int N=0;
for(;;)
{
char k=buf[sz++];
if(k<'0')break;
N=N*10+k-'0';
}
int s=0,f=0;
for(int i=0;i<N;i++)
{
if(!(-N&i))s+=buf[sz]-'1';
f|=buf[sz]=='2';
sz++;
}
printf("%d\n",s&3>>f);
}
| 1,152 | memory_bytes | {'s_id': 's900986540', 'p_id': 'p02736', 'u_id': 'u657913472', 'date': '1584863532', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1152', 'code_size': '252'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nchar buf[1<<20];sz;\nmain()\n{\n\tread(0,buf,1<<20);\n\tint N=0;\n\tfor(;;)\n\t{\n\t\tchar k=buf[sz++];\n\t\tif(k<'0')break;\n\t\tN=N*... |
CDSS_335836 | CDSS | #include <stdio.h>
int main(){
int a,b,c[300],d[300],i,j,k=0,l;
while(1){
scanf("%d %d",&a,&b);
if(a==0 && b==0)
break;
c[k]=a;
d[k]=b;
k++;
}
for(l=0;l<k;l++){
for(i=0;i<c[l];i++){
for(j=0;j<d[l];j++){
if(i%2==0){
if(j%2==0)
printf("#");
else
printf(".");
}
else... | 572 | memory_bytes | {'s_id': 's260068152', 'p_id': 'p02405', 'u_id': 'u588551436', 'date': '1468049409', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '572', 'code_size': '449'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(){\n\tint a,b,c[300],d[300],i,j,k=0,l;\n\n\twhile(1){\n\t\tscanf(\"%d %d\",&a,&b);\n\t\tif(a==0 && b==0)\... |
CDSS_362802 | CDSS | #include <stdio.h>
int main()
{
char c[1301];
int i = 0, j;
while (1)
{
scanf("%c", &c[i]);
if (c[i] == '\n')
{
break;
}
i++;
}
for (j = 0; j < i; j++)
{
if (c[j] >= 'A' && c[j] <= 'Z')
c[j] += 32;
else if (c[j]... | 2,096 | memory_bytes | {'s_id': 's161190011', 'p_id': 'p02415', 'u_id': 'u877181703', 'date': '1587267608', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2096', 'code_size': '468'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main()\n{\n char c[1301];\n int i = 0, j;\n while (1)\n {\n scanf(\"%c\", &c[i]);\n ... |
CDSS_725299 | CDSS | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdbool.h>
#include <math.h>
int min(int a, int b){
if(a < b){
return a;
}else{
return b;
}
}
int main(void){
int N, M;
scanf("%d%d", &N, &M);
int a[M], b[M], c[M];
int dist[N][N];
for(int i = 0; i... | 1,744 | memory_bytes | {'s_id': 's957862287', 'p_id': 'p03837', 'u_id': 'u746385710', 'date': '1600151044', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '7', 'memory': '1744', 'code_size': '1297'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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#include <stdbool.h>\n#include <math.h>\n\nint min(int a, int b){\n i... |
CDSS_572923 | CDSS | #include <stdio.h>
int main(void){
int N,K;
scanf("%d %d",&N,&K);
printf("%d\n",N-K+1);
} | 128 | memory_bytes | {'s_id': 's054568613', 'p_id': 'p03047', 'u_id': 'u686303803', 'date': '1557647351', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '96'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 N,K;\n scanf(\"%d %d\",&N,&K);\n printf(\"%d\\n\",N-K+1);\n}\nPredict its memory footpr... |
CDSS_194927 | CDSS | #include<stdio.h>
int main(){
int n,S[100000],q,T[50000],i, cnt=0;
int r,l,m;
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]);
}
for(i=0;i<q;i++){
l=0;
r=n;
while(l<r){
m = (l+r)/2;
if(T[i]==S[m]){
cnt++;
bre... | 2,352 | memory_bytes | {'s_id': 's045804150', 'p_id': 'p02268', 'u_id': 'u068378820', 'date': '1544757510', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2352', '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(){\n int n,S[100000],q,T[50000],i, cnt=0;\n int r,l,m;\n scanf(\"%d\",&n);\n for(i=0;i<n;i++){\n s... |
CDSS_539936 | CDSS | #include<stdio.h>
int main()
{
int k,x;
int i;
scanf("%d%d",&k,&x);
for(i=x-k+1;i<=x+k-1;i++)
{
printf("%d ",i);
}
return 0;
} | 128 | memory_bytes | {'s_id': 's253049029', 'p_id': 'p02946', 'u_id': 'u515674295', 'date': '1565486821', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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:\n#include<stdio.h>\nint main()\n{\n\tint k,x;\n\tint i;\n\tscanf(\"%d%d\",&k,&x);\n\t\n\tfor(i=x-k+1;i<=x+k-1;i++)\n\t{\n\t\tprintf(\"%... |
CDSS_363488 | CDSS | #include <stdio.h>
int main(){
int i;
int sum=0;
char ch[1001];
while(1){
scanf("%s",ch);
if(ch[0]=='0')
break;
for(i=0; i<strlen(ch);i++){
sum += ch[i] - '0';
}
printf("%d\n",sum);
sum = 0;
}
return 0;
} | 536 | memory_bytes | {'s_id': 's160724508', 'p_id': 'p02416', 'u_id': 'u171494543', 'date': '1463449464', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '536', 'code_size': '231'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n\tint i;\n\tint sum=0;\n\tchar ch[1001];\n\n\twhile(1){\n\t\tscanf(\"%s\",ch);\n\t\tif(ch[0]=='0')\... |
CDSS_605540 | CDSS | #include<stdio.h>
int main()
{
long long a,b,c,ans;
scanf("%lld %lld %lld",&a,&b,&c);
if((a+b)>=c)ans=b+c;
else ans=(a+b)*2+1-a;
printf("%lld",ans);
}
| 128 | memory_bytes | {'s_id': 's847845144', 'p_id': 'p03186', 'u_id': 'u791173062', 'date': '1546135637', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '157'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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\tlong long a,b,c,ans;\n\tscanf(\"%lld %lld %lld\",&a,&b,&c);\n\tif((a+b)>=c)ans=b+c;\n\telse ans=... |
CDSS_230921 | CDSS | #include<stdio.h>
int A[2000100];
int size = 0;
void insert(int x)
{
int i;
for (i = ++size; i / 2 > 0; i /= 2)
{
if (x > A[i / 2])
A[i] = A[i / 2];
else
break;
}
A[i] = x;
}
int delete()
{
int parent, child;
int x = A[size--], max = A[1];
for (parent = 1; parent * 2 <= size; parent = child)
{
c... | 5,616 | memory_bytes | {'s_id': 's670622279', 'p_id': 'p02289', 'u_id': 'u673825722', 'date': '1571501598', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '280', 'memory': '5616', 'code_size': '697'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 A[2000100];\nint size = 0;\n\nvoid insert(int x)\n{\n\tint i;\n\tfor (i = ++size; i / 2 > 0; i /= 2)\n\t{\n\t... |
CDSS_345459 | CDSS | #include<stdio.h>
int main()
{
char s[13]={1,2,3,4,5,6,7,8,9,10,11,12,13},
h[13]={1,2,3,4,5,6,7,8,9,10,11,12,13},
d[13]={1,2,3,4,5,6,7,8,9,10,11,12,13},
c[13]={1,2,3,4,5,6,7,8,9,10,11,12,13},
check;
int count,i,j;
i=0;
scanf("%d",&count);
while(i!=count){
scanf("%c %d",&check,&j);
if(check!='... | 596 | memory_bytes | {'s_id': 's715720124', 'p_id': 'p02408', 'u_id': 'u682547662', 'date': '1475241636', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '974'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main()\n{\n\tchar s[13]={1,2,3,4,5,6,7,8,9,10,11,12,13},\n\t\t h[13]={1,2,3,4,5,6,7,8,9,10,11,12,13},\n\t\t d... |
CDSS_692314 | CDSS | #include<stdio.h>
int main(){
int i,j,k;
int N;
scanf("%d",&N);
int A[N];
for(i=0;i<N;i++)
scanf("%d ",&A[i]);
int kisuu=0,two=0,four=0;
for(i=0;i<N;i++){
if(A[i] %4 ==0)
four++;
else if(A[i] % 4 != 0 && A[i] %2 == 0)
two++;
else
kisuu++;
}
if(kisuu - four > 1... | 512 | memory_bytes | {'s_id': 's198020612', 'p_id': 'p03637', 'u_id': 'u491818247', 'date': '1558295324', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '14', 'memory': '512', 'code_size': '470'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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,k;\n \n int N;\n scanf(\"%d\",&N);\n int A[N];\n for(i=0;i<N;i++)\n scanf(\"%d \",... |
CDSS_254634 | CDSS | #include <stdio.h>
int main()
{
int a,b;
scanf("%d %d",&a,&b);
if(a>=1 && b<=100)printf("%d %d\n",a*b,a*2+b*2);
return 0;
} | 596 | memory_bytes | {'s_id': 's081132843', 'p_id': 'p02389', 'u_id': 'u352566398', 'date': '1496816161', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '123'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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;\nscanf(\"%d %d\",&a,&b);\nif(a>=1 && b<=100)printf(\"%d %d\\n\",a*b,a*2+b*2);\nreturn 0;\n... |
CDSS_29404 | CDSS | #include <stdio.h>
#include <stdlib.h>
int cmpr_int(const void *a, const void *b)
{
const int *x = a;
const int *y = b;
return *x - *y;
}
int main()
{
int n, i, a[3];
scanf("%d", &n);
for (i = 0; i < n; i++) {
scanf("%d%d%d", &a[0], &a[1], &a[2]);
qsort(a, 3, sizeof(a[0]), cmpr_int);
if (a[0] ... | 584 | memory_bytes | {'s_id': 's164644616', 'p_id': 'p00003', 'u_id': 'u320121447', 'date': '1434508397', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '584', 'code_size': '440'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\nint cmpr_int(const void *a, const void *b)\n{\n const int *x = a;\n const int *y = b;\n ... |
CDSS_587050 | CDSS | #include<stdio.h>
int main()
{
int ch;
int max=0;
int cnt=0;
while((ch=getchar())!='\n'){
if(ch=='A'||ch=='T'||ch=='G'||ch=='C')
{cnt++;
max=max<cnt?cnt:max;}
else {
cnt=0;}
}
printf("%d",max);
return 0;
}
| 128 | memory_bytes | {'s_id': 's359703572', 'p_id': 'p03086', 'u_id': 'u097182283', 'date': '1555416721', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '207'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main()\n{\nint ch;\nint max=0;\nint cnt=0;\nwhile((ch=getchar())!='\\n'){\nif(ch=='A'||ch=='T'||ch=='G'||ch==... |
CDSS_719215 | CDSS | int main(int argc, const char * argv[]) {
int A,B;
scanf("%d\n",&A);
scanf("%d\n",&B);
if(A==1){
A=14;
}
if(B==1){
B=14;
}
if(A>B){
printf("Alice\n");
}
else if(B>A){
printf("Bob\n");
}
else{
printf("Draw\n");
... | 128 | memory_bytes | {'s_id': 's184264449', 'p_id': 'p03803', 'u_id': 'u540320606', 'date': '1489447448', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '340'} | [
{
"content": "Your task is to predict the 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(int argc, const char * argv[]) {\n int A,B;\n scanf(\"%d\\n\",&A);\n scanf(\"%d\\n\",&B);\n \n if(A==1){\n ... |
CDSS_159571 | CDSS | #include <stdio.h>
#include <math.h>
int sosuu(int);
int main(){
int n,a,i;
int count = 0;
scanf("%d",&n);
for(i = 0;i < n;i++){
scanf("%d",&a);
if(1 == sosuu(a))count++;
}
printf("%d\n",count);
}
int sosuu(int a){//素数=1
int i = 3;
if(a == 2) return 1;
if(a < 2 || a % 2 == 0) return 0;
whi... | 2,052 | memory_bytes | {'s_id': 's294791761', 'p_id': 'p02257', 'u_id': 'u244607489', 'date': '1575695339', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2052', '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#include <math.h>\nint sosuu(int);\n\nint main(){\n int n,a,i;\n int count = 0;\n scanf(\"%d\",&n);\n for(i = ... |
CDSS_374104 | CDSS | #include <stdio.h>
int main (void){
int K;
scanf("%d",&K);
for(int i=1;i<=K;i++){
printf("ACL");
}
return 0;
} | 1,684 | memory_bytes | {'s_id': 's740607854', 'p_id': 'p02534', 'u_id': 'u426612955', 'date': '1601168652', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '8', 'memory': '1684', 'code_size': '154'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 K;\n scanf(\"%d\",&K);\n \n for(int i=1;i<=K;i++){\n printf(\"ACL\");\... |
CDSS_233174 | CDSS | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdint.h> // uint64_t
#define BUF_SIZE 30
// more than (20000000)*(VERTEX_MAX)
#define WEIGH_MAX 0x7f7f7f7f
#define VERTEX_MAX 100
int get_int2(int *a1, int *a2) {
#ifdef BUF_SIZE
char line[BUF_SIZE];
if(!fgets(line, BUF_SIZE, stdin)) return -1;... | 2,112 | memory_bytes | {'s_id': 's585982868', 'p_id': 'p02363', 'u_id': 'u933484853', 'date': '1586256165', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '1822'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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#include <stdint.h> // uint64_t\n\n#define BUF_SIZE 30\n// more than (20... |
CDSS_725378 | CDSS | #include <stdio.h>
#include <stdlib.h>
typedef enum {
false,
true
}boolean;
typedef struct {
int a;
int b;
int c;
}edge;
typedef struct vsub{
int v;
int num;
struct vsub **nexts;
int *c;
}vertex;
boolean search(boolean *grave, vertex *ver, int sum, int dest, int border){
if(sum >= border){
return fals... | 256 | memory_bytes | {'s_id': 's266398295', 'p_id': 'p03837', 'u_id': 'u208608367', 'date': '1488746860', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '41', 'memory': '256', 'code_size': '1577'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 enum {\n false,\n true\n}boolean;\n\ntypedef struct {\n\tint a;\n\tint b;\n\tint ... |
CDSS_729444 | CDSS | #include<stdio.h>
int main()
{
long long a,b,x;
scanf("%lld%lld%lld",&a,&b,&x);
printf("%lld",b/x-a/x+(a%x==0));
} | 1,732 | memory_bytes | {'s_id': 's454320619', 'p_id': 'p03861', 'u_id': 'u459375706', 'date': '1595469213', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1732', 'code_size': '118'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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\tlong long a,b,x;\n\tscanf(\"%lld%lld%lld\",&a,&b,&x);\n\tprintf(\"%lld\",b/x-a/x+(a%x==0));\n}\n... |
CDSS_726268 | CDSS | #include<stdio.h>
int main()
{
int a,b;
char op;
scanf("%d\n",&a);
scanf("%c",&op);
scanf("%d",&b);
if(op=='+'){
printf("%d\n",a+b);
}
else{
printf("%d\n",a-b);
}
}
| 128 | memory_bytes | {'s_id': 's111343044', 'p_id': 'p03844', 'u_id': 'u089230684', 'date': '1559121537', '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>\nint main()\n{\n int a,b;\n char op;\n scanf(\"%d\\n\",&a);\n scanf(\"%c\",&op);\n scanf(\"%d\",&b);\n... |
CDSS_528818 | CDSS | #include<stdio.h>
void solve(int N,int K,int Q){
int A[Q];
for (int i = 0; i < Q; i+=1){
scanf("%d", &A[i]);
A[i] -= 1;
}
int P[N];
for (int i = 0; i < N; i += 1){P[i] = 0;}
for (int i = 0; i < Q; i += 1){
P[A[i]] += 1;
}
for (int i = 0; i < N; i += 1){
... | 1,280 | memory_bytes | {'s_id': 's432997842', 'p_id': 'p02911', 'u_id': 'u613931538', 'date': '1576087027', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '13', 'memory': '1280', 'code_size': '496'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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\nvoid solve(int N,int K,int Q){\n\n int A[Q];\n for (int i = 0; i < Q; i+=1){\n scanf(\"%d\", &A[i]);... |
CDSS_378618 | CDSS | #include <stdio.h>
int main(){
int d,t,s;
scanf("%d %d %d", &d, &t, &s);
t=s*t;
if(t>=d){
printf("Yes\n");
}
else{
printf("No\n");
}
return 0;
} | 1,660 | memory_bytes | {'s_id': 's931319708', 'p_id': 'p02570', 'u_id': 'u634350349', 'date': '1598727966', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '7', 'memory': '1660', 'code_size': '196'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n int d,t,s;\n\n scanf(\"%d %d %d\", &d, &t, &s);\n\n t=s*t;\n\n if(t>=d){\n prin... |
CDSS_568823 | CDSS | #include<stdio.h>
double gram(int r, int d, int x1, int size){
int x2;
if(size <= 10){
x2 = (r * x1) - d;
printf("%d\n",x2);
size++;
gram(r,d,x2,size);
}
}
int main(void){
int r, d, x1;
int size;
size = 1;
scanf("%d%d%d",&r, &d, &x1);
gram(r,d,x1,size);
} | 128 | memory_bytes | {'s_id': 's037109164', 'p_id': 'p03036', 'u_id': 'u437165681', 'date': '1558837636', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '303'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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\ndouble gram(int r, int d, int x1, int size){\n int x2;\n \n if(size <= 10){\n x2 = (r * x1) - d;\n print... |
CDSS_399838 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
int compareInt(const void* a, const void* b){
int aNum = *(int*)a;
int bNum = *(int*)b;
return aNum - bNum;
}
int main(){
int n,i,j,p[1000],k,min=1000,m=0,a=0;
char s[1500000];
scanf("%d %d\n",&n,&k);
fgets(s,siz... | 1,768 | memory_bytes | {'s_id': 's831279354', 'p_id': 'p02628', 'u_id': 'u873151599', 'date': '1592790757', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1768', 'code_size': '623'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <math.h>\n#include <string.h>\n\nint compareInt(const void* a, const void* b){\n ... |
CDSS_521846 | CDSS | #include <stdio.h>
int main() {
int N, i, j, ans;
scanf("%d", &N);
ans = 0;
int d[N];
for(i = 0; i < N; ++i){
scanf("%d", &d[i]);
}
for(i = 0; i < N; ++i){
for(j = i + 1; j < N; ++j){
ans += d[i] * d[j];
}
}
printf("%d\n", ans);
return 0;
} | 128 | memory_bytes | {'s_id': 's555839547', 'p_id': 'p02886', 'u_id': 'u513851782', 'date': '1571533822', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '277'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main() {\n int N, i, j, ans;\n scanf(\"%d\", &N);\n ans = 0;\n int d[N];\n for(i = 0; i < N; ++i){\n \ts... |
CDSS_621583 | CDSS | #include <stdio.h>
#include <stdlib.h>
#pragma GCC optimize ("O3")
inline static int gl(void){
int x = 0;
for(;;){
unsigned int c = getchar_unlocked() - 48;
if(c < 10){
x = x*10 + c;
}else{
break;
}
}
return x;
}
inline static void pl(unsigned in... | 2,944 | memory_bytes | {'s_id': 's540732349', 'p_id': 'p03263', 'u_id': 'u188638030', 'date': '1536473178', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2944', 'code_size': '1985'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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#pragma GCC optimize (\"O3\")\n\ninline static int gl(void){\n int x = 0;\n for(;;){\n ... |
CDSS_727473 | CDSS | #include<stdio.h>
int main(void)
{
char c;
scanf("%c",&c);
if(c=='a') { printf("vowel\n"); return 0; }
if(c=='i') { printf("vowel\n"); return 0; }
if(c=='u') { printf("vowel\n"); return 0; }
if(c=='e') { printf("vowel\n"); return 0; }
if(c=='o') { printf("vowel\n"); return 0; }
... | 128 | memory_bytes | {'s_id': 's999448538', 'p_id': 'p03852', 'u_id': 'u670199931', 'date': '1590550633', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '368'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n int main(void)\n {\n char c;\n\n scanf(\"%c\",&c);\n\n if(c=='a') { printf(\"vowel\\n\"); return 0; }\... |
CDSS_24797 | CDSS | #include<stdio.h>
int main(){
int a[10],t,i,j;
for(i=0;i<10;i++){
scanf("%d",&a[i]);
}
for(i=0;i<10-1;i++){
for(j=i+1;j<10;j++){
if(a[j]>a[i]){
t=a[j];
a[j]=a[i];
a[i]=t;
}
}
}
printf("%d\n%d\n%d\n",a[0],a[1],a[2]);
return 0;
} | 600 | memory_bytes | {'s_id': 's753736473', 'p_id': 'p00001', 'u_id': 'u166028235', 'date': '1345125858', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '259'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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[10],t,i,j;\n\tfor(i=0;i<10;i++){\n\t\tscanf(\"%d\",&a[i]);\n\t}\n\tfor(i=0;i<10-1;i++){\n\t\... |
CDSS_380546 | CDSS | #include <stdio.h>
int main(void){
// Your code here!
int n, x, t;
int remain_n=0;
int tako_time=0;
scanf("%d %d %d", &n, &x, &t);
if((n<1) || (n>1000)){
printf("incorrect number:N\n");
return -1;
}
if((x<1) || (x>1000)){
printf("incorrect number:X\n");
... | 1,708 | memory_bytes | {'s_id': 's666021699', 'p_id': 'p02576', 'u_id': 'u357137782', 'date': '1598269103', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1708', '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(void){\n // Your code here!\n int n, x, t;\n int remain_n=0;\n int tako_time=0;\n \n sc... |
CDSS_358988 | CDSS | #include <stdio.h>
int main(void)
{
int n, m, l, i, j, k;
long long a[100][100], b[1000][100], c[100][100] = { 0 };
scanf("%d %d %d", &n, &m, &l);
for (i = 0; i < n; i++) {
for (j = 0; j < m; j++) {
scanf("%lld", &a[i][j]);
}
}
for (i = 0; i < m; i++) {
for (j = 0; j < l; j++) {
scanf("%lld... | 2,104 | memory_bytes | {'s_id': 's184054235', 'p_id': 'p02414', 'u_id': 'u324946249', 'date': '1531655827', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', '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\nint main(void)\n{\n\tint n, m, l, i, j, k;\n\n\tlong long a[100][100], b[1000][100], c[100][100] = { 0 };\n\n\t... |
CDSS_209846 | CDSS | #include<stdio.h>
#include<stdlib.h>
#define MAX 2000001
#define VMAX 10000
int main() {
unsigned short *A, *B;
int C[VMAX+ 1];
int n, i, j;
scanf("%d", &n);
A = malloc(sizeof(short) * n + 1);
B = malloc(sizeof(short) * n + 1);
for (i=0; i<=VMAX; i++) C[i]=0;
for (i=0; i<n; i++) {
... | 9,572 | memory_bytes | {'s_id': 's989913244', 'p_id': 'p02275', 'u_id': 'u507639574', 'date': '1586333892', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '220', 'memory': '9572', 'code_size': '637'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 MAX 2000001\n#define VMAX 10000\n\nint main() {\n unsigned short *A, *B;\n\n int ... |
CDSS_682809 | CDSS | #include <stdio.h>
int main(void){
char s[7] = { '\0' };
scanf("%6s", s);
int n = 0;
for(int i = 0; i < 6; i++) if(s[i] == '1') n++;
printf("%d\n", n);
return 0;
} | 128 | memory_bytes | {'s_id': 's057306571', 'p_id': 'p03587', 'u_id': 'u183866833', 'date': '1549209574', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '176'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 char s[7] = { '\\0' };\n scanf(\"%6s\", s);\n int n = 0;\n for(int i = 0; i < 6; i++) if(s... |
CDSS_742433 | CDSS | #include<stdio.h>
void keybord(char s[]){
char k[11] = {'\0'};
int i;
int j = 0;
for(i = 0; s[i]; i++){
if(s[i] == '0'){
k[j] = s[i];
j++;
}
if(s[i] == '1'){
k[j] = s[i];
j++;
}
if(s[i] == 'B' && j > 0){
... | 128 | memory_bytes | {'s_id': 's495364683', 'p_id': 'p04030', 'u_id': 'u288147331', 'date': '1567232409', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '481'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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\nvoid keybord(char s[]){\n char k[11] = {'\\0'};\n int i;\n int j = 0;\n\n for(i = 0; s[i]; i++){\n ... |
CDSS_122966 | CDSS | #include<stdio.h>
#include<string.h>
#include<stdlib.h>
int main() {
int N,A,B,C,X;
int *Y;
int i,count,pos;
int Answer[1000],a=0;
for(;;) {
scanf("%d %d %d %d %d",&N,&A,&B,&C,&X);
if(N==0&&A==0&&B==0&&C==0&&X==0) break;
Y=(int *)malloc(N*sizeof(int));
for(i=0;i<N;i++)
scanf("%d",&Y[i]);
count=-... | 640 | memory_bytes | {'s_id': 's924756819', 'p_id': 'p01267', 'u_id': 'u814434459', 'date': '1469169525', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '640', '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#include<stdio.h>\n#include<string.h>\n#include<stdlib.h>\n\n\nint main() {\n\n\tint N,A,B,C,X;\n\tint *Y;\n\tint i,count,pos;\n\tint ... |
CDSS_67562 | CDSS | #include<stdio.h>
int main(void) {
float xa,ya,xb,yb,xc,yc,xd,yd;
while (scanf("%f %f %f %f %f %f %f %f",&xa,&ya,&xb,&yb,&xc,&yc,&xd,&yd) != EOF) {
if ((xb-xa)*(xd-xc)+(yb-ya)*(yd-yc)==0)
puts("YES");
else
puts("NO");
}
return 0;
} | 608 | memory_bytes | {'s_id': 's434478136', 'p_id': 'p00058', 'u_id': 'u481307862', 'date': '1485144840', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '608', '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\tfloat xa,ya,xb,yb,xc,yc,xd,yd;\n\n\twhile (scanf(\"%f %f %f %f %f %f %f %f\",&xa,&ya,&xb,&yb,&x... |
CDSS_611155 | CDSS | #include <stdio.h>
int main()
{
int x,y;
scanf("%d %d",&x,&y);
y=y/2;
printf("%d\n",x+y);
}
| 128 | memory_bytes | {'s_id': 's518180019', 'p_id': 'p03219', 'u_id': 'u464110417', 'date': '1559020853', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '109'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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,y;\n scanf(\"%d %d\",&x,&y);\n y=y/2;\n printf(\"%d\\n\",x+y);\n}\n\nPredict i... |
CDSS_454669 | CDSS | #include<stdio.h>
void main(){
long int n;
long long int sum=0;
scanf("%ld",&n);
for(long int i=1; i<=n; i++){
if(i%3!=0 && i%5!=0)
sum += i;
}
printf("%lld",sum);
} | 1,708 | memory_bytes | {'s_id': 's491962028', 'p_id': 'p02712', 'u_id': 'u477233273', 'date': '1591278289', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1708', 'code_size': '192'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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\nvoid main(){\n long int n;\n long long int sum=0;\n scanf(\"%ld\",&n);\n \n for(long int i=1; i<=n; i++){\n ... |
CDSS_682923 | CDSS | #include<stdio.h>
int n, max, ans, i;
int main(void){
scanf("%d", &n);
for(i=0; i<n; i++){
int za, zb;
scanf("%d%d", &za, &zb);
if(max < za){
max = za;
ans = za + zb;
}
}
printf("%d\n", ans);
} | 256 | memory_bytes | {'s_id': 's764547049', 'p_id': 'p03588', 'u_id': 'u292252214', 'date': '1554350700', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '22', 'memory': '256', 'code_size': '229'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 n, max, ans, i;\nint main(void){\n scanf(\"%d\", &n);\n for(i=0; i<n; i++){\n int za, zb;\n scanf(\"%d%... |
CDSS_288692 | CDSS | #include <stdio.h>
int main()
{
int w, h, x, y, r, x1, x2, y1, y2;
scanf("%d %d %d %d %d", &w, &h, &x, &y, &r);
x1=x+r;
x2=x-r;
y1=y+r;
y2=y-r;
if(x1<=w && x2>=0 && y1<=h && y2>=0)
printf("Yes\n");
else
printf("No\n");
}
| 2,140 | memory_bytes | {'s_id': 's696205951', 'p_id': 'p02394', 'u_id': 'u011621222', 'date': '1540214778', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2140', 'code_size': '238'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 w, h, x, y, r, x1, x2, y1, y2;\n\tscanf(\"%d %d %d %d %d\", &w, &h, &x, &y, &r);\n\t\n\tx1=... |
CDSS_333774 | CDSS | #include<stdio.h>
int main(void){
int H,W,i,j;
while(1){
scanf("%d %d",&H,&W);
if(H == 0 && W == 0){
break;
}
for(i = 0;i < H;i++){
for(j = 0;j < W;j++){
if(i == 0 || i == H-1 || j == 0 || j == W-1){
printf("#");
}
else{
printf(".");
}
}
printf("\n");
}
printf("\n");
... | 572 | memory_bytes | {'s_id': 's558512338', 'p_id': 'p02404', 'u_id': 'u312361847', 'date': '1491898600', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '572', 'code_size': '335'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 H,W,i,j;\n\twhile(1){\n\t\tscanf(\"%d %d\",&H,&W);\n\t\tif(H == 0 && W == 0){\n\t\t\tbreak;\... |
CDSS_717458 | CDSS | #include<stdio.h>
int main(){
long long N, p = 1;
scanf("%lld", &N);
for (int i = 1; i <= N; i++){
p *= i;
p = p%1000000007;
}
printf("%lld\n", p);
return 0;
} | 128 | memory_bytes | {'s_id': 's281725398', 'p_id': 'p03796', 'u_id': 'u313578168', 'date': '1549652766', '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\nint main(){\n long long N, p = 1;\n scanf(\"%lld\", &N);\n \n for (int i = 1; i <= N; i++){\n p *= i;\n ... |
CDSS_727485 | CDSS | #include <stdio.h>
int main(){
char c;
scanf("%c",&c);
if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o'){
printf("vowel");
}else{
printf("consonant");
}
} | 128 | memory_bytes | {'s_id': 's667754192', 'p_id': 'p03852', 'u_id': 'u815628714', 'date': '1589564662', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '128', 'code_size': '193'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 c;\n \tscanf(\"%c\",&c);\n \tif(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o'){... |
CDSS_640406 | CDSS | #include <stdio.h>
#include <math.h>
#include <stdbool.h>
int main(void){
int a,b,sa;
scanf("%d%d",&a,&b);
sa=b-a;
int t1,i,sum=0;
for(i=1;i<sa;i++){
sum+=i;
}
printf("%d",sum-a);
return 0;
} | 128 | memory_bytes | {'s_id': 's019824674', 'p_id': 'p03328', 'u_id': 'u185896732', 'date': '1551196078', '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>\n#include <math.h>\n#include <stdbool.h>\nint main(void){\n int a,b,sa;\n scanf(\"%d%d\",&a,&b);\n sa=b-a;\n in... |
CDSS_693039 | CDSS | #include<stdio.h>
int main(void)
{
int N;
scanf("%d",&N);
printf("ABC%d\n",N);
return 0;
}
| 128 | memory_bytes | {'s_id': 's985790702', 'p_id': 'p03643', 'u_id': 'u670199931', 'date': '1590874773', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '117'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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;\n\n scanf(\"%d\",&N);\n printf(\"ABC%d\\n\",N);\n\n return 0;\n }\n\n... |
CDSS_146157 | CDSS | #include <stdio.h>
void output(int A[], int N) {
int i;
for ( i = 0; i < N; i++ ) {
if (i > 0) printf(" ");
printf("%d", A[i]);
}
printf("\n");
}
void InsertionSort(int A[], int N) {
int i, j;
int esc;
for ( i = 1; i < N; i++ ) {
j = i - 1;
esc = A[i];
while ( j >= 0 && A[j] > esc ) {
A[j + 1... | 604 | memory_bytes | {'s_id': 's727699036', 'p_id': 'p02255', 'u_id': 'u955307764', 'date': '1493814463', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '604', 'code_size': '560'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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\nvoid output(int A[], int N) {\n\tint i;\n\tfor ( i = 0; i < N; i++ ) {\n\t\tif (i > 0) printf(\" \");\n\t\tprint... |
CDSS_727038 | CDSS | #include <stdio.h>
int main (void){
int loop1,loop2;
int how_q;
scanf("%d",&how_q);
int how_time[how_q];
for(loop1=0;loop1<how_q;loop1++){
scanf("%d",&how_time[loop1]);
}
int how_drink;
scanf("%d",&how_drink);
int drink_data[how_drink][2];
int output;
for(loop1=0;loop... | 128 | memory_bytes | {'s_id': 's872893911', 'p_id': 'p03845', 'u_id': 'u926548116', 'date': '1482113372', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '716'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 loop1,loop2;\n int how_q;\n scanf(\"%d\",&how_q);\n int how_time[how_q];\n f... |
CDSS_587376 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <memory.h>
#include <math.h>
int isACGT(char c)
{
if (c == 'A' || c == 'C' || c == 'G' || c == 'T') {
return 1;
}
return 0;
}
int main(int argc, char *argv[])
{
char c[20];
char *p = c;
int ans;
int len;
scan... | 128 | memory_bytes | {'s_id': 's075983418', 'p_id': 'p03086', 'u_id': 'u676699191', 'date': '1553458047', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '611'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 <memory.h>\n#include <math.h>\n\nint isACGT(char c)\n{\n if ... |
CDSS_20437 | CDSS | #include <stdio.h>
int main(void){
int i,j;
for(i = 1; i <= 9 ; i++){
for(j = 1; j<= 9 ; j++){
printf("%dx%d=%d\n", i, j, i*j);
}
}
return 0;
} | 0 | memory_bytes | {'s_id': 's613684149', 'p_id': 'p00000', 'u_id': 'u158037864', 'date': '1317747292', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '238'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n int i,j;\n for(i = 1; i <= 9 ; i++){\n for(j = 1; j<= 9 ; j++){\n... |
CDSS_425151 | CDSS | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdint.h> // uint64_t
#define max(a,b) ((a) > (b) ? (a) : (b))
#define min(a,b) ((a) > (b) ? (b) : (a))
int get_int(void) {
int num;
scanf("%d", &num);
return num;
}
// <arr[0]> <arr[1]> .. <arr[size-1]>
int fget_array(int *arr, int size) {
... | 3,272 | memory_bytes | {'s_id': 's564120748', 'p_id': 'p02691', 'u_id': 'u866370648', 'date': '1590112297', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '29', 'memory': '3272', '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#include <stdlib.h>\n#include <stdint.h> // uint64_t\n\n#define max(a,b) ((a) > (b) ? (a) : (... |
CDSS_135878 | CDSS | #include <stdio.h>
int main()
{
int n, i, j, u, k, a;
scanf("%d",&n);
int matrix[n][n];
for(i=0;i<n;i++){
for(j=0;j<n;j++){
matrix[i][j] = 0;
}
}
for(i=0;i<n;i++){
scanf("%d %d",&u,&k);
for(j=0;j<k;j++){
scanf("%d",&a);
matrix[u-1][a-1] = 1;
}
}
for(i=0;i<n... | 2,048 | memory_bytes | {'s_id': 's221133024', 'p_id': 'p02237', 'u_id': 'u659907314', 'date': '1548392258', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2048', 'code_size': '472'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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\nint main()\n{\n\n int n, i, j, u, k, a;\n \n scanf(\"%d\",&n);\n int matrix[n][n];\n\n for(i=0;i<n;i++){\... |
CDSS_683965 | CDSS | #include<stdio.h>
int main(void){
int N=0;
int A=0;
scanf("%d", &N);
scanf("%d", &A);
printf("%d\n", N*N-A);
return 0;
}
| 128 | memory_bytes | {'s_id': 's228446134', 'p_id': 'p03597', 'u_id': 'u703048145', 'date': '1525431752', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '138'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void){\n\n int N=0;\n int A=0;\n\n scanf(\"%d\", &N);\n scanf(\"%d\", &A);\n\n printf(\"%d\\n\", N*... |
CDSS_563423 | CDSS | #include <stdio.h>
#include <string.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#include <limits.h>
#include <math.h>
#include <assert.h>
typedef int64_t ll;
typedef uint64_t ull;
int acs(const void *a, const void *b){return *(int*)a - *(int*)b;} /* 1,2,3,4.. */
int des(const void *a, const void *b)... | 128 | memory_bytes | {'s_id': 's914870030', 'p_id': 'p03012', 'u_id': 'u442113054', 'date': '1573338987', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '850'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 <stdbool.h>\n#include <stdint.h>\n#include <stdlib.h>\n#include <limits.h>\n#include... |
CDSS_256185 | CDSS | #include<stdio.h>
int main(){
int a,b;
scanf("%d %d",&a,&b);
printf("%d %d\n",a*b,2*a+2*b);
return 0;
}
| 2,040 | memory_bytes | {'s_id': 's052582614', 'p_id': 'p02389', 'u_id': 'u747882790', 'date': '1523948880', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2040', '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>\nint main(){\n int a,b;\n scanf(\"%d %d\",&a,&b);\n printf(\"%d %d\\n\",a*b,2*a+2*b);\n return 0;\n}\n\n\nPredic... |
CDSS_633666 | CDSS | #include<stdio.h>
int main(){
int n;
scanf("%d",&n);
int vetor[n];
for(int i = 0; i<n ; ++i){
scanf("%d",&vetor[i]);
}
int maior = vetor[0];
int menor = vetor[0];
for(int i = 0; i<n; ++i){
if(vetor[i]>maior){
maior = vetor[i];
}
if(vetor[i]<menor){
menor = vetor[i];
}
}
printf... | 128 | memory_bytes | {'s_id': 's554261009', 'p_id': 'p03308', 'u_id': 'u109867600', 'date': '1571292408', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '358'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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\t\n\tscanf(\"%d\",&n);\n\t\n\tint vetor[n];\n\t\n\tfor(int i = 0; i<n ; ++i){\n\t\tscan... |
CDSS_114535 | CDSS | #include <stdio.h>
int width,height;
char map[20][21];
int tansaku(int x,int y) {
int result=1;
if(x<0 || x>=width || y<0 || y>=height)return 0;
if(map[y][x]=='#')return 0;
map[y][x]='#';
result+=tansaku(x-1,y);
result+=tansaku(x+1,y);
result+=tansaku(x,y-1);
result+=tansaku(x,y+1);
return result;
}
int mai... | 0 | memory_bytes | {'s_id': 's712203693', 'p_id': 'p00711', 'u_id': 'u543521645', 'date': '1333542286', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '597'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 width,height;\nchar map[20][21];\n\nint tansaku(int x,int y) {\n\tint result=1;\n\tif(x<0 || x>=width || y<0... |
CDSS_56300 | CDSS | #include <stdio.h>
#include <math.h>
#include <string.h>
typedef struct{
double a,b;
}circles;
int main(void){
int i,n;
circles x,y,r;
double num;
char str[100];
fgets(str,sizeof(str),stdin);
sscanf(str,"%d",&n);
for(i=0;i<n;i++){
fgets(str,sizeof(str),stdin);
sscanf(str,"%lf %lf %lf %lf %lf %lf",&x.a,&y... | 628 | memory_bytes | {'s_id': 's275290545', 'p_id': 'p00023', 'u_id': 'u588551436', 'date': '1478135191', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '628', 'code_size': '560'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 <string.h>\n\ntypedef struct{\n\tdouble a,b;\n}circles;\n\nint main(void){\n\tint i,n;... |
CDSS_299253 | CDSS | #include<stdio.h>
int main()
{
int x;
int i=0;
while(1){
scanf("%d", &x);
if(x==0)break;
printf("Case %d: %d\n", ++i, x);
}
return 0;
}
| 2,048 | memory_bytes | {'s_id': 's210322007', 'p_id': 'p02396', 'u_id': 'u286221661', 'date': '1563518028', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2048', '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{\nint x;\nint i=0;\nwhile(1){\nscanf(\"%d\", &x);\nif(x==0)break;\nprintf(\"Case %d: %d\\n\", ++i, x);... |
CDSS_110125 | CDSS | #include<stdio.h>
int kin(int n, int m, int k)
{
return((n%m==0)?(n/m*k):((n/m+1)*k));
}
int main(int rgc, char *argv[])
{
int a, b, c, d, n, set1, set2;
scanf("%d %d %d %d %d", &n, &a, &b, &c, &d);
set1 = kin(n, a, b);
set2 = kin(n, c, d);
printf("%d\n", (set1 <= set2)?(set1):(set2));
ret... | 2,108 | memory_bytes | {'s_id': 's822771434', 'p_id': 'p00564', 'u_id': 'u250902310', 'date': '1547666211', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '329'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 kin(int n, int m, int k)\n{\n return((n%m==0)?(n/m*k):((n/m+1)*k));\n}\n\nint main(int rgc, char *argv[])\... |
CDSS_425561 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define STR_EQ(s1,s2) strcmp(s1,s2)==0
typedef long long ll;
int main(){
ll N,A,B,C;
scanf("%lld %lld %lld %lld",&N,&A,&B,&C);
char S[N][3];
char ans[N];
for(ll i = 0;i<N;i++) scanf("%s",S[i]);
for(ll i = 0;i<N;i++){
if... | 2,092 | memory_bytes | {'s_id': 's845868786', 'p_id': 'p02692', 'u_id': 'u447333941', 'date': '1588554913', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '2092', 'code_size': '3237'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 STR_EQ(s1,s2) strcmp(s1,s2)==0\n \ntypedef long long ll;\n... |
CDSS_288349 | CDSS | #include <stdio.h>
main(void){
int a,b,c,d,e,f;
scanf("%d%d%d",&a,&b,&c);
if(a > b){
d=a;
a=b;
b=d;
}
if(b > c){
e=b;
b=c;
c=e;
}
if(a > b){
f=a;
a=b;
b=f;
}
printf("%d %d %d\n",a,b,c);
return 0;
}
| 2,104 | memory_bytes | {'s_id': 's879167491', 'p_id': 'p02393', 'u_id': 'u613386137', 'date': '1558077256', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '221'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nmain(void){\n\tint a,b,c,d,e,f;\n\tscanf(\"%d%d%d\",&a,&b,&c);\n\tif(a > b){ \n\td=a;\n\ta=b;\n\tb=d;\n\t}\n\tif(b... |
CDSS_720688 | CDSS | #include <stdio.h>
int main() {
int x;
scanf("%d", &x);
if (x < 1200) {
printf("ABC\n");
} else {
printf("ARC\n");
}
return 0;
} | 128 | memory_bytes | {'s_id': 's020197840', 'p_id': 'p03813', 'u_id': 'u177280335', 'date': '1545872110', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '171'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main() {\n int x;\n\n scanf(\"%d\", &x);\n\n if (x < 1200) {\n printf(\"ABC\\n\");\n } el... |
CDSS_220119 | CDSS | #include <stdio.h>
#define NIL -1
typedef struct Node{int p,l,r;}tree;
tree T[10000];
int ten;
void preParse(int u){
if(u==NIL)return;
printf(" %d",u);
preParse(T[u].l);
preParse(T[u].r);
}
void inParse(int u){
if(u==NIL)return;
inParse(T[u].l);
printf(" %d",u);
inParse(T[u].r);
}
void postParse(int... | 2,004 | memory_bytes | {'s_id': 's491551449', 'p_id': 'p02281', 'u_id': 'u829676664', 'date': '1580658268', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2004', 'code_size': '862'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#define NIL -1\n\ntypedef struct Node{int p,l,r;}tree;\ntree T[10000];\nint ten;\n\nvoid preParse(int u){\n if(u=... |
CDSS_30302 | CDSS | #include<stdio.h>
int main()
{
int N,i,j,k,l;
scanf("%d",&N);
for(i=1;i<=N;i++)
{
scanf("%d%d%d",&j,&k,&l);
if(j*j==k*k+l*l||k*k==j*j+l*l||l*l==j*j+k*k)
{
printf("YES\n");
}
else
{
printf("NO\n");
}
}
return 0;
}
| 1,968 | memory_bytes | {'s_id': 's690277070', 'p_id': 'p00003', 'u_id': 'u011621222', 'date': '1520268417', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1968', '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>\nint main()\n{\n int N,i,j,k,l;\n scanf(\"%d\",&N);\n for(i=1;i<=N;i++)\n {\n scanf(\"%d%d%d\",&j... |
CDSS_300658 | CDSS | #include <stdio.h>
int main(){
int x = 1, y = 1, s;
while (1) {
scanf("%d %d", &x, &y);
if(x == 0 && y == 0) break;
if(x > y){
s = x;
x = y;
y = s;
}
printf("%d %d\n", x, y);
}
return 0;
} | 600 | memory_bytes | {'s_id': 's226894332', 'p_id': 'p02397', 'u_id': 'u287173176', 'date': '1467556162', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '280'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 x = 1, y = 1, s;\n while (1) {\n scanf(\"%d %d\", &x, &y);\n if(x == 0 && y ... |
CDSS_74255 | CDSS | a;main(b){scanf("%d%d",&a,&b);return!printf("%f\n",a*b/3.305785);} | 632 | memory_bytes | {'s_id': 's834193622', 'p_id': 'p00094', 'u_id': 'u376883550', 'date': '1400854270', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '632', 'code_size': '66'} | [
{
"content": "Your task is to predict the 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;main(b){scanf(\"%d%d\",&a,&b);return!printf(\"%f\\n\",a*b/3.305785);}\nPredict its memory footprint.",
"role": "user"
},
{
... |
CDSS_313274 | CDSS | //
// main.c
// ITP1_4_B
//
// Created by ??±??°?????? on 2015/09/27.
// Copyright ?? 2015??´ HamadaShogo. All rights reserved.
//
#include <stdio.h>
#include <math.h>
int main(int argc, const char * argv[]) {
double r;
double S, L;
scanf("%lf", &r);
S = pow(r, 2)*M_PI;
L = 2*r*M_PI;
... | 648 | memory_bytes | {'s_id': 's788134947', 'p_id': 'p02400', 'u_id': 'u007749073', 'date': '1443336887', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '648', 'code_size': '373'} | [
{
"content": "Your task is to predict the memory 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// ITP1_4_B\n//\n// Created by ??±??°?????? on 2015/09/27.\n// Copyright ?? 2015??´ HamadaShogo. All rights reserve... |
CDSS_102674 | CDSS | #include <stdio.h>
int main(void){
int c_score;
int highscore[3];
int i,j,k,u;
for(u = 0; u < 2; u++){
for(i = 0; i < 3; i++){
highscore[i] = -1;
}
for(i = 0; i < 10; i++){
scanf("%d",&c_score);
for(j = 0; j < 3; j++){
if(c_score > highscore[j]){
for(k = 1; k >= j; k--){
highscore[k+1... | 0 | memory_bytes | {'s_id': 's303196505', 'p_id': 'p00456', 'u_id': 'u777217452', 'date': '1324003316', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '567'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 c_score;\n\tint highscore[3];\n\tint i,j,k,u;\n\tfor(u = 0; u < 2; u++){\n\t\tfor(i = 0; ... |
CDSS_41644 | CDSS | #include<stdio.h>
int main(){
int n,a,b,c,d,count;
while(scanf("%d",&n)!=EOF){
count=0;
for(a=0;a<=9;a++){
for(b=0;b<=9;b++){
for(c=0;c<=9;c++){
for(d=0;d<=9;d++){
if(a+b+c+d==n)count++;
}
... | 596 | memory_bytes | {'s_id': 's066073935', 'p_id': 'p00008', 'u_id': 'u011621222', 'date': '1369751203', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '394'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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,a,b,c,d,count;\n while(scanf(\"%d\",&n)!=EOF){\n count=0;\n for(a=0;a<=9;a+... |
CDSS_356481 | CDSS | #include <stdio.h>
int main(void)
{
int i,j,k;
int n,x;
int count = 0;
while(1){
scanf(" %d %d",&n,&x);
if(n == 0 && x == 0){
break;
}
for(i = 1;i <= n;i++){
for(j = i+1;j <= n;j++){
for(k = j+1;k <= n;k++){
if(i+j+k == x){
count++;
}
}
}
}
pr... | 600 | memory_bytes | {'s_id': 's518747284', 'p_id': 'p02412', 'u_id': 'u761679437', 'date': '1399739139', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', '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\nint main(void)\n{\n\n int i,j,k;\n int n,x;\n int count = 0;\n \n\n while(1){\n scanf(\" %d %d\",&n,&x);... |
CDSS_131231 | CDSS | #include<stdio.h>
static const int N=100;
int main(){
int i,j,k,l,n,p[N+1],m[N+1][N+1];
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-l)+1;i++){
j=i+l-1;
m[i][j]=(1<<21);
for(k=i;k<=j-1;k++){
... | 2,116 | memory_bytes | {'s_id': 's182650152', 'p_id': 'p02234', 'u_id': 'u231643476', 'date': '1531988665', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2116', '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\nstatic const int N=100;\n\nint main(){\n\n int i,j,k,l,n,p[N+1],m[N+1][N+1];\n\n scanf(\"%d\",&n);\n\n\n for(i... |
CDSS_737853 | CDSS | #include <stdio.h>
int main(void){
char sa[101] = { '\0' };
char sb[101] = { '\0' };
char sc[101] = { '\0' };
scanf("%s", sa);
scanf("%s", sb);
scanf("%s", sc);
int na = 0;
int nb = 0;
int nc = 0;
int ma = 0;
int mb = 0;
int mc = 0;
while(sa[ma] != '\0') ma++;
while(sa[mb] != '\0') mb++;
... | 128 | memory_bytes | {'s_id': 's394839519', 'p_id': 'p03998', 'u_id': 'u183866833', 'date': '1549221863', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '816'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 char sa[101] = { '\\0' };\n char sb[101] = { '\\0' };\n char sc[101] = { '\\0' };\n scanf(... |
CDSS_135256 | CDSS | #include <stdio.h>
#define N 101
int main(){
int n, i, j;
int a, b, c;
int A[N][N];
scanf("%d",&n);
for(i=1;i<=n;i++){
for(j=1;j<=n;j++){
A[i][j] = 0;
}
}
for(i=1;i<=n;i++){
scanf("%d",&a);
scanf("%d",&b);
for(j=1;j<=b;j++){
scanf("%d",&c);
A[a][c]=1... | 640 | memory_bytes | {'s_id': 's359455865', 'p_id': 'p02237', 'u_id': 'u803109289', 'date': '1499830724', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '640', '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 \n#define N 101\n\nint main(){\n \n int n, i, j; \n int a, b, c;\n int A[N][N];\n \n scanf(\"%d\",&n);\n \n... |
CDSS_105987 | CDSS | #include <stdio.h>
int main(void)
{
int i,smallp,smallj,answer;
int pasta[10];
int juice[10];
for(i=1;i<=3;i++){
scanf("%d",&pasta[i-1]);
}
smallp=pasta[0];
if(smallp>pasta[1]){
smallp=pasta[1];
}
if(smallp>pasta[2]){
smallp=pasta[2];
}
for(i=1;i<=2;i++){
scanf("%d",&juice[i-1]);
}
if(juice[0]>=ju... | 592 | memory_bytes | {'s_id': 's129868010', 'p_id': 'p00488', 'u_id': 'u573660269', 'date': '1495960392', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', 'code_size': '424'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n\tint i,smallp,smallj,answer;\n\tint pasta[10];\n\tint juice[10];\n\tfor(i=1;i<=3;i++){\n\t\t... |
CDSS_299302 | CDSS | #include<stdio.h>
main(){
int i,n;
for(i=1;;i++){
scanf("%d",&n);
if(n==0)break;
printf("Case %d: %d\n",i,n);
}
return 0;
}
| 2,036 | memory_bytes | {'s_id': 's737758058', 'p_id': 'p02396', 'u_id': 'u630852627', 'date': '1557926837', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2036', '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>\nmain(){\n int i,n;\n for(i=1;;i++){\n scanf(\"%d\",&n);\n if(n==0)break;\n printf(\"Case %d: %d\\n\",i,n... |
CDSS_53294 | CDSS | #include <stdio.h>
#include <string.h>
int main(void)
{
char str[200];
int i;
scanf("%[^\n]%*c", str);
for (i = 0; i < strlen(str); i++) {
if (str[i] == ' ' || str[i] == '.') {
continue;
}
str[i] -= 32;
}
printf("%s\n", str);
return 0;
} | 520 | memory_bytes | {'s_id': 's635267318', 'p_id': 'p00020', 'u_id': 'u995466695', 'date': '1496907718', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '520', 'code_size': '307'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\nint main(void)\n{\n char str[200];\n int i;\n \n scanf(\"%[^\\n]%*c\", str);\n ... |
CDSS_739875 | CDSS | #include <stdio.h>
int main(void) {
int alf[26] = {0};
char w[110];
int i;
scanf("%s", w);
for(i = 0; w[i] != '\0'; i++) {
alf[w[i] - 'a']++;
}
for(i = 0; i < 26; i++) {
if(alf[i] % 2 == 1) {
printf("No\n");
return 0;
}
}
printf("Yes\n");
return 0;
} | 128 | memory_bytes | {'s_id': 's573433022', 'p_id': 'p04012', 'u_id': 'u973997867', 'date': '1527171964', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '298'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\n int alf[26] = {0};\n char w[110];\n int i;\n \n scanf(\"%s\", w);\n for(i = 0; w[i] != ... |
CDSS_669182 | CDSS | #include <stdio.h>
int main(void){
// Your code here!
long long int X, Y, count = 0;
scanf("%lld %lld", &X, &Y);
while(X <= Y) {
count++;
X *= 2;
}
printf("%d", count);
return 0;
}
| 128 | memory_bytes | {'s_id': 's508529970', 'p_id': 'p03479', 'u_id': 'u365475813', 'date': '1536079437', '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>\nint main(void){\n // Your code here!\n long long int X, Y, count = 0;\n scanf(\"%lld %lld\", &X, &Y);\n ... |
CDSS_369079 | CDSS | #include <stdio.h>
#include <string.h>
#include <ctype.h>
int main() {
char W[10], T[5];
int count = 0, i;
scanf("%s", W);
while (scanf("%s", T) != EOF && strcmp(T, "END_OF_TEXT")) {
for (i = 0; T[i]; i++) {
T[i] = tolower(T[i]);
}
if (!strcmp(W, T)) {
co... | 548 | memory_bytes | {'s_id': 's500470243', 'p_id': 'p02419', 'u_id': 'u440180827', 'date': '1485244873', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '548', 'code_size': '385'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 <ctype.h>\n\nint main() {\n char W[10], T[5];\n int count = 0, i;\n scanf(\... |
CDSS_593046 | CDSS | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
#include <math.h>
int main() {
int y,m,d;
scanf("%d/%d/%d", &y,&m,&d);
if(m<5){
puts("Heisei");
}else{
puts("TBD");
}
return 0;
}
| 128 | memory_bytes | {'s_id': 's072720479', 'p_id': 'p03109', 'u_id': 'u163680061', 'date': '1590937416', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '262'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer 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#include <ctype.h>\n#include <math.h>\n\nint main() {\n\n int y,m,d;\... |
CDSS_354674 | CDSS | #include<stdio.h>
int main(void){
int n,x;
int i,j,k;
int c;
while(1){
c=0;
scanf("%d %d",&n,&x);
if(n==0 && x==0)
break;
for(i=1;i<=n;i++){
for(j=i+1;j<=n;j++){
for(k=j+1;k<=n;k++){
if(i+j+k==x){
... | 600 | memory_bytes | {'s_id': 's066502893', 'p_id': 'p02412', 'u_id': 'u505794128', 'date': '1464161441', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', '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\nint main(void){\n \n int n,x;\n int i,j,k;\n int c;\n \n while(1){\n c=0;\n scanf... |
CDSS_227403 | CDSS | #include<stdio.h>
#include<string.h>
#include<stdlib.h>
struct node{
int r;
int l;
int p;
int key;
};
typedef struct node Node;
#define NIL NULL
Node root[250];
int main(){
int n,i,x;
Node t;
char com[20];;
scanf("%d",&n);
for(i=1;i<=n;i++){
scanf("%d",&root[i].key);
}
for(i=1;i<=n... | 2,148 | memory_bytes | {'s_id': 's300165653', 'p_id': 'p02287', 'u_id': 'u006036653', 'date': '1579760669', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2148', 'code_size': '748'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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>\nstruct node{\n int r;\n int l;\n int p;\n int key;\n};\ntypedef struct... |
CDSS_711592 | CDSS | #include <stdio.h>
int main() {
int n, i, a[200002], ans=1, flag=0;
scanf("%d %d %d", &n, &a[0], &a[1]);
if (a[0] < a[1])flag = 1;//単調増加
if (a[0] > a[1])flag = -1;//単調減少
for (i = 2; i < n; i++) {
scanf("%d", &a[i]);
if (a[i - 1] > a[i]) {
if (flag == 0) {
flag = -1;
}
else if (flag == 1) {
f... | 512 | memory_bytes | {'s_id': 's600428203', 'p_id': 'p03745', 'u_id': 'u333114422', 'date': '1587495820', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '13', 'memory': '512', '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() {\n\tint n, i, a[200002], ans=1, flag=0;\n\tscanf(\"%d %d %d\", &n, &a[0], &a[1]);\n\tif (a[0] < a[1]... |
CDSS_225194 | CDSS | #include<stdio.h>
#include<stdlib.h>
#define NIL NULL
struct node{
struct node *right;
struct node *left;
struct node *parent;
int key;
};
typedef struct node * Node;
Node root;
Node treeMinimum(Node x){
while(x->left!=NIL)
x =x->left;
re... | 20,456 | memory_bytes | {'s_id': 's791382902', 'p_id': 'p02285', 'u_id': 'u596659106', 'date': '1533820844', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '290', 'memory': '20456', 'code_size': '2668'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 NIL NULL\n\n struct node{\n struct node *right;\n struct nod... |
CDSS_693630 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#define ll long long
#define rep(i,n) for(ll i=0;i<(n);i++)
#define max(p,q) ((p)>(q)?(p):(q))
#define min(p,q) ((p)<(q)?(p):(q))
#define chmax(a,b) ((a)=(a)>(b)?(a):(b))
#define chmin(a,b) ((a)=(a)<(b)?(a):(b))
#define abs(p) ((p)>=(0)?(p):(-... | 128 | memory_bytes | {'s_id': 's196298752', 'p_id': 'p03644', 'u_id': 'u924527074', 'date': '1572401058', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '623'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <math.h>\n#include <string.h>\n#define ll long long\n#define rep(i,n) for(ll i=0;i<(... |
CDSS_249324 | CDSS | #include<stdio.h>
int main(void)
{
int x,y;
scanf("%d",&x);
printf("%d\n",x*x*x);
return 0;
}
| 2,124 | memory_bytes | {'s_id': 's186624226', 'p_id': 'p02388', 'u_id': 'u327854792', 'date': '1539565105', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2124', '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(void)\n{\n\tint x,y;\n\t\n\tscanf(\"%d\",&x);\n\tprintf(\"%d\\n\",x*x*x);\n\treturn 0;\n}\n\nPredict its m... |
CDSS_493556 | CDSS | #include<stdio.h>
int main()
{
int h,n;
scanf("%d %d",&h,&n);
int count=0;
while(h>0)
{
h=h-n;
count++;
}
printf("%d",count);
return 0;
} | 256 | memory_bytes | {'s_id': 's679371259', 'p_id': 'p02783', 'u_id': 'u918017679', 'date': '1580072340', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '256', 'code_size': '162'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main()\n{\n int h,n;\n scanf(\"%d %d\",&h,&n);\n int count=0;\n while(h>0)\n {\n h=h-n;\n count++;... |
CDSS_557571 | CDSS | #include <stdio.h>
int main(void)
{
int n, l, i, ans = 0, flg = 0;
scanf("%d %d", &n, &l);
if (l > 0) {
for (i = 1; i < n; i++) {
ans += l + i;
}
printf("%d\n", ans);
} else {
for (i = 0; i < n; i++) {
if (i == -l) {
flg = 1;
... | 128 | memory_bytes | {'s_id': 's135708970', 'p_id': 'p02994', 'u_id': 'u718101960', 'date': '1561254356', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '509'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n int n, l, i, ans = 0, flg = 0;\n scanf(\"%d %d\", &n, &l);\n\n if (l > 0) {\n ... |
CDSS_118959 | CDSS | #include<stdio.h>
int main(){
unsigned int n,i,j,a,b,s,d[10];
scanf("%d",&n);
while(n--){
for(i=0;i<9;i++)scanf("%x",&d[i]);//,printf("%d ",d[i]);printf("\n");
for(i=a=b=0;i<32;i++){
for(j=s=0;j<8;j++){
s+=d[j]%2;
d[j]/=2;
}
if((s+b)%2-d[8]%2){
a+=1<<i;
b+=8-s;
}
else b+... | 600 | memory_bytes | {'s_id': 's187131420', 'p_id': 'p00829', 'u_id': 'u731027244', 'date': '1496663318', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '396'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 unsigned int n,i,j,a,b,s,d[10];\n scanf(\"%d\",&n);\n while(n--){\n for(i=0;i<9;i++)scanf(\"%x\... |
CDSS_153389 | CDSS | #include <stdio.h>
int gcd(int x,int y){
int z = y % x;
if(x % z == 0){
return z;
}else{
gcd( z, x);
}
}
int main(void){
int a,b;
scanf("%d %d", &a, &b);
if(a == 1 || b == 1){
printf("1\n");
}
else if(a == b){
printf("%d\n", a);
}
else if(1 < a && a < b){
printf("%d\n", gcd( a, b));
}
else if... | 592 | memory_bytes | {'s_id': 's821177210', 'p_id': 'p02256', 'u_id': 'u910769350', 'date': '1369230163', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', 'code_size': '384'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 x,int y){\n\tint z = y % x;\n\tif(x % z == 0){\n\t\treturn z;\n\t}else{\n\t\tgcd( z, x);\n\t}\n}\n\n... |
CDSS_517275 | CDSS | #include <stdio.h>
int main(){
int a, b;
scanf("%d %d",&a,&b);
if((a>9)||(b>9)) printf("-1");
else printf("%d",a*b);
} | 128 | memory_bytes | {'s_id': 's771374433', 'p_id': 'p02879', 'u_id': 'u697715013', 'date': '1584856916', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '127'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n int a, b;\n scanf(\"%d %d\",&a,&b);\n if((a>9)||(b>9)) printf(\"-1\");\n else printf(\"%d\",a*... |
CDSS_551255 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <math.h>
int is_integer(int *X_i, int *X_j, int D) {
int sum = 0;
for (int k = 1; k <= D; k++) {
sum += (X_i[k] - X_j[k]) * (X_i[k] - X_j[k]);
}
int res = (int) sqrt(sum);
return (res * res) == sum;
}
int main() {
int N, D;
scanf("%d"... | 128 | memory_bytes | {'s_id': 's823972078', 'p_id': 'p02982', 'u_id': 'u619677540', 'date': '1590532742', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '807'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer 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 is_integer(int *X_i, int *X_j, int D) {\n int sum = 0;\n for (... |
CDSS_390502 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.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)... | 1,728 | memory_bytes | {'s_id': 's828312992', 'p_id': 'p02608', 'u_id': 'u382163500', 'date': '1594515895', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '1728', 'code_size': '980'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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#define ll long long\n#define rep(i,l,r)for(ll i=(l);... |
CDSS_144764 | CDSS | #include<stdio.h>
static const int N = 1000;
void trace(int A[], int n){
int i;
for ( i = 1; i <= n; i++ ){
if ( i > 1 ) printf(" ");
printf("%d", A[i]);
}
printf("\n");
}
int main(){
int n, i, j,v;
int A[N+1];
scanf("%d", &n);
for ( i = 1; i <= n; i++ ) scanf("%d", &A[i]);
for(i=1;i... | 608 | memory_bytes | {'s_id': 's074781346', 'p_id': 'p02255', 'u_id': 'u118206965', 'date': '1460525295', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '608', 'code_size': '481'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nstatic const int N = 1000;\n\nvoid trace(int A[], int n){\n int i;\n for ( i = 1; i <= n; i++ ){\n if ( i > ... |
CDSS_230912 | CDSS | #include <stdio.h>
#define MAX 2000000
#define INFTY 30
void insert(int key,int A[]);
int extract(int A[]);
void heap(int i,int A[]);
void increase(int i,int key,int A[]);
int A[MAX+1];
int H;
int main(void){
int key;
char com[10];
while(1){
scanf("%s",com);
if(com[0]== 'e' && com[1]=='n'){
break;
}
i... | 5,608 | memory_bytes | {'s_id': 's033269346', 'p_id': 'p02289', 'u_id': 'u274491487', 'date': '1576730581', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '290', 'memory': '5608', 'code_size': '1045'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 MAX 2000000\n#define INFTY 30\nvoid insert(int key,int A[]);\nint extract(int A[]);\nvoid heap(int i,int A... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.