identifier string | space string | input string | target float64 | metric_type string | metadata string | messages list |
|---|---|---|---|---|---|---|
CDSS_660401 | CDSS | #include<stdio.h>
#include<string.h>
int main()
{
int x,a,b;
int re;
scanf("%d%d%d",&x,&a,&b);
re=x-a-(x-a)/b*b;
printf("%d",re);
return 0;
}
| 128 | memory_bytes | {'s_id': 's685424524', 'p_id': 'p03447', 'u_id': 'u863370423', 'date': '1517540710', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '166'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 int x,a,b;\n int re;\n scanf(\"%d%d%d\",&x,&a,&b);\n re=x-a-(x-a)/b... |
CDSS_635321 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <stdbool.h>
#include <string.h>
#include <math.h>
int main(){
int x=0;
char s[4];
scanf("%s",s);
for (int i = 0; i < 4; i++) {
if(s[i]=='+'){
x++;
}else{
x--;
}
}
printf("%d",x);
return 0;
}
| 128 | memory_bytes | {'s_id': 's581289751', 'p_id': 'p03315', 'u_id': 'u427052796', 'date': '1529802300', '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#include <stdlib.h>\n#include <math.h>\n#include <stdbool.h>\n#include <string.h>\n#include <math.h>\n\n\nint main... |
CDSS_596800 | CDSS | #include <stdio.h>
int main(){
long k,a,b,c;
long long bi;
scanf("%ld %ld %ld",&k,&a,&b);
if (a+1>=b) {
bi=k+1;
} else {
if (k<=a) bi=k+1;
else {
k-=a+1;
bi=b+(k/2)*(b-a)+(k%2);
}
}
printf("%lld\n",bi);
return 0;
}
| 128 | memory_bytes | {'s_id': 's355680273', 'p_id': 'p03131', 'u_id': 'u337657882', 'date': '1549770168', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '286'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n \nint main(){\n long k,a,b,c;\n long long bi;\n \n scanf(\"%ld %ld %ld\",&k,&a,&b);\n if (a+1>=b) {\n ... |
CDSS_621174 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<math.h>
#define FOR(n) for(int i=0;i<n;i++)
#define FORJ(n) for(int j=0;j<n;j++)
#define PRN(n) printf("%d\n",n)
#define PRF(n) printf("%lf\n",n)
#define PRL(n) printf("%lld\n",n)
#define PRS(s) printf("%s\n",s)
#define PRC(c) printf("%c",c)
#define mod 1... | 1,664 | memory_bytes | {'s_id': 's357151385', 'p_id': 'p03262', 'u_id': 'u008829811', 'date': '1569345878', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '15', 'memory': '1664', 'code_size': '1018'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 FOR(n) for(int i=0;i<n;i++)\n#define FORJ(n) for(... |
CDSS_193398 | CDSS | #include <stdio.h>
int ReadValue() {
int value;
scanf("%d",&value);
return value;
}
int binarySearch(int *Array,int index,int key) {
int left=0;
int right=index;
while (left<right) {
int mid=(left+right)/2;
if (key==Array[mid]) {
return 1;
}
if (key>... | 2,288 | memory_bytes | {'s_id': 's898684790', 'p_id': 'p02268', 'u_id': 'u201120946', 'date': '1529988024', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2288', 'code_size': '1062'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 ReadValue() {\n int value; \n scanf(\"%d\",&value);\n return value;\n}\nint binarySearch(int *Array... |
CDSS_315638 | CDSS | #include <stdio.h>
#include <math.h>
int main(void)
{
double r;
scanf("%lf", &r);
printf("%f %f\n", r * r * M_PI, r * 2 * M_PI);
return (0);
} | 648 | memory_bytes | {'s_id': 's510166350', 'p_id': 'p02400', 'u_id': 'u048875676', 'date': '1500599268', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '648', 'code_size': '153'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n\nint main(void)\n{\n\tdouble r;\n\t\n\tscanf(\"%lf\", &r);\n\t\n\tprintf(\"%f %f\\n\", r * r *... |
CDSS_606633 | CDSS | #include<stdio.h>
int main(void){
long long int k=0,l=0;
char s[200000];
scanf("%s",s);
for(int i=0;s[i]!='\0';i++){
if (s[i]=='B') {
k++;
}else{
l=l+k;
};
};
printf("%lld",l);
return 0;
} | 384 | memory_bytes | {'s_id': 's646714590', 'p_id': 'p03200', 'u_id': 'u732465302', 'date': '1544934232', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '384', 'code_size': '264'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 long long int k=0,l=0;\n char s[200000];\n scanf(\"%s\",s);\n for(int i=0;s[i]!='\\0'... |
CDSS_507788 | CDSS | #include<stdio.h>
int main(void){
int n,i;
scanf("%d",&n);
char s[n+1],t[n+1];
scanf("%s%s",s,t);
char v[2*n+1];
for(i=0;i<2*n;i=i+2){
v[i]=s[i/2];
}
for(i=1;i<2*n;i=i+2){
v[i]=t[i/2];
}
v[2*n]=0;
printf("%s\n",v);
} | 128 | memory_bytes | {'s_id': 's788370351', 'p_id': 'p02830', 'u_id': 'u188486233', 'date': '1577066940', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '276'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n int n,i;\n scanf(\"%d\",&n);\n char s[n+1],t[n+1];\n scanf(\"%s%s\",s,t);\n char v... |
CDSS_565795 | CDSS | #include<stdio.h>
int main(){
int N;
scanf("%d", &N);
int sum_angle = 180 * (N - 2);
printf("%d", sum_angle);
return 0;
} | 128 | memory_bytes | {'s_id': 's939774523', 'p_id': 'p03023', 'u_id': 'u613931538', 'date': '1559437494', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '146'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n\n int N;\n scanf(\"%d\", &N);\n\n int sum_angle = 180 * (N - 2);\n\n printf(\"%d\", sum... |
CDSS_462631 | CDSS | #include<stdio.h>
#include<math.h>
int main(void){
int tmp=0;
int tmp2=0;
int X,Y,Z;
scanf("%d %d %d",&X,&Y,&Z);
tmp=X;
X=Y;
Y=tmp;
tmp2=X;
X=Z;
Z=tmp2;
printf("%d %d %d",X,Y,Z);
return 0;
}
| 1,728 | memory_bytes | {'s_id': 's845242779', 'p_id': 'p02717', 'u_id': 'u274229050', 'date': '1596347132', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1728', '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#include<math.h>\n\nint main(void){\n int tmp=0;\n int tmp2=0;\n int X,Y,Z;\n scanf(\"%d %d %d\",&X,&Y,&Z);... |
CDSS_690593 | CDSS | #include<stdio.h>
int main(void)
{
int a,b,c,d,i,s;
scanf("%d%d%d%d",&a,&b,&c,&d);
if(c>=b||d<=a)
printf("0\n");
else
{
if(c>=a&&d>b)
printf("%d\n",b-c);
if(c>=a&&d<=b)
printf("%d\n",d-c);
if(c<a&&d<=b)
printf("%d\n",d-a);
if(d>b&&c<a)
printf("%d\n",b-a);
}
return 0;
} | 128 | memory_bytes | {'s_id': 's472652964', 'p_id': 'p03632', 'u_id': 'u353919145', 'date': '1508794869', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '293'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\n\tint a,b,c,d,i,s;\n\tscanf(\"%d%d%d%d\",&a,&b,&c,&d);\n\tif(c>=b||d<=a)\n\tprintf(\"0\\n\");\n\... |
CDSS_424538 | CDSS | #include<stdio.h>
int main(void)
{
int n,m;
scanf("%d%d",&n,&m);
long h[n+1];
int good[n];
for(int i=1; i<=n; i++){
scanf("%ld",&h[i]);
good[i]=1;
}
int a,b;
for(int i=0; i<m; i++){
scanf("%d%d",&a,&b);
if(h[a]>h[b]){
good[b]=0;
}else if(h[a]<h[b]){
good[a]=0;
}els... | 2,896 | memory_bytes | {'s_id': 's616349596', 'p_id': 'p02689', 'u_id': 'u759675243', 'date': '1588556155', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '38', 'memory': '2896', '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\nint main(void)\n{\n int n,m;\n scanf(\"%d%d\",&n,&m);\n\n long h[n+1];\n int good[n];\n for(int i=1; i<=n; i... |
CDSS_625823 | CDSS | #include<stdio.h>
int divisor(int a){
int i,n=0;
for(i=1;i<=a;i++)
{
if(a%i==0){n++;}
}
return n;
}
int main()
{
int n,count=0,i;
scanf("%d",&n);
for(i=1;i<=n;i+=2){if(divisor(i)==8){count++;}}
printf("%d\n",count);
return 0;
}
| 256 | memory_bytes | {'s_id': 's366844278', 'p_id': 'p03281', 'u_id': 'u816631826', 'date': '1537400768', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '256', '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:\n#include<stdio.h>\nint divisor(int a){\nint i,n=0;\nfor(i=1;i<=a;i++)\n{\n if(a%i==0){n++;}\n}\nreturn n;\n}\nint main()\n{\n in... |
CDSS_287237 | CDSS | #include <stdio.h>
int main(void){
int a , b , c;
scanf("%d %d %d",&a,&b,&c);
if (a <= b && b <= c){
printf("%d %d %d\n", a, b, c);
}
else if (b <= c && c <= a){
printf("%d %d %d\n", b ,c, a);
}
else if (c <= a && a <= b){
... | 2,048 | memory_bytes | {'s_id': 's683178869', 'p_id': 'p02393', 'u_id': 'u500935997', 'date': '1526348942', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2048', 'code_size': '678'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\n \n int a , b , c; \n scanf(\"%d %d %d\",&a,&b,&c); \n if (a <= b && b <= c){ ... |
CDSS_291539 | CDSS | #include <stdio.h>
int main(void){
int W,H,x,y,r;
scanf("%d %d %d %d %d",&W, &H, &x, &y, &r);
if(x - r >= 0 && W >= x + r && y - r >= 0 && H >= y + r)
printf("Yes\n");
else
printf("No\n");
return 0;
} | 584 | memory_bytes | {'s_id': 's013140557', 'p_id': 'p02394', 'u_id': 'u073465484', 'date': '1494603436', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '584', '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 int W,H,x,y,r;\n \n scanf(\"%d %d %d %d %d\",&W, &H, &x, &y, &r);\n if(x - r >= 0 &&... |
CDSS_73061 | CDSS | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
static unsigned int x=123456789;
static unsigned int y=362436069;
static unsigned int z=521288629;
static unsigned int w=88675123;
void seed(unsigned int a,unsigned int b,unsigned int c,unsigned int d) {
if((a|b|c|d)==0)return;
x=a;y=b;z=c;w=d;
}
unsigned ... | 612 | memory_bytes | {'s_id': 's706143388', 'p_id': 'p00091', 'u_id': 'u543521645', 'date': '1482765614', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '90', 'memory': '612', 'code_size': '2661'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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\nstatic unsigned int x=123456789;\nstatic unsigned int y=362436069;\nst... |
CDSS_399270 | CDSS | #include <stdio.h>
#include <ctype.h>
int main(){
char x;
scanf("%s",&x);
if(x == toupper(x)){
printf("A");
}else{
printf("a");
}
return 0;
}
| 2,088 | memory_bytes | {'s_id': 's188481491', 'p_id': 'p02627', 'u_id': 'u729606284', 'date': '1592787927', 'language': 'C', 'original_language': 'C (Clang 10.0.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '8', 'memory': '2088', 'code_size': '153'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 <ctype.h>\n\nint main(){\n\tchar x;\n\tscanf(\"%s\",&x);\n\tif(x == toupper(x)){\n\t\tprintf(\"A\");\n\t}... |
CDSS_221940 | CDSS | #include<stdio.h>
#include<stdlib.h>
#define MAX 500001
typedef struct cell{
int id;
struct cell *right;
struct cell *left;
}cell;
void preorder(cell *root){
cell *p=root;
printf(" %d",p->id);
if(p->left!=NULL){preorder(p->left);}
if(p->right!=NULL){preorder(p->right);}
return;
}
void inorder(cell *root){
cell... | 19,348 | memory_bytes | {'s_id': 's789697244', 'p_id': 'p02283', 'u_id': 'u723915999', 'date': '1516626172', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '310', 'memory': '19348', 'code_size': '2030'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 500001\n\ntypedef struct cell{\n int id;\n struct cell *right;\n struct cell *left;... |
CDSS_635332 | CDSS | #include <stdio.h>
int main()
{
int c=0, i=0;
char a[5];
scanf("%s",a);
while(a[i]!='\0'){
if(a[i]=='+')c++;
else c--;
i++;
}
printf("%d\n", c);
return 0;
}
| 128 | memory_bytes | {'s_id': 's060809509', 'p_id': 'p03315', 'u_id': 'u831873811', 'date': '1529802227', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '185'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main()\n{\n int c=0, i=0;\n char a[5];\n scanf(\"%s\",a);\n\n while(a[i]!='\\0'){\n if(a[i]=='+')c++;... |
CDSS_620067 | CDSS | #include<stdio.h>
int main(){
int a,b;
scanf("%d%d",&a,&b);
if(a==2 || b==2){
printf("No");
}else{
printf("Yes");
}
return 0;
} | 128 | memory_bytes | {'s_id': 's890292955', 'p_id': 'p03260', 'u_id': 'u071680334', 'date': '1576069927', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '128', 'code_size': '147'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 if(a==2 || b==2){\n printf(\"No\");\n }else{\n printf(\... |
CDSS_180175 | CDSS | #include<stdio.h>
#include<stdlib.h>
int c[101];
int top=1;
void push(int);
int pop(void);
int main(){
int b,e;
char d[1000];
while(1){
if(scanf("%s",d)==EOF)break;
if(d[0]=='+'){
b=pop();
e=pop();
push(b+e);
}else if(d[0]=='-'){
b=pop();
e=pop();
push(e-b);
}else if(d[0]=='*'){
b=pop(... | 2,100 | memory_bytes | {'s_id': 's314204936', 'p_id': 'p02263', 'u_id': 'u532484677', 'date': '1576134200', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2100', 'code_size': '519'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 c[101];\nint top=1;\nvoid push(int);\nint pop(void);\n\nint main(){\n\tint b,e;\n\tchar d... |
CDSS_359552 | CDSS | // 1_7_B
#include<stdio.h>
int main(){
int n, m, l, i, j, k;
scanf("%d %d %d", &n, &m, &l);
int mtrxA[n][m];
int mtrxB[m][l];
long long int result[n][l];
for(i = 0; i < n; i++){
for(j = 0; j < m; j++){
scanf("%d", &mtrxA[i][j]);
}
}
for(j = 0; j < m; j++){
for(k = 0; k < l; k++){
scanf("%d", &mt... | 752 | memory_bytes | {'s_id': 's043317665', 'p_id': 'p02414', 'u_id': 'u949338836', 'date': '1444050298', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '752', '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// 1_7_B\n#include<stdio.h>\n\nint main(){\n\tint n, m, l, i, j, k;\n\tscanf(\"%d %d %d\", &n, &m, &l);\n\tint mtrxA[n][m];\n\tint mtr... |
CDSS_168872 | CDSS | #include<stdio.h>
#define N 100
int main(){
int numbers[N];
int i,j,n,temp,c;
scanf("%d",&n);
for(i=0;i<n;i++) scanf("%d",&numbers[i]);
for(i=0;i<n;i++){
for(j=n-1;j>=i+1;j--){
if(numbers[j]<numbers[j-1]){
temp=numbers[j];
numbers[j]=numbers[j-1];
numbers[j-1]=temp;
c=c + 1;
... | 2,108 | memory_bytes | {'s_id': 's175521236', 'p_id': 'p02259', 'u_id': 'u927342963', 'date': '1576201585', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '480'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#define N 100\n \nint main(){\n int numbers[N];\n int i,j,n,temp,c;\n \n scanf(\"%d\",&n);\n for(i=0;i<n;i++) s... |
CDSS_416317 | CDSS | #include <stdio.h>
#include <stdlib.h>
int ft_strlen(char *str) {
int i = 0;
int len = 0;
while (*str++)
len++;
return len;
}
int main() {
int K;
char S[101];
scanf("%d", &K);
scanf("%s", S);
int len = ft_strlen(S);
char *ans;
if (len <= K) {
ans = S;
}... | 1,660 | memory_bytes | {'s_id': 's213658492', 'p_id': 'p02676', 'u_id': 'u619677540', 'date': '1589764935', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1660', 'code_size': '613'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 ft_strlen(char *str) {\n int i = 0;\n int len = 0;\n while (*str++)\n l... |
CDSS_468425 | CDSS | #include <stdio.h>
#include <string.h>
int main(void)
{
char s[10];
scanf("%s", s);
if(s[2]==s[3]&&s[4]==s[5]){
printf("Yes");
}
else{
printf("No");
}
return 0;
}
| 128 | memory_bytes | {'s_id': 's164966674', 'p_id': 'p02723', 'u_id': 'u669868902', 'date': '1586531500', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', '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 must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\nint main(void)\n{\n char s[10];\n scanf(\"%s\", s);\n if(s[2]==s[3]&&s[4]==s[5]){\n ... |
CDSS_691907 | CDSS | /* ex6_2
moka223711 */
#include <stdio.h>
#include <string.h>
#define SIZE 101 // 文字数制限が100なので配列の大きさは100+1
int main(void){
char str[SIZE];
int len;
scanf("%s", str);
// strlen()は文字列の長さを返す
len = strlen(str);
// 文字列の最初の文字 str[0]
// 文字列の長さから最初の文字と最後の文字を抜いた len-2
// 文字列の最後の文字 str[l... | 128 | memory_bytes | {'s_id': 's453369569', 'p_id': 'p03636', 'u_id': 'u242706056', 'date': '1591846581', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '548'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n/* ex6_2\n moka223711 */\n\n#include <stdio.h>\n#include <string.h>\n#define SIZE 101 // 文字数制限が100なので配列の大きさは100+1\n\nint main(void){... |
CDSS_303606 | CDSS | #include <stdio.h>
int main() {
int n[10001] = {0};
int m[10001] = {0};
int i, j;
while(1) {
scanf("%d %d", &n[i], &m[i]);
if(n[i] == 0 && m[i] == 0) break;
i++;
}
for(j = 0; j < i; j++) {
if(n[j] < m[j]) {
printf("%d %d\n", n[j], m[j]);
... | 1,996 | memory_bytes | {'s_id': 's990801901', 'p_id': 'p02397', 'u_id': 'u021811574', 'date': '1580818541', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1996', 'code_size': '409'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main() {\n int n[10001] = {0};\n int m[10001] = {0};\n int i, j;\n \n while(1) {\n sca... |
CDSS_29339 | CDSS | #include <stdio.h>
int main() {
int N, i, in1, in2, in3, a, b, c;
scanf("%d", &N);
for(i = 0; i < N; ++i) {
scanf("%d %d %d", &in1, &in2, &in3);
if(in1 >= in2 && in1 >= in3) {
a = in2;
b = in3;
c = in1;
} else if(in2 >= in1 && in2 >= in3) {
a = in1;
b = in3;
c ... | 580 | memory_bytes | {'s_id': 's109652878', 'p_id': 'p00003', 'u_id': 'u967850487', 'date': '1428176893', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', 'code_size': '529'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main() {\n int N, i, in1, in2, in3, a, b, c;\n\n scanf(\"%d\", &N);\n\n for(i = 0; i < N; ++i) {\n\n s... |
CDSS_145465 | CDSS | #include<stdio.h>
int main(){
int num,i,j,k,v;
int A[1000];
scanf("%d",&num);
for(i=0;i<num;i++){
scanf("%d",&A[i]);
}
for(i=0;i<num-1;i++){
printf("%d ",A[i]);
}
printf("%d\n",A[i]);
for(i = 1 ; i <= num-1 ; i++){
v=A[i];
j=i-1;
while(j>=0 && A[j]>v){
... | 604 | memory_bytes | {'s_id': 's584862795', 'p_id': 'p02255', 'u_id': 'u395334793', 'date': '1488040678', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '604', 'code_size': '483'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 num,i,j,k,v;\n int A[1000];\n \n \n scanf(\"%d\",&num);\n \n for(i=0;i<num;i++){\n s... |
CDSS_175242 | CDSS | #include <stdio.h>
int cnt;
void insertionSort(int A[], int n, int g);
void shellSort(int A[], int n);
int n;
int A[1000000];
int main() {
int i;
scanf("%d", &n);
for(i = 0; i < n; i++) scanf("%d", A+i);
shellSort(A, n);
printf("%d\n", cnt);
for(i = 0; i < n; ++i) printf("%d\n", A[i]);
return 0;
}... | 5,608 | memory_bytes | {'s_id': 's913680639', 'p_id': 'p02262', 'u_id': 'u542576355', 'date': '1535005417', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '260', 'memory': '5608', 'code_size': '833'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 cnt;\n \nvoid insertionSort(int A[], int n, int g);\nvoid shellSort(int A[], int n);\n \nint n;\nint A[1000... |
CDSS_49873 | CDSS | #include <stdio.h>
#include <math.h>
int main(void)
{
int angle,step;
double angle_total=0,x=0,y=0;
while(1)
{
scanf("%d,%d",&step,&angle);
if(angle == 0 && step == 0)break;
y += step*cos(-(angle_total*M_PI/180));
x += -step*sin(-(angle_total*M_PI/180));
angle_total += angle;
}
printf("%d\n",(int)(x));
... | 652 | memory_bytes | {'s_id': 's892362441', 'p_id': 'p00016', 'u_id': 'u514537648', 'date': '1363401571', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '652', '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#include <math.h>\nint main(void)\n{\n\tint angle,step;\n\tdouble angle_total=0,x=0,y=0;\n\twhile(1)\n\t{\n\t\tsca... |
CDSS_223863 | CDSS | #include <stdio.h>
#include <stdlib.h>
struct node{
struct node *right;
struct node *left;
struct node *parent;
int key;
};
typedef struct node * Node;
#define NIL NULL
Node root;
Node treeSearch(Node u, int k){
while(u!=NIL && k!=u->key){
if(k < u->key){u=u->left;
}
else u = u->right;
}
re... | 20,540 | memory_bytes | {'s_id': 's748374537', 'p_id': 'p02284', 'u_id': 'u453977932', 'date': '1579131904', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '270', 'memory': '20540', 'code_size': '1428'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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\nstruct node{\n struct node *right;\n struct node *left;\n struct node *parent;\n int ke... |
CDSS_104593 | CDSS | #include<stdio.h>
#include<stdlib.h>
#define MAX(x,y) (((x)>(y))?(x):(y))
struct node{
int l,index;
};
void make_pr_queue(struct node *array, int n);
struct node pop_pr_queue(struct node *array,int n);
int main(void){
struct node *ice,now;
int *time;
int i,k=0,n,L;
scanf("%d%d",&n,&L);
ice=(struct nod... | 1,680 | memory_bytes | {'s_id': 's362086919', 'p_id': 'p00474', 'u_id': 'u703949805', 'date': '1452011286', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2040', 'memory': '1680', 'code_size': '1614'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 MAX(x,y) (((x)>(y))?(x):(y))\n\nstruct node{\n int l,index;\n};\n\nvoid make_pr_queu... |
CDSS_445933 | CDSS | #include <stdio.h>
int main(){
int n,a,b[200005],i;
scanf("%d",&n);
b[0]=0;
for(i=1;i<n;i++){
scanf("%d",&a);
b[i]=0;
b[a-1]++;
}
for(i=0;i<n;i++){
printf("%d\n",b[i]);
}
return(0);
} | 2,508 | memory_bytes | {'s_id': 's533361852', 'p_id': 'p02707', 'u_id': 'u804704438', 'date': '1587346217', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '37', 'memory': '2508', 'code_size': '216'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n int n,a,b[200005],i;\n scanf(\"%d\",&n);\n b[0]=0;\n for(i=1;i<n;i++){\n scanf(\"%d\",&a);\... |
CDSS_166677 | CDSS | #include<stdio.h>
int main(void){
int flag,i,n,a[100],count=0,temp,j;
scanf("%d",&n);
for(i=0;i<n;i++) scanf("%d",&a[i]);
flag=1;
j=0;
while(flag){
flag=0;
for(i=n-1;i>=j+1;i--){
if(a[i]<a[i-1]){
temp=a[i];
a[i]=a[i-1];
a[i-1]=temp;
count++;
flag=1;
}
}
j++;... | 600 | memory_bytes | {'s_id': 's529725820', 'p_id': 'p02259', 'u_id': 'u924810243', 'date': '1494219736', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '1453'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 flag,i,n,a[100],count=0,temp,j;\n scanf(\"%d\",&n);\n for(i=0;i<n;i++) scanf(\"%d\",&a[... |
CDSS_126909 | CDSS | /*
AOJ 2576
Title:Doctor Course Is Recommended
@kankichi573
*/
#include <stdio.h>
#define max(x,y) (((x)>(y))?(x):(y))
#define min(x,y) (((x)<(y))?(x):(y))
int D,x,y;
int d_point[100];
int dd_point[50];
int d_count,dd_count;
void dump()
{
int i;
for(i=0;i<x;i++)
printf("%d:",d_point[i]);
printf("\n");
... | 604 | memory_bytes | {'s_id': 's922240304', 'p_id': 'p01688', 'u_id': 'u708993917', 'date': '1400155431', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '604', 'code_size': '1422'} | [
{
"content": "Your task is to predict the memory 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 AOJ 2576\n Title:Doctor Course Is Recommended\n @kankichi573\n*/\n#include <stdio.h>\n\n#define max(x,y) (((x)>(y))?(x):(y))\n... |
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 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;\n scanf(\"%d\", &n);\n int p[n], miss=0;\n for(int i=0; i<n; i++){\n ... |
CDSS_538001 | CDSS | #include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <inttypes.h>
#include <ctype.h>
#include <stdint.h>
#include <string.h>
#include <wchar.h>
#include <math.h>
#define N_MAX (100)
#define P_MAX (100)
#define DP_ARRAY_SIZE (N_MAX * P_MAX / 32 + 1)
#define MIN(a, b) ((a) < (b) ? (a) : (b))
#define MAX... | 221,184 | memory_bytes | {'s_id': 's577816406', 'p_id': 'p02936', 'u_id': 'u615782628', 'date': '1566178944', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '302', 'memory': '221184', 'code_size': '7164'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdbool.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <inttypes.h>\n#include <ctype.h>\n#include <stdint.h>\n#includ... |
CDSS_471811 | CDSS | #include<stdio.h>
int main(){
int n,m,ans=0;
scanf("%d %d",&n,&m);
ans += (n*(n-1))/2;
ans += (m*(m-1))/2;
printf("%d\n",ans);
return 0;
}
| 128 | memory_bytes | {'s_id': 's043612286', 'p_id': 'p02729', 'u_id': 'u072723535', 'date': '1584932148', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '173'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int n,m,ans=0;\n scanf(\"%d %d\",&n,&m);\n ans += (n*(n-1))/2;\n ans += (m*(m-1))/2;\n ... |
CDSS_396297 | CDSS | #include<stdio.h>
#include<string.h>
int main()
{
int x,i,cnt;
char a[200001],b[200001];
scanf("%s",a);
scanf("%s",b);
x=strlen(a);
cnt=0;
for(i=0;i<x;i++){
if(a[i]!=b[i]) cnt++;
}
printf("%d\n",cnt);
return 0;
} | 2,124 | memory_bytes | {'s_id': 's151957147', 'p_id': 'p02622', 'u_id': 'u703215965', 'date': '1593463891', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2124', 'code_size': '224'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\nint main()\n{\n\tint x,i,cnt;\n\tchar a[200001],b[200001];\n\tscanf(\"%s\",a);\n\tscanf(\"%s\",... |
CDSS_399393 | CDSS | #include <stdio.h>
#include <string.h>
int main() {
char s;
scanf("%c", &s);
if(s-'a'<0) printf("A");
else printf("a");
return 0;
} | 2,024 | memory_bytes | {'s_id': 's056391055', 'p_id': 'p02627', 'u_id': 'u301600230', 'date': '1592787694', 'language': 'C', 'original_language': 'C (Clang 10.0.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '2024', 'code_size': '142'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\nint main() {\n char s;\n scanf(\"%c\", &s);\n if(s-'a'<0) printf(\"A\");\n else printf(... |
CDSS_76420 | CDSS | #include <stdio.h>
int a[16][16];
int main(void)
{
int n;
int i, j;
while (1){
scanf("%d", &n);
if (n == 0) break;
a[n][n] = 0;
for (i = 0; i < n; i++){
a[i][n] = 0;
for (j = 0; j < n; j++){
scanf("%d", &a[i][j]);
... | 616 | memory_bytes | {'s_id': 's869300918', 'p_id': 'p00102', 'u_id': 'u958626383', 'date': '1454244862', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '616', 'code_size': '769'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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[16][16];\n\nint main(void)\n{\n int n;\n int i, j;\n \n while (1){\n scanf(\"%d\", &n);... |
CDSS_232971 | CDSS | #include <stdio.h>
#define TMAX 100001
#define THALF 50000
void fill(int *p, int T, int d)
{
int i;
for(i=0; i<T; i++){
*(p+i) = d;
}
}
void stak(int *p, int head, int end, int d)
{
int i;
for(i=head; i<end; i++){
*(p+i) += d;
}
}
int main(void)
{
int N, T, t[TMAX], in, out, d, sw, max=0, i, j;
scan... | 992 | memory_bytes | {'s_id': 's460616062', 'p_id': 'p02359', 'u_id': 'u751715365', 'date': '1478414952', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '490', 'memory': '992', 'code_size': '967'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 TMAX 100001\n#define THALF 50000\n\nvoid fill(int *p, int T, int d)\n{\n\tint i;\n\tfor(i=0; i<T; i++){\n\... |
CDSS_121193 | CDSS | #define minupd(v,x)((x)<v?v=(x):0)
D[101][101],b1,b2,c,i,j,k,t,ans;
main(n,m,s,g1,g2){
for(;scanf("%d%d%d%d%d",&n,&m,&s,&g1,&g2)*n;){
memset(D,1,sizeof(D));
for(;m--;){
scanf("%d%d%d",&b1,&b2,&c);
D[b1][b2]=c;
D[b1][b1]=0;
}
for(k=n;k;k--)
for(i=n;i;i--)
for(j=n;j;j--)
minupd(D[i][j],D[i][... | 452 | memory_bytes | {'s_id': 's139093450', 'p_id': 'p01130', 'u_id': 'u399107199', 'date': '1304624065', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '80', 'memory': '452', 'code_size': '429'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#define minupd(v,x)((x)<v?v=(x):0)\nD[101][101],b1,b2,c,i,j,k,t,ans;\nmain(n,m,s,g1,g2){\n\tfor(;scanf(\"%d%d%d%d%d\",&n,&m,&s,&g1,&g2... |
CDSS_334207 | CDSS | #include<stdio.h>
int main(){
int H,W,tate,yoko;
for(;;){
scanf("%d %d",&H,&W);if(H==0&&W==0){break;}
for(tate=1;tate<=H;tate++){
for(yoko=1;yoko<=W;yoko++){
if(2<=tate&&tate<=H-1&&2<=yoko&&yoko<=W-1){printf(".");
}else{printf("#");}
}printf("\n");
}printf("\n");
}
return 0;
} | 572 | memory_bytes | {'s_id': 's387005984', 'p_id': 'p02404', 'u_id': 'u181763246', 'date': '1504161124', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '572', 'code_size': '300'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 H,W,tate,yoko;\n\tfor(;;){\n\t\tscanf(\"%d %d\",&H,&W);if(H==0&&W==0){break;}\n\tfor(tate=1;tate... |
CDSS_417923 | CDSS | #pragma region kyopuro_templates
#pragma GCC optimize("Ofast")
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<string.h>
#include<stdbool.h>
#include<assert.h>
#include<time.h>
#include<ctype.h>
typedef long long ll;
typedef long double ld;
#define rep(i,l,r)for(ll i=(l);i<(r);i++)
#define repp(i,l,r,k)f... | 28,740 | memory_bytes | {'s_id': 's761569973', 'p_id': 'p02678', 'u_id': 'u004279520', 'date': '1600896678', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '203', 'memory': '28740', 'code_size': '23631'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#pragma region kyopuro_templates\n#pragma GCC optimize(\"Ofast\")\n#include<stdio.h>\n#include<stdlib.h>\n#include<math.h>\n#include<s... |
CDSS_447737 | CDSS | #include <stdio.h>
int main()
{
int n;
scanf("%d", &n);
while (1)
{
if (n == 0)
{
printf("No");
break;
}
if (n % 10 == 7)
{
printf("Yes");
break;
}
n /= 10;
}
return 0;
} | 1,732 | memory_bytes | {'s_id': 's339636074', 'p_id': 'p02711', 'u_id': 'u395125142', 'date': '1592660536', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1732', 'code_size': '300'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main()\n{\n int n;\n scanf(\"%d\", &n);\n\n while (1)\n {\n if (n == 0)\n {\n ... |
CDSS_159706 | CDSS | #include <stdio.h>
int main(){
int n, i;
scanf("%d", &n);
int input, primes = 0;
for(i = 0; i < n; i++){
scanf("%d", &input);
if(isPrime(input)) primes++;
}
printf("%d\n", primes);
}
int isPrime(int test){
if (test==2) return 1;
for (int i = 2; i <= test/i; i++){
... | 2,040 | memory_bytes | {'s_id': 's429395669', 'p_id': 'p02257', 'u_id': 'u220116434', 'date': '1560510736', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2040', '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>\nint main(){\n int n, i;\n scanf(\"%d\", &n);\n int input, primes = 0;\n for(i = 0; i < n; i++){\n ... |
CDSS_449990 | CDSS | #include <stdio.h>
#include <string.h>
int main(void){
char text[]="000";
scanf("%s",text);
if(strncmp("7",&text[0],1)==0){
printf("Yes");
}else if(strncmp("7",&text[1],1)==0){
printf("Yes");
}else if(strncmp("7",&text[2],1)==0){
printf("Yes");
}else{
printf("No"... | 1,732 | memory_bytes | {'s_id': 's330481990', 'p_id': 'p02711', 'u_id': 'u631638943', 'date': '1586741488', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '1732', '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 <string.h>\n\nint main(void){\n char text[]=\"000\";\n scanf(\"%s\",text);\n if(strncmp(\"7\",&t... |
CDSS_126999 | CDSS | #include <stdio.h>
int main(void) {
char a[3], b[3];
int n, i, point;
while (1) {
point = 0;
scanf("%d", &n);
if (n == 0) break;
while (n > 0) {
if (n != 1) {
scanf("%s", a);
scanf("%s", b);
if (a[0] != b[0])
point++;
}
else
scanf("%s", a);
n -= 2;
}
printf("%d\n"... | 604 | memory_bytes | {'s_id': 's013165424', 'p_id': 'p01694', 'u_id': 'u214404619', 'date': '1481710617', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '604', 'code_size': '347'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\n\tchar a[3], b[3];\n\tint n, i, point;\n\t\n\twhile (1) {\n\t\tpoint = 0;\n\t\tscanf(\"%d\", &... |
CDSS_278513 | CDSS | #include <stdio.h>
int main(void)
{
int a, b, c;
scanf("%d %d %d", &a, &b, &c);
if (a < b && b < c){
puts("Yes");
}
else {
puts("No");
}
return (0);
} | 580 | memory_bytes | {'s_id': 's134887580', 'p_id': 'p02392', 'u_id': 'u048875676', 'date': '1500536420', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', 'code_size': '168'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n\tint a, b, c;\n\t\n\tscanf(\"%d %d %d\", &a, &b, &c);\n\t\n\tif (a < b && b < c){\n\t\tputs(... |
CDSS_545048 | CDSS | #include <stdio.h>
int main(void)
{
int n, p[51], a, b = 0;
scanf("%d", &n);
for(a = 1; a <= n; a++){
scanf("%d", &p[a]);
}
for(a = 1; a <= n; a++){
if(p[a] != a){
b++;
}
}
if(b == 0 || b == 2){
printf("YES");
}else{
printf("NO");
}
return 0;
} | 128 | memory_bytes | {'s_id': 's066640653', 'p_id': 'p02958', 'u_id': 'u196669204', 'date': '1565976357', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '275'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void)\n{\n\tint n, p[51], a, b = 0;\n\t\n\tscanf(\"%d\", &n);\n\tfor(a = 1; a <= n; a++){\n\t\tscanf(\"%d... |
CDSS_64042 | CDSS | #include <stdio.h>
int main(){
float h;
float min=1000000;
float max=0;
while(scanf("%f",&h)!=EOF){
if(h<min) min=h;
if(h>max) max=h;
}
printf("%f\n",max-min);
return 0;
} | 644 | memory_bytes | {'s_id': 's260513582', 'p_id': 'p00046', 'u_id': 'u467373594', 'date': '1473863953', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '644', 'code_size': '183'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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\tfloat h;\n\tfloat min=1000000;\n\tfloat max=0;\n\twhile(scanf(\"%f\",&h)!=EOF){\n\t\tif(h<min) mi... |
CDSS_326956 | CDSS | #include<stdio.h>
int main(void){
int n,i,x,max,min;
long sum=0;
scanf("%d",&n);
scanf("%d",&x);
min=x;
max=x;
sum+=x;
for(i=1;i<n;i++){
scanf("%d",&x);
if(x<min) min=x;
if(x>max) max=x;
sum+=x;
}
printf("%d %d %ld\n",min,max,sum);
r... | 2,100 | memory_bytes | {'s_id': 's489656584', 'p_id': 'p02402', 'u_id': 'u245502316', 'date': '1523963777', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2100', 'code_size': '331'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void){\n int n,i,x,max,min;\n long sum=0;\n scanf(\"%d\",&n);\n scanf(\"%d\",&x);\n min=x... |
CDSS_201291 | CDSS | #include<stdio.h>
int solve(int, int *, int, int);
int main(){
int i, j, n1, n2;
scanf("%d", &n1);
int A[n1];
for(i=0;i<n1;i++) scanf("%d", &A[i]);
scanf("%d", &n2);
int B[n2];
for(i=0;i<n2;i++) scanf("%d", &B[i]);
for(i=0;i<n2;i++){
if(solve(n1, A, 0, B[i])) printf("yes\n");
else pr... | 2,108 | memory_bytes | {'s_id': 's474489909', 'p_id': 'p02271', 'u_id': 'u905855575', 'date': '1545023318', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '450', 'memory': '2108', 'code_size': '530'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 solve(int, int *, int, int);\n\nint main(){\n\n int i, j, n1, n2;\n\n scanf(\"%d\", &n1);\n\n int A[n1];\n... |
CDSS_622371 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <stdbool.h>
#include <string.h>
/*以下便利なマクロを定義する。*/
#define rep(i, min, max) for(i=min; i<=max; i=i+1)
#define if_forall(i, min, max, prop)\
\
rep(i, min, max)\
{\
if(!(prop))\
{\
break;\
}\
}\
\
if(i==max+1)\
#define if_exists(i, m... | 128 | memory_bytes | {'s_id': 's726366946', 'p_id': 'p03265', 'u_id': 'u637653462', 'date': '1574909873', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '10683'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 <stdbool.h>\n#include <string.h>\n\n\n\n/*以下便利なマクロを定義する。*/\n\n#de... |
CDSS_174999 | CDSS | #include<stdio.h>
int kansu(int i){
if(i==25964)
return 0;
else return i;
}
struct Card{
char suit;
char value;
};
void bubble(struct Card A[], int n){
int i, j;
struct Card t;
for ( i = 0; i < n; i++ ){
for ( j = n-1; j >= i+1; j-- ){
if ( A[j].value < A[j-1].value ){
t = A[j]; A[j] ... | 2,052 | memory_bytes | {'s_id': 's243895637', 'p_id': 'p02261', 'u_id': 'u031330621', 'date': '1549891344', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2052', 'code_size': '1362'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 kansu(int i){\n if(i==25964)\n return 0;\n else return i;\n}\nstruct Card{\n char suit;\n char val... |
CDSS_703538 | CDSS | #include <stdio.h>
#include <string.h>
int main(void){
char s[27] = {};
int i, j;
scanf("%s", s);
for( i = 0; i < strlen(s); ++i){
for( j = 0; j < strlen(s); ++j){
if( i != j && s[i] == s[j]){
printf("no\n");
return 0;
}
}
... | 128 | memory_bytes | {'s_id': 's554163153', 'p_id': 'p03698', 'u_id': 'u697817820', 'date': '1496538983', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '128', 'code_size': '369'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\nint main(void){\n char s[27] = {};\n int i, j;\n \n scanf(\"%s\", s);\n for(... |
CDSS_588432 | CDSS | #include<stdio.h>
int main(){
int N;
scanf("%d",&N);
if(N%2==0){
printf("%d\n",N*(N-1)/2-N/2);
for(int i=1;i<=N;++i){
for(int j=i+1;j<=N;++j){
if(i+j!=N+1){
printf("%d %d\n",i,j);
}
}
}
}else{
printf("%d\n",N*(N-1)/2-N/2);
for(int i=1;i<=N;++i){
for(int j=i+1;j<=N;++j){
if(i+j!=... | 128 | memory_bytes | {'s_id': 's280869747', 'p_id': 'p03090', 'u_id': 'u656771711', 'date': '1565061668', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '371'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n\tint N;\n\tscanf(\"%d\",&N);\n\tif(N%2==0){\n\t\tprintf(\"%d\\n\",N*(N-1)/2-N/2);\n\t\tfor(int i=1;... |
CDSS_652713 | CDSS | a;main(d,x){for(scanf("%*d%d%d",&d,&x);~scanf("%d",&a);)x+=~-d/a+1;printf("%d",x);} | 128 | memory_bytes | {'s_id': 's122616358', 'p_id': 'p03400', 'u_id': 'u657913472', 'date': '1522356562', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '83'} | [
{
"content": "Your task is to predict the 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(d,x){for(scanf(\"%*d%d%d\",&d,&x);~scanf(\"%d\",&a);)x+=~-d/a+1;printf(\"%d\",x);}\nPredict its memory footprint.",
"role":... |
CDSS_536046 | CDSS | #include <stdio.h>
int main(void){
int a;
char s[11];
scanf("%i %s", &a, s);
if (a >= 3200){
printf("%s", s);
} else {
puts("red");
}
} | 128 | memory_bytes | {'s_id': 's761766434', 'p_id': 'p02933', 'u_id': 'u998692993', 'date': '1567903031', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '177'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n int a;\n char s[11];\n scanf(\"%i %s\", &a, s);\n if (a >= 3200){\n printf(... |
CDSS_679245 | CDSS | #include<stdio.h>
#include<stdlib.h>
int asc(const void* a, const void* b)
{
if (*(int*)a > * (int*)b)return 1;
if (*(int*)a < *(int*)b)return -1;
return 0;
}
int main()
{
long long int n;
scanf("%lld", &n);
long long int i;
int a[100005], b[100005], c[100005];
for (i = 0; i < n; i++)
scanf("%d", &a[i]);
for... | 1,788 | memory_bytes | {'s_id': 's519700704', 'p_id': 'p03557', 'u_id': 'u600300412', 'date': '1570576834', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '89', 'memory': '1788', 'code_size': '1086'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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>\nint asc(const void* a, const void* b)\n{\n\tif (*(int*)a > * (int*)b)return 1;\n\tif (*(int*)a ... |
CDSS_437429 | CDSS | #include <stdio.h>
int main(){
int R;
double ans, pi = 3.141592654;
scanf("%d", &R);
ans = R*2*pi;
printf("%f\n", ans);
return 0;
} | 1,740 | memory_bytes | {'s_id': 's386911828', 'p_id': 'p02705', 'u_id': 'u777945851', 'date': '1596309571', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1740', 'code_size': '155'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(){\n int R;\n double ans, pi = 3.141592654;\n scanf(\"%d\", &R);\n ans = R*2*pi;\n printf(... |
CDSS_574161 | CDSS | #include <stdio.h>
int q[2][1010025] = {0};
int main(void)
{
int h, w, i, j, ans = 0, nh, nw;
int f = 0, r = 0;
int m[1005][1005] = {0}, t[1005][1005] = {0};
char s[1005];
scanf("%d %d", &h, &w);
for (i = 0; i < h; i++)
{
scanf("%s", s);
for (j = 0; j < w; j++)
{
if (s[j] == '.')
{
m[i + 1][j ... | 17,384 | memory_bytes | {'s_id': 's838802899', 'p_id': 'p03053', 'u_id': 'u451699824', 'date': '1596992040', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '43', 'memory': '17384', 'code_size': '860'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 q[2][1010025] = {0};\n\nint main(void)\n{\n\tint h, w, i, j, ans = 0, nh, nw;\n\tint f = 0, r = 0;\n\tint m[... |
CDSS_490232 | CDSS | #include <stdio.h>
#include <string.h>
int main()
{
int i, j, k, a, b;
char s[10], t[10], u[10];
scanf("%s %s %d %d %s", s, t, &a, &b, u);
if(strcmp(s, u)==0){
a -= 1;
}
if(strcmp(t, u)==0){
b -= 1;
}
printf("%d %d\n", a, b);
return 0;
}
| 128 | memory_bytes | {'s_id': 's897921308', 'p_id': 'p02777', 'u_id': 'u602267597', 'date': '1581280264', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '291'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\nint main()\n{\n int i, j, k, a, b;\n char s[10], t[10], u[10];\n scanf(\"%s %s %d ... |
CDSS_482736 | CDSS | #include <stdio.h>
int main(){
int bingo[3][3] = {{0,0,0},{0,0,0},{0,0,0}};
int n;
int b;
for(int i =0; i<3; i++){
if(scanf("%d%d%d*c", &bingo[i][0], &bingo[i][1], &bingo[i][2])==EOF){return 0;}
}
if(scanf("%d*c", &n)==EOF){return 0;}
for(int j = 0; j<n; j++){
if(scanf("%d*c", &b)==EOF){return 0;}
for(i... | 128 | memory_bytes | {'s_id': 's292213276', 'p_id': 'p02760', 'u_id': 'u906157186', 'date': '1583115749', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '837'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 bingo[3][3] = {{0,0,0},{0,0,0},{0,0,0}};\n\tint n;\n\tint b;\n\tfor(int i =0; i<3; i++){\n\t\... |
CDSS_598533 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <limits.h>
int descending_order(int *x, int *order, int size){
int i,j;
for(i=0;i<size;i++){
order[i] = 0;
}
int rank;
for(i=0;i<size;i++){
for(j=0;j<size;j++){
if(i==j)continue;
if(x[i] > x[j]){
order[i]+=1;
}else if(x[i] == ... | 896 | memory_bytes | {'s_id': 's179066782', 'p_id': 'p03137', 'u_id': 'u947883560', 'date': '1549733233', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '22', 'memory': '896', 'code_size': '2526'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <limits.h>\n\nint descending_order(int *x, int *order, int size){\n int i,j;\n for... |
CDSS_434267 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<string.h>
int main(){
int a,b,c,d;
int i;
scanf("%d %d %d %d",&a,&b,&c,&d);
for(i=1;i<1000;i++){
if(c-b*i<=0){
printf("Yes");
break;
}
else if(a-d*i<=0){
printf("No");
... | 1,728 | memory_bytes | {'s_id': 's303914453', 'p_id': 'p02700', 'u_id': 'u359243713', 'date': '1587950118', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '1728', 'code_size': '422'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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\n\nint main(){\n\n int a,b,c,d;\n int i;\n\n sc... |
CDSS_123926 | CDSS | #include <stdio.h>
int main(void){
int n,m,i,o;
while(1){
scanf("%d %d",&n,&m);
if(!n)break;
int score[100];
char atari[100][9],a[1000][9];
for(i=0;i<n;i++){
scanf("%s %d",atari[i],&score[i]);
}
for(o=0;o<m;o++){
scanf("%s",a[o]);
... | 612 | memory_bytes | {'s_id': 's801896540', 'p_id': 'p01322', 'u_id': 'u048361305', 'date': '1481715319', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '612', 'code_size': '778'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 n,m,i,o;\n\twhile(1){\n scanf(\"%d %d\",&n,&m);\n if(!n)break;\n int... |
CDSS_403491 | CDSS | //set many funcs template
//Ver.20190820
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<stdbool.h>
#include<time.h>
#include<assert.h>
#define inf 1072114514
#define llinf 4154118101919364364
#define mod 1000000007
#define pi 3.1415926535897932384
int max(int a,int b){if(a>b){return a;}return b;}
int... | 1,648 | memory_bytes | {'s_id': 's854202525', 'p_id': 'p02640', 'u_id': 'u721060623', 'date': '1592182947', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1648', 'code_size': '5425'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n//set many funcs template\n//Ver.20190820\n#include<stdio.h>\n#include<string.h>\n#include<stdlib.h>\n#include<stdbool.h>\n#include<ti... |
CDSS_675457 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include<math.h>
int main()
{
int N;
scanf("%d",&N);
int a[6];
for(int i=4;i>=1;i--)
{
a[i]=N%10;
N=N/10;
}
if(a[1]==a[2]&&a[2]==a[3])
printf("Yes");
else if(a[2]==a[3]&&a[3]==a[4])
printf("Yes");
else
printf("No");
return 0;
}
| 128 | memory_bytes | {'s_id': 's643612550', 'p_id': 'p03543', 'u_id': 'u816631826', 'date': '1511744844', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '128', 'code_size': '301'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 main()\n{\n int N;\n scanf(\"%d\",&N);\n int a[6];\n for(int i=4;... |
CDSS_280469 | CDSS | #include <stdio.h>
int main(void){
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
if(a<b&&b<c){printf("Yes\n");}
else{printf("No\n");}
return 0;
}
| 2,096 | memory_bytes | {'s_id': 's592757244', 'p_id': 'p02392', 'u_id': 'u554236524', 'date': '1587082951', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2096', 'code_size': '159'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\n int a,b,c;\n scanf(\"%d %d %d\",&a,&b,&c);\n if(a<b&&b<c){printf(\"Yes\\n\");}\n els... |
CDSS_637172 | CDSS | #include<stdio.h>
int main()
{
int A,B;
scanf("%d %d",&A,&B);
if(A<9 && B<9)
printf("Yay!\n");
else
printf(":(\n");
return 0;
}
| 128 | memory_bytes | {'s_id': 's834187542', 'p_id': 'p03323', 'u_id': 'u353919145', 'date': '1569988076', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '165'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n int A,B;\n scanf(\"%d %d\",&A,&B);\n if(A<9 && B<9)\n printf(\"Yay!\\n\");\n els... |
CDSS_254037 | CDSS | #include <stdio.h>
int main(void){
int x,y;
scanf("%d" "%d", &x, &y);
printf("%d %d\n", x * y, x * 2 + y * 2);
return 0;
} | 596 | memory_bytes | {'s_id': 's619379688', 'p_id': 'p02389', 'u_id': 'u547880217', 'date': '1491194202', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '128'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n\nint x,y;\n\nscanf(\"%d\" \"%d\", &x, &y);\n\nprintf(\"%d %d\\n\", x * y, x * 2 + y * 2);\n\nr... |
CDSS_399354 | CDSS | #include<stdio.h>
int main(){
//int i;
char moji;
scanf("%c", &moji);
/* アルファベットの小文字か大文字かを判定 */
if((moji>= 'a') && (moji<='z')){
printf("a\n");
}
else if((moji>= 'A') && (moji<='Z')){
printf("A\n");
}
return 0;
} | 1,584 | memory_bytes | {'s_id': 's931778036', 'p_id': 'p02627', 'u_id': 'u303156317', 'date': '1592787749', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '1584', 'code_size': '302'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 i;\n char moji;\n scanf(\"%c\", &moji);\n /* アルファベットの小文字か大文字かを判定 */\n if((moji>=... |
CDSS_736483 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<stdbool.h>
#define ll long long int
#define MIN(x,y) (x)>(y)?(y):(x)
#define MAX(x,y) (x)>(y)?(x):(y)
#define ABS(x) (x)>0?(x):(-x)
#define mod 10000007
#define INF 1e9
int main(void){
int n;
scanf("%d",&n);
int a[n];
int pair[n];
for(int i=0;i<n;i++){
scanf("%d",&... | 896 | memory_bytes | {'s_id': 's474310149', 'p_id': 'p03993', 'u_id': 'u853477575', 'date': '1558130275', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '11', 'memory': '896', 'code_size': '516'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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<stdbool.h>\n#define ll long long int\n#define MIN(x,y) (x)>(y)?(y):(x)\n#define MAX(x,... |
CDSS_239620 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <math.h>
typedef struct dice{
int face[6];
}dice;
void rotate(dice *d, char dir)
{
int temp;
switch(dir) {
case 'N':
temp=d->face[0];
d->face[0]=d->face[1];
d->face[1]=d->face[5];
d->face[5]=d->face[4];
d->fa... | 1,992 | memory_bytes | {'s_id': 's262275315', 'p_id': 'p02386', 'u_id': 'u568918115', 'date': '1542267228', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1992', 'code_size': '1493'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 \ntypedef struct dice{\n int face[6];\n}dice;\n \nvoid rotate(dice... |
CDSS_618705 | CDSS | #define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main(void)
{
int N, M, X, Y, x[1000], y[1000], i, ans = 0;
scanf("%d %d %d %d", &N, &M, &X, &Y);
for (i = 0; i < N; i++) scanf("%d", &x[i]);
for (i = 0; i < M; i++) scanf("%d", &y[i]);
int x_max = x[0], y_min = y[0];
for (i = 0; i < N; i++) if (x_max < x[i... | 128 | memory_bytes | {'s_id': 's644629364', 'p_id': 'p03251', 'u_id': 'u999043475', 'date': '1538066797', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '575'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#define _CRT_SECURE_NO_WARNINGS\n#include <stdio.h>\n\nint main(void)\n{\n\tint N, M, X, Y, x[1000], y[1000], i, ans = 0;\n\n\tscanf(\... |
CDSS_188989 | CDSS | #include <stdio.h>
#define NOT_FOUND 0
int linearSearch(int);
int n,A[10000];
int main()
{
int i,q,count=0,T[500];
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d",&A[i]);
}
scanf("%d",&q);
for(i=0;i<q;i++){
scanf("%d",&T[i]);
if(linearSearch(T[i])==1) count++;
}
printf("%d\n",count);
retur... | 636 | memory_bytes | {'s_id': 's019696414', 'p_id': 'p02267', 'u_id': 'u840531793', 'date': '1494473933', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '636', 'code_size': '451'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\n#define NOT_FOUND 0\n\nint linearSearch(int);\nint n,A[10000];\nint main()\n{\n int i,q,count=0,T[500];\n\n sc... |
CDSS_76437 | CDSS | #define _CRT_SECURE_NO_WARNINGS
#define _USE_MATH_DEFINES
#include<stdio.h>
void Initialization(int[][11]);
int main() {
int d[11][11], n, i, sum, j;
while (scanf("%d", &n),n!=0) {
Initialization(d);
for (i = 0; i < n; i++) {
sum = 0;
for (j = 0; j < n; j++) {
scanf("%d", &d[i][j]);
sum += d[i][j]... | 616 | memory_bytes | {'s_id': 's418639623', 'p_id': 'p00102', 'u_id': 'u078042885', 'date': '1480727884', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '616', 'code_size': '701'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#define _CRT_SECURE_NO_WARNINGS\n#define _USE_MATH_DEFINES\n#include<stdio.h>\n\nvoid Initialization(int[][11]);\n\nint main() {\n\tin... |
CDSS_161658 | CDSS | #include<stdio.h>
int main()
{
int max, min, n, i, j, a[200000];
scanf("%d", &n);
for(i=0; i<n; i++)
{
scanf("%d", &a[i]);
}
i = a[0];
max = a[1]-i;
for(j=1; j<n; j++)
{
min = i;
if(a[j] <= min) i=a[j];
if(a[j]-min >= max) max = a[j]-min;
}
printf("%... | 1,376 | memory_bytes | {'s_id': 's764485440', 'p_id': 'p02258', 'u_id': 'u534407423', 'date': '1491972783', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '30', 'memory': '1376', 'code_size': '348'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 max, min, n, i, j, a[200000];\n\n scanf(\"%d\", &n);\n for(i=0; i<n; i++)\n {\n sc... |
CDSS_630188 | CDSS | #include<stdio.h>
int main()
{
int x,y,z;
scanf("%d%d%d",&x,&y,&z);
if(x>=y&&y>=z)
{
printf("%d",x-z);
}
else if(x>=z&&z>=y)
{
printf("%d",x-y);
}
else if(y>=z&&z>=x)
{
printf("%d",y-x);
}
else if(y>=x&&x>=z)
{
printf("%d",y-z);
}
... | 128 | memory_bytes | {'s_id': 's202448374', 'p_id': 'p03292', 'u_id': 'u353919145', 'date': '1583528148', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '459'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n int x,y,z;\n scanf(\"%d%d%d\",&x,&y,&z);\n if(x>=y&&y>=z)\n {\n printf(\"%d\",x-... |
CDSS_593925 | CDSS | #include <stdio.h>
#include <string.h>
int main(void)
{
int n;
double total = 0;
scanf("%d", &n);
for (int i = 0; i < n; i++) {
double x;
char u[4];
scanf("%lf %3s", &x, u);
total += strcmp("JPY", u) == 0 ? x : x * 380000.0;
}
printf("%f\n", total);
}
| 128 | memory_bytes | {'s_id': 's889367461', 'p_id': 'p03110', 'u_id': 'u081445141', 'date': '1551167874', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '281'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 int n;\n double total = 0;\n scanf(\"%d\", &n);\n for (int i = 0; i... |
CDSS_518601 | CDSS | #include<stdio.h>
int main(){
int n;
int i,j;
scanf("%d",&n);
for(i=1;i<10;i++)
for(j=1;j<10;j++)
if(i*j==n){
printf("Yes\n");
return 0;
}
printf("No\n");
return 0;
} | 128 | memory_bytes | {'s_id': 's140317861', 'p_id': 'p02880', 'u_id': 'u188486233', 'date': '1578552574', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '254'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int n;\n int i,j;\n scanf(\"%d\",&n);\n for(i=1;i<10;i++)\n for(j=1;j<10;j++)\n ... |
CDSS_19512 | CDSS | #include<stdio.h>
int main(){
int a, b;
for(a = 1; a < 10; a++){
for(b = 1; b < 10; b++){
printf("%dx%d=%d\n", a, b,a*b);
}
}
return 0;
} | 524 | memory_bytes | {'s_id': 's086951399', 'p_id': 'p00000', 'u_id': 'u556999784', 'date': '1499242997', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', 'code_size': '161'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 for(a = 1; a < 10; a++){\n for(b = 1; b < 10; b++){\n printf(\"%dx%d=%d\... |
CDSS_653085 | CDSS | #include<stdio.h>
#include<string.h>
#include<stdlib.h>
int main() {
long long int n, a, b, memo;
char s[105][105];
scanf("%lld%lld",&a,&b);
printf("100 100\n");
for (int i = 1; i <= 50; i++) {
for (int j = 1; j <= 100; j++) {
s[i][j] = '.';
}
}
for (int i = 51; i <= 100; i++) {
for (int j = 1; j <= 10... | 128 | memory_bytes | {'s_id': 's112249254', 'p_id': 'p03402', 'u_id': 'u018872912', 'date': '1546164534', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '762'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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>\nint main() {\n\tlong long int n, a, b, memo;\n\tchar s[105][105];\n\tscanf... |
CDSS_398740 | CDSS | #include<stdio.h>
int main()
{
char x[100];
int i=0, len=0;
gets(x);
while(x[i]!='\0')
{
i++;
len++;
}
for(i=0;i<len;i++)
{
if(x[i]>='A'&&x[i]<='Z')
{
printf("A");
}
else
printf("a");
}
retur... | 1,960 | memory_bytes | {'s_id': 's728936847', 'p_id': 'p02627', 'u_id': 'u816631826', 'date': '1593747513', 'language': 'C', 'original_language': 'C (Clang 10.0.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1960', 'code_size': '328'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 char x[100];\n int i=0, len=0;\n\n gets(x);\n while(x[i]!='\\0')\n {\n i++;\n... |
CDSS_304314 | CDSS | #include <stdio.h>
int main(){
int a, b, c, x, i = 0;
scanf("%d%d%d", &a, &b, &c);
if (c<a)
{ }
else if (c < b){
if (c%a == 0)
i++;
for (x = a + 1; x <= c; x++)
{
if (c%x == 0)
{
i++;
}
}
}
else{
if (c%a == 0)
i++;
for (x = a + 1; x <= b; x++)
{
if (c%x == 0)
{
i++;
... | 596 | memory_bytes | {'s_id': 's001468887', 'p_id': 'p02398', 'u_id': 'u801389014', 'date': '1427264563', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '363'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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, x, i = 0;\n\tscanf(\"%d%d%d\", &a, &b, &c);\n\t\n\tif (c<a)\n\t{ }\n\telse if (c < b){... |
CDSS_721614 | CDSS | #include<stdio.h>
#include<stdlib.h>
int main(){
long long int c;
scanf("%lld",&c);
long long int syou=c/11;
int amari=c%11;
int nokori=0;
if(amari>=7) nokori=2;
else if(amari==0) nokori=0;
else nokori=1;
printf("%lld\n",syou*2+nokori);
} | 128 | memory_bytes | {'s_id': 's213297973', 'p_id': 'p03815', 'u_id': 'u679325651', 'date': '1486200059', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '276'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n\nint main(){\n long long int c;\n scanf(\"%lld\",&c);\n long long int syou=c/11;\n ... |
CDSS_390760 | CDSS | #include <stdio.h>
int main(){
int N;
scanf("%d",&N);
printf("%d\n",(10000-N)%1000);
return 0;
} | 1,732 | memory_bytes | {'s_id': 's676478572', 'p_id': 'p02612', 'u_id': 'u159646875', 'date': '1597776550', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1732', 'code_size': '110'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n int N;\n scanf(\"%d\",&N);\n\n \n printf(\"%d\\n\",(10000-N)%1000);\n return 0;\n}\nPredict ... |
CDSS_135068 | CDSS | #include<stdio.h>
#define N 100
int main(){
int M[N][N];
int a,b,c,d;
int i,j;
scanf("%d",&a);
for( i = 0 ; i < a ; i++){
for( j = 0 ; j < a ; j++){
M[i][j]=0;
}
}
for( i = 0 ; i < a ; i++ ){
scanf("%d%d",&b,&c);
b--;
for( j = 0 ; j < c ; j++){
scanf("%d",&d);
d--;
M... | 636 | memory_bytes | {'s_id': 's380600601', 'p_id': 'p02237', 'u_id': 'u333589327', 'date': '1499761423', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '636', 'code_size': '490'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#define N 100\n \nint main(){\n \n int M[N][N];\n int a,b,c,d;\n int i,j;\n \n scanf(\"%d\",&a);\n \n for( i = 0... |
CDSS_741212 | CDSS | #include <stdio.h>
#include <limits.h>
int main() { int sum=0, x;scanf("%d",&x);
while(x!=0){sum+=x;x--;}
printf("%d",sum);
return 0; } | 128 | memory_bytes | {'s_id': 's199226143', 'p_id': 'p04029', 'u_id': 'u110386020', 'date': '1583301770', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '128', 'code_size': '145'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <limits.h>\n int main() { int sum=0, x;scanf(\"%d\",&x);\n while(x!=0){sum+=x;x--;}\n printf(\"%d\"... |
CDSS_120429 | CDSS | #include<stdio.h>
int main(void)
{
int i,j,n,m,p[1000],S,S1;
while(1)
{
scanf("%d%d",&n,&m);
if(n==0&&m==0) break;
for(i=0;i<=n-1;i++)
{
scanf("%d",&p[i]);
}
S1=0;
for(i=0;i<=n-1;i++)
{
for(j=i+1;j<=n-1;j++)
{
S=p[i]+p[j];
if(S<=m && S1<S) S1=S;
}... | 1,752 | memory_bytes | {'s_id': 's291454014', 'p_id': 'p01101', 'u_id': 'u951145380', 'date': '1506495825', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1752', 'code_size': '407'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 i,j,n,m,p[1000],S,S1;\n\n while(1)\n {\n scanf(\"%d%d\",&n,&m);\n if(n==0&... |
CDSS_695852 | CDSS | #include <stdio.h>
#include <stdlib.h>
#define ARRAY_MAX 50
void solve(int n, int k, int sticks[]);
int comp(const void *x, const void *y);
int main()
{
int n, k;
int sticks[ARRAY_MAX];
scanf("%d %d", &n, &k);
for (int i = 0; i < n; i++)
{
scanf("%d", &sticks[i]);
}
solve(n, k, sticks);
... | 128 | memory_bytes | {'s_id': 's726460307', 'p_id': 'p03658', 'u_id': 'u589100520', 'date': '1591858453', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '615'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 ARRAY_MAX 50\n\n\nvoid solve(int n, int k, int sticks[]);\nint comp(const void *x, ... |
CDSS_659081 | CDSS | #include<stdio.h>
#define GridSize 3
int main(void)
{
//変数を定義。
int c[GridSize][GridSize];
int flag = 0;
//3×3のグリッドを入力。
for (int i = 0; i < GridSize; i++) {
scanf("%d %d %d\n", &c[i][0], &c[i][1], &c[i][2]);
}
/*表の上の数値から下の数値を引いた値がそれぞれ等しいと条件が満たされる。
例えば、c[0][0] - c[1][0] と c[0][1] - c[1][1]の差が等しい。*/
for ... | 128 | memory_bytes | {'s_id': 's483617347', 'p_id': 'p03435', 'u_id': 'u133892560', 'date': '1539723304', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '683'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 GridSize 3 \nint main(void)\n{\n\t//変数を定義。\n\tint c[GridSize][GridSize];\n\tint flag = 0;\n \n\t//3×3のグリッドを... |
CDSS_736903 | CDSS | #include <stdio.h>
int main(void){
int a,b,h;
scanf("%d", &a);
scanf("%d", &b);
scanf("%d", &h);
printf("%d", (a + b) * h/2);
return 0;
} | 1,732 | memory_bytes | {'s_id': 's651017587', 'p_id': 'p03997', 'u_id': 'u846252522', 'date': '1597403402', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1732', 'code_size': '166'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n int a,b,h;\n\n scanf(\"%d\", &a);\n scanf(\"%d\", &b);\n scanf(\"%d\", &h);\n\n ... |
CDSS_618929 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<string.h>
#include<stdbool.h>
typedef long long ll;
typedef long double ld;
#define rep(i,l,r)for(ll i=(l);i<(r);i++)
#define repp(i,l,r,k)for(ll i=(l);i<(r);i+=(k))
#define rrep(i,l,r)for(ll i=(l);i>=(r);i--)
#define INF (1LL<<60)
#define MOD1 1000000007
#... | 512 | memory_bytes | {'s_id': 's307355820', 'p_id': 'p03252', 'u_id': 'u004279520', 'date': '1585503316', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '512', 'code_size': '1536'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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#include<stdbool.h>\ntypedef long long ll;\ntypedef long ... |
CDSS_275387 | CDSS | #include <stdio.h>
int main(void){
int a ,b ,c;
scanf("%d%d%d",&a,&b,&c);
if ( a < b && b < c ){
printf("Yes\n");
} else printf("No\n");
return 0;
} | 580 | memory_bytes | {'s_id': 's403867931', 'p_id': 'p02392', 'u_id': 'u885545255', 'date': '1429860127', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', '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>\nint main(void){\n int a ,b ,c;\n scanf(\"%d%d%d\",&a,&b,&c);\n if ( a < b && b < c ){\n printf(\"Y... |
CDSS_551164 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main()
{
int n,a,b;
scanf("%d %d %d",&n,&a,&b);
a *= n;
if(a>b){
printf("%d\n",b);
}else
{
printf("%d\n",a);
}
return 0;
} | 128 | memory_bytes | {'s_id': 's113065757', 'p_id': 'p02981', 'u_id': 'u503906942', 'date': '1562547753', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '241'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\nint main()\n{\n int n,a,b;\n scanf(\"%d %d %d\",&n,&a,&b);\n\n ... |
CDSS_171756 | CDSS | #include <stdio.h>
void p(int A[],int n){
int i;
for (i = 0; i < n; i++) {
if (i != 0) putchar(' ');
printf("%d", A[i]);
}
putchar('\n');
}
int main(){
int n, A[100], i, j, min, c = 0, swap;
scanf("%d", &n);
for (i = 0;i < n;i++) scanf("%d", A + i);
for (i = 0;i < n; i+... | 604 | memory_bytes | {'s_id': 's824084305', 'p_id': 'p02260', 'u_id': 'u088697939', 'date': '1387363269', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '604', '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\nvoid p(int A[],int n){\n int i;\n for (i = 0; i < n; i++) {\n if (i != 0) putchar(' ');\n pr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.