identifier string | space string | input string | target float64 | metric_type string | metadata string | messages list |
|---|---|---|---|---|---|---|
CDSS_468249 | CDSS | #include <stdio.h>
#include <string.h>
int main(void)
{
char s[6];
int i, j = 0;
scanf("%s", s) ;
if((s[2]==s[3])&&(s[4]==s[5]))
j++;
if(j==1)
puts("Yes");
else
puts("No") ;
return 0;
}
| 128 | memory_bytes | {'s_id': 's097007043', 'p_id': 'p02723', 'u_id': 'u816631826', 'date': '1589934796', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '238'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\nint main(void)\n{\n char s[6];\n int i, j = 0;\n scanf(\"%s\", s) ;\n if((s[2]=... |
CDSS_551822 | CDSS | #include <stdio.h>
int main(){
int l, r, ll, rr, minn;
scanf("%d%d", &l, &r);
ll = l % 2019;
rr = r % 2019;
minn = 2019;
if(r - l > 2019) rr += 2019;
for (int i=ll;i<rr;i++){
for (int j=ll+i-ll+1;j<rr+1;j++){
if(minn > i * j % 2019){
minn = i * j % 2019;
... | 1,728 | memory_bytes | {'s_id': 's378309166', 'p_id': 'p02983', 'u_id': 'u419963262', 'date': '1599684610', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '13', 'memory': '1728', 'code_size': '373'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n \n int l, r, ll, rr, minn;\n \n scanf(\"%d%d\", &l, &r);\n\n ll = l % 2019;\n rr = r % 201... |
CDSS_580306 | CDSS | #include<stdio.h>
int main(){
int N,i,k=1,hight=0;
int a[200]={};
scanf("%d",&N);
for(i=0;i<N;i++){
scanf("%d",&a[i]);
}
//printf("%d\n",N);
//printf("%d\n",a[1]);
hight=a[0];
for(i=1;i<N;i++){
if(hight<=a[i]){
hight=a[i];
k=k+1;
}
}
printf("%d",k);
return 0;
} | 128 | memory_bytes | {'s_id': 's917229125', 'p_id': 'p03072', 'u_id': 'u544731670', 'date': '1591028171', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '128', 'code_size': '319'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int N,i,k=1,hight=0;\n int a[200]={};\n scanf(\"%d\",&N);\n for(i=0;i<N;i++){\n scanf(\"%d\",&... |
CDSS_153974 | CDSS | #include <stdio.h>
int main(void)
{
int x, y, z;
scanf("%d %d", &x, &y);
if(x < y){
z=x;
x=y;
y=z;
}
z=x%y;
while(z!=0){
x=y;
y=z;
z=x%y;
}
printf("%d\n", y);
return 0;
}
| 2,036 | memory_bytes | {'s_id': 's452462106', 'p_id': 'p02256', 'u_id': 'u471417709', 'date': '1569131682', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2036', 'code_size': '203'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void)\n{\n\tint x, y, z;\n\t\n\tscanf(\"%d %d\", &x, &y);\n\t\n\tif(x < y){\n\t\tz=x;\n\t\tx=y;\n\t\ty=... |
CDSS_508573 | CDSS | #include<stdio.h>
int main(void){
int N,x;
scanf("%d",&N);
int a[N];
for(x=0;x<N;x++)
scanf("%d",&a[x]);
int count = 0;
int now = 0;
for(x=0;x<N;x++){
if(a[x]-now==1)now=a[x];
else count++;}
if(count==N)count=-1;
printf("%d\n",count);
return 0;} | 896 | memory_bytes | {'s_id': 's013403990', 'p_id': 'p02832', 'u_id': 'u006717664', 'date': '1577313432', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '22', 'memory': '896', 'code_size': '306'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n int N,x;\n\n scanf(\"%d\",&N);\n int a[N];\n for(x=0;x<N;x++)\n scanf(\"%d\",&... |
CDSS_89410 | CDSS | #include <stdio.h>
int signal[10][7] = {
{0, 1, 1, 1, 1, 1, 1},
{0, 0, 0, 0, 1, 1, 0},
{1, 0, 1, 1, 0, 1, 1},
{1, 0, 0, 1, 1, 1, 1},
{1, 1, 0, 0, 1, 1, 0},
{1, 1, 0, 1, 1, 0, 1},
{1, 1, 1, 1, 1, 0, 1},
{0, 1, 0, 0, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1},
{1, 1, 0, 1, 1, 1, 1},
};
int main(void)
{
int n;
while ... | 612 | memory_bytes | {'s_id': 's662795775', 'p_id': 'p00228', 'u_id': 'u376883550', 'date': '1408711225', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '612', 'code_size': '673'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint signal[10][7] = {\n\t{0, 1, 1, 1, 1, 1, 1},\n\t{0, 0, 0, 0, 1, 1, 0},\n\t{1, 0, 1, 1, 0, 1, 1},\n\t{1, 0, ... |
CDSS_92933 | CDSS | #include <stdio.h>
int d,c;
int main()
{
scanf("%d%d",&d,&c);
printf("%d\n",d*c);
return 0;
} | 596 | memory_bytes | {'s_id': 's666100240', 'p_id': 'p00290', 'u_id': 'u995466695', 'date': '1431414142', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '98'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint d,c;\nint main()\n{\n\tscanf(\"%d%d\",&d,&c);\n\tprintf(\"%d\\n\",d*c);\n\n\treturn 0;\n\n}\nPredict its mem... |
CDSS_416984 | CDSS | #include <stdio.h>
#include <math.h>
#define PI 3.14159265358979323846
int main(void) {
int a, b, h, m;
scanf("%d%d%d%d", &a, &b, &h, &m);
long double rad = PI * 2 * ((long double)h / 12.0 + ((long double)m / 60.0) / 12.0 - (long double)m / 60.0);
long double rsq = (long double)(a * a + b * b) - (long ... | 2,556 | memory_bytes | {'s_id': 's103131264', 'p_id': 'p02677', 'u_id': 'u333548057', 'date': '1590169182', 'language': 'C', 'original_language': 'C (Clang 10.0.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '2556', 'code_size': '405'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n\n#define PI 3.14159265358979323846\nint main(void) {\n int a, b, h, m;\n scanf(\"%d%d%... |
CDSS_528332 | CDSS | #include<stdio.h>
#include<string.h>
int main(void)
{
char s[100];
int n,i;
scanf("%s", s);
n=strlen(s);
for(i=0; i<n; i++)
{
if(i%2==1&&s[i]=='R')
{
printf("No\n");
break;
}
if(i%2==0&&s[i]=='L')
{
printf("No\n");
break;
}
if(i==n-1)
printf("Yes\n");
}
return 0;
} | 128 | memory_bytes | {'s_id': 's411017395', 'p_id': 'p02910', 'u_id': 'u550605178', 'date': '1569357091', '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 should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\nint main(void)\n{\n\tchar s[100];\n\tint n,i;\n\tscanf(\"%s\", s);\n\tn=strlen(s);\n\tfor(i=0... |
CDSS_653165 | CDSS | #include<stdio.h>
int main(void)
{
int n,b=0,i,c;
scanf("%i",&n);
int a[n+1],ans;
a[0]=0;
for(i=1;i<=n;i++)
{
scanf("%i",&a[i]);
if(a[i]>a[i-1])b=b+a[i]-a[i-1];
else b=b+a[i-1]-a[i];
if(i==n-1)c=b;
}
i--;
if(a[i]>0)b=b+a[i];
else b=b-a[i];
for(... | 1,536 | memory_bytes | {'s_id': 's963369951', 'p_id': 'p03403', 'u_id': 'u816631826', 'date': '1559685437', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '1536', 'code_size': '700'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\n int n,b=0,i,c;\n scanf(\"%i\",&n);\n int a[n+1],ans;\n a[0]=0;\n for(i=1;i<=n;... |
CDSS_17754 | CDSS | #include<stdio.h>
int main()
{
int a,i,j;
for(i=1;i<=9;i++)
{
for(j=1;j<=9;j++)
{
printf("%dx%d=%d",i,j,i*j);
printf("\n");
}
}
return 0;
} | 520 | memory_bytes | {'s_id': 's810708525', 'p_id': 'p00000', 'u_id': 'u011621222', 'date': '1426079264', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '520', 'code_size': '204'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h> \nint main() \n{\n int a,i,j; \n for(i=1;i<=9;i++) \n { \n for(j=1;j<=9;j++) \n { \n print... |
CDSS_679820 | CDSS | #include <stdio.h>
int main(void){
int a,b;
scanf("%d%d",&a,&b);
printf("%d",a+(b-a)*2);
return 0;
} | 128 | memory_bytes | {'s_id': 's439525802', 'p_id': 'p03563', 'u_id': 'u013213797', 'date': '1583258628', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '104'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\n\tint a,b;\n\tscanf(\"%d%d\",&a,&b);\n\tprintf(\"%d\",a+(b-a)*2);\n\treturn 0;\n}\nPredict its ... |
CDSS_682899 | CDSS | #include <stdio.h>
#include <string.h>
int main(void) {
char s[7] = { 0 };
int ans = 0;
scanf("%s", &s);
for (int i = 0; i < 6; i++) {
if (s[i] == '1') ans++;
}
printf("%d\n", ans);
return 0;
} | 128 | memory_bytes | {'s_id': 's478058545', 'p_id': 'p03587', 'u_id': 'u203927510', 'date': '1506819826', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '208'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\nint main(void) {\n\tchar s[7] = { 0 };\n\tint ans = 0;\n\n\tscanf(\"%s\", &s);\n\t\n\tfor... |
CDSS_586391 | CDSS | #include <stdio.h>
int main(){
char b;
scanf("%c",&b);
if(b == 'A'){
printf("T\n");
} else if(b == 'T'){
printf("A\n");
} else if(b == 'C'){
printf("G\n");
} else if(b == 'G'){
printf("C\n");
}
return 0;
} | 128 | memory_bytes | {'s_id': 's761342679', 'p_id': 'p03085', 'u_id': 'u357544143', 'date': '1553457951', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '274'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n\n char b;\n scanf(\"%c\",&b);\n\n if(b == 'A'){\n printf(\"T\\n\");\n } else ... |
CDSS_305777 | CDSS | #include <stdio.h>
int main()
{
int a, b, c, count;
scanf("%d %d %d\n", &a, &b, &c);
for(a; a <= b; a++)
{
if(c % a == 0)
{
count++;
}
}
printf("%d\n", count);
return 0;
} | 600 | memory_bytes | {'s_id': 's061850323', 'p_id': 'p02398', 'u_id': 'u166299946', 'date': '1491189221', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '205'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main()\n{\n\n int a, b, c, count;\n scanf(\"%d %d %d\\n\", &a, &b, &c);\n for(a; a <= b; a++)\n {\n if... |
CDSS_596392 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main(void) {
int n, k, c = 0;
if(scanf("%d %d", &n, &k) == 1);
for(int i = 1; i <= n; i++) {
if(i % 2 != 0) {
c++;
}
}
if(c >= k) {
printf("YES");
} else {
printf("NO");
}
return 0;
}
| 128 | memory_bytes | {'s_id': 's064042199', 'p_id': 'p03129', 'u_id': 'u018586085', 'date': '1549764765', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '288'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <math.h>\n\nint main(void) {\n int n, k, c = 0;\n\n if(scanf(\"%d %d\", &n, &k) ... |
CDSS_320696 | CDSS | #include <stdio.h>
int main(void)
{
int a, b, i;
char op;
for (i = 1; i > 0; i++){
scanf("%d %c %d", &a, &op, &b);
if (op == '+')
{
printf("%d\n", a + b);
}
else if (op == '-')
{
printf("%d\n", a - b);
}
else if (op == '*')
{
printf("%d\n", a*b);
}
else if (op == '/'){
printf("%d... | 2,112 | memory_bytes | {'s_id': 's578103876', 'p_id': 'p02401', 'u_id': 'u175767681', 'date': '1563468264', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '391'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n \nint main(void)\n{\n\tint a, b, i;\n\tchar op;\n\tfor (i = 1; i > 0; i++){\n\t\tscanf(\"%d %c %d\", &a, &op, ... |
CDSS_190720 | CDSS | #include<stdio.h>
#include<stdlib.h>
int linearSearch(int n,int *s, int q, int *t){
int i,j;
for(i=0;i<n;i++){
if(*(s+i)==*t) return 1;
}
return 0;
}
int main(void){
int n,q,j,B,count=0;
int *s,*t;
scanf("%d\n",&n);
s=malloc(sizeof(int)*(n));
for(j=0;j<n;j++){
scanf("... | 2,100 | memory_bytes | {'s_id': 's875924362', 'p_id': 'p02267', 'u_id': 'u336208598', 'date': '1587363104', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2100', 'code_size': '604'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\nint linearSearch(int n,int *s, int q, int *t){\n int i,j;\n for(i=0;i<n;i++){\n ... |
CDSS_225191 | CDSS | #include <stdio.h>
#include <stdlib.h>
typedef struct node{
int key;
struct node *p;
struct node *l;
struct node *r;
} Node;
typedef Node *NodePointer;
NodePointer root = NULL;
NodePointer createNode(){
NodePointer a = malloc(sizeof(Node));
a->l = NULL;
a->r = NULL;
a->p = NULL;
a->key = 0;
re... | 20,448 | memory_bytes | {'s_id': 's785953427', 'p_id': 'p02285', 'u_id': 'u899570143', 'date': '1533825516', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '290', 'memory': '20448', 'code_size': '2218'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n \ntypedef struct node{\n int key;\n struct node *p;\n struct node *l;\n struct node *r... |
CDSS_216043 | CDSS | #include<stdio.h>
#define MAX 100001
#define N -1
typedef struct{
int parent,x,y;
}Node;
Node Tree[MAX];
int u,a,de[MAX];
int get(int);
void pr(int);
int main(){
int i,j,l,d,v,z;
scanf("%d" , &u);
for(i = 0;i < u; i++){
Tree[i].parent = N;
Tree[i].x = N;
Tree[i].y = N;
}
for( i = 0; i < u; i++){... | 2,176 | memory_bytes | {'s_id': 's092444718', 'p_id': 'p02279', 'u_id': 'u736567965', 'date': '1497494559', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '70', 'memory': '2176', 'code_size': '1186'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#define MAX 100001\n#define N -1\ntypedef struct{\n int parent,x,y;\n}Node;\nNode Tree[MAX];\nint u,a,de[MAX];\n... |
CDSS_372005 | CDSS | #include <stdio.h>
#include <string.h>
int main()
{
char str[1024], com[8], p[1024], t;
int a, b, q, i;
scanf("%s%d", str, &q);
for(i=0; i<q; i++) {
scanf(" %s%d%d", com, &a, &b);
if(com[0]=='p') {
t=str[b+1];
str[b+1]='\0';
puts(str+a);
s... | 588 | memory_bytes | {'s_id': 's692880308', 'p_id': 'p02422', 'u_id': 'u277798389', 'date': '1468068966', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '588', 'code_size': '655'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\nint main()\n{\n char str[1024], com[8], p[1024], t;\n int a, b, q, i;\n scanf(\"... |
CDSS_373404 | CDSS | #include<stdio.h>
#include<math.h>
int main(){
int n,i,N;
double x;
scanf("%d",&n);
N=n;
x=sqrt(n);
printf("%d:",n);
i=2;
while(i<=x){
while(n%i==0){
printf(" %d",i);
n=n/i;
}
i++;
}
if(n!=1)printf(" %d",n);
printf("\n");
return 0;
}
| 2,108 | memory_bytes | {'s_id': 's775222093', 'p_id': 'p02467', 'u_id': 'u723915999', 'date': '1518099750', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '261'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<math.h>\n\n\n\nint main(){\nint n,i,N;\ndouble x;\n\nscanf(\"%d\",&n);\nN=n;\nx=sqrt(n);\n\nprintf(\"%d:... |
CDSS_113424 | CDSS | /**
* AOJ #1100: Area of Polygons (ICPC Domestic 1998)
*/
#include <stdio.h>
#define MAX_N 50
/**
* Compute the area of a polygon with n vertices.
* The coordinates in x[] and y[] are given in the clockwise order.
* This function adopts the formula of the area using the vector product.
*/
double area(int n, in... | 636 | memory_bytes | {'s_id': 's366570909', 'p_id': 'p00682', 'u_id': 'u320121447', 'date': '1441268051', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '636', 'code_size': '758'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n/**\n * AOJ #1100: Area of Polygons (ICPC Domestic 1998)\n */\n\n#include <stdio.h>\n\n#define MAX_N 50\n\n/**\n * Compute the area ... |
CDSS_269813 | CDSS | #include<stdio.h>
int main(){
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;
} | 580 | memory_bytes | {'s_id': 's931339969', 'p_id': 'p02391', 'u_id': 'u920971906', 'date': '1481506064', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', 'code_size': '242'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n\n\n int a,b; \n\n\n scanf(\"%d\",&a);\n\n\n scanf(\"%d\",&b);\n\n\n if(a<b){\n\n\n ... |
CDSS_282497 | CDSS | #include <stdio.h>
main(){
int a,b,c,x;
scanf("%d%d%d",&a,&b,&c);
if(a>b){
x=a;
a=b;
b=x;
}
if(b>c){
x=b;
b=c;
c=x;
}
if(a>b){
x=a;
a=b;
b=x;
}
printf("%d %d %d\n",a,b,c);
return 0;
} | 596 | memory_bytes | {'s_id': 's673583255', 'p_id': 'p02393', 'u_id': 'u305050152', 'date': '1450238983', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '219'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nmain(){\n\t\n\tint a,b,c,x;\n\t\n\tscanf(\"%d%d%d\",&a,&b,&c);\n\t\n\tif(a>b){\n\t\tx=a;\n\t\ta=b;\n\t\tb=x;\n\t... |
CDSS_586499 | CDSS | /* ex3_5
hangan2020*/
#include <stdio.h>
#include <string.h>
int main(void){
char str[11], *p;
int len, max;
//文字列入力
scanf("%s", &str[0]);
//文字列先頭のアドレス
p = str;
len = 0;
max = 0;
//null文字ではない間に
while(*p){
//長さリセット
len = 0;
//ACGT列を見つけた... | 1,732 | memory_bytes | {'s_id': 's244567934', 'p_id': 'p03086', 'u_id': 'u293067086', 'date': '1594041581', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1732', 'code_size': '875'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n/* ex3_5\n hangan2020*/ \n\n#include <stdio.h>\n#include <string.h>\n\nint main(void){\n char str[11], *p; \n int len, max;... |
CDSS_377765 | CDSS | #include <stdio.h>
int main(){
int d,t,s;
scanf("%d %d %d",&d,&t,&s);
float atime=(float)d/(float)s;
if (atime<=t){
printf("Yes\n");
}
else{
printf("No\n");
}
}
| 1,644 | memory_bytes | {'s_id': 's404505645', 'p_id': 'p02570', 'u_id': 'u482431716', 'date': '1599516674', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1644', 'code_size': '176'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n\n\tint d,t,s;\n\t\n\tscanf(\"%d %d %d\",&d,&t,&s);\n\tfloat atime=(float)d/(float)s;\n\tif (atim... |
CDSS_536536 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<math.h>
int main()
{
int a,i;
char s[10000];
scanf("%d", &a);
scanf("%s", s);
if (a >= 3200)printf("%s\n", s);
else printf("red\n");
return 0;
} | 128 | memory_bytes | {'s_id': 's433784723', 'p_id': 'p02933', 'u_id': 'u677991935', 'date': '1566176676', '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 should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#include<string.h>\n#include<math.h>\n\nint main()\n{\n\tint a,i;\n\tchar s[10000];\n\tscanf(... |
CDSS_528520 | CDSS | #include<stdio.h>
#include<string.h>
#include<stdlib.h>
int main ()
{
char s[102];
int i;
scanf("%s", s);
for (i=0; i<strlen(s); i++) {
if (i % 2){
if ((s[i] != 'L') && (s[i] != 'U') &&(s[i] != 'D')) {
printf("No\n");
return 0;
}
}
... | 128 | memory_bytes | {'s_id': 's512203381', 'p_id': 'p02910', 'u_id': 'u335664934', 'date': '1568598923', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '526'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\n#include<stdlib.h>\nint main ()\n{\n char s[102];\n int i;\n scanf(\"%s\", s);\n ... |
CDSS_45459 | CDSS | #include <stdio.h>
#include <math.h>
int main(void)
{
double x1, x2, x3, y1, y2, y3;
double px, py, r;
int n, i;
scanf("%d",&n);
for(i=1;i<=n;i++){
scanf("%lf %lf %lf %lf %lf %lf", &x1, &y1, &x2, &y2, &x3, &y3);
px = ((y2 - y3)*(x1*x1 + y1*y1) + (y3 - y1)*(x2*x2 + y2*y2) + (y1 - y... | 664 | memory_bytes | {'s_id': 's592322730', 'p_id': 'p00010', 'u_id': 'u820929609', 'date': '1378050899', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '664', 'code_size': '670'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n \nint main(void)\n{\n double x1, x2, x3, y1, y2, y3;\n double px, py, r;\n int n, i... |
CDSS_153373 | CDSS |
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
int gcd(int a, int b) {
return b == 0 ? a : gcd(b, a % b);
}
int main() {
srand(time(0));
int a, b;
int k = rand() % 2;
scanf("%d %d", &a, &b);
if (k) printf("%d\n", gcd(a, b));
else printf("0");
return 0;
} | 592 | memory_bytes | {'s_id': 's671780482', 'p_id': 'p02256', 'u_id': 'u053777771', 'date': '1360254842', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', 'code_size': '275'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n\n#include <stdlib.h>\n#include <stdio.h>\n#include <time.h>\n\nint gcd(int a, int b) {\n\treturn b == 0 ? a : gcd(b, a % b);\n}\n\n... |
CDSS_515095 | CDSS | #include<stdio.h>
int main(void){
int n,i,j;
scanf("%d",&n);
char a[n];
scanf("%s",a);
if(n%2==1){
printf("No");
return 0;
}
for(i=0,j=(n/2);i<n/2;i++,j++){
if(a[i]!=a[j]){
printf("No");
return 0;
}
}
printf("Yes");
return 0;
} | 128 | memory_bytes | {'s_id': 's937270421', 'p_id': 'p02860', 'u_id': 'u056912761', 'date': '1585494352', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '282'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n int n,i,j;\n scanf(\"%d\",&n);\n char a[n];\n \n scanf(\"%s\",a);\n \n if(n%2==1){\n ... |
CDSS_466014 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
#define ll long long
#define INF 1<<31-1
#define LNF 9223372036854775807
#define PI 3.14159265358979
#define MIN(x,y) ((x)<(y)?(x):(y))
#define MAX(x,y) ((x)<(y)?(y):(x))
#define FOR(i,a,n) for(i=a;i<n;i++)
#define MOD 1000000007
//#define MOD 998244353
#define N... | 128 | memory_bytes | {'s_id': 's114181675', 'p_id': 'p02718', 'u_id': 'u471411790', 'date': '1586049066', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '684'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#include<string.h>\n\n#define ll long long\n#define INF 1<<31-1\n#define LNF 9223372036854775... |
CDSS_93824 | CDSS | #include<stdio.h>
int main(void)
{
int bus[24][60] = {0};
int j, i, n,m,l,f=0;
scanf("%d",&n);
for (j = 1; j <= n; j++)
{
scanf("%d %d", &m, &l);
bus[m][l] = 1;
}
scanf("%d", &n);
for (j = 1; j <= n; j++)
{
scanf("%d %d", &m, &l);
bus[m][l] = 1;
}
for (j = 0; j < 24; j++)
{
for (i = 0; i < 60; i++... | 628 | memory_bytes | {'s_id': 's306208899', 'p_id': 'p00293', 'u_id': 'u964212895', 'date': '1500007373', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '628', 'code_size': '506'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\n\tint bus[24][60] = {0};\n\tint j, i, n,m,l,f=0;\n\tscanf(\"%d\",&n);\n\tfor (j = 1; j <= n; j... |
CDSS_429847 | CDSS | #include <stdio.h>
int main(){
int s,w;
scanf("%d %d",&s,&w);
if(s>w)
puts("safe");
else
puts("unsafe");
return 0;
} | 1,640 | memory_bytes | {'s_id': 's484138672', 'p_id': 'p02699', 'u_id': 'u663394870', 'date': '1592244186', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '1640', 'code_size': '149'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n int s,w;\n scanf(\"%d %d\",&s,&w);\n if(s>w)\n puts(\"safe\");\n else\n puts(\... |
CDSS_647335 | CDSS | #include<stdio.h>
int main(void)
{
int i,top=0,price;
char str[4];
fgets(str,sizeof(str),stdin);
for(i=0;i<3;i++)
{
if(str[i] == 'o')
{
top++;
}
}
price = top*100 + 700;
printf("%d",price);
return 0;
} | 128 | memory_bytes | {'s_id': 's980131156', 'p_id': 'p03369', 'u_id': 'u298244614', 'date': '1569510560', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '249'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\n int i,top=0,price;\n char str[4];\n \n fgets(str,sizeof(str),stdin);\n \n for(i=0;i<3;i... |
CDSS_351511 | CDSS | #include<stdio.h>
int main()
{
int n,m,i,j;
scanf("%d%d",&n,&m);
int a[n][m];
int b[m];
for(i=0; i<n; i++)
{
for(j=0; j<m; j++)
{
scanf("%d",&a[i][j]);
}
}
for(j=0; j<m; j++)
{
scanf("%d",&b[j]);
}
int sum=0;
for(i=0; i<n; i... | 2,112 | memory_bytes | {'s_id': 's854730430', 'p_id': 'p02410', 'u_id': 'u274938043', 'date': '1586275256', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '482'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n int n,m,i,j;\n scanf(\"%d%d\",&n,&m);\n int a[n][m];\n int b[m];\n for(i=0; i<n; i... |
CDSS_535555 | CDSS | #include <stdio.h>
int main(void){
int N, K, A[20005], i, j, a, b;
long long c;
scanf("%d%d", &N, &K);
c=0;
for (i=0; i<N; i++) {
scanf("%d", &A[i]);
}
for (i=0; i<N; i++) {
a=0; b=0;
for (j=0; j<N; j++) {
if (A[i]>A[j]) {
if (i<j) a++;
... | 128 | memory_bytes | {'s_id': 's042588417', 'p_id': 'p02928', 'u_id': 'u279160680', 'date': '1566699162', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '12', 'memory': '128', 'code_size': '741'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n int N, K, A[20005], i, j, a, b;\n long long c;\n scanf(\"%d%d\", &N, &K);\n c=0;... |
CDSS_68046 | CDSS | #include<stdio.h>
struct _data{
int rank;
int p;
int num;
}typedef data;
data d[100000];
void sort(int n){
int i,j,t;
for(i=1;i<=n;i++){
for(j=i;j<=n;j++){
if(d[i].p<d[j].p){
t=d[i].p;
d[i].p=d[j].p;
d[j].p=t;
t=d[i].num;
d[i].num=d[j].num;
d[j].num=t;
}
}
}
}
int main(){
int i,... | 0 | memory_bytes | {'s_id': 's344756003', 'p_id': 'p00061', 'u_id': 'u769144819', 'date': '1282805543', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '629'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nstruct _data{\n\tint rank;\n\tint p;\n\tint num;\n}typedef data;\ndata d[100000];\nvoid sort(int n){\n\tint i,j,t... |
CDSS_315277 | CDSS | #include<stdio.h>
int main()
{
double r,pi=3.141592653589;
scanf("%lf",&r);
printf("%f %f\n",r*r*pi,2*r*pi);
return 0;
} | 648 | memory_bytes | {'s_id': 's063886776', 'p_id': 'p02400', 'u_id': 'u710890480', 'date': '1495103515', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '648', 'code_size': '128'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n double r,pi=3.141592653589;\n scanf(\"%lf\",&r);\n printf(\"%f %f\\n\",r*r*pi,2*r*pi);\n retu... |
CDSS_456425 | CDSS | #include <stdio.h>
int main() {
long long int input;
long long int i;
long long int sum = 0;
scanf("%lld", &input);
for(i = 1; i <= input; i++) {
if(i % 3 == 0 || i % 5 == 0) {
continue;
} else {
sum += i;
}
}
printf("%lld\n", sum);
return 0;
}
| 1,736 | memory_bytes | {'s_id': 's368019336', 'p_id': 'p02712', 'u_id': 'u078153338', 'date': '1586741010', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '9', 'memory': '1736', 'code_size': '271'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main() {\n\tlong long int input;\n\tlong long int i;\n\tlong long int sum = 0;\n\n\tscanf(\"%lld\", &inpu... |
CDSS_649527 | CDSS | #include <stdio.h>
#include<string.h>
int min(int x,int y){
if(x>y) return y;
else return x;
}
int main(void){
int n, m, x;
int a[200];
scanf("%d %d %d", &n,&m,&x);
for(int i=0;i<m;i++){
scanf("%d", a+i);
}
int left = 0;int right = 0;
for(int i=0;i<m;i++){
if(a[i]<x) left++;
else righ... | 1,684 | memory_bytes | {'s_id': 's927193260', 'p_id': 'p03378', 'u_id': 'u210041761', 'date': '1600404778', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1684', 'code_size': '381'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include<string.h>\n\nint min(int x,int y){\n if(x>y) return y;\n else return x;\n}\n\n \nint main(void){\n ... |
CDSS_574914 | CDSS | #include<stdio.h>
int main(void){
double a,c;
int d,b;
scanf("%lf%d%lf",&a,&b,&c);
c=c+0.5;
d=(int)c/a;
d=d*b;
printf("%d",d);
} | 128 | memory_bytes | {'s_id': 's049743214', 'p_id': 'p03059', 'u_id': 'u734857533', 'date': '1566355289', '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 should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\ndouble a,c;\n int d,b;\nscanf(\"%lf%d%lf\",&a,&b,&c);\nc=c+0.5;\nd=(int)c/a;\n d=d*b;\n print... |
CDSS_121013 | CDSS | #include<stdio.h>
#include<stdlib.h>
typedef struct{
int h;
int p;
int q;
} amida;
int cmph(const void* a,const void* b){
return ((amida*)b)->h - ((amida*)a)->h;
}
int main(){
int n,m,a,i,tmp;
amida line[1000];
while(scanf("%d %d %d",&n,&m,&a)!=0 && (n!=0) && (m!=0) && (a!=0)){
for(i=0;i<m;i++){
scanf("%... | 672 | memory_bytes | {'s_id': 's341419427', 'p_id': 'p01126', 'u_id': 'u984563327', 'date': '1434464384', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '672', 'code_size': '559'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n\ntypedef struct{\n\tint h;\n\tint p;\n\tint q;\n} amida;\n\nint cmph(const void* a,const voi... |
CDSS_623746 | CDSS | /* ex7_3
Rikuta */
#include <stdio.h>
int main(void)
{
//変数とポインタの宣言
int height, width, flag;
char **matrix_given;
int **on_off_matrix;
//与えられる行列の高さと幅の入力
scanf("%d %d\n", &height, &width);
//height*(width+1)の行列の動的確保.確保できなかったらエラー処理
matrix_given = (char **)calloc(height, sizeof... | 1,696 | memory_bytes | {'s_id': 's861053923', 'p_id': 'p03273', 'u_id': 'u969618034', 'date': '1594502328', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1696', 'code_size': '3101'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n/* ex7_3\n Rikuta */\n\n#include <stdio.h>\n\nint main(void)\n{ \n //変数とポインタの宣言\n int height, width, flag;\n char **... |
CDSS_692213 | CDSS | #include<stdio.h>
#include<string.h>
#include<math.h>
int ara_D[100][200];
int ara[100000];
char ara1[100000];
int main()
{
int i,j,k,l,n,t,df,v;
while(gets(ara1))
{
l=strlen(ara1);
k=l-2;
printf("%c%d%c\n",ara1[0],k,ara1[l-1]);
}
return 0;
}
| 128 | memory_bytes | {'s_id': 's533249614', 'p_id': 'p03636', 'u_id': 'u089230684', 'date': '1502465277', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '288'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\n#include<math.h>\nint ara_D[100][200];\nint ara[100000];\nchar ara1[100000];\nint main()\n{\n... |
CDSS_204535 | CDSS | #include<stdio.h>
#define datamax 500001
#define banpei 1000000001
int left[datamax/2 +1];
int right[datamax/2 + 1];
int cnt;
void merge(int *,int,int,int,int);
void mergeSort(int *,int,int,int);
int main(){
int a[datamax],n,i;
cnt = 0;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d",&a[i]);
}
mergeSort(... | 5,604 | memory_bytes | {'s_id': 's130511887', 'p_id': 'p02272', 'u_id': 'u916841654', 'date': '1548994041', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '100', 'memory': '5604', 'code_size': '1088'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#define datamax 500001\n#define banpei 1000000001\nint left[datamax/2 +1];\nint right[datamax/2 + 1];\nint cnt;\n... |
CDSS_255606 | CDSS | #include<stdio.h>
int main(int argv, char **argc) {
int a, b;
scanf("%d %d", &a, &b);
printf("%d %d\n", a * b, 2 * (a + b));
return 0;
} | 1,740 | memory_bytes | {'s_id': 's989840871', 'p_id': 'p02389', 'u_id': 'u232139030', 'date': '1511329417', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1740', 'code_size': '154'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(int argv, char **argc) {\n int a, b;\n scanf(\"%d %d\", &a, &b);\n printf(\"%d %d\\n\", a * b... |
CDSS_253542 | CDSS | #include<stdio.h>
int main(void){
int a,b;
scanf("%d\n",&a);
scanf("%d\n",&b);
printf("%d %d\n",a*b,a+a+b+b);
return 0;
} | 600 | memory_bytes | {'s_id': 's321145367', 'p_id': 'p02389', 'u_id': 'u168190469', 'date': '1479366061', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '129'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void){\n\tint a,b;\n\tscanf(\"%d\\n\",&a);\n\tscanf(\"%d\\n\",&b);\n\t\n\tprintf(\"%d %d\\n\",a*b,a+a+... |
CDSS_153859 | CDSS | #include<stdio.h>
int main(){
int x,y,r;
scanf("%d%d",&x,&y);
if(x<y){
r=x;
x=y;
y=r;
}
while(y>0){
r=x%y;
x=y;
y=r;
}
printf("%d\n",x);
return 0;
}
| 2,140 | memory_bytes | {'s_id': 's156179319', 'p_id': 'p02256', 'u_id': 'u593489879', 'date': '1575532342', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2140', 'code_size': '212'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n int x,y,r;\n \n scanf(\"%d%d\",&x,&y);\n if(x<y){\n r=x;\n x=y;\n y=r;\n }\n\n ... |
CDSS_104413 | CDSS | // AOJ 0548 Reindeer with no sense of direction
// 2018.2.23 bal4u
#include <stdio.h>
int w, h, cnt, ans;
char map[13][13];
int mv[4][2] = {{-1,0},{0,1},{1,0},{0,-1}};
//#define getchar_unlocked() getchar()
int in()
{
int n = 0;
int c = getchar_unlocked();
do n = (n<<3)+(n<<1) + (c & 0xf), c = getchar_unlocked()... | 2,020 | memory_bytes | {'s_id': 's516750821', 'p_id': 'p00471', 'u_id': 'u847467233', 'date': '1519339108', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5550', 'memory': '2020', 'code_size': '1034'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n// AOJ 0548 Reindeer with no sense of direction\n// 2018.2.23 bal4u\n\n#include <stdio.h>\n\nint w, h, cnt, ans;\nchar map[13][13];\... |
CDSS_592561 | CDSS | #include<stdio.h>
int main(void)
{
char s[99999];
int i, a, b;
scanf("%s", s);
for(i=0; s[i]!='\0'; i++){
if(s[i]=='0') a++;
else if(s[i]=='1') b++;
}
if(a<b) printf("%d\n", a*2);
else printf("%d\n", b*2);
return 0;
}
| 256 | memory_bytes | {'s_id': 's275953474', 'p_id': 'p03107', 'u_id': 'u438782979', 'date': '1555422267', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '256', 'code_size': '318'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void)\n{\n char s[99999];\n int i, a, b;\n\n scanf(\"%s\", s);\n\n for(i=0... |
CDSS_728319 | CDSS | #include <stdio.h>
#include <string.h>
#define MAX 100000 // キュー配列の最大サイズ
int qu[MAX]; // キューを表す配列
int tail = 0, head = 0; // キューの要素区間を表す変数
// キューを初期化する
void init() {
head = tail = 0;
}
// キューが空かどうかを判定する
int isEmpty() {
return (head == tail);
}
// スタックが満杯かどうかを判定する
int isFull() {
return (head == (tail + ... | 1,816 | memory_bytes | {'s_id': 's356250998', 'p_id': 'p03854', 'u_id': 'u906918812', 'date': '1597455381', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '416', 'memory': '1816', 'code_size': '1729'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\n#define MAX 100000 // キュー配列の最大サイズ\n\nint qu[MAX]; // キューを表す配列\nint tail = 0, head = 0; //... |
CDSS_514214 | CDSS | #include <stdio.h>
#include <string.h>
#define max 3
int main()
{
int r;
scanf("%d", &r);
printf("%d", r*r);
return 0;
}
| 128 | memory_bytes | {'s_id': 's709378620', 'p_id': 'p02859', 'u_id': 'u645174893', 'date': '1584681972', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '154'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\n#define max 3\n\nint main()\n{\n int r;\n \n scanf(\"%d\", &r);\n \n print... |
CDSS_315097 | CDSS | #include <stdio.h>
int main()
{
double r, pi=3.141592653589;
scanf("%lf", &r);
printf("%f %f\n", pi * r * r, 2 * r * pi);
return 0;
} | 648 | memory_bytes | {'s_id': 's148196700', 'p_id': 'p02400', 'u_id': 'u366808968', 'date': '1493188977', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '648', 'code_size': '138'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main()\n{\n double r, pi=3.141592653589;\n scanf(\"%lf\", &r);\n printf(\"%f %f\\n\", pi * r * r, 2 * r * ... |
CDSS_527615 | CDSS | #include<stdio.h>
int main(void)
{
char str1[10] = {"Sunny"};
char str2[10] = {"Cloudy"};
char str3[10] = {"Rainy"};
char str4[10];
scanf("%s",str4);
if(strcmp(str1,str4) == 0){
printf("%s",str2);
}
else if(strcmp(str2,str4) == 0){
printf("%s",str3);
}
else if(strcmp(str3,str4) ... | 128 | memory_bytes | {'s_id': 's210318687', 'p_id': 'p02909', 'u_id': 'u682814923', 'date': '1569465714', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '373'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void)\n{\n char str1[10] = {\"Sunny\"};\n char str2[10] = {\"Cloudy\"};\n char str3[10] = {\"Rainy\... |
CDSS_569408 | CDSS | #include <stdio.h>
int main(void) {
int N, M;
int L = 1;
int R = 1;
int tmp_l, tmp_r;
scanf("%d %d\n", &N, &M);
R = N;
for (int i = 0; i < M; ++i) {
scanf("%d %d", &tmp_l, &tmp_r);
if (L < tmp_l) {
L = tmp_l;
}
if (R > tmp_r) {
R = ... | 128 | memory_bytes | {'s_id': 's771124421', 'p_id': 'p03037', 'u_id': 'u194484609', 'date': '1558839471', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '18', 'memory': '128', 'code_size': '406'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\n int N, M;\n int L = 1;\n int R = 1;\n int tmp_l, tmp_r;\n\n scanf(\"%d %d\\n... |
CDSS_649735 | CDSS | #include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(void)
{
int n, m, x, i, a, l = 0, r = 0;
int num[101] = {0};
scanf("%d%d%d", &n, &m, &x);
for (i = 0; i < m; ++i) scanf("%d", num + i);
for (i = 0; i < m; ++i) {
if (num[i] < x) ++l;
else ++r;
... | 128 | memory_bytes | {'s_id': 's330355004', 'p_id': 'p03378', 'u_id': 'u793460037', 'date': '1525321411', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '394'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <ctype.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\nint main(void)\n{\n int n, m, x, i, a, l = 0,... |
CDSS_537267 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
int cmp(const void *a,const void *b){
if(*(int*)a>*(int*)b){return 1;}
else if(*(int*)a<*(int*)b){return -1;}
else {return 0;}
}
int main(void){
int n;
int v[55];
scanf("%d",&n);
for(int i=0;i<n;i++){
scanf("%d",&v[i]);
}
... | 128 | memory_bytes | {'s_id': 's550312400', 'p_id': 'p02935', 'u_id': 'u932514381', 'date': '1587853638', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '464'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <math.h>\n\n\nint cmp(const void *a,const void *b){\n if(*... |
CDSS_229645 | CDSS |
#include <stdio.h>
long H;
long heap[500001];
long right(long i) { return 2 * i + 1; }
long left(long i) { return 2 * i; }
long parent(long i) { return i / 2 ;}
void maxHeapify(long i) {
long r = right(i);
long l = left(i);
long max;
if (r<=H && heap[r]>heap[i]) {
max = r;
}
else {
max = i;
}
if (l<... | 5,608 | memory_bytes | {'s_id': 's634786459', 'p_id': 'p02288', 'u_id': 'u588681149', 'date': '1554780272', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '60', 'memory': '5608', 'code_size': '709'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n\n#include <stdio.h>\n\n\nlong H;\nlong heap[500001];\n\nlong right(long i) { return 2 * i + 1; }\nlong left(long i) { return 2 * i;... |
CDSS_264309 | CDSS | #include <stdio.h>
#include <stdlib.h>
int main()
{
int sec;
scanf("%d", &sec);
printf("%d:%d:%d\n", sec / 3600, (sec % 3600) / 60, sec % 60);
return 0;
}
| 2,052 | memory_bytes | {'s_id': 's967117461', 'p_id': 'p02390', 'u_id': 'u884879226', 'date': '1584851859', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2052', 'code_size': '162'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\nint main()\n{\n\tint sec;\n\n\tscanf(\"%d\", &sec);\n\tprintf(\"%d:%d:%d\\n\", sec / 3600... |
CDSS_302521 | CDSS | #include <stdio.h>
int main()
{
int x[3000], y[3000];
int a, b, i;
int p = 0;
for(i=0;i<3000;i++){
scanf("%d\n", &x[i]);
scanf("%d\n", &y[i]);
a = x[i];
b = y[i];
if(a==0 && b==0){
break;
}
p++;
}
for(i=0;i<p;i++){
a = x[i];
b = y[i];
if(a<b || a==b){
printf("%d %d\n", a, b);
}else ... | 2,100 | memory_bytes | {'s_id': 's262214569', 'p_id': 'p02397', 'u_id': 'u978190838', 'date': '1520620381', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2100', 'code_size': '414'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main()\n{\n\tint x[3000], y[3000];\n\tint a, b, i;\n\tint p = 0;\n\n\tfor(i=0;i<3000;i++){\n\t\tscanf(\"%d... |
CDSS_141374 | CDSS | #include <stdio.h>
#include <stdlib.h>
#define INIT_CAP 10
#define INF 1000000000
inline int nextInt(void) {
int ch;
int sign, x;
do {
ch = getchar();
} while (ch < '-');
if (ch == '-') {
sign = -1;
ch = getchar();
} else
sign = 1;
x = 0;
while (ch >= '0' && ch <= '9') {
x = x * 10 + ch - '0';
... | 5,652 | memory_bytes | {'s_id': 's890193119', 'p_id': 'p02243', 'u_id': 'u340315059', 'date': '1434503493', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '5652', 'code_size': '2394'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\n#define INIT_CAP 10\n#define INF 1000000000\n\ninline int nextInt(void) {\n\tint ch;\n\ti... |
CDSS_112178 | CDSS | // AOJ 1034: Line Puzzle
// 2017.9.29 bal4u@uu
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define N 8
#define N2 66
typedef struct { signed char r, c, s, t; } T;
T start[N2]; int m;
signed char map[N][N]; int n, n2;
int mv[4][2] = {{-1,0},{1,0},{0,1},{0,-1}};
int cmp(T *a, T *b)
{
if (b->s - a->s)... | 1,684 | memory_bytes | {'s_id': 's594825546', 'p_id': 'p00620', 'u_id': 'u847467233', 'date': '1506652825', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '60', 'memory': '1684', 'code_size': '1913'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n// AOJ 1034: Line Puzzle\n// 2017.9.29 bal4u@uu\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\n#define N 8\n#def... |
CDSS_701291 | CDSS | #include <stdio.h>
int main(void){
int n, a[110];
scanf("%d", &n);
for(int i=0; i<n; i++) scanf("%d", &a[i]);
for(int i=0; i<n; i++){
for(int j=0; j<n-1; j++){
if(a[j]>a[j+1]){
int temp = a[j];
a[j] = a[j+1];
a[j+1] = temp;
... | 1,660 | memory_bytes | {'s_id': 's124404488', 'p_id': 'p03694', 'u_id': 'u756264154', 'date': '1598134772', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1660', 'code_size': '385'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n int n, a[110];\n scanf(\"%d\", &n);\n for(int i=0; i<n; i++) scanf(\"%d\", &a[i]);\... |
CDSS_623307 | CDSS | #include <stdio.h>
int main(void)
{
int a,b,c;
scanf("%d %d",&a,&b);
c = a - b + 1;
printf("%d",c);
return 0;
} | 128 | memory_bytes | {'s_id': 's646363766', 'p_id': 'p03272', 'u_id': 'u574775741', 'date': '1552497873', '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 should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n int a,b,c;\n scanf(\"%d %d\",&a,&b);\n c = a - b + 1;\n printf(\"%d\",c);\n return 0;\n}\n... |
CDSS_63876 | CDSS | #include<stdio.h>
int main(){
int a,b,n=0,m=0,i=0;
double c,d,v;
while(scanf("%d,%d",&a,&b)!=EOF){
n=n+a*b;
m=m+b;
i=i+1;
}
v=(double)m/i;
d=v+0.5;
d=(double)(int)d;
printf("%d\n%g\n",n,d);
return (0);
} | 624 | memory_bytes | {'s_id': 's176473303', 'p_id': 'p00045', 'u_id': 'u107951427', 'date': '1371027974', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '624', 'code_size': '233'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int a,b,n=0,m=0,i=0;\n double c,d,v;\n while(scanf(\"%d,%d\",&a,&b)!=EOF){\n n=n+a*b;\n m=... |
CDSS_673885 | CDSS | #include<stdio.h>
int main() {
int N, A, B;
int sum;
scanf("%d", &N);
scanf("%d", &A);
scanf("%d", &B);
sum = N * A;
if (sum <= B) {
printf("%d\n", sum);
} else {
printf("%d\n", B);
}
return 0;
} | 128 | memory_bytes | {'s_id': 's570535291', 'p_id': 'p03501', 'u_id': 'u797674884', 'date': '1512353530', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '128', 'code_size': '257'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main() {\n\n int N, A, B;\n int sum;\n\n scanf(\"%d\", &N);\n scanf(\"%d\", &A);\n scanf(\"%... |
CDSS_319731 | CDSS |
#include<stdio.h>
int main(){
int n1,n2;
char op;
while(1){
scanf("%d %c %d",&n1,&op,&n2);
if(op == '?')
break;
if(op == '+')
printf("%d\n",n1+n2);
if(op == '-')
printf("%d\n",n1-n2);
if(op == '*')
printf("%d\n",n1*n2);
if(op =... | 2,064 | memory_bytes | {'s_id': 's353539920', 'p_id': 'p02401', 'u_id': 'u740322237', 'date': '1525283290', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2064', 'code_size': '380'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n\n#include<stdio.h>\nint main(){\n int n1,n2;\n char op;\n while(1){\n scanf(\"%d %c %d\",&n1,&op,&n2);\n if(... |
CDSS_334252 | CDSS | #include<stdio.h>
int main(){
int H=0,W=0,i=0,j=0,t=0,u=0;
for(;scanf("%d %d",&H,&W),H;puts("")){
for(i=0,t=H-1;i<H;i++,t--){
for(j=0,u=W-1;j<W;j++,u--){
printf("%s%s",i*j*t*u?".":"#",j==W-1?"\n":"");
}
}
}
} | 1,708 | memory_bytes | {'s_id': 's950720335', 'p_id': 'p02404', 'u_id': 'u601537279', 'date': '1508079551', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1708', 'code_size': '276'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int H=0,W=0,i=0,j=0,t=0,u=0;\n for(;scanf(\"%d %d\",&H,&W),H;puts(\"\")){\n for(i=0,t=... |
CDSS_499937 | CDSS | #include<stdio.h>
int main(void)
{
char C;
scanf("%c",&C);
printf("%c",C+1);
} | 128 | memory_bytes | {'s_id': 's059373604', 'p_id': 'p02801', 'u_id': 'u456823367', 'date': '1581847630', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '82'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void)\n{\n\tchar C;\n\tscanf(\"%c\",&C);\n\tprintf(\"%c\",C+1);\n}\nPredict its memory footprint.",
... |
CDSS_550316 | CDSS | #include<stdio.h>
int main()
{
int n,tr,tx,tt;
scanf("%d %d %d",&n,&tr,&tx);
tt=tr*n;
if(tt>tx)
{
printf("%d",tx);
}
else if(tt<tx)
{
printf("%d",tt);
}
else
{
printf("%d",tt);
}
return 0;
}
| 128 | memory_bytes | {'s_id': 's080444565', 'p_id': 'p02981', 'u_id': 'u018679195', 'date': '1568262930', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '279'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n int n,tr,tx,tt;\n scanf(\"%d %d %d\",&n,&tr,&tx);\n tt=tr*n;\n if(tt>tx)\n {\n ... |
CDSS_702871 | CDSS | #include <stdio.h>
int main(){
int A,B;
scanf("%d %d",&A,&B);
if(A+B>=10)printf("error\n");
else printf("%d",A+B);
return 0;
} | 128 | memory_bytes | {'s_id': 's070367274', 'p_id': 'p03697', 'u_id': 'u563313000', 'date': '1497664933', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '162'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n \n int A,B;\n \n scanf(\"%d %d\",&A,&B);\n if(A+B>=10)printf(\"error\\n\");\n ... |
CDSS_302997 | CDSS | #include<stdio.h>
int main(void)
{
int a[3000], b[3000];
int i, count=0;
for(i=0; i<3000; i++)
{
scanf("%d %d", &a[i], &b[i]);
if (a[i]==0 && b[i]==0)
break;
count++;
}
for(i=0; i<count; i++)
{
if (a[i]>b[i])
printf("%d %d\n", b[i], a[i]);
else
printf("%d %d\n", a[i], b[i]);
}
return 0;
}
| 2,024 | memory_bytes | {'s_id': 's763160496', 'p_id': 'p02397', 'u_id': 'u244105241', 'date': '1527776718', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2024', 'code_size': '320'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void)\n{\n\tint a[3000], b[3000];\n\tint i, count=0;\n\tfor(i=0; i<3000; i++)\n\t{\n\t\tscanf(\"%d %d\... |
CDSS_545429 | CDSS | #include<stdio.h>
int main(void){
int n;
scanf("%d", &n);
int p[n], miss=0;
for(int i=0; i<n; i++){
scanf("%d", &p[i]);
if(p[i] != i+1){
miss++;
}
}
if(miss > 2){
printf("NO\n");
}else {
printf("YES\n");
}
return 0;
} | 128 | memory_bytes | {'s_id': 's866292342', 'p_id': 'p02958', 'u_id': 'u913543026', 'date': '1564276246', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '308'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void){\n int n;\n scanf(\"%d\", &n);\n int p[n], miss=0;\n for(int i=0; i<n; i++){\n ... |
CDSS_119819 | CDSS | #define R(x)if(r>x)r=x;
main(r,D,a,b,c,d,e,A,B,C){for(;scanf("%d%d%d%d%d%d%d%d",&a,&b,&c,&d,&e,&A,&B,&C)>7;printf("%d\n",r)){
if(C>=d){
r=a*A+b*B+e*C;
}else{
r=a*A+b*B+c*C;
R(a*A+b*B+e*d)
if(B+C>=d){R(a*A+b*(B+C-d)+e*d)}
else if(A+B+C>=d){R(a*(A+B+C-d)+e*d)}
else{R(e*d)}
}
}exit(0);} | 600 | memory_bytes | {'s_id': 's761394540', 'p_id': 'p00999', 'u_id': 'u300645821', 'date': '1364994840', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '299'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#define R(x)if(r>x)r=x;\nmain(r,D,a,b,c,d,e,A,B,C){for(;scanf(\"%d%d%d%d%d%d%d%d\",&a,&b,&c,&d,&e,&A,&B,&C)>7;printf(\"%d\\n\",r)){\... |
CDSS_690240 | CDSS | #include<stdio.h>
int main(){
int a,b,c,d,st,en;
scanf("%d%d%d%d",&a,&b,&c,&d);
st = a<c?c:a;
en = b<d?b:d;
if(en-st>0)printf("%d\n",en-st);
else puts("0");
return 0;
}
| 128 | memory_bytes | {'s_id': 's072904474', 'p_id': 'p03632', 'u_id': 'u850894780', 'date': '1537380611', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '183'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int a,b,c,d,st,en;\n scanf(\"%d%d%d%d\",&a,&b,&c,&d);\n st = a<c?c:a;\n en = b<d?b:d;\n if(en-... |
CDSS_714653 | CDSS | #include<stdio.h>
long max(long a, long b){
if(a > b) return a;
else return b;
}
long min(long a, long b){
if(a < b) return a;
else return b;
}
int f(long a,long b){
long c = max(a,b);
int keta = 1;
for(int i = 0; i < 10; ++i){
if( c/10 > 0 ){
keta ++;
c /= 10;
}
}
return keta;... | 128 | memory_bytes | {'s_id': 's187772070', 'p_id': 'p03775', 'u_id': 'u759675243', 'date': '1590349879', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '128', 'code_size': '574'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nlong max(long a, long b){\n if(a > b) return a;\n else return b;\n}\n\nlong min(long a, long b){\n if(a < b)... |
CDSS_640208 | CDSS | /*
kadai4_3 stone_monument
unomi
*/
#include <stdio.h>
#include <math.h>
int convert_snow_height(int diff_height, int east_height){
int east_tower_height=0;
// (east_height - west_height)本目(東側)と(east_height - west_height - 1)本目(西側)の間で高さ測定
// 1 ~ nまでの和を計算 -> 東側の(east_height - west_height)本目の塔の高さ
eas... | 128 | memory_bytes | {'s_id': 's178019561', 'p_id': 'p03328', 'u_id': 'u653872430', 'date': '1590687692', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '835'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n/*\n kadai4_3 stone_monument\n unomi\n*/\n#include <stdio.h>\n#include <math.h>\n\nint convert_snow_height(int diff_height, int ea... |
CDSS_304921 | CDSS | #include <stdio.h>
int main(void){
int a,b,c,d=0;
scanf("%d",&a);
scanf("%d",&b);
scanf("%d",&c);
while(a<=b){
if(c%a==0){
d++;
}
a++;
}
printf("%d\n",d);
return 0;
} | 596 | memory_bytes | {'s_id': 's589526589', 'p_id': 'p02398', 'u_id': 'u580449007', 'date': '1462868016', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '170'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\nint a,b,c,d=0;\n\n\nscanf(\"%d\",&a);\nscanf(\"%d\",&b);\nscanf(\"%d\",&c);\n\nwhile(a<=b){\n... |
CDSS_690995 | CDSS | #include<stdio.h>
long long fun(long long n,long long m)
{
long long s;
if(n<m)
{
s=n;
n=m;
m=s;
}
s=1;
while(m!=0)
{
s=n%m;
n=m;
m=s;
}
return n;
}
int main()
{
int num;
long long s,y,n;
scanf("%d",&num);
s=1;
f... | 128 | memory_bytes | {'s_id': 's545929470', 'p_id': 'p03633', 'u_id': 'u089230684', 'date': '1514873040', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '479'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nlong long fun(long long n,long long m)\n{\n long long s;\n if(n<m)\n {\n s=n;\n n=m;\n ... |
CDSS_89407 | CDSS | #include <stdio.h>
int main(void) {
int i,j,n,m,p[1000],temp,sum;
while (1) {
scanf("%d %d",&n,&m);
if (n==0&&m==0) break;
sum=0;
for (i=0; i<n; i++) scanf("%d",&p[i]);
for (i=0; i<n; i++) {
for (j=0; j<n-1-i; j++) {
if (p[j]>p[j+1]) {
... | 600 | memory_bytes | {'s_id': 's127213470', 'p_id': 'p00227', 'u_id': 'u408260374', 'date': '1395354832', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '600', 'code_size': '730'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void) {\n int i,j,n,m,p[1000],temp,sum;\n while (1) {\n scanf(\"%d %d\",&n,&m);\n i... |
CDSS_136064 | CDSS | #include<stdio.h>
static const int N = 100;
int main(){
int A[N][N];
int n,k,v,c;
int i, j;
scanf("%d", &n);
for ( i = 0; i < n; i++ ){
for ( j = 0; j < n; j++ )
A[i][j] = 0;
}
for ( i = 0; i < n; i++ ){
scanf("%d %d", &c, &k);
c--;
for ( j = 0; j < k; j++ ){
scanf("%d",... | 2,052 | memory_bytes | {'s_id': 's256547290', 'p_id': 'p02237', 'u_id': 'u961385580', 'date': '1532652212', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2052', 'code_size': '537'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nstatic const int N = 100;\n\nint main(){\n int A[N][N];\n int n,k,v,c;\n int i, j;\n\n scanf(\"%d\", &n);\n\n... |
CDSS_679782 | CDSS | #include <stdio.h>
int main(void) {
int r,g;
scanf("%d%d",&r,&g);
printf("%d\n",2*g-r);
} | 1,700 | memory_bytes | {'s_id': 's472136581', 'p_id': 'p03563', 'u_id': 'u769530239', 'date': '1593301714', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1700', 'code_size': '95'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void) {\n int r,g;\n scanf(\"%d%d\",&r,&g);\n printf(\"%d\\n\",2*g-r);\n}\nPredict its memory footpr... |
CDSS_395315 | CDSS | #include <stdio.h>
#include <string.h>
int main(){
int i,j,N;
scanf("%d",&i);
printf("%d\n",i+i*i+i*i*i);
return 0;
}
| 1,732 | memory_bytes | {'s_id': 's987643896', 'p_id': 'p02621', 'u_id': 'u062865912', 'date': '1593306123', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1732', 'code_size': '133'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\n\n\nint main(){\n\t\n\tint i,j,N;\n\n\tscanf(\"%d\",&i);\n\t\n\tprintf(\"%d\\n\",i+i*i+i*... |
CDSS_108912 | CDSS | // AOJ 0606: Tower of JOIOI
// 2018.1.10 bal4u@uu
#include <stdio.h>
#include <stdlib.h>
char s[1000005], *p;
int check(char *p, int m)
{
int i, si, oi, soi, n;
i = si = oi = soi = n = 0;
while (*p) {
if (*p == 'J') {
if (soi > oi) { oi++; if (++n == m) return 1; }
} else if (*p == 'O') {
if (si > i &&... | 2,736 | memory_bytes | {'s_id': 's732264265', 'p_id': 'p00529', 'u_id': 'u847467233', 'date': '1515595719', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '60', 'memory': '2736', 'code_size': '1047'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n// AOJ 0606: Tower of JOIOI\n// 2018.1.10 bal4u@uu\n\n#include <stdio.h>\n#include <stdlib.h>\n\nchar s[1000005], *p;\n\nint check(c... |
CDSS_100250 | CDSS | /*
AizuOnline A0514
Quality Checking
*/
#include <stdio.h>
struct kekka {int dengen;int motor;int cable;int res;};
struct kekka kensa[1000];
int a,b,c;
int N;
int buhin[100];
main()
{ int i;
while(EOF != scanf(" %d %d %d",&a,&b,&c) && (a||b||c))
{
scanf(" %d",&N);
/* printf("%d %d %d %d\n",a,b,... | 0 | memory_bytes | {'s_id': 's806712357', 'p_id': 'p00437', 'u_id': 'u708993917', 'date': '1324822458', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '1128'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n/*\nAizuOnline A0514\nQuality Checking\n*/\n#include <stdio.h>\n\nstruct kekka {int dengen;int motor;int cable;int res;};\nstruct ke... |
CDSS_247126 | CDSS | #include<stdio.h>
int main(){
int a;
scanf("%d",&a);
a = a * a * a;
printf("%d\n",a);
}
| 2,100 | memory_bytes | {'s_id': 's715983901', 'p_id': 'p02388', 'u_id': 'u226572569', 'date': '1524376573', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2100', 'code_size': '105'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n int a;\n scanf(\"%d\",&a);\n a = a * a * a;\n printf(\"%d\\n\",a);\n}\n\nPredict its ... |
CDSS_634887 | CDSS | #include <stdio.h>
// constants for this code
#define len_string_max (int)4
#define sym_pls1 '+'
#define sym_mns1 '-'
int calculate_points (char* data_string)
{
// variables for `calculate_points`
int points;
// STEP.01
// initialize the points
points = 0;
// STEP.02
// calcu... | 128 | memory_bytes | {'s_id': 's656287819', 'p_id': 'p03315', 'u_id': 'u484703930', 'date': '1560096781', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '900'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\n// constants for this code\n#define len_string_max (int)4\n#define sym_pls1 '+'\n#define sym_mns1 ... |
CDSS_318142 | CDSS | #include<stdio.h>
int main(){
int a,b;
char op;
scanf("%d %c %d",&a,&op,&b);
while(op!='?'){
if(op=='+'){
printf("%d\n",a+b);
}
else if(op=='-'){
printf("%d\n",a-b);
}
else if(op=='*'){
printf("%d\n",a*b);
}
else if(op=='/'){
printf("%d\n",a/b);
}
scanf("%d %c %d", &a, &op, &b);
}
return 0;
} | 600 | memory_bytes | {'s_id': 's792515407', 'p_id': 'p02401', 'u_id': 'u909800692', 'date': '1445917375', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '310'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n\nint a,b;\nchar op;\n\nscanf(\"%d %c %d\",&a,&op,&b);\n\nwhile(op!='?'){\n\nif(op=='+'){\n\nprint... |
CDSS_484663 | CDSS | #include <stdio.h>
int main(void){
int n, r, k;
scanf("%d%d", &n, &r);
if(n >= 10){
printf("%d", r);
}else{
k = r + 100 * (10 - n);
printf("%d", k);
}
} | 128 | memory_bytes | {'s_id': 's186823237', 'p_id': 'p02765', 'u_id': 'u320681122', 'date': '1582423561', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '198'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n int n, r, k;\n scanf(\"%d%d\", &n, &r);\n\n if(n >= 10){\n printf(\"%d\", r)... |
CDSS_617747 | CDSS | #include<stdio.h>
#define int long long
int n;
int x[1010],y[1010];
int c[2];
int a[99];
main(){
scanf("%d",&n);
for(int i=0;i<n;i++){
scanf("%lld%lld",x+i,y+i);
c[(x[i]+y[i])%2]++;
}
if(c[0]&&c[1]){
puts("-1");
return 0;
}
int flag=!!c[0];
int N=39;
printf("%d\n",N+flag);
for(int i=0;i<N;i++)printf("... | 256 | memory_bytes | {'s_id': 's851430521', 'p_id': 'p03247', 'u_id': 'u382163500', 'date': '1567374877', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '256', 'code_size': '742'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#define int long long\n\nint n;\nint x[1010],y[1010];\nint c[2];\nint a[99];\nmain(){\n\tscanf(\"%d\",&n);\n\tfor... |
CDSS_257670 | CDSS | #include<stdio.h>
int main (){
int a,b,m,s;
scanf("%d %d", &a, &b);
m = a * b;
s = 2 * (a + b);
printf( "%d %d\n" ,m , s);
return 0;
}
| 2,052 | memory_bytes | {'s_id': 's225197138', 'p_id': 'p02389', 'u_id': 'u238403390', 'date': '1595473403', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2052', 'code_size': '158'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main (){\n\n int a,b,m,s;\n scanf(\"%d %d\", &a, &b); \n m = a * b;\n s = 2 * (a + b);\n\n printf... |
CDSS_635125 | CDSS | #include <stdio.h>
int main(void){
int ans=0,i;
char S[4];
scanf("%s",S);
for(i=0;i<4;i++){
if(S[i]=='+') ans++;
if(S[i]=='-') ans--;
}
printf("%d\n",ans);
}
| 128 | memory_bytes | {'s_id': 's106907602', 'p_id': 'p03315', 'u_id': 'u076402393', 'date': '1529977905', '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 should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\n int ans=0,i;\n char S[4];\n scanf(\"%s\",S);\n \n for(i=0;i<4;i++){\n if... |
CDSS_366673 | CDSS | #include<stdio.h>
int main(void){
int i,c;
int ans[64];
for (i=0;i<64;i++){
ans[i]=0;
}
while((c=getchar())!=EOF){
if('A'<=c && c<='Z'){
c=c+('a'-'A');
}
ans[c-'a']++;
//if(c=='\n')break;
}
for(int i=0;i<26;i++){
printf("%c : %d\n",i+'a',ans[i]);
}
return 0;
}
| 2,040 | memory_bytes | {'s_id': 's537890750', 'p_id': 'p02417', 'u_id': 'u766573702', 'date': '1570431071', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2040', 'code_size': '312'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n int i,c;\n int ans[64];\n\n for (i=0;i<64;i++){\n ans[i]=0;\n }\n\n while((c=getchar())... |
CDSS_391910 | CDSS | #include <stdio.h>
int main(void){
int N;
int oturi;
scanf("%d",&N);
if (N%1000 ==0) {
oturi = 0;
} else {
oturi = 1000 - N%1000;
}
printf("%d\n", oturi);
return 0;
} | 1,728 | memory_bytes | {'s_id': 's058465779', 'p_id': 'p02612', 'u_id': 'u444396285', 'date': '1593997850', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1728', 'code_size': '220'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n \nint main(void){\n int N;\n int oturi;\n\n scanf(\"%d\",&N);\n\n if (N%1000 ==0) {\n oturi ... |
CDSS_254952 | CDSS | #include <stdio.h>
int main(void){// Here your code !
int a,b;
scanf("%d %d",&a,&b);
printf("%d %d\n",a*b,(a+b)*2);
return 0;
} | 596 | memory_bytes | {'s_id': 's033420694', 'p_id': 'p02389', 'u_id': 'u652515771', 'date': '1500172436', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '151'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){// Here your code !\n int a,b;\n scanf(\"%d %d\",&a,&b);\n printf(\"%d %d\\n\",a*b,(a+... |
CDSS_445686 | CDSS | #include<stdio.h>
#define MAX 200005
int main()
{
int n;
int a[MAX],c;
for(int i = 0;i < MAX;i++)
{
a[i] = 0;
}
scanf("%d",&n);
for(int i = 0;i < n-1;i++)
{
scanf("%d",&c);
a[c]++;
}
for(int i = 1;i <= n;i++)
{
printf("%d\n",a[i]);
}
return 0;
}
| 2,512 | memory_bytes | {'s_id': 's826754546', 'p_id': 'p02707', 'u_id': 'u263881582', 'date': '1587347754', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '38', 'memory': '2512', 'code_size': '269'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#define MAX 200005\n\nint main()\n{\n\tint n;\n\tint a[MAX],c;\n\tfor(int i = 0;i < MAX;i++)\n\t{\n\t\ta[i] = 0;\... |
CDSS_60339 | CDSS | #include <stdio.h>
int main (void){
int a,b,c,tyou=0,hisi=0;
while(scanf("%d,%d,%d",&a,&b,&c)!=EOF){
if(a*a+b*b==c*c){
tyou++;
}
else if(a==b){
hisi++;
}
}
printf("%d\n%d\n",tyou,hisi);
return 0;
} | 596 | memory_bytes | {'s_id': 's415972250', 'p_id': 'p00032', 'u_id': 'u810660681', 'date': '1416023289', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '269'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main (void){\n int a,b,c,tyou=0,hisi=0;\n while(scanf(\"%d,%d,%d\",&a,&b,&c)!=EOF){\n if(a*a+b*... |
CDSS_607864 | CDSS | #include<stdio.h>
int main()
{
int n;
int i,j,k,l;
scanf("%d",&n);
int a[n],temp,max,ans,sum=0;
for(i=0;i<n;i++)
{
scanf("%d",&a[i]);
}
for(i=0;i<n;i++)
{
for(j=0;j<n-i-1;j++)
{
if(a[j]>a[j+1])
{
temp=a[j];
... | 128 | memory_bytes | {'s_id': 's107700118', 'p_id': 'p03207', 'u_id': 'u863370423', 'date': '1580090919', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '529'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n int n;\n int i,j,k,l;\n scanf(\"%d\",&n);\n int a[n],temp,max,ans,sum=0;\n for(i=0... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.