identifier string | space string | input string | target float64 | metric_type string | metadata string | messages list |
|---|---|---|---|---|---|---|
CDSS_664741 | CDSS | #include<stdio.h>
#include<string.h>
int main()
{
char s[11],s1[11];
int i;
scanf("%s",s);
for(i=0;i<10;i++)
{
if(i==0)
{
s1[i]='2';
}
else if(i==1)
{
s1[i]='0';
}
else if(i==2)
{
s1[i]='1';
}
else if(i==3)
{
s1[i]='8';
}
... | 128 | memory_bytes | {'s_id': 's675715230', 'p_id': 'p03469', 'u_id': 'u863370423', 'date': '1574302273', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '421'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\nint main()\n{\n char s[11],s1[11];\n int i;\n scanf(\"%s\",s);\nfor(i=0;i<10;i++)\n{\n... |
CDSS_722437 | CDSS | #include <stdio.h>
int main(void)
{
int a, b, c, d, max;
scanf("%d%d%d%d", &a, &b, &c, &d);
max = a*b;
if (c*d>max) max = c*d;
printf("%d\n", max);
return 0;
} | 128 | memory_bytes | {'s_id': 's795658129', 'p_id': 'p03826', 'u_id': 'u982939392', 'date': '1586378593', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '184'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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, d, max;\n \n scanf(\"%d%d%d%d\", &a, &b, &c, &d);\n\n max = a*b;\n if (c*d... |
CDSS_623692 | CDSS | /* ex7_3
supercomputerjoi */
#include <stdio.h>
#include <stdlib.h>
int main(void){
int height, width;
char **map;
int i = 0, j = 0, k = 0;
char isBlank;
// input H W
scanf("%d %d", &height, &width);
// secure memory
map = (char**)calloc(height+1, sizeof(char*));
if(map ... | 1,628 | memory_bytes | {'s_id': 's649651782', 'p_id': 'p03273', 'u_id': 'u660246945', 'date': '1594618299', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1628', 'code_size': '1942'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n/* ex7_3\n supercomputerjoi */\n\n#include <stdio.h>\n#include <stdlib.h>\n\nint main(void){\n\n int height, width;\n cha... |
CDSS_120464 | CDSS | #include<stdio.h>
int main(void)
{
int i,j,n,m,a[1000],S,S1;
while(1)
{
scanf("%d",&n);
scanf("%d",&m);
if(n==0&&m==0) break;
for(i=0;i<=n-1;i++)
{
scanf("%d",&a[i]);
}
S1=0;
for(i=0;i<=n-1;i++)
{
for(j=i+1;j<=n-1;j++)
{
S=a[i]+a[j];
if(S<=m && S... | 2,104 | memory_bytes | {'s_id': 's041452702', 'p_id': 'p01101', 'u_id': 'u052848976', 'date': '1526008034', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '425'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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,a[1000],S,S1;\n\n while(1)\n {\n scanf(\"%d\",&n);\n scanf(\"%d\",... |
CDSS_339434 | CDSS | #include <stdio.h>
int main(void)
{
int n, x, i;
scanf("%d", &n);
if (n >= 3 && n <= 10000) {
for (i = 1; i <= n; i++) {
if (i % 3 == 0) {
printf(" %d", i);
} else {
x = i;
while(x != 0) {
if (x % 10 == 3) {
printf(" %d", i);
break;
... | 600 | memory_bytes | {'s_id': 's797453360', 'p_id': 'p02406', 'u_id': 'u899287431', 'date': '1496041269', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '408'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n \nint main(void)\n{\n int n, x, i;\n scanf(\"%d\", &n);\n \n if (n >= 3 && n <= 10000) {\n for (i = 1; i <=... |
CDSS_91080 | CDSS | #include<stdio.h>
int main(void){
int b[3];
scanf("%d %d %d",&b[0],&b[1],&b[2]);
if(b[0]==1&&b[1]==1) printf("Open\n");
else if(b[2]==1) printf("Open\n");
else printf("Close\n");
return 0;
}
| 2,044 | memory_bytes | {'s_id': 's350062299', 'p_id': 'p00252', 'u_id': 'u775759629', 'date': '1591238381', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2044', 'code_size': '197'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n\tint b[3];\n\tscanf(\"%d %d %d\",&b[0],&b[1],&b[2]);\n\tif(b[0]==1&&b[1]==1) printf(\"Open\\n\");... |
CDSS_204562 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <limits.h>
#define MAX 999999999
#define N 500000
void Merge(int *,int,int,int);
void Mergesort(int *,int,int);
int calc;
int main(){
int n,a[N],i;
calc=0;
scanf("%d",&n);
for(i=0; i<n; i++){
scanf("%d",&a[i]);
}
Mergesort(a,0,n);
for(i=0; i<n-1; i++)... | 5,600 | memory_bytes | {'s_id': 's841118524', 'p_id': 'p02272', 'u_id': 'u445491299', 'date': '1545110798', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '100', 'memory': '5600', 'code_size': '965'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <limits.h>\n\n#define MAX 999999999\n#define N 500000\n\nvoid Merge(int *,int,int,in... |
CDSS_723043 | CDSS | #include<stdio.h>
int main(void)
{
int n, i, x=0, y=0;
char s[101];
scanf("%d", &n);
for(i=0;i<n;i++)
{
scanf("%s", &s[i]);
if(s[i] == 'I')
x++;
else if(s[i] == 'D')
x--;
if(y < x)
y = x;
}
printf("%d\n", y);
return 0;
} | 128 | memory_bytes | {'s_id': 's017998513', 'p_id': 'p03827', 'u_id': 'u909165125', 'date': '1551151801', '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 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, i, x=0, y=0;\n char s[101];\n\n scanf(\"%d\", &n);\n\n for(i=0;i<n;i++)\n {\n ... |
CDSS_509418 | CDSS | #include<stdio.h>
int main( )
{
int A1,A2,A3;
scanf("%d%d%d",&A1,&A2,&A3);
if(A1+A2+A3>=22){
printf("bust\n");
}
else{
printf("win\n");
}
return 0;
} | 128 | memory_bytes | {'s_id': 's193051526', 'p_id': 'p02835', 'u_id': 'u089230684', 'date': '1581139567', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '149'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main( )\n{\nint A1,A2,A3;\nscanf(\"%d%d%d\",&A1,&A2,&A3);\nif(A1+A2+A3>=22){\nprintf(\"bust\\n\");\n}\nelse{\np... |
CDSS_164984 | CDSS | #include<stdio.h>
int main(){
int i,j=0,x,count=0,g,n[100];
scanf("%d",&g);
for(i=0;i<g;i++)scanf("%d",&n[i]);
for(j=0;j<g-1;j++){
for(i=g-1;i>j;i--){
if(n[i]<n[i-1]){
x = n[i-1];
n[i-1] = n[i];
n[i] = x;
count++;
}}
}
for(i=0;i<g;i++){
printf("%d",n[i]);
if(i<g-1)printf(... | 604 | memory_bytes | {'s_id': 's817976416', 'p_id': 'p02259', 'u_id': 'u410129892', 'date': '1429230761', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '604', 'code_size': '367'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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,j=0,x,count=0,g,n[100];\n scanf(\"%d\",&g);\n for(i=0;i<g;i++)scanf(\"%d\",&n[i]);\n for(j=... |
CDSS_724760 | CDSS | #include <stdio.h>
int main(void){
int k, s;
scanf("%d%d", &k, &s);
int ans = 0;
for(int i = 0; i <= k; i++){
for(int j = 0; j <= k; j++){
if(0 <= s - i - j && s - i - j <= k) ans++;
}
}
printf("%d\n", ans);
return 0;
} | 128 | memory_bytes | {'s_id': 's604479152', 'p_id': 'p03835', 'u_id': 'u692797455', 'date': '1541472119', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', '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>\n\nint main(void){\n int k, s;\n scanf(\"%d%d\", &k, &s);\n int ans = 0;\n \n for(int i = 0; i <= k; i++){\n ... |
CDSS_129405 | CDSS | #include<stdio.h>
#define NIL -1
int dp[45];
int Fib(int n){
int u,v;
if(n==0||n==1) return 1;
else if(dp[n]!=NIL) return dp[n];
else return dp[n]=Fib(n-1)+Fib(n-2);
}
int main(){
int i,ans,n;
scanf("%d",&n);
for(i=0;i<45;i++) dp[i]=NIL;
ans=Fib(n);
printf("%d\n",ans);
return 0;
} | 596 | memory_bytes | {'s_id': 's556437791', 'p_id': 'p02233', 'u_id': 'u906311482', 'date': '1404438822', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '304'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#define NIL -1\n\nint dp[45];\n\nint Fib(int n){\n int u,v;\n if(n==0||n==1) return 1;\n else if(dp[n]!=NIL) ret... |
CDSS_373954 | CDSS | #include <stdio.h>
int main(void) {
int k;
scanf("%d", &k);
for (int i = 0; i < k; i++) {
printf("ACL");
}
printf("\n");
return 0;
} | 1,656 | memory_bytes | {'s_id': 's648595825', 'p_id': 'p02534', 'u_id': 'u581816556', 'date': '1601317800', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1656', 'code_size': '151'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 k;\n scanf(\"%d\", &k);\n for (int i = 0; i < k; i++) {\n printf(\"ACL\");\n }\n... |
CDSS_679376 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
int descending_compare( const void * a , const void * b ) {
if (*(unsigned long*)a < *(unsigned long*)b) {
return 1;
}
else
if (*(unsigned long*)a == *(unsigned long*)b) {
return 0;
}
return -1;
}
int ascending_compare( c... | 3,324 | memory_bytes | {'s_id': 's843287542', 'p_id': 'p03557', 'u_id': 'u543284218', 'date': '1514618944', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '88', 'memory': '3324', 'code_size': '1757'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <math.h>\n\nint descending_compare( const void * a , const void... |
CDSS_274622 | CDSS | #include<stdio.h>
int main(){
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,108 | memory_bytes | {'s_id': 's227745870', 'p_id': 'p02392', 'u_id': 'u548513933', 'date': '1535696679', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '136'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n\tint a,b,c;\n\tscanf(\"%d%d%d\",&a,&b,&c);\n\tif(a<b && b<c)printf(\"Yes\\n\");\n\telse printf(\"No\\... |
CDSS_548490 | CDSS | #include <stdio.h>
#include <stdlib.h>
int main()
{
int n;
int *arry = NULL;
int d = 0;
int i = 0;
int max = 0;
int sec = 0;
int maxIndex = 0;
if (scanf("%d", &n) != 0)
;
for (; i < n; i++)
{
if (scanf("%d", &d) != 0);
if (d > max)
{
max = d;
maxIndex = i;
}
else if(d > sec)
{
sec = ... | 1,536 | memory_bytes | {'s_id': 's856635532', 'p_id': 'p02971', 'u_id': 'u158018750', 'date': '1563677422', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '39', 'memory': '1536', 'code_size': '452'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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{\n\tint n;\n\tint *arry = NULL;\n\tint d = 0;\n\tint i = 0;\n\tint max = 0;\n\... |
CDSS_416371 | CDSS | #include<stdio.h>
#include<string.h>
int main() {
int k;
char s[101];
scanf("%d", &k);
scanf("%s", &s);
if (k >= strlen(s)) {
printf("%s", s);
}
else {
s[k] = '\0';
printf("%s...", s);
}
} | 2,148 | memory_bytes | {'s_id': 's975382820', 'p_id': 'p02676', 'u_id': 'u737015864', 'date': '1589764620', 'language': 'C', 'original_language': 'C (Clang 10.0.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '7', 'memory': '2148', 'code_size': '203'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\tint k;\n\tchar s[101];\n\tscanf(\"%d\", &k);\n\tscanf(\"%s\", &s);\n\tif (k >... |
CDSS_347437 | CDSS | #include <stdio.h>
int main(void){
int i,j,n,m,cn;
char c,s[5]={'S','H','C','D','\0'};
static int card[4][13];
scanf("%d\n",&n);
for(i=0;i<n;i++){
scanf("%c %d\n",&c,&m);
for(j=0;j<4;j++)
if(s[j]==c)
card[j][m-1]=1;
}
for(i=0;i<4;i++)
for(j=0;j<13;j++)
if(card[i][j]... | 2,040 | memory_bytes | {'s_id': 's348786456', 'p_id': 'p02408', 'u_id': 'u807064503', 'date': '1558758994', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2040', 'code_size': '377'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n \nint main(void){\n int i,j,n,m,cn;\n char c,s[5]={'S','H','C','D','\\0'};\n static int card[4][13];\n scanf(... |
CDSS_644394 | CDSS | #include<stdio.h>
#include<stdlib.h>
int main(){
int a,b,c,d;
scanf("%d %d %d %d",&a,&b,&c,&d);
if(abs(c-a)<=d){
printf("Yes");
}
else if(abs(a-b)<=d && abs(b-c)<=d){
printf("Yes");
}
else{
printf("No");
}
return 0;
} | 128 | memory_bytes | {'s_id': 's272552459', 'p_id': 'p03351', 'u_id': 'u363981555', 'date': '1526173961', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '277'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\nint main(){\n int a,b,c,d;\n scanf(\"%d %d %d %d\",&a,&b,&c,&d);\n if(abs(c-a)<=d){\n ... |
CDSS_77596 | CDSS | #include<stdio.h>
int minof(int min,int y){
min=(min<y)?min:y;
return min;
}
int main(){
int min[51], g,i,j,k,l;
while(1){
scanf("%d",&g);
if(g==0){
break;
};
g/=100;
for(l=0;l<51;l+=1){
min[l]=100000;
};
for(i=0;i<26;i+=1){
for(j=0;j<17;j+= 1){
for(k=0;... | 600 | memory_bytes | {'s_id': 's399623907', 'p_id': 'p00106', 'u_id': 'u760166772', 'date': '1361083759', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '565'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n \nint minof(int min,int y){\n min=(min<y)?min:y;\n return min;\n}\n \nint main(){\n int min[51], g,i,j,k,l;\n ... |
CDSS_673140 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#define SIZE 200100
typedef struct {
int num;
int cnt;
} count;
int counter(int* base, int n, count* dst);
int max(int a, int b) {
return a < b ? b : a;
}
int main() {
int rw, i, a[SIZE], k, n, k_all;
count c[SIZE];
scanf("%d%d", &n, ... | 4,092 | memory_bytes | {'s_id': 's274376344', 'p_id': 'p03495', 'u_id': 'u300968187', 'date': '1558382786', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '57', 'memory': '4092', 'code_size': '1231'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 SIZE 200100\n\ntypedef struct {\n\tint num;\n... |
CDSS_607771 | CDSS | #include<stdio.h>
int main() {
int N, p, max= -1, sum= 0;
scanf("%d", &N);
for(int m=1; m<=N; m++)
{
scanf("%d", &p);
if(p >= max)
max= p;
sum+= p;
}
int s= sum-(max/2);
printf("%d\n", s);
return 0;
} | 1,700 | memory_bytes | {'s_id': 's157138849', 'p_id': 'p03207', 'u_id': 'u863370423', 'date': '1598490385', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1700', 'code_size': '276'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main() {\n\n int N, p, max= -1, sum= 0;\n scanf(\"%d\", &N);\n \n for(int m=1; m<=N; m++)\n {\... |
CDSS_547338 | CDSS | #include <stdio.h>
int main(void) {
int r;
scanf("%d", &r);
printf("%d\n", 3*r*r);
return 0;
}
| 128 | memory_bytes | {'s_id': 's033857933', 'p_id': 'p02969', 'u_id': 'u231261695', 'date': '1563670869', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '112'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 r;\n scanf(\"%d\", &r);\n printf(\"%d\\n\", 3*r*r);\n return 0;\n}\n\nPredict... |
CDSS_719157 | CDSS | #include <stdio.h>
int main(void)
{
int A, B;
scanf("%d%d", &A, &B);
if (A == 1) A += 13;
if (B == 1) B += 13;
if (A > B) {
printf("Alice\n");
} else if (B > A) {
printf("Bob\n");
} else {
printf("Draw\n");
}
return 0;
} | 128 | memory_bytes | {'s_id': 's893740734', 'p_id': 'p03803', 'u_id': 'u580725438', 'date': '1526902203', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '284'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n int A, B;\n scanf(\"%d%d\", &A, &B);\n\n if (A == 1) A += 13;\n if (B == 1) B +=... |
CDSS_709070 | CDSS | #include <stdio.h>
#include <string.h>
#include <math.h>
int main (){
char A[15],B[15],C[15];
scanf(" %s %s %s",&A,&B,&C);
int a,b;
a=strlen(A),b=strlen(B);
if(A[a-1]==B[0]&&B[b-1]==C[0]){
printf("YES\n");}
else printf("NO\n");
return 0;
} | 128 | memory_bytes | {'s_id': 's657425453', 'p_id': 'p03729', 'u_id': 'u018679195', 'date': '1540364889', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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>\n#include <string.h>\n#include <math.h>\nint main (){\n\tchar A[15],B[15],C[15];\n\tscanf(\" %s %s %s\",&A,&B,&C);\... |
CDSS_63487 | CDSS | #include <stdio.h>
#include <math.h>
int main(void)
{
int i=0,data1[100]={0},data2[100]={0},sum_price=0;
double ave=0;
while(scanf("%d , %d",&data1[i],&data2[i])!=EOF){
sum_price+=data1[i]*data2[i];
ave+=data2[i];
i++;
}
ave=ave/i+0.5;
printf("%d\n",sum_price);
printf("%.0lf\n",ave);
return 0;
} | 628 | memory_bytes | {'s_id': 's826977261', 'p_id': 'p00045', 'u_id': 'u700389021', 'date': '1410254430', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '628', 'code_size': '310'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 i=0,data1[100]={0},data2[100]={0},sum_price=0;\n\tdouble ave=0;\n\twhi... |
CDSS_687234 | CDSS | main(a){for(;read(0,&a,2);)putchar(a%256);} | 256 | memory_bytes | {'s_id': 's672867448', 'p_id': 'p03610', 'u_id': 'u657913472', 'date': '1505275400', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '18', 'memory': '256', 'code_size': '43'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nmain(a){for(;read(0,&a,2);)putchar(a%256);}\nPredict its memory footprint.",
"role": "user"
},
{
"content": "256.0",
"... |
CDSS_689643 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<string.h>
/*
各要素は親の値を持っておけばいい
*/
int main(void){
char s[4];
scanf("%s",s);
if(s[0] == s[2]){
printf("Yes\n");
}else{
printf("No\n");
}
return 0;
} | 128 | memory_bytes | {'s_id': 's003001077', 'p_id': 'p03631', 'u_id': 'u344618311', 'date': '1537301312', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '284'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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/*\n各要素は親の値を持っておけばいい\n\n*/\n\nint main(void){\n char... |
CDSS_414457 | CDSS | #include<stdio.h>
int main()
{
int n;
scanf("%d",&n);
if(n % 10 == 2 || n%10 == 4 || n%10 == 5 || n%10 == 7 || n%10 == 9){
printf("hon");
}else if(n%10 == 0 || n%10 == 1 || n%10 == 6 || n%10 == 8){
printf("pon");
}else{
printf("bon");
}
return 0;
};
| 2,104 | memory_bytes | {'s_id': 's838777177', 'p_id': 'p02675', 'u_id': 'u303274040', 'date': '1590188692', 'language': 'C', 'original_language': 'C (Clang 10.0.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '2104', 'code_size': '282'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 if(n % 10 == 2 || n%10 == 4 || n%10 == 5 || n%10 == 7 || n%10... |
CDSS_304458 | CDSS | #include <stdio.h>
/*
?a,b,cを入力する
?for文用のカウンタ変数iを宣言する
?約数の個数をカウントする変数cntを宣言して0で初期化
?for文でiがaからbまで繰り返す→for(i=a; i<=b; i++)
?for文中でcがiで割り切れる場合cntをインクリメント
*/
main()
{
int a, b, c, i, cnt=0;
scanf("%d %d %d", &a, &b, &c);
for(i=a; i<=b; i++)
{
if(c%i == 0)
{
cnt++;
}
}
printf("%d\n", cnt);
return 0;
... | 596 | memory_bytes | {'s_id': 's230099419', 'p_id': 'p02398', 'u_id': 'u903320350', 'date': '1435895016', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '471'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\n/*\n?a,b,cを入力する\n?for文用のカウンタ変数iを宣言する\n?約数の個数をカウントする変数cntを宣言して0で初期化\n?for文でiがaからbまで繰り返す→for(i=a; i<=b; i++)\n?f... |
CDSS_428318 | CDSS | #include <math.h>
#include <stdio.h>
int n, m, q, p[10], A[11], a[50], b[50], c[50], d[50];
int sum, max = 0;
int n, m, A[11];
void dfs(int num, int pt) {
if (pt == n + 1) {
sum = 0;
for (int i = 0; i < q; i++) {
if (A[b[i]] - A[a[i]] == c[i]) {
sum += d[i];
}
}
if (sum > max)
max = sum;
return;... | 1,700 | memory_bytes | {'s_id': 's782358099', 'p_id': 'p02695', 'u_id': 'u030504180', 'date': '1588524235', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '18', 'memory': '1700', 'code_size': '579'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <math.h>\n#include <stdio.h>\nint n, m, q, p[10], A[11], a[50], b[50], c[50], d[50];\nint sum, max = 0;\nint n, m, A[11];\nvo... |
CDSS_498138 | CDSS | //なにを出力するかをしっかり確認する必要がある
/* <limit.h>で範囲を確認できる
int型サイズ4バイト 変換指定子d
2147483647~-2147483648
unsigned int型4バイト 変換指定子u
4294967295~0
long int型 8バイト 変換指定子ld
9223372036854775807~-9223372036854775808
unsigned long int 型 8バイト 変換指定子lu
18446744073709551615~0
short int型2バイト 変換指定子d
32767~-32768
unsigned short i... | 896 | memory_bytes | {'s_id': 's694511247', 'p_id': 'p02791', 'u_id': 'u695544158', 'date': '1580751638', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '25', 'memory': '896', 'code_size': '1481'} | [
{
"content": "Your task is to predict the memory 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\n/*\t<limit.h>で範囲を確認できる\n\tint型サイズ4バイト\t変換指定子d\n\t2147483647~-2147483648\n\t\n\tunsigned int型4バイト\t変換指定子u\n... |
CDSS_445197 | CDSS | #include <stdio.h>
#include <stdlib.h>
int main()
{
int n, *ans, tmp;
scanf("%d", &n);
ans = (int*)malloc(sizeof(int) * n);
for (int i = 0; i < n; i++)
ans[i] = 0;
for (int i = 2; i <= n; i++) {
scanf("%d", &tmp);
ans[tmp - 1] += ans[i - 1] + 1;
}
for (int i = 0; i < n; i++)
printf("%d\n", ans[i]);
f... | 2,248 | memory_bytes | {'s_id': 's427137878', 'p_id': 'p02707', 'u_id': 'u963134376', 'date': '1587527796', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '38', 'memory': '2248', 'code_size': '342'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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{\n\tint n, *ans, tmp;\n\tscanf(\"%d\", &n);\n\tans = (int*)malloc(sizeof(int) ... |
CDSS_636834 | CDSS | #include <stdio.h>
int main()
{
int n,k,a[100000];
scanf("%d %d",&n,&k);
int i,j;
for (i = 0; i < n; i++)
{
scanf("%d",&a[i]);
}
int min = 0;
for (i = 0; i < n; i++)
{
if(a[min] == 1){min = i;break;}
}
int ans;
if(min > k - 1)
{
ans ... | 512 | memory_bytes | {'s_id': 's388483080', 'p_id': 'p03319', 'u_id': 'u494609869', 'date': '1585397247', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '11', 'memory': '512', '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()\n{\n int n,k,a[100000];\n\n scanf(\"%d %d\",&n,&k);\n int i,j;\n for (i = 0; i < n; i++)\... |
CDSS_227504 | CDSS | #include<stdio.h>
int main()
{
int i, h;
long int node[251];
for(i = 0; i < 251; i++)
{
node[i] = NULL;
}
scanf("%d", &h);
for(i = 1; i <= h; i++)
{
scanf("%d", &node[i]);
}
for(i = 1; i <= h; i++)
{
printf("node %d: key = %d, ", i, node[i]);
if(node[i/2]... | 2,052 | memory_bytes | {'s_id': 's327048275', 'p_id': 'p02287', 'u_id': 'u772360478', 'date': '1579159282', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2052', 'code_size': '577'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main()\n{\n int i, h;\n long int node[251];\n for(i = 0; i < 251; i++)\n {\n node[i] = NULL;\n ... |
CDSS_262563 | CDSS | #include <stdio.h>
int main(){
int S,h,m,s;
scanf("%d",&S);
h=S/3600;
m=(S%3600)/60;
s=S%60;
printf("%d:%d:%d\n",h,m,s);
return 0;
} | 592 | memory_bytes | {'s_id': 's538395853', 'p_id': 'p02390', 'u_id': 'u313343524', 'date': '1501675298', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', 'code_size': '160'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(){\n int S,h,m,s;\n scanf(\"%d\",&S);\n h=S/3600;\n m=(S%3600)/60;\n s=S%60;\n printf(\... |
CDSS_159963 | CDSS | #include <stdio.h>
int prime(int);
int main(){
int n,i,j,s,sum=0,a[10000];
scanf("%d",&n);
for(i=0; i<n; i++){
scanf("%d",&a[i]);
}
for(i=0; i<n; i++){
s=prime(a[i]);
if(s==1) sum++;
}
printf("%d\n",sum);
return 0;
}
int prime(int a){
int i;
if(a<2) return 0;
else if(a==2) return 1;
... | 2,056 | memory_bytes | {'s_id': 's827535434', 'p_id': 'p02257', 'u_id': 'u815509365', 'date': '1532404735', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2056', 'code_size': '411'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 prime(int);\nint main(){\n int n,i,j,s,sum=0,a[10000];\n scanf(\"%d\",&n);\n for(i=0; i<n; i++){\n scanf... |
CDSS_620059 | CDSS | #include<stdio.h>
int main()
{
int i,h,k,length,j,n,m;
scanf("%d%d",&k,&h);
m=0;
j=k*h;
i=k*h*j;
if(i%2!=0){
printf("Yes\n");
}
else {
printf("No\n");
}
return 0;
}
| 128 | memory_bytes | {'s_id': 's345787562', 'p_id': 'p03260', 'u_id': 'u863370423', 'date': '1576883672', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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>\nint main()\n{\n\n int i,h,k,length,j,n,m;\n scanf(\"%d%d\",&k,&h);\n m=0;\n j=k*h;\n i=k*h*j;\n i... |
CDSS_672925 | CDSS | #include<stdio.h>
int main()
{
int N,p=0,f=1;
scanf("%d", &N);
int a[N];
for(int i=0;i<N;i++) scanf("%d", &a[i]);
while(f){
for(int i=0;i<N;i++){
if(a[i]%2==1){ f=0; break;}
a[i]/=2;
}
if(f==1) p++;
}
printf("%d\n", p);
return 0;
} | 128 | memory_bytes | {'s_id': 's188592164', 'p_id': 'p03494', 'u_id': 'u347615103', 'date': '1519835691', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '266'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n int N,p=0,f=1;\n scanf(\"%d\", &N);\n int a[N];\n for(int i=0;i<N;i++) scanf(\"%d\", &a[i]);\n ... |
CDSS_215084 | CDSS | #include <stdio.h>
#define N 100000
typedef struct{
int id;
int parent;
int child;
int right_sibling;
} Node;
main(){
int n, i, j;
int id, degree, depth, parent;
int c[N];
Node node[N];
scanf("%d", &n);
for( i = 0; i < n; i++){
node[i].parent = -1;
node[i].child = -1;
node[i].right_s... | 2,564 | memory_bytes | {'s_id': 's292299665', 'p_id': 'p02279', 'u_id': 'u489166216', 'date': '1433516256', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '70', 'memory': '2564', 'code_size': '1503'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 100000\n\ntypedef struct{\n int id;\n int parent;\n int child;\n int right_sibling;\n} Node;\n\nmain... |
CDSS_42063 | CDSS | #include <stdio.h>
#include <math.h>
int list[78498];
void list_prime(int);
int count_prim(int);
int main(){
int count, num;
list_prime(999999);
while(scanf("%d", &num) != EOF){
count = count_prim(num);
printf("%d\n", count);
}
return 0;
}
void list_prime(int num){
int count = 0, i,j;
int flag;
list... | 900 | memory_bytes | {'s_id': 's799489140', 'p_id': 'p00009', 'u_id': 'u389172382', 'date': '1410855851', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '620', 'memory': '900', 'code_size': '876'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 list[78498];\n\nvoid list_prime(int);\nint count_prim(int);\n\nint main(){\n\tint count, ... |
CDSS_559665 | CDSS |
#include <stdio.h>
int main(void){
// Your code here!
int x,a;
scanf("%d%d",&x,&a);
if(x<a){
printf("0");
}else{
printf("10");
}
return 0;
}
| 128 | memory_bytes | {'s_id': 's133821555', 'p_id': 'p02999', 'u_id': 'u237374575', 'date': '1560711930', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '202'} | [
{
"content": "Your task is to predict the memory 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#include <stdio.h>\n\nint main(void){\n // Your code here!\n int x,a;\n \n scanf(\"%d%d\",&x,&a);\n \n if(x<a){\n ... |
CDSS_578077 | CDSS | #include <stdio.h>
#include <string.h>
int main(void) {
int N,K;
char S[11];
scanf("%d",&N);
scanf("%s",S);
scanf("%d",&K);
int i; /* index */
for (i = 0;i < N;++i) {
if(S[K - 1] != S[i]) {
S[i] = '*';
}
}
printf("%s\n", S);
return 0;
} | 128 | memory_bytes | {'s_id': 's256051309', 'p_id': 'p03068', 'u_id': 'u824217496', 'date': '1555809235', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '270'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\nint main(void) {\n int N,K;\n char S[11];\n scanf(\"%d\",&N);\n scanf(\"%s\",S);\n scanf... |
CDSS_677691 | CDSS | #include <stdio.h>
int main(void)
{
int X,Y,Z,n,m;
while(scanf("%d %d %d",&X,&Y,&Z)!=EOF)
{
n=X/(Y+Z);
if(X-(Y+Z)*n<Z)
n--;
printf("%d\n",n);
}
} | 128 | memory_bytes | {'s_id': 's622258940', 'p_id': 'p03548', 'u_id': 'u353919145', 'date': '1510719215', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '159'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void)\n{\n\tint X,Y,Z,n,m;\n\twhile(scanf(\"%d %d %d\",&X,&Y,&Z)!=EOF)\n\t{\n\t\tn=X/(Y+Z);\n\t\tif(X-(Y+... |
CDSS_356887 | CDSS | #include<stdio.h>
int main(){
int a[100][100];
int r,c,i,j,sum=0,ans=0;
scanf("%d %d",&r,&c);
for(i = 0;i < r;i++){
for(j = 0;j < c;j++){
scanf("%d",&a[i][j]);
ans += a[i][j];
}
}
for(i = 0;i < r;i++){
for(j =0;j < c;j++){
printf("%d ",a[i][j]);
sum += a[i][j];
}
... | 2,116 | memory_bytes | {'s_id': 's526832271', 'p_id': 'p02413', 'u_id': 'u861678859', 'date': '1531990732', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2116', '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>\nint main(){\n int a[100][100];\n int r,c,i,j,sum=0,ans=0;\n\n scanf(\"%d %d\",&r,&c);\n\n for(i = 0;i < r;i++){... |
CDSS_699599 | CDSS | #include<stdio.h>
int main(void) {
int X,A,B;
scanf("%d %d %d", &X, &A, &B);
if(A >= B) {
printf("delicious\n");
} else {
if(A+X >= B) {
printf("safe\n");
} else {
printf("dangerous\n");
}
}
return 0;
}
| 128 | memory_bytes | {'s_id': 's219812612', 'p_id': 'p03679', 'u_id': 'u451983180', 'date': '1498370145', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '285'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\n\nint main(void) {\n int X,A,B;\n scanf(\"%d %d %d\", &X, &A, &B);\n if(A >= B) {\n printf(\"deli... |
CDSS_447442 | CDSS | #include<stdio.h>
int main()
{
int n,j2, j=0,count = 0;
scanf("%d",&n);
while(n != 0)
{
j2=n%10;
if(j2==7)
{
count++;
break;
}
else
{
count += 0;
}
n /= 10;
}
if(count >0)
{
printf("Y... | 1,728 | memory_bytes | {'s_id': 's907678556', 'p_id': 'p02711', 'u_id': 'u353919145', 'date': '1598486584', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1728', 'code_size': '391'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n int n,j2, j=0,count = 0;\n scanf(\"%d\",&n);\n\n while(n != 0)\n {\n j2=n%10;\n ... |
CDSS_249987 | CDSS | #include<stdio.h>
int main() {
int a, b;
scanf("%d %d",&a,&b);
printf("%d %d\n",a*b,2*a+2*b);
return 0;
}
| 2,032 | memory_bytes | {'s_id': 's474573849', 'p_id': 'p02389', 'u_id': 'u594801710', 'date': '1559280945', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2032', 'code_size': '110'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main() {\n\tint a, b;\n\tscanf(\"%d %d\",&a,&b);\n\tprintf(\"%d %d\\n\",a*b,2*a+2*b);\n\treturn 0;\n}\n\nPredic... |
CDSS_732314 | CDSS | #include <stdio.h>
int main(void) {
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
if(b+c==a || c+a==b || a+b==c)
printf("Yes\n");
else
printf("No\n");
return 0;
} | 128 | memory_bytes | {'s_id': 's786676942', 'p_id': 'p03943', 'u_id': 'u477527988', 'date': '1478581154', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '207'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\n int a,b,c;\n \n scanf(\"%d %d %d\",&a,&b,&c);\n \n if(b+c==a || c+a==b || a+b=... |
CDSS_128717 | CDSS | // AOJ 3051 Lunch
// 2018.3.16 bal4u
#include <stdio.h>
#include <stdlib.h>
int main()
{
int max, a, i, id;
max = 0; for (i = 0; i < 3; i++) {
scanf("%d", &a);
if (a > max) max = a, id = i;
}
printf("%c\n", 'A' + id);
return 0;
}
| 2,112 | memory_bytes | {'s_id': 's137867532', 'p_id': 'p02149', 'u_id': 'u847467233', 'date': '1552729891', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '242'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n// AOJ 3051 Lunch\n// 2018.3.16 bal4u\n\n#include <stdio.h>\n#include <stdlib.h>\n\nint main()\n{\n\tint max, a, i, id;\n\n\tmax = 0; ... |
CDSS_493530 | CDSS | #include<stdio.h>
int main()
{
int H,A;
scanf("%d %d",&H,&A);
printf("%d",(H + A - 1) / A);
} | 128 | memory_bytes | {'s_id': 's294984332', 'p_id': 'p02783', 'u_id': 'u273985618', 'date': '1580076233', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '107'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n int H,A;\n scanf(\"%d %d\",&H,&A);\n\n printf(\"%d\",(H + A - 1) / A);\n\n}\nPredict its m... |
CDSS_573105 | CDSS | #include <stdlib.h>
#include <string.h>
#include <math.h>
#include <stdio.h>
int compare(const void *a,const void *b){
if(*(long long*)a>*(long long *)b)return 1;
return -1;
}
int main()
{ int n,m,x,y,k,a,b;
scanf("%d%d",&n,&k);
printf("%d",n-k+1);
return 0;
}
| 128 | memory_bytes | {'s_id': 's334889874', 'p_id': 'p03047', 'u_id': 'u993046043', 'date': '1557623799', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '284'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdlib.h>\n#include <string.h>\n#include <math.h>\n#include <stdio.h>\nint compare(const void *a,const void *b){\n if(*(l... |
CDSS_590012 | CDSS | #include<stdio.h>
#include<stdlib.h>
typedef struct{
long long a;
long long b;
}setab;
long cmp (const void *p,const void *q){
return ((setab*)p)->a - ((setab*)q)->a;
}
int main(){
setab abset[100000] = {};
long long n = 0;
long long m = 0;
long long hon = 0;
long long sum = 0;
long long i = 0;
s... | 3,324 | memory_bytes | {'s_id': 's231680458', 'p_id': 'p03103', 'u_id': 'u185050799', 'date': '1574979915', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '36', 'memory': '3324', 'code_size': '675'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n\ntypedef struct{\n long long a;\n long long b;\n}setab;\n\nlong cmp (const void *p,const voi... |
CDSS_122218 | CDSS | // AOJ 2021: Princess in Danger
// 2017.12.11 bal4u@uu
#include <stdio.h>
#include <string.h>
#define MAX 10000
typedef struct { int t, node; } QUE;
QUE que[MAX]; int qsize;
#define PARENT(i) ((i)>>1)
#define LEFT(i) ((i)<<1)
#define RIGHT(i) (((i)<<1)+1)
void min_heapify(int i)
{
int l, r, min;
QUE qt;
l = ... | 7,512 | memory_bytes | {'s_id': 's835774646', 'p_id': 'p01146', 'u_id': 'u847467233', 'date': '1512975515', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '300', 'memory': '7512', 'code_size': '2438'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n// AOJ 2021: Princess in Danger\n// 2017.12.11 bal4u@uu\n\n#include <stdio.h>\n#include <string.h>\n\n#define MAX 10000\ntypedef struc... |
CDSS_566922 | CDSS | #include <stdio.h>
int main(void){
int a;
int p;
scanf("%d %d", &a, &p);
a = a * 3;
int r = (a + p) / 2;
printf("%d\n", r);
return 0;
}
| 128 | memory_bytes | {'s_id': 's980566784', 'p_id': 'p03029', 'u_id': 'u101181042', 'date': '1558919130', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '165'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n int a;\n int p;\n scanf(\"%d %d\", &a, &p);\n a = a * 3;\n int r = (a + p) / 2;... |
CDSS_611846 | CDSS | #include <stdio.h>
#include <stdlib.h>
int main() {
int N, H[1000], T, A, i, tem = 1000000000, ans;
scanf("%d", &N);
scanf("%d %d", &T, &A);
for (i = 0; i < N; i++) {
scanf("%d", &H[i]);
if (tem > abs(A * 1000 - (T * 1000 - H[i] * 6))) {
tem = abs(A * 1000 - (T * 1000 - H[i] * 6));
ans = i + 1;
}
}
... | 128 | memory_bytes | {'s_id': 's728204909', 'p_id': 'p03220', 'u_id': 'u421730290', 'date': '1562248773', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '354'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\nint main() {\n\tint N, H[1000], T, A, i, tem = 1000000000, ans;\n\n\tscanf(\"%d\", &N);\n\t... |
CDSS_705802 | CDSS | #include <stdio.h>
int main(void){
int H,W;
scanf("%d %d",&H,&W);
char moji[150][150];
for(int i=0;i<H;i++){
scanf("%s",moji[i]);
}
for(int i=0;i<W+2;i++){
printf("#");
}
printf("\n");
for(int i=0;i<H;i++){
printf("#%s#\n",moji[i]);
}
for(int i=0;i<W+2... | 128 | memory_bytes | {'s_id': 's853457709', 'p_id': 'p03712', 'u_id': 'u601717680', 'date': '1495329328', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '370'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 H,W;\n scanf(\"%d %d\",&H,&W);\n char moji[150][150];\n for(int i=0;i<H;i++){\n ... |
CDSS_439822 | CDSS | #include<stdio.h>
#include<math.h>
#define PI 3.141592653589793238462
int main() {
int r;
scanf("%d", &r);
printf("%.21f", 2 * PI * r);
return 0;
} | 1,744 | memory_bytes | {'s_id': 's383675386', 'p_id': 'p02705', 'u_id': 'u474618202', 'date': '1587345238', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '1744', 'code_size': '154'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h> \n#include<math.h>\n#define PI 3.141592653589793238462\nint main() {\n\tint r;\n\tscanf(\"%d\", &r);\n\tprintf(\"%.2... |
CDSS_77772 | CDSS | #include <stdio.h>
#include <math.h>
void swap(int *x, int *y);
int main(void)
{
int r[1000];
int data[3];
int n;
int i;
while (1){
for (i = 0; i < 3; i++){
scanf("%d", &data[i]);
}
if (data[0] > data[2]){
swap(&data[0], &data[2]);
}
for (i = 0; i < 2; i++){
if (data[i] > data[i + 1]){
s... | 584 | memory_bytes | {'s_id': 's823905619', 'p_id': 'p00107', 'u_id': 'u580977620', 'date': '1364195189', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '584', 'code_size': '768'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\nvoid swap(int *x, int *y);\n\nint main(void)\n{\n\tint r[1000];\n\tint data[3];\n\tint n;\n\t... |
CDSS_220623 | CDSS | int preorder[40],inorder[40];
void recover(int fp,int lp,int fi,int li){
int root=fi;
for(;root<li;root++)if(preorder[fp]==inorder[root])break;
if(fi<root)recover(fp+1,fp+(root-fi)+1,fi,root);
if(root<li-1)recover(fp+(root-fi)+1,lp,root+1,li);
printf(inorder[root]==preorder[0]?"%d\n":"%d ",inorder[root]);
}
main()... | 600 | memory_bytes | {'s_id': 's662762328', 'p_id': 'p02282', 'u_id': 'u300645821', 'date': '1401355819', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '461'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nint preorder[40],inorder[40];\nvoid recover(int fp,int lp,int fi,int li){\n\tint root=fi;\n\tfor(;root<li;root++)if(preorder[fp]==inor... |
CDSS_427532 | CDSS | #include<stdio.h>
int main()
{
int c=0;
long x,n=100;
scanf("%ld",&x);
while(n<x){
n+=n/100;
c++;
}
printf("%d",c);
return 0;
} | 1,680 | memory_bytes | {'s_id': 's683575850', 'p_id': 'p02694', 'u_id': 'u596813883', 'date': '1588529332', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '1680', 'code_size': '139'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n\tint c=0;\n\tlong x,n=100;\n\n\tscanf(\"%ld\",&x);\n\twhile(n<x){\n\t\tn+=n/100;\n\t\tc++;\n\t}\n\t... |
CDSS_175086 | CDSS | #include <stdio.h>
#define N 36
typedef struct {
char sign;
int number;
}Card;
typedef struct {
Card card[N];
}Card_Array;
void comp_memer(Card_Array, Card_Array, int);
void print_array(Card_Array, int);
Card_Array Bubble(Card_Array, int);
Card_Array Selection(Card_Array, int);
int main() {
int i, ... | 2,064 | memory_bytes | {'s_id': 's965740121', 'p_id': 'p02261', 'u_id': 'u656631281', 'date': '1544164403', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2064', 'code_size': '2012'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\n#define N 36\n\ntypedef struct {\n char sign;\n int number;\n}Card;\n\ntypedef struct {\n Card card[N];... |
CDSS_311875 | CDSS | #include<stdio.h>
int main()
{
int a,b;
scanf("%d%d",&a,&b);
printf("%d %d %lf\n",a/b,a%b,(double)a/(double)b);
return 0;
} | 636 | memory_bytes | {'s_id': 's703211057', 'p_id': 'p02399', 'u_id': 'u865312527', 'date': '1373732313', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '636', 'code_size': '127'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n\tint a,b;\n\tscanf(\"%d%d\",&a,&b);\n\tprintf(\"%d %d %lf\\n\",a/b,a%b,(double)a/(double)b);\n\tret... |
CDSS_236495 | CDSS | #include <stdio.h>
#include <math.h>
int main() {
double d1,d2,d3,d4;
int i,j,k,l,n;
double x[1020] = {0};
double y[1020] = {0};
double z[1020] = {0};
double o,p,q,max;
max = -1;
o=0;
p=0;
q=0;
d1 = 0;
d2 = 0;
d3 = 0;
d4 = 0;
scanf("%d",&n);
for(i=0; i<n; i++) {
scanf("%lf",&x[i]... | 2,048 | memory_bytes | {'s_id': 's618869201', 'p_id': 'p02382', 'u_id': 'u538619393', 'date': '1531787279', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2048', 'code_size': '781'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n\nint main() {\n\n double d1,d2,d3,d4;\n int i,j,k,l,n;\n double x[1020] = {0};\n double y[... |
CDSS_481480 | CDSS | #include <stdio.h>
int main(){
int n,mod;
scanf("%d",&n);
mod = n%2;
if(mod==1){
printf("%d\n",n/2 + 1);
}
else{
printf("%d\n",n/2);
}
return 0;
} | 128 | memory_bytes | {'s_id': 's914120020', 'p_id': 'p02759', 'u_id': 'u566650908', 'date': '1587344089', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '230'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n int n,mod;\n \n scanf(\"%d\",&n);\n \n mod = n%2;\n \n if(mod==1){\n p... |
CDSS_282756 | CDSS | #include<stdio.h>
int main(void)
{
int a,b,c,d;
scanf("%d%d%d",&a,&b,&c);
if(a>b){
d=a,a=b,b=d;
}
if(a>c){
d=c,c=b,b=a,a=d;
}
if(b>c){
d=c,c=b,b=d;
}
printf("%d %d %d\n",a,b,c);
return 0;
} | 596 | memory_bytes | {'s_id': 's449810510', 'p_id': 'p02393', 'u_id': 'u613278035', 'date': '1461237430', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '189'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\nint a,b,c,d;\nscanf(\"%d%d%d\",&a,&b,&c);\nif(a>b){\nd=a,a=b,b=d;\n}\nif(a>c){\nd=c,c=b,b=a,a=d;... |
CDSS_738788 | CDSS | #include <stdio.h>
int main () {
int n, k, x ,y, sum = 0;
scanf("%d", &n);
scanf("%d", &k);
scanf("%d", &x);
scanf("%d", &y);
for (int i = 1; i <= n; i++) {
if ( i <= k ) {
sum += x;
}
else if ( i > k) {
sum += y;
}
}
printf("%d", sum);
return 0;
} | 1,712 | memory_bytes | {'s_id': 's594454870', 'p_id': 'p04011', 'u_id': 'u592536866', 'date': '1597784433', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '1712', 'code_size': '274'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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, k, x ,y, sum = 0;\n\tscanf(\"%d\", &n);\n\tscanf(\"%d\", &k);\n\tscanf(\"%d\", &x);\n\ts... |
CDSS_107774 | CDSS | #include <stdio.h>
int main(void){
// Your code here!
int n, a, b, c, i, x;
scanf("%d", &n);
if(n==2){
scanf("%d %d", &a, &b);
if(a>b){
x=a;
a=b;
b=x;
}
for(i=1; i<=b; i++){
if(a%i==0 && b%i==0) printf("%d\n", i);
... | 2,104 | memory_bytes | {'s_id': 's812756046', 'p_id': 'p00506', 'u_id': 'u387128119', 'date': '1526624786', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '686'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\n // Your code here!\n int n, a, b, c, i, x;\n scanf(\"%d\", &n);\n \n if(n==2){\n ... |
CDSS_461311 | CDSS | #include <stdio.h>
int main()
{
int n;
scanf("%d", &n);
char s[n+1];
scanf("%s", &s);
long long int R=0, G=0, B=0;
for(int i=0;i<n;i++){
if(s[i]=='R') R++;
if(s[i]=='G') G++;
if(s[i]=='B') B++;
}
long long int X=0;
for(int d=1;d<n;d++){
for(int i=0;i... | 1,736 | memory_bytes | {'s_id': 's931689960', 'p_id': 'p02714', 'u_id': 'u301600230', 'date': '1586744367', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '31', 'memory': '1736', 'code_size': '662'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main()\n{\n int n;\n scanf(\"%d\", &n);\n char s[n+1];\n scanf(\"%s\", &s);\n long long int R=0... |
CDSS_581118 | CDSS | #include <stdio.h>
#define max(a,b) (a>b?a:b)
int main(){
int N;
int i;
int msize;
int ans;
scanf("%d",&N);
int H[N];
for(i=0;i<N;i++){
scanf("%d",&H[i]);
}
ans=0;
msize=0;
for(i=0;i<N;i++){
msize=max(msize,H[i]);
if(H[i]>=msize) ans++;
}
printf("%d",ans);
return 0;
} | 128 | memory_bytes | {'s_id': 's041661531', 'p_id': 'p03072', 'u_id': 'u369436268', 'date': '1555182454', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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>\n\n#define max(a,b)\t(a>b?a:b)\n\nint main(){\n\tint N;\n\tint i;\n\tint msize;\n\tint ans;\n\t\n\tscanf(\"%d\",&N)... |
CDSS_735855 | CDSS | #include<stdio.h>
int main(){
long ans = 0;
int N;
scanf("%d",&N);
long A[N];
int i = 0;
for(i=0 ; i<N ; i++){
scanf("%ld",&A[i]);
}
ans += A[0]-1 ;
long r = 2;
for(i = 1; i<N ; i++)
{
if(A[i] != r){
ans += (A[i]-1)/r ;
}
else
r++;
}
printf("%ld\n",ans);
return 0;
} | 896 | memory_bytes | {'s_id': 's109279874', 'p_id': 'p03973', 'u_id': 'u368432054', 'date': '1476122778', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '16', 'memory': '896', 'code_size': '294'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n\tlong ans = 0;\n\tint N;\n\tscanf(\"%d\",&N);\n\tlong A[N];\n\tint i = 0;\n\tfor(i=0 ; i<N ; i++){\n\... |
CDSS_294798 | CDSS | #include <stdio.h>
int main(void){
int x = 1, i = 1;
while(1){
scanf("%d", &x);
if(x != 0){
printf("Case %d: %d\n", i, x);
i++;
}
if(x == 0){
break;
}
}
return 0;
} | 600 | memory_bytes | {'s_id': 's887648502', 'p_id': 'p02396', 'u_id': 'u789887850', 'date': '1439917041', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '272'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n \nint main(void){\n \n int x = 1, i = 1;\n while(1){\n scanf(\"%d\", &x);\n if(x != 0){\n ... |
CDSS_106111 | CDSS | t;main(i,p,j){for(p=j=&t;~scanf("%d",&t);i++<4?t<p?p=t:0:t<j?j=t:0);t=!printf("%d\n",p+j-50);} | 592 | memory_bytes | {'s_id': 's491163858', 'p_id': 'p00488', 'u_id': 'u340315059', 'date': '1375909878', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', 'code_size': '94'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nt;main(i,p,j){for(p=j=&t;~scanf(\"%d\",&t);i++<4?t<p?p=t:0:t<j?j=t:0);t=!printf(\"%d\\n\",p+j-50);}\nPredict its memory footprint.",
... |
CDSS_666442 | CDSS | #include <stdio.h>
#include <stdlib.h>
void quicksort(int data[],int left,int right);
int main()
{
int n,h,i,j=0,ans=0,amax=0,flag=0;
int a[1000000],b[1000000];
scanf("%d %d",&n,&h);
for(i=0;i<n;i++)
{
scanf("%d",&(a[i]));
scanf("%d",&(b[i]));
if(amax<a[i])amax=a[i];
... | 6,400 | memory_bytes | {'s_id': 's702990225', 'p_id': 'p03472', 'u_id': 'u791173062', 'date': '1529630773', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '512', 'memory': '6400', 'code_size': '1243'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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>\nvoid quicksort(int data[],int left,int right); \nint main()\n{\n \tint n,h,i,j=0,ans=0,ama... |
CDSS_291685 | CDSS | #include<stdio.h>
int main()
{
int W,H,x,y,r;
scanf("%d %d %d %d %d",&W,&H,&x,&y,&r);
if(x+r<=W && y+r<=H && 0<=x-r && 0<=y-r)
{
printf("Yes\n");
}
else
{
printf("No\n");
}
return 0;
} | 584 | memory_bytes | {'s_id': 's765931747', 'p_id': 'p02394', 'u_id': 'u948427103', 'date': '1496998099', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '584', 'code_size': '184'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\nint W,H,x,y,r;\nscanf(\"%d %d %d %d %d\",&W,&H,&x,&y,&r);\nif(x+r<=W && y+r<=H && 0<=x-r && 0<=y-r)\... |
CDSS_61061 | CDSS | #include<stdio.h>
int main(){
int i, j, n, ball, hole_b, hole_c, check;
scanf("%d", &n);
for(i=0; i<n; i++){
check = 0;
hole_b = 0;
hole_c = 0;
for(j=0; j<10; j++){
scanf("%d", &ball);
if(check == 0){
if(ball > hole_b)
hole_b = ball;
else if(ball > hole_c)
hole_c = ball;
e... | 0 | memory_bytes | {'s_id': 's763561320', 'p_id': 'p00033', 'u_id': 'u278606251', 'date': '1326263451', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '447'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n int i, j, n, ball, hole_b, hole_c, check;\n\n scanf(\"%d\", &n);\n\n for(i=0; i<n; i++){\n ch... |
CDSS_186844 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define BUF_SIZE 20002
#define POOL_SIZE 20002
typedef enum {
BACK_SLASH,
POOL,
} Type;
typedef struct {
Type type;
int value; // backslash=>index, area=>area
} Item;
int count_pool(Item* stack, int stack_top)
{
int cnt = 0;
for(int i = 0; i < s... | 2,108 | memory_bytes | {'s_id': 's508125049', 'p_id': 'p02266', 'u_id': 'u371961438', 'date': '1520595089', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '2700'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\n#define BUF_SIZE 20002\n#define POOL_SIZE 20002\n\ntypedef enum {\n B... |
CDSS_119290 | CDSS | #include<stdio.h>
#include<string.h>
#define Max(x,y) ((x>y)?x:y)
typedef struct group{
char name[20];
char mem[30][30];
int n;
}group;
group x[105];
char list[2000][30];
int f,n,ff[105];
int func(int i){
int j,k,r=0;
if(ff[i]==1)return 0;
else ff[i]=1;
for(j=0;j<x[i].n;j++){
for(k=0;k<n;k++)if(strcmp(x[k].nam... | 0 | memory_bytes | {'s_id': 's570539710', 'p_id': 'p00884', 'u_id': 'u435952407', 'date': '1336136396', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '1329'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\n#define Max(x,y) ((x>y)?x:y)\ntypedef struct group{\n\tchar name[20];\n\tchar mem[30][30];\n\ti... |
CDSS_298339 | CDSS | #include<stdio.h>
int main(){
int n;
int i;
for(i=0;i<10000; i++){
scanf("%d", &n);
if(n == 0) break;
printf("Case %d: %d\n", i+1, n);
}
return 0;
}
| 2,076 | memory_bytes | {'s_id': 's929549177', 'p_id': 'p02396', 'u_id': 'u941588022', 'date': '1527150719', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2076', 'code_size': '177'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n int n;\n int i;\n\n for(i=0;i<10000; i++){\n scanf(\"%d\", &n);\n if(n == 0) break;\n\n ... |
CDSS_664610 | CDSS | #include <stdio.h>
int main() {
char nama[55] ;
scanf("%s",&nama) ;
nama[0] = '2';
nama[1] = '0';
nama[2] = '1';
nama[3] = '8';
printf("%s", nama);
return 0;
} | 1,696 | memory_bytes | {'s_id': 's423907927', 'p_id': 'p03469', 'u_id': 'u863370423', 'date': '1597303301', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1696', 'code_size': '190'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main() {\n \n char nama[55] ;\n scanf(\"%s\",&nama) ;\n\n \n\n nama[0] = '2';\n nama[1] = '0';\n nama... |
CDSS_252223 | CDSS | #include <stdio.h>
int main(void){
int a,b;
scanf("%d %d",&a, &b);
printf("%d %d\n",a*b,a+a+b+b);
return 0;
} | 596 | memory_bytes | {'s_id': 's746464241', 'p_id': 'p02389', 'u_id': 'u202735540', 'date': '1463128835', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '118'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n\n int a,b;\n scanf(\"%d %d\",&a, &b);\n printf(\"%d %d\\n\",a*b,a+a+b+b);\nreturn 0;\n\n}\n... |
CDSS_697807 | CDSS | #include <stdio.h>
int main(void){
int a = 0;
int b = 0;
int c = 0;
if(scanf("%d", &a) != -1 && scanf("%d", &b) != -1 && scanf("%d", &c) != -1){
int price[3];
price[0] = a + b;
price[1] = b + c;
price[2] = c + a;
int lowest = price[0];
for(int i = 1 ; i < 3; i++){
if(lowest > price[i]){
... | 128 | memory_bytes | {'s_id': 's255920177', 'p_id': 'p03671', 'u_id': 'u153477361', 'date': '1499800911', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '391'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 = 0;\n\tint b = 0;\n\tint c = 0;\n\n\tif(scanf(\"%d\", &a) != -1 && scanf(\"%d\", &b)... |
CDSS_674812 | CDSS | #include <stdio.h>
#include <string.h>
int main(void){
char po[1919];
scanf("%s",po);
char buri[16][1919]={"KIHBARA","KIHABARA","KIHBRA","KIHABRA","KIHBAR","KIHABAR","KIHBR","KIHABR","AKIHBARA","AKIHABARA","AKIHABRA","AKIHABRA","AKIHBAR","AKIHABAR","AKIHBR","AKIHABR"};
for(int i=0;i<16;i++)if(strcmp(po,... | 256 | memory_bytes | {'s_id': 's744177358', 'p_id': 'p03523', 'u_id': 'u601717680', 'date': '1511632809', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '256', 'code_size': '392'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 char po[1919];\n scanf(\"%s\",po);\n char buri[16][1919]={\"KIHBAR... |
CDSS_388673 | CDSS | #include <stdio.h>
#include <stdlib.h>
int main(void){
int n, k;
long *a;
scanf("%d", &n);
scanf("%d", &k);
a = (long *)malloc(sizeof(long) * n);
for(int i=0; i<n; i++){
scanf("%ld", &a[i]);
}
for(int j=0; j<n-k; j++){
if(a[j]>=a[j+k]){
printf("No\n");
} else{
printf("Yes\n");
}
}
return 0;
} | 3,212 | memory_bytes | {'s_id': 's543367447', 'p_id': 'p02602', 'u_id': 'u734579210', 'date': '1595727588', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '43', 'memory': '3212', 'code_size': '317'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\nint main(void){\n\tint n, k;\n\tlong *a;\n\tscanf(\"%d\", &n);\n\tscanf(\"%d\", &k);\n\ta = (... |
CDSS_77317 | CDSS | #include <stdio.h>
int main(void)
{
int i, j;
int x=0, y=0, w, h;
int roop=0;
char area[100][100];
char cnt [100][100];
while(1)
{
scanf("%d %d", &h, &w);
if(w == 0 && h == 0)break;
for(i=0; i<h; i++)
scanf("%s", area[i]);
x=0; y=0; roop=0;
for(i=0;i<w;i++)
for(j=0;j<h;j++)
cnt[i][j]=0;... | 636 | memory_bytes | {'s_id': 's122281007', 'p_id': 'p00104', 'u_id': 'u971942633', 'date': '1357874984', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '636', 'code_size': '643'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n\tint i, j;\n\tint x=0, y=0, w, h;\n\tint roop=0;\n\tchar area[100][100];\n\tchar cnt [100][1... |
CDSS_538879 | CDSS | #include <stdio.h>
int main ( ){
int a,b,sum, mul,sub;
scanf("%d%d", &a, &b);
sum=a+b;
sub=a-b;
mul=a*b;
if(sum>=sub && sum>=mul)
printf("%d", sum);
else if(sub>=sum && sub>=mul)
printf("%d", sub);
else
printf("%d", mul);
return 0;
}
| 128 | memory_bytes | {'s_id': 's711986998', 'p_id': 'p02945', 'u_id': 'u863370423', 'date': '1568188142', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '296'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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,sum, mul,sub;\n scanf(\"%d%d\", &a, &b);\n sum=a+b;\n sub=a-b;\n mul=a*b;\n... |
CDSS_107648 | CDSS | #include<stdio.h>
int multi(int ar[3])
{
int i;
for( i=0; i<3; i++ ){
ar[i]=ar[i]*ar[i];
}
}
int main()
{
int cnt=0,cnt_a=0,cnt_b=0,cnt_c=0;
while(1){
int array[3];
int temp,i,j;
for( i=0; i<3; i++ ){
scanf("%d",&array[i]);
}
for( i=0; i<2; i++ ){
for( j=i+1; j<3; j++ ... | 596 | memory_bytes | {'s_id': 's265159020', 'p_id': 'p00505', 'u_id': 'u458712012', 'date': '1434540587', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '878'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 multi(int ar[3])\n{\n int i;\n for( i=0; i<3; i++ ){\n ar[i]=ar[i]*ar[i];\n }\n}\n\nint main()\n{\n in... |
CDSS_190769 | CDSS | #include<stdio.h>
int main()
{
int i,n,q,S[10000],T[500],j=0,k=0,a;
scanf("%d",&n);
for(i=0;i<n;i++)
{
scanf("%d",&S[i]);
}
scanf("%d",&q);
for(i=0;i<q;i++)
{
scanf("%d",&T[i]);
}
for(i=0;i<q;i++)
{
S[n]=T[i];
j=0;
while( S[j]!=T[i])
{
j++;
if(j=... | 2,052 | memory_bytes | {'s_id': 's198171631', 'p_id': 'p02267', 'u_id': 'u333982009', 'date': '1577053616', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2052', 'code_size': '391'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main()\n{\n int i,n,q,S[10000],T[500],j=0,k=0,a;\n \n scanf(\"%d\",&n);\n for(i=0;i<n;i++)\n {\n ... |
CDSS_211485 | CDSS | #include <stdio.h>
#include <stdlib.h>
#define N 100001
#define MAX 100001
int A[MAX];
int partition(int p, int r){
int x,i,j,kari;
x = A[r];
i = p - 1;
for(j=p; j<r; j++){
if(A[j] <= x){
i++;
kari = A[i];
A[i] = A[j];
A[j] = kari;
}
}
kari = A[i+1];
A[i+1] = A[r];
... | 992 | memory_bytes | {'s_id': 's436548330', 'p_id': 'p02276', 'u_id': 'u710741012', 'date': '1501771575', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '992', 'code_size': '658'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#define N 100001\n#define MAX 100001\n \nint A[MAX];\n \nint partition(int p, int r){\n int ... |
CDSS_321615 | CDSS | #include <stdio.h>
int main(){
int i,n, a[10000],min,max;
long long int sum = 0;
scanf("%d", &n);
for (i = 0; i < n; i++)
{
scanf("%d", &a[i]);
}
min = a[0];
max = a[0];
for (i = 0; i < n; i++)
{
if (min>a[i])
{
min = a[i];
}
if (max < a[i])
{
max = a[i];
}
sum +=a[i];
}
printf("%d ... | 640 | memory_bytes | {'s_id': 's627409313', 'p_id': 'p02402', 'u_id': 'u943699028', 'date': '1426930199', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '640', 'code_size': '360'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(){\n\tint i,n, a[10000],min,max;\n\tlong long int sum = 0;\n\tscanf(\"%d\", &n);\n\tfor (i = 0; i < n; i+... |
CDSS_581140 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <memory.h>
#include <limits.h>
#include <math.h>
int main(int argc, char *argv[])
{
int n;
int h[20];
int max;
int i;
int ans;
scanf("%d", &n);
for (i = 0; i < n; i++) {
scanf("%d", &h[i]);
}
ans = 1;
... | 128 | memory_bytes | {'s_id': 's679850342', 'p_id': 'p03072', 'u_id': 'u676699191', 'date': '1555182251', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '492'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <memory.h>\n#include <limits.h>\n#include <math.h>\n\nint main(... |
CDSS_389872 | CDSS | #include <stdio.h>
int main() {
int a, i, x, y, z;
int res[100001] = {};
scanf("%d", &a);
for (x = 1; x * x + 2 * x < a; x++) {
for (y = 1; y * y + 2 * y < a; y++) {
for (z = 1; z * z + 2 * z < a; z++) {
res[x * x + y * y + z * z + x * y + y * z + z * x]++;
... | 2,072 | memory_bytes | {'s_id': 's154029885', 'p_id': 'p02608', 'u_id': 'u863370423', 'date': '1598666959', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2072', 'code_size': '439'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main() {\n \n int a, i, x, y, z;\n int res[100001] = {};\n \n\tscanf(\"%d\", &a);\n \n\tfor (... |
CDSS_274181 | CDSS | #include<stdio.h>
int main()
{
int a, b;
scanf("%d %d", &a, &b);
if(a > b)
{
printf("a > b\n");
}
else if(a < b)
{
printf("a < b\n");
}
else
{
printf("a == b\n");
}
return 0;
}
| 2,044 | memory_bytes | {'s_id': 's432045905', 'p_id': 'p02391', 'u_id': 'u515590175', 'date': '1569227193', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2044', 'code_size': '199'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n\tint a, b;\n\tscanf(\"%d %d\", &a, &b);\n\tif(a > b)\n\t{\n\t printf(\"a > b\\n\");\n\t}\n\telse... |
CDSS_249443 | CDSS | #include <stdio.h>
int main()
{
int x;
scanf("%d\n",&x);
printf("%d\n",x*x*x);
return 0;
}
| 600 | memory_bytes | {'s_id': 's122096265', 'p_id': 'p02388', 'u_id': 'u556315783', 'date': '1464164349', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '99'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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{\n\t\nint x;\n\nscanf(\"%d\\n\",&x);\n\nprintf(\"%d\\n\",x*x*x);\n\nreturn 0;\n\n}\n\nPredict its... |
CDSS_662194 | CDSS | #include <stdio.h>
int main(){
int a,b;
scanf("%d%d",&a,&b);
if((a*b)%2 == 1){
printf("Odd");
} else{
printf("Even");
}
} | 128 | memory_bytes | {'s_id': 's526161750', 'p_id': 'p03455', 'u_id': 'u811787246', 'date': '1567329220', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '128', 'code_size': '157'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(){\n int a,b;\n scanf(\"%d%d\",&a,&b);\n if((a*b)%2 == 1){\n printf(\"Odd\");\n } else... |
CDSS_264268 | CDSS | #include <stdio.h>
int main()
{
int S;
scanf("%d", &S);
printf("%d:%d:%d\n", S/3600, (S%3600)/60, S%60);
return 0;
}
| 2,108 | memory_bytes | {'s_id': 's667004596', 'p_id': 'p02390', 'u_id': 'u513898080', 'date': '1586613981', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '137'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main()\n{\n int S;\n\n scanf(\"%d\", &S);\n\n printf(\"%d:%d:%d\\n\", S/3600, (S%3600)/60, S%60);\n... |
CDSS_713026 | CDSS | #include<stdio.h>
#include<string.h>
#include<stdlib.h>
int main(void)
{
char O[51], E[51];
char *ans;
int i;
int olen, elen,len;
scanf("%s", O);
scanf("%s", E);
olen = strlen(O);
elen = strlen(E);
len = olen+elen;
ans = (char *)malloc(len);
for (i = 0; i < len; i++) {
if (i % 2 == 0)ans[i] = O[i/2];
... | 128 | memory_bytes | {'s_id': 's375946211', 'p_id': 'p03760', 'u_id': 'u993235301', 'date': '1491700997', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '399'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\n#include<stdlib.h>\n\nint main(void)\n{\n\tchar O[51], E[51];\n\tchar *ans;\n\tint i;\n\tint ol... |
CDSS_508821 | CDSS | #include <stdio.h>
int main(void) {
long long n, ans = 0, count = 5;
scanf("%lld", &n);
if (n % 2 == 1)
ans = 0;
else
while (count <= n) {
ans += n / count / 2;
count *= 5;
}
printf("%lld", ans);
return 0;
}
| 128 | memory_bytes | {'s_id': 's179140444', 'p_id': 'p02833', 'u_id': 'u579644164', 'date': '1577644746', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '226'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void) {\n\tlong long n, ans = 0, count = 5;\n\tscanf(\"%lld\", &n);\n\tif (n % 2 == 1)\n\t\tans = 0;\n\te... |
CDSS_116120 | CDSS | #define M(x,y)(x>y?x:y)
#define m(x,y)(x<y?x:y)
I;int parse(char *p){switch(*p){
case'0':return 0;
case'1':return 1;
case'2':return 2;
case'P':return I%3;
case'Q':return I/3%3;
case'R':return I/9%3;
case'-':return 2-parse(p+1);
case'(':{
int x=0;
char*q=++p;
for(;;p++){
if(*p=='(')x++;
if(*p==')')x-... | 536 | memory_bytes | {'s_id': 's209320009', 'p_id': 'p00736', 'u_id': 'u300645821', 'date': '1357468830', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '536', 'code_size': '535'} | [
{
"content": "Your task is to predict the memory 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 M(x,y)(x>y?x:y)\n#define m(x,y)(x<y?x:y)\nI;int parse(char *p){switch(*p){\n\tcase'0':return 0;\n\tcase'1':return 1;\n\tcase'2... |
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 must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void){\n\tint a,b;\n\tscanf(\"%d\\n\",&a);\n\tscanf(\"%d\\n\",&b);\n\t\n\tprintf(\"%d %d\\n\",a*b,a+a+b+... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.