identifier string | space string | input string | target float64 | metric_type string | metadata string | messages list |
|---|---|---|---|---|---|---|
CDSS_305083 | CDSS | #include<stdio.h>
int main () {
int a,b,c,d,i;
int divisor_num = 0;
scanf("%d %d %d",&a,&b,&c);
for (i = a; i <= b; i++){
if (c % i == 0)
divisor_num++;
}
printf("%d\n",divisor_num);
return 0;
} | 596 | memory_bytes | {'s_id': 's980194196', 'p_id': 'p02398', 'u_id': 'u957396064', 'date': '1466561720', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '223'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main () {\n\n int a,b,c,d,i;\n int divisor_num = 0;\n scanf(\"%d %d %d\",&a,&b,&c);\n\n for (i = a; i <= ... |
CDSS_674151 | CDSS | // Ver19.03
#include <math.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#define INF 1 << 29
#define LLINF 4545454545454545454
#define MOD 1000000007
#define ll long long
#define ull unsigned long long
#define MAX(a, b) ((a) > (b) ? (a) : (b))
#define MIN(a, b) ((a) < (b) ? (a) : (b))
int upll(const voi... | 128 | memory_bytes | {'s_id': 's851970409', 'p_id': 'p03502', 'u_id': 'u883325972', 'date': '1552960852', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '806'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n// Ver19.03\n#include <math.h>\n#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n#define INF 1 << 29\n#define LLINF 45454... |
CDSS_389154 | CDSS | #include <stdio.h>
int main()
{
int L;
int R;
int d;
int i;
int t=0;
scanf("%d%d%d",&L,&R,&d);
for(i=1;i<=R;i++)
{
if(i*d>=L&&i*d<=R)
t++;
if(i*d>R)
break;
}
printf("%d",t);
}
| 1,684 | memory_bytes | {'s_id': 's578660249', 'p_id': 'p02606', 'u_id': 'u231306202', 'date': '1594605580', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1684', 'code_size': '205'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main()\n{\n int L;\n int R;\n int d;\n int i;\n int t=0;\n scanf(\"%d%d%d\",&L,&R,&d);\n for(i=1;i<=R;i... |
CDSS_71821 | CDSS | main(f,w){for(;~scanf("%[^ ,.]%*[ ,.]",w);)-~strlen(w)/4-1||(f=!printf(" %s"+f,w));exit(!puts(""));} | 0 | memory_bytes | {'s_id': 's422025101', 'p_id': 'p00084', 'u_id': 'u399107199', 'date': '1292254047', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '100'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nmain(f,w){for(;~scanf(\"%[^ ,.]%*[ ,.]\",w);)-~strlen(w)/4-1||(f=!printf(\" %s\"+f,w));exit(!puts(\"\"));}\nPredict its memory footpri... |
CDSS_508073 | CDSS | #include <stdio.h>
int main(void) {
long A, B;
scanf("%ld %ld", &A, &B);
for (int i=1; i < 100000; i++) {
if ((A * i) % B == 0) {
printf("%ld", A * i);
break;
}
}
return 0;
} | 128 | memory_bytes | {'s_id': 's490581770', 'p_id': 'p02831', 'u_id': 'u610775603', 'date': '1577640590', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '128', 'code_size': '238'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\n long A, B;\n\n scanf(\"%ld %ld\", &A, &B);\n\n for (int i=1; i < 100000; i++) {\n ... |
CDSS_711621 | CDSS | #include <stdio.h>
int main(void){
int N;
scanf("%d", &N);
int A[N];
for (int i = 0; i < N; i++) {
scanf("%d", &A[i]);
}
int ans = 0;
for (int i = 0; i < N; i++) {
while(A[i] == A[i+1]){
i++;
continue;
}
if(A[i] < A[i+1]){
while(A[i] <= A[i+1] && i+1 < N){
i++;... | 512 | memory_bytes | {'s_id': 's794178143', 'p_id': 'p03745', 'u_id': 'u812973725', 'date': '1564066954', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '13', 'memory': '512', 'code_size': '460'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\n int A[N];\n for (int i = 0; i < N; i++) {\n scanf(\"%d\... |
CDSS_659490 | CDSS | int main(){int x,y;__builtin_scanf("%d%d",&x,&y);if(x%y==0){__builtin_puts("-1");}else{__builtin_printf("%d\n",x);}} | 128 | memory_bytes | {'s_id': 's188155581', 'p_id': 'p03437', 'u_id': 'u144695182', 'date': '1517807519', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '116'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nint main(){int x,y;__builtin_scanf(\"%d%d\",&x,&y);if(x%y==0){__builtin_puts(\"-1\");}else{__builtin_printf(\"%d\\n\",x);}}\nPredict i... |
CDSS_142067 | CDSS | #include<stdio.h>
#include<string.h>
char s[10][10];
int book[10],t,n,m,a[20],d[20],c[10];
void dfs(int x)
{
if(c[x]==1)
dfs(x+1);
if(x==8)
{
for(int i=0;i<8;i++)
printf("%s\n",s[i]);
return;
}
for(int i=0;i<8;i++)
{
if(book[i]==0&&a[x+i]==0&&d[x-i+8]==0)
{
book[i]=1;
a[x+i]=1;
d[x-i+8]=1;
... | 2,084 | memory_bytes | {'s_id': 's000726808', 'p_id': 'p02244', 'u_id': 'u821907920', 'date': '1580706011', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2084', '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#include<string.h>\nchar s[10][10];\nint book[10],t,n,m,a[20],d[20],c[10];\nvoid dfs(int x)\n{\n\tif(c[x]==1)\n\tdf... |
CDSS_152233 | CDSS | #include <stdio.h>
int gcd(int x, int y)
{
int r;
while(1)
{
r = x % y;
if (r == 0)
break;
x = y;
y = r;
}
return y;
}
int main(void)
{
int a,b;
scanf("%d %d",&a,&b);
printf("%d\n",gcd(a,b));
return 0;
} | 1,844 | memory_bytes | {'s_id': 's314691183', 'p_id': 'p02256', 'u_id': 'u602671616', 'date': '1508898508', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1844', '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\nint gcd(int x, int y)\n{\n int r;\n while(1)\n {\n r = x % y;\n if (r == 0)\n ... |
CDSS_557609 | CDSS | #include <stdio.h>
#include <stdlib.h>
int main(void){
int N, L;
scanf("%d %d", &N, &L);
int val[N], i, j;
int applepie0 = 0, applepie1;
int diff_lst[N], argmin;
int sum, ans;
for(i = 0; i < N; i++){
val[i] = L + i;
applepie0 += val[i];
}
for(i = 0; i < N; i++){
... | 128 | memory_bytes | {'s_id': 's906592285', 'p_id': 'p02994', 'u_id': 'u410269178', 'date': '1561253814', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '697'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\nint main(void){\n int N, L;\n scanf(\"%d %d\", &N, &L);\n int val[N], i, j;\n i... |
CDSS_482805 | 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... | 128 | memory_bytes | {'s_id': 's027038693', 'p_id': 'p02760', 'u_id': 'u721060623', 'date': '1583114691', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '6000'} | [
{
"content": "Your task is to predict the memory 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_283357 | CDSS | #include<stdio.h>
int main (){
int a,b,c,k;
scanf("%d %d %d",&a,&b,&c);
if (b<a){
k=a;
a=b;
b=k;
}
if (c<b){
k=b;
b=c;
c=k;
}
if (b<a){
k=a;
a=b;
b=k;
}
printf("%d %d %d\n",a,b,c);
return 0;
} | 596 | memory_bytes | {'s_id': 's764135672', 'p_id': 'p02393', 'u_id': 'u580230483', 'date': '1464417425', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '220'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main (){\n\tint a,b,c,k;\n\n\tscanf(\"%d %d %d\",&a,&b,&c);\n\tif (b<a){\n\t\tk=a;\n\t\ta=b;\n\t\tb=k;\n\t}\n... |
CDSS_120529 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
int max(int a,int b){if(a>b){return a;}return b;}
int sortfncsj(const void *a,const void *b){if(*(int *)a>*(int *)b){return 1;}if(*(int *)a==*(int *)b){return 0;}return -1;}
int main(){
int n,s,i,j,r;
int a[1024];
while(scanf("%d%d",&n,&s),n!=0){
for(i... | 2,028 | memory_bytes | {'s_id': 's014522726', 'p_id': 'p01101', 'u_id': 'u444407884', 'date': '1585241842', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2028', '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#include<stdlib.h>\n#include<string.h>\n\nint max(int a,int b){if(a>b){return a;}return b;}\nint sortfncsj(const vo... |
CDSS_725951 | CDSS | #include <stdio.h>
int main() {
int a, b;
char op;
scanf("%d %c %d", &a, &op, &b);
if (op == '+') {
printf("%d\n", a + b);
} else {
printf("%d\n", a - b);
}
return 0;
} | 128 | memory_bytes | {'s_id': 's622177556', 'p_id': 'p03844', 'u_id': 'u030504180', 'date': '1586988235', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '179'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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\tchar op;\n\tscanf(\"%d %c %d\", &a, &op, &b);\n\tif (op == '+') {\n\t\tprintf(\"%d\\n... |
CDSS_271459 | CDSS | int main(){
int a,b;
scanf("%d%d",&a,&b);
if(a>b){
printf("a > b\n");}
if(a<b){
printf("a < b\n");}
if(a==b){
printf("a == b\n");}
return 0;
} | 580 | memory_bytes | {'s_id': 's457323951', 'p_id': 'p02391', 'u_id': 'u189590483', 'date': '1503462047', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', '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:\nint main(){\nint a,b;\nscanf(\"%d%d\",&a,&b);\nif(a>b){\nprintf(\"a > b\\n\");}\nif(a<b){\nprintf(\"a < b\\n\");}\nif(a==b){\nprintf(\... |
CDSS_581175 | CDSS | #include <stdio.h>
#include <string.h>
#define lop(i, n) for(i=0; i<n; i++)
int main()
{
int n, i;
char s[100000];
scanf("%s", s);
int x=0, y=0, ans;
for(i=0; i<strlen(s); i++){
if(i%2==0 && s[i]=='1'){x++;}
else if(i%2!=0 && s[i]=='0'){x++;}
else{y++;}
}
if(x>y) ans=y;
else ans=x;
printf("%d", an... | 256 | memory_bytes | {'s_id': 's199253494', 'p_id': 'p03073', 'u_id': 'u034323841', 'date': '1588871101', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '256', 'code_size': '337'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 lop(i, n) for(i=0; i<n; i++)\n\nint main()\n{\n\tint n, i;\n\tchar s[100000];\n\tscan... |
CDSS_458796 | CDSS | #include<stdio.h>
int gcd(int a,int b)
{
while(a!=b)
{
if(a>b)
a-=b;
else
b-=a;
}
return a;
}
int main()
{
int a,b,c,k,sum=0;
scanf("%d",&k);
for(a=1;a<=k;a++)
{
for(b=1;b<=k;b++)
{
for(c=1;c<=k;c++)
su... | 1,728 | memory_bytes | {'s_id': 's924665566', 'p_id': 'p02713', 'u_id': 'u036665887', 'date': '1587087277', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '629', 'memory': '1728', '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>\nint gcd(int a,int b)\n{\n while(a!=b)\n {\n if(a>b)\n a-=b;\n else\n b-=a... |
CDSS_225167 | 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 treeMinimum(Node);
/*Node treeMaximum(Node);*/
Node treeSearch(Node,int);
Node treeSuccessor(Node);
void treeDelete(Node);
voi... | 20,492 | memory_bytes | {'s_id': 's271242048', 'p_id': 'p02285', 'u_id': 'u690626442', 'date': '1547098058', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '290', 'memory': '20492', 'code_size': '2699'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 key;... |
CDSS_568919 | CDSS | #include<stdio.h>
int main(){
int r,D,x;
int ANS;
int i;
scanf("%d%d%d",&r,&D,&x);
for(i=1;i<=10;i++){
x=r*x-D;
printf("%d\n",x);
}
return 0;
}
| 128 | memory_bytes | {'s_id': 's101748752', 'p_id': 'p03036', 'u_id': 'u082059717', 'date': '1558833590', '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(){\n int r,D,x;\n int ANS;\n int i;\n scanf(\"%d%d%d\",&r,&D,&x);\n for(i=1;i<=10;i++){\n x=r*x-... |
CDSS_604001 | CDSS | #include<stdio.h>
int MAX(int a,int b){return a<b?b:a;}
int i,j,c=1,d[3010][3010],f[3010][3010];
int main(){
char a[3010],b[3010],s[3010]={};
scanf("%s %s",a,b);
for(i=0;a[i];i++){
for(j=0;b[j];j++){
if(a[i]==b[j]){
d[i+1][j+1]=d[i][j]+1;
f[i+1][j+1]=3;
}
if(d[i+1][j+1]<d[i+1][j]){
d[i+1]... | 70,784 | memory_bytes | {'s_id': 's490637244', 'p_id': 'p03165', 'u_id': 'u121922047', 'date': '1546884904', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '66', 'memory': '70784', 'code_size': '766'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 MAX(int a,int b){return a<b?b:a;}\nint i,j,c=1,d[3010][3010],f[3010][3010];\nint main(){\n char a[3010],b[3010... |
CDSS_530350 | CDSS | #include<stdio.h>
int main(void){
int N,count=0;
scanf("%d",&N);
count=(N*N)*N;
printf("%d\n",count);
return 0;
}
| 128 | memory_bytes | {'s_id': 's593870830', 'p_id': 'p02915', 'u_id': 'u197937533', 'date': '1567909141', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '134'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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,count=0;\n scanf(\"%d\",&N);\n count=(N*N)*N;\n printf(\"%d\\n\",count);\n r... |
CDSS_301340 | CDSS | #include<stdio.h>
int main(void)
{
int x,y,tmp;
while(1){
scanf("%d %d",&x,&y);
if (x == 0 && y == 0)break;
if (y < x){
tmp=y;
y=x;
x=tmp;
}
printf("%d %d\n",x,y);
}
return 0;
} | 600 | memory_bytes | {'s_id': 's399293905', 'p_id': 'p02397', 'u_id': 'u588491011', 'date': '1484818782', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', '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>\nint main(void)\n{\nint x,y,tmp;\nwhile(1){\nscanf(\"%d %d\",&x,&y);\nif (x == 0 && y == 0)break;\nif (y < x){\ntmp=... |
CDSS_702963 | CDSS | #include <stdio.h>
int main(int argc, char const *argv[]) {
int a, b;
scanf("%d", &a);
scanf("%d", &b);
if (a + b >= 10) {
printf("error\n");
}else{
printf("%d\n", a+b);
}
return 0;
}
| 128 | memory_bytes | {'s_id': 's602620803', 'p_id': 'p03697', 'u_id': 'u016933855', 'date': '1496540823', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '208'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(int argc, char const *argv[]) {\n int a, b;\n scanf(\"%d\", &a);\n scanf(\"%d\", &b);\n\n if (a + b... |
CDSS_565319 | 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 INF (1LL<<60)
#define MOD1 1000000007
#define MAX_N (1 << 17)
void swap(ll *a, ll... | 384 | memory_bytes | {'s_id': 's037218575', 'p_id': 'p03018', 'u_id': 'u004279520', 'date': '1585097450', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '384', 'code_size': '1605'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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_530989 | CDSS | #include "stdio.h"
int main(void) {
int number;
int array[20], barray[20], carray[19];
int sum = 0;
scanf("%d", &number);
for (int i = 1; i<=number; i++) {
scanf("%d", &array[i]);
}
for (int i = 1; i<=number; i++) {
scanf("%d", &barray[i]);
}
for (int i = 1; i<=number - 1; i++) {
scanf("%d", &carray... | 128 | memory_bytes | {'s_id': 's491591375', 'p_id': 'p02916', 'u_id': 'u852988862', 'date': '1567907077', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '518'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\nint main(void) {\n\n\tint number;\n\tint array[20], barray[20], carray[19];\n\tint sum = 0;\n\tscanf(\"%d\... |
CDSS_740903 | CDSS | #include <stdio.h>
typedef long long ll;
#define MAX 1000000007
int N, C, A[400], B[400];
ll dp[401][400] = {0};
ll pows[401][401] = {0};
ll culc(int c, int index){
int ci, cs = 0;
ll ret = 0, xi;
if(index == N){ return 1; }
if(dp[c][index]){ return dp[c][index]; }
if(index+1 == N){ cs = c; }
for(ci=cs; ci<=c; ... | 2,688 | memory_bytes | {'s_id': 's350345405', 'p_id': 'p04027', 'u_id': 'u030078022', 'date': '1471225225', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '691', 'memory': '2688', 'code_size': '848'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\ntypedef long long ll;\n#define MAX 1000000007\n\nint N, C, A[400], B[400];\nll dp[401][400] = {0};\nll pows[401]... |
CDSS_530537 | CDSS | #include <stdio.h>
int main(void){
// Your code here!
int N;
scanf("%d",&N);
printf("%d\n",N*N*N);
}
| 128 | memory_bytes | {'s_id': 's814668659', 'p_id': 'p02915', 'u_id': 'u966921103', 'date': '1567904470', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '117'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\n // Your code here!\n int N;\n scanf(\"%d\",&N);\n printf(\"%d\\n\",N*N*N);\n}\n\nPre... |
CDSS_627445 | CDSS | #include <stdio.h>
int main(void){
int N,K;
scanf("%d %d",&N,&K);
int ans = 0;
if( N%K==0){
printf("%d",0);
}else{
printf("%d",1);
}
return 0;
} | 128 | memory_bytes | {'s_id': 's045381593', 'p_id': 'p03284', 'u_id': 'u168774513', 'date': '1534036720', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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(void){\n\tint N,K;\n\tscanf(\"%d %d\",&N,&K);\n\tint ans = 0;\n\tif( N%K==0){\n\t\tprintf(\"%d\",0);\n\t}... |
CDSS_305526 | CDSS | #include <stdio.h>
int main(void)
{
int a, b, c;
int divide, cnt = 0;
scanf("%d %d %d", &a, &b, &c);
for (divide = a; divide <= b; divide++){
if (c % divide == 0){
cnt++;
}
}
printf("%d\n", cnt);
return 0;
} | 596 | memory_bytes | {'s_id': 's803126452', 'p_id': 'p02398', 'u_id': 'u824148341', 'date': '1481181281', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '269'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer 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, c;\n int divide, cnt = 0;\n \n scanf(\"%d %d %d\", &a, &b, &c);\n for... |
CDSS_442695 | CDSS | #include <stdio.h>
#include <math.h>
int main(int argc, const char * argv[])
{
int vacationDays, assignments, daysRequired = 0;
scanf("%d %d", &vacationDays, &assignments);
for(int i = 0; i < assignments; i++)
{
int oneAssignment;
scanf("%d", &oneAssignment);
daysRequired +... | 1,676 | memory_bytes | {'s_id': 's886509290', 'p_id': 'p02706', 'u_id': 'u809036603', 'date': '1590431471', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1676', 'code_size': '542'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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(int argc, const char * argv[])\n{\n int vacationDays, assignments, daysRequired =... |
CDSS_227418 | CDSS | #include<stdio.h>
int Le(int);
int Ri(int);
int oya(int x){
return x / 2;
}
int main(){
int n,i,A[100001];
scanf("%d",&n);
for(i = 1 ; i <= n ; i++){
scanf("%d",&A[i]);
}
for(i = 1 ; i <= n ; i++){
printf("node %d: key = %d, ",i,A[i]);
if(oya(i) >= 1) printf("parent key = %d, ",A[oya(i)... | 2,112 | memory_bytes | {'s_id': 's396615471', 'p_id': 'p02287', 'u_id': 'u661640111', 'date': '1579687935', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', '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#include<stdio.h>\n\nint Le(int);\nint Ri(int);\n\nint oya(int x){\n return x / 2;\n}\n\n\n\nint main(){\n int n,i,A[100001];\n\n s... |
CDSS_518345 | CDSS | /* ex3_4
kanon */
#include <stdio.h>
int main(void)
{
//与えられる値を入れる変数を宣言
int number;
//変数に値を入力する
scanf("%d", &number);
//九九に含まれる値全てについてNと一致しないか調べる
//一致すればflagを1にする、flagを使って答えの出力の場合分けをする
int flag=0;
for(int i=1;i<=9;i++){
for(int j=1;j<=9;j++){
if(i*j==number){
... | 128 | memory_bytes | {'s_id': 's465721640', 'p_id': 'p02880', 'u_id': 'u703052130', 'date': '1590083511', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '715'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n/* ex3_4\n\tkanon */\n\n#include <stdio.h>\n\nint main(void)\n{\n\n //与えられる値を入れる変数を宣言\n int number;\n\n //変数に値を入力する\n scan... |
CDSS_490657 | CDSS | #include <stdio.h>
#include<stdlib.h>
#include<string.h>
int main(void){
char a[100];
int len;
scanf("%s",a);
len = strlen(a);
for(int i=0;i<len;i++){
a[i] = 'x';
}
printf("%s\n",a);
return 0;
}
| 128 | memory_bytes | {'s_id': 's587107438', 'p_id': 'p02778', 'u_id': 'u900424884', 'date': '1584445224', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '219'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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>\nint main(void){\n\t\tchar a[100];\n\t\tint len;\n\n\t\tscanf(\"%s\",a);\n\... |
CDSS_216755 | CDSS | #include<stdio.h>
#define NIL -1
#define MAX 102000
struct Node{ int p, l, r;
};
struct Node T[MAX];
int n, H, D[MAX];
int wowDep(int x){
int depth = 0;
for(; T[x].p != NIL ;depth++) x = T[x].p;
return depth;
}
void print(int x){
int i, c;
printf("node %d: ",x);
printf("parent = %d, ", T[x].p);
print... | 3,336 | memory_bytes | {'s_id': 's873058402', 'p_id': 'p02279', 'u_id': 'u125839579', 'date': '1578890574', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '40', 'memory': '3336', 'code_size': '1080'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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#define MAX 102000\n\n\nstruct Node{ int p, l, r;\n};\nstruct Node T[MAX];\nint n, H, D[MAX];\n\nin... |
CDSS_661599 | CDSS | #include<stdio.h>
int main(void){
int a,b;
scanf("%d%d",&a,&b);
if((a * b) % 2 == 0) puts("Even");
else puts("Odd");
return 0;
} | 1,660 | memory_bytes | {'s_id': 's322141078', 'p_id': 'p03455', 'u_id': 'u221374645', 'date': '1596640386', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1660', 'code_size': '152'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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;\n \n scanf(\"%d%d\",&a,&b);\n \n if((a * b) % 2 == 0) puts(\"Even\");\n else pu... |
CDSS_152501 | CDSS | #include<stdio.h>
int main(void){
int gcd,x,y,tmp;
scanf("%d %d",&x,&y);
if(x<y){
tmp=x;
x=y;
y=tmp;
}
while((gcd=x%y)!=0){
x=y;
y=gcd;
}
printf("%d\n",y);
return 0;
}
| 2,100 | memory_bytes | {'s_id': 's922068414', 'p_id': 'p02256', 'u_id': 'u245502316', 'date': '1524451114', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2100', 'code_size': '261'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 gcd,x,y,tmp;\n \n scanf(\"%d %d\",&x,&y);\n \n if(x<y){\n tmp=x;\n ... |
CDSS_693984 | CDSS | #include <stdio.h>
int main(void)
{
int n;
scanf("%d", &n);
int i;
for(i=n;i>0;i--){
if(i==64)
break;
if(i==32)
break;
if(i==16)
break;
if(i==8)
break;
if(i==4)
break;
if(i==2)
break;... | 128 | memory_bytes | {'s_id': 's442541567', 'p_id': 'p03644', 'u_id': 'u519655118', 'date': '1502779710', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '403'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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;\n scanf(\"%d\", &n);\n int i;\n for(i=n;i>0;i--){\n if(i==64)\n ... |
CDSS_130294 | CDSS | #include <stdio.h>
#define N 47
int a[N];
int fib(int n)
{
if(a[n]==0){
if(n<2) a[n]=1;
else a[n]=fib(n-1)+fib(n-2);
}
return a[n];
}
int main()
{
int n;
scanf("%d",&n);
printf("%d\n",fib(n));
return 0;
} | 596 | memory_bytes | {'s_id': 's508143092', 'p_id': 'p02233', 'u_id': 'u252365561', 'date': '1502873710', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '228'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#define N 47\n\nint a[N];\nint fib(int n)\n{\n if(a[n]==0){\n if(n<2) a[n]=1;\n else a[n]=fib(n-1)+fib(n-2)... |
CDSS_288558 | CDSS | #include<stdio.h>
int main(void)
{
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
if(a<b){
if(b<c){
printf("%d %d %d\n",a,b,c);
}
else if(a<c){
printf("%d %d %d\n",a,c,b);
}
else{
printf("%d %d %d\n",c,a,b);
}
}
else{
if(c<b){
printf("%d %d %d\n",c,b,a);
}
else if(a<c){
printf("%d %d %d\n"... | 2,092 | memory_bytes | {'s_id': 's784540255', 'p_id': 'p02393', 'u_id': 'u758353089', 'date': '1534385133', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2092', '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>\nint main(void)\n{\n\tint a,b,c;\n\tscanf(\"%d %d %d\",&a,&b,&c);\n\tif(a<b){\n\t\tif(b<c){\n\t\t\tprintf(\"%d %d %d... |
CDSS_428055 | CDSS | #include<stdio.h>
int main() {
long long int k,i;
int c=0;
long long int x=100;
scanf("%lld",&k);
while(x<k){
i=x*0.01;
x=x+i;
c++;
}
printf("%d",c);
}
| 1,732 | memory_bytes | {'s_id': 's651389747', 'p_id': 'p02694', 'u_id': 'u626698775', 'date': '1588469292', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '1732', 'code_size': '167'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main() {\n\tlong long int k,i;\n\tint c=0;\n\tlong long int x=100;\n\tscanf(\"%lld\",&k);\n\twhile(x<k){\n\t\... |
CDSS_678639 | CDSS | #include<stdio.h>
int main(){
char a[3],b[3];
gets(a);gets(b);
if(a[0]==b[2]&&a[1]==b[1]&&a[2]==b[0]) printf("YES\n");
else printf("NO\n");
} | 128 | memory_bytes | {'s_id': 's650739089', 'p_id': 'p03555', 'u_id': 'u150296067', 'date': '1509843892', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', '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>\nint main(){\n\tchar a[3],b[3];\n\tgets(a);gets(b);\n\tif(a[0]==b[2]&&a[1]==b[1]&&a[2]==b[0]) printf(\"YES\\n\");\n\... |
CDSS_209842 | CDSS | #include<stdio.h>
#include<stdlib.h>//counting sort
void Countingsort(int *a, int *b,int *c,int n, int max){
int i;
for(i=0;i<n;i++){
*(c+*(a+i))+=1;
}
for(i=1;i<=max;i++){
*(c+i)=*(c+i)+*(c+i-1);
}
for(i=n-1;i>=0;i--){
*(b+*(c+*(a+i)))=*(a+i);
*(c+*(a+i))-=1;
... | 17,052 | memory_bytes | {'s_id': 's764963268', 'p_id': 'p02275', 'u_id': 'u336208598', 'date': '1587563286', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '240', 'memory': '17052', 'code_size': '760'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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>//counting sort\nvoid Countingsort(int *a, int *b,int *c,int n, int max){\n int i;\n for(i=... |
CDSS_651000 | CDSS | #include <stdio.h>
int main(void){
int a, b, k, i;
scanf("%d%d%d", &a,&b,&k);
for(i=a; i<=b; i++){
if(i<a+k || b-k<i){
printf("%d\n", i);
}
}
} | 128 | memory_bytes | {'s_id': 's688377101', 'p_id': 'p03386', 'u_id': 'u520375306', 'date': '1588909755', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '973', 'memory': '128', 'code_size': '188'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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, k, i;\n scanf(\"%d%d%d\", &a,&b,&k);\n for(i=a; i<=b; i++){\n if(i<a... |
CDSS_180101 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
int pop(void);
void push(int);
int tail=0;
int stack[100];
int main(){
int x,y,z;
char s[100];
while( scanf("%s", s) != EOF ){
if ( s[0] == '+' ){
y=pop();
z=pop();
push(z+y);
} else if ( s[0] == '-' ){
y=pop();
z=po... | 2,052 | memory_bytes | {'s_id': 's434408884', 'p_id': 'p02263', 'u_id': 'u164150168', 'date': '1576218268', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2052', '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#include<string.h>\nint pop(void);\nvoid push(int);\nint tail=0;\nint stack[100];\nint main(){\... |
CDSS_86862 | CDSS | s[101][26],p[101];n,i,k,o,q;G(){scanf("%s",s[n]);for(i=0;strcmp(s[i],s[n]);i++);}main(m){for(;~scanf("%d",&n);n&&printf("%d\n",p[i])){for(m=n;m;scanf("%s%d",s[m],p+m))m--;for(scanf("%d",&m);G(q=0),m--;q<p[o]?p[o]=q:0)for(o=i,scanf("%d",&k);k--;q+=p[i])G();}} | 0 | memory_bytes | {'s_id': 's218222611', 'p_id': 'p00201', 'u_id': 'u399107199', 'date': '1292089194', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '258'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\ns[101][26],p[101];n,i,k,o,q;G(){scanf(\"%s\",s[n]);for(i=0;strcmp(s[i],s[n]);i++);}main(m){for(;~scanf(\"%d\",&n);n&&printf(\"%d\\n\",... |
CDSS_224045 | 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 treeMaximum(Node x){
while(x->right!=NIL)x=x->right;
return x;
}
Node treeMinimum(Node x){
while(x->left!=NIL)x=x->left... | 20,440 | memory_bytes | {'s_id': 's694142609', 'p_id': 'p02284', 'u_id': 'u352341417', 'date': '1547489395', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '290', 'memory': '20440', 'code_size': '1764'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 key;... |
CDSS_148678 | CDSS | #include <stdio.h>
int main(void){
int i,j,N,A[100],v,k;
scanf("%d",&N);
for(i = 0; i < N; i++){
scanf("%d",&A[i]);
}
for(i=1;i < N;i++){
for(k=0;k < N;k++){
printf("%d",A[k]);
if(k != N-1) printf(" ");
}
printf("\n");
v=A[i];
j=i-1;
while(j>=0 && A[j]>... | 2,120 | memory_bytes | {'s_id': 's045466485', 'p_id': 'p02255', 'u_id': 'u893783881', 'date': '1529331440', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2120', 'code_size': '508'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 i,j,N,A[100],v,k;\n \n scanf(\"%d\",&N);\n for(i = 0; i < N; i++){\n scanf(\"%d\",&A[... |
CDSS_57964 | CDSS | i=59,c=100,f[99],m,x,s;main(y){for(;s?++f[y*12+x+";<=0H/1GI:>T$"[--s]]:~scanf("%d,%d,%d",&x,&y,&s)?s=s*4+1:++i<178?i%12<10?m=fmax(m,f[i]),f[i]?c--:1:1:!printf("%d\n%d\n",c,m););} | 0 | memory_bytes | {'s_id': 's286433882', 'p_id': 'p00026', 'u_id': 'u479246559', 'date': '1321065427', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '178'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\ni=59,c=100,f[99],m,x,s;main(y){for(;s?++f[y*12+x+\";<=0H/1GI:>T$\"[--s]]:~scanf(\"%d,%d,%d\",&x,&y,&s)?s=s*4+1:++i<178?i%12<10?m=fmax(... |
CDSS_532201 | CDSS | #define CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<stdlib.h>
int main(void) {
char S[3],T[3];
int count = 0;
scanf("%s", S);
scanf("%s", T);
for (int i = 0; i <= 2; i++) {
if (S[i] == T[i]) {
count++;
}
}
printf("%d\n", count);
} | 128 | memory_bytes | {'s_id': 's070741956', 'p_id': 'p02921', 'u_id': 'u496670175', 'date': '1567431650', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '251'} | [
{
"content": "Your task is to predict the memory 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#include<stdlib.h>\n\nint main(void) {\n\tchar S[3],T[3];\n\tint count = 0;\n\tscan... |
CDSS_466787 | CDSS | #include <stdio.h>
int main(){
long long int n,k;
long long int ans;
scanf("%lld%lld",&n,&k);
ans=n%k;
if (ans > k-ans) ans=k-ans;
printf("%lld",ans);
return 0;
}
| 128 | memory_bytes | {'s_id': 's475860625', 'p_id': 'p02719', 'u_id': 'u054412614', 'date': '1586143888', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '178'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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(){\nlong long int n,k;\n long long int ans;\n\n scanf(\"%lld%lld\",&n,&k);\n ans=n%k;\n if (ans > k... |
CDSS_445690 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <string.h>
#include <unistd.h>
#include <math.h>
long long int ans=0;
long long sort(long long d[],int NumberArrays,int up){
int tmp;
for (int i = 0; i < NumberArrays-1; i++) {
if (up && d[i]<d[i+1]) {
d[i]=tmp;
d[i]=d[i+1];
d[i... | 3,296 | memory_bytes | {'s_id': 's979144077', 'p_id': 'p02707', 'u_id': 'u488417454', 'date': '1587347736', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '38', 'memory': '3296', 'code_size': '1188'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 <time.h>\n#include <string.h>\n#include <unistd.h>\n#include <math.h>\nlong long int... |
CDSS_293476 | CDSS | #include<stdio.h>
int main()
{
int a,b,c,d,r;
scanf("%d %d %d %d %d",&a,&b,&c,&d,&r);
if(0<=(c-r) && (c+r)<=a && 0 <=(d-r) && (d+r)<=b)
{
printf("Yes\n");
}
else
{
printf("No\n");
}
}
| 2,112 | memory_bytes | {'s_id': 's993506580', 'p_id': 'p02394', 'u_id': 'u895733325', 'date': '1585562966', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '198'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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,c,d,r;\n\tscanf(\"%d %d %d %d %d\",&a,&b,&c,&d,&r);\n\tif(0<=(c-r) && (c+r)<=a && 0 <=(d-r... |
CDSS_705523 | CDSS | #include<stdio.h>
int main()
{
int a,b,i;
char c[1000];
scanf("%d %d",&a,&b);
for(i=1;i<=b+2;i++)
printf("#");
printf("\n");
for(i=1;i<=a;i++)
{
scanf("%s",c);
printf("\n#%s#\n",c);
}
for(i=1;i<=b+2;i++)
printf("#");
printf("\n");
return 0;
} | 128 | memory_bytes | {'s_id': 's059670292', 'p_id': 'p03712', 'u_id': 'u089230684', 'date': '1509072542', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '261'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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,i;\n\tchar c[1000];\n\tscanf(\"%d %d\",&a,&b);\n\tfor(i=1;i<=b+2;i++)\n\tprintf(\"#\");\n\... |
CDSS_656508 | CDSS | #include <stdio.h>
#include <math.h>
#include <string.h>
int main(void){
int n,i;
char s;
scanf("%d",&n);
for(i=0;i<n;i++) {
scanf("%c",&s);
if(s=='Y') {
printf("Four");
return 0;
}
}
printf("Three");
return 0;
} | 128 | memory_bytes | {'s_id': 's049521182', 'p_id': 'p03424', 'u_id': 'u185896732', 'date': '1551115679', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '250'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n#include <string.h>\nint main(void){\n int n,i;\n char s;\n scanf(\"%d\",&n);\n for(i=0;i<n... |
CDSS_705773 | CDSS | #include <stdio.h>
int main(void)
{
int h, w;
int i;
char s[100][101];
scanf("%d %d", &h, &w);
for (i = 0; i < h; i++) {
scanf("%s", s[i]);
}
for (i = 0; i < w + 2; i++) putchar('#');
putchar('\n');
for (i = 0; i < h; i++) {
putchar('#');
printf("%s", s[i]);
puts("#");
}
for (i = 0; i < w + 2; i++) p... | 128 | memory_bytes | {'s_id': 's308073789', 'p_id': 'p03712', 'u_id': 'u160897845', 'date': '1495332241', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '361'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 h, w;\n\tint i;\n\tchar s[100][101];\n\tscanf(\"%d %d\", &h, &w);\n\tfor (i = 0; i < h; i... |
CDSS_471395 | CDSS | #include <stdio.h>
int main(){
int n, m;
int ans = 0;
scanf("%d %d", &n, &m);
n = ((n * (n-1)) / 2);
m = ((m * (m-1)) / 2);
ans = n + m;
printf("%d", ans);
}
| 1,720 | memory_bytes | {'s_id': 's361905942', 'p_id': 'p02729', 'u_id': 'u353919145', 'date': '1598666056', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1720', '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\t\n\tint n, m;\n\tint ans = 0;\n\t\n\tscanf(\"%d %d\", &n, &m);\n\t\n\tn = ((n * (n-1)) / 2);\n\tm... |
CDSS_604140 | CDSS | #include<stdio.h>
#define d long long
d int h,w;
long long int p=1000000007;
char a[1000][1000];
d int m[1000][1000];
d int f(d int i,d int j)
{
if((i==h-1)&&(j==w-1))
return 1;
if(i==h)
return 0;
if(j==w)
return 0;
if(a[i][j]=='#')
return 0;
if(m[i][j]!=-1)
r... | 10,580 | memory_bytes | {'s_id': 's167844499', 'p_id': 'p03167', 'u_id': 'u226475436', 'date': '1593515889', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '49', 'memory': '10580', 'code_size': '645'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 d long long\nd int h,w;\nlong long int p=1000000007;\nchar a[1000][1000];\nd int m[1000][1000];\nd int f(d ... |
CDSS_328212 | CDSS | #include<stdio.h>
int main(void){
int n,a,min=1000000,max=-1000000,i;
long s=0;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d",&a);
s+=a;
if(min>a){
min=a;
}
if(max<a){
max=a;
}
}
printf("%d %d %ld\n",min,max,s);
return 0;
}
| 2,104 | memory_bytes | {'s_id': 's046252540', 'p_id': 'p02402', 'u_id': 'u534760593', 'date': '1558687469', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '260'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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\t\n\tint n,a,min=1000000,max=-1000000,i;\n\tlong s=0;\n\t\n\tscanf(\"%d\",&n);\n\t\n\tfor(i=0;i<n... |
CDSS_534291 | CDSS | int main(){
int n,h[100000];
scanf("%d\n",&n);
for(int i = 0;i<n;i++){
scanf("%d ",&h[i]);
}
int m = 0,a = 0,s = 0;
while(n>s+1){
m=0;
if(h[s]>=h[s+1] && n>s+1){
while(h[s]>=h[s+1] && n>s+1){
m++;
s++;
}
}else{
s++;
}
if(m>a){
a=m;
}
}
... | 512 | memory_bytes | {'s_id': 's662624563', 'p_id': 'p02923', 'u_id': 'u803214415', 'date': '1567368398', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '13', 'memory': '512', 'code_size': '351'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nint main(){\n int n,h[100000];\n scanf(\"%d\\n\",&n);\n for(int i = 0;i<n;i++){\n scanf(\"%d \",&h[i]);\n }\n int m = 0,a = 0,... |
CDSS_215592 | CDSS | #include <stdio.h>
#define N 100000
#define node0 -1
int depth(int);
int degree(int);
typedef struct{
int p,r,l;
}Node;
Node T[N];
int main(){
int i,n,k,id,j,c,keep;
scanf("%d",&n);
for(i=0;i<n;i++){
T[i].p=node0;
T[i].r=node0;
T[i].l=node0;
}
for(i=0;i<n;i++){
scanf("%d%d",&id,&k);
... | 1,784 | memory_bytes | {'s_id': 's363851467', 'p_id': 'p02279', 'u_id': 'u442443280', 'date': '1465968217', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '60', 'memory': '1784', 'code_size': '1146'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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#define node0 -1\nint depth(int);\nint degree(int);\ntypedef struct{\n int p,r,l;\n}Node;\nNode... |
CDSS_374918 | CDSS | #include <stdio.h>
#include <stdlib.h>
int main(void){
// Your code here!
char s[10000];
int i;
scanf("%s", s);
i = 0;
while (s[i])
write(1, s + i++, 1);
if (s[i - 1] == 's')
printf("es");
else
printf("s");
}
| 1,744 | memory_bytes | {'s_id': 's147457304', 'p_id': 'p02546', 'u_id': 'u637756086', 'date': '1600542232', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1744', 'code_size': '267'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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(void){\n // Your code here!\n char s[10000];\n int i;\n\n scanf(\"%s\"... |
CDSS_488834 | CDSS | #include <stdio.h>
int main(void){
int i,t,N;
int a[100];
t = 0;
scanf("%d", &N);
for(i=0;i<N;i++){
scanf("%d", &a[i]);
if(a[i]%2==0 && t == 0){
if(a[i]%3!=0 && a[i]%5!=0)
t = 1;
}
}
if(t==1)
printf("DENIED");
else
printf("APPROVED");
return 0;
} | 128 | memory_bytes | {'s_id': 's629792814', 'p_id': 'p02772', 'u_id': 'u485893928', 'date': '1581885783', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '303'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n int i,t,N;\n int a[100];\n t = 0;\n scanf(\"%d\", &N);\n for(i=0;i<N;i++){\n scanf(\"%... |
CDSS_626648 | CDSS | #include <stdio.h>
#include <string.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#include <limits.h>
#include <math.h>
int acs(const void *a, const void *b){return *(int*)a - *(int*)b;} /* 1,2,3,4.. */
int des(const void *a, const void *b){return *(int*)b - *(int*)a;} /* 8,7,6,5.. */
int cmp_char(con... | 3,584 | memory_bytes | {'s_id': 's270189816', 'p_id': 'p03283', 'u_id': 'u391667116', 'date': '1576460523', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '57', 'memory': '3584', 'code_size': '1625'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n#include <stdbool.h>\n#include <stdint.h>\n#include <stdlib.h>\n#include <limits.h>\n#include... |
CDSS_361606 | CDSS | #include <stdio.h>
#include <ctype.h>
#include <string.h>
int main(void)
{
int i,len;
char str[1200];
gets(str);
len = strlen(str);
for (i=0; i<len; i++) {
if(isupper(str[i])) {
str[i] += 32;
} else if(islower(str[i])) {
str[i] -= 32;
}
}
puts(str);
return 0;
} | 524 | memory_bytes | {'s_id': 's362936563', 'p_id': 'p02415', 'u_id': 'u799680650', 'date': '1453818452', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', '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#include <ctype.h>\n#include <string.h>\n\nint main(void)\n{\n\tint i,len;\n\tchar str[1200];\n\tgets(str);\n\tlen... |
CDSS_337785 | CDSS | #include "stdio.h"
int main(void)
{
int n,i,t;
scanf("%d",&n);
for(i=1;i<=n;i++)
{
if(i%3==0)
{
printf(" %d",i);
continue;
}
t=i;
while(t>2)
{
if(t%10==3)
{
printf(" %d",i);
break;
}
t /= 10;
}
}
printf("\n");
return 0;
} | 600 | memory_bytes | {'s_id': 's006982604', 'p_id': 'p02406', 'u_id': 'u983310902', 'date': '1417680417', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '290'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include \"stdio.h\"\n\nint main(void)\n{\n\tint n,i,t;\n \tscanf(\"%d\",&n);\n \tfor(i=1;i<=n;i++)\n \t{\n \t\tif(i%3==0)\n \t\t{\n \... |
CDSS_738821 | CDSS | #include <stdio.h>
int main(void){
int N, K, X, Y;
scanf("%d %d %d %d", &N, &K, &X, &Y);
if(N <= K){
printf("%d\n", X * N);
}else if(N > K){
printf("%d\n", (N - K) * Y + (K * X));
}
}
| 1,712 | memory_bytes | {'s_id': 's500053949', 'p_id': 'p04011', 'u_id': 'u818573308', 'date': '1594322884', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1712', 'code_size': '235'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\n int N, K, X, Y;\n \n scanf(\"%d %d %d %d\", &N, &K, &X, &Y);\n \n if(N <= K){\n ... |
CDSS_659291 | CDSS | //迷路探索(幅優先探索)
char go, stop, Goal, Start;
int memo2 = -1;
int stx, sty, gox, goy;
int check(int x, int y, int memo, int n, int m);
char map[1000][1000];
//すでに進んだ場所
int not_map[1000][1000] = {};
//そこに行くまで何ターンかかるか
int turn[1000][1000] = {};
//次に調べる座標を入れておく
int task[1000000][2] = {};
//探索開始
int start(int n, int m) {
int ... | 6,272 | memory_bytes | {'s_id': 's082643321', 'p_id': 'p03436', 'u_id': 'u018872912', 'date': '1545876335', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '6272', 'code_size': '2454'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n//迷路探索(幅優先探索)\nchar go, stop, Goal, Start;\nint memo2 = -1;\nint stx, sty, gox, goy;\nint check(int x, int y, int memo, int n, int m);... |
CDSS_57218 | CDSS | #include <stdio.h>
int calTheNumOfFloor(double v){
return (int)((v*v/(2*9.8) + 5) / 5);
}
int main(void){
double v;
while(scanf("%lf", &v) != EOF){
printf("%d\n", calTheNumOfFloor(v) + 1);
}
return 0;
} | 628 | memory_bytes | {'s_id': 's135830964', 'p_id': 'p00024', 'u_id': 'u467929102', 'date': '1402261896', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '628', 'code_size': '212'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 calTheNumOfFloor(double v){\n\treturn (int)((v*v/(2*9.8) + 5) / 5);\n}\n\nint main(void){\n\tdouble v;\n\twh... |
CDSS_144051 | CDSS | #include <stdio.h>
int main()
{
int N;
int A[1000] = { 0 };
int i, j, k;
int v = 0;
scanf("%d", &N);
for (i = 0; i < N; i++)
{
scanf("%d", &A[i]);
}
for (i = 0; i < N; i++)
{
if (i == N - 1){
printf("%d", A[i]);
}
else printf("%d ", A[i]);
}
printf("\n");
for (i = 1; i < N; i++)
{
v =... | 608 | memory_bytes | {'s_id': 's335596659', 'p_id': 'p02255', 'u_id': 'u375268285', 'date': '1430224273', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '608', '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 main()\n{\n\tint N;\n\tint A[1000] = { 0 };\n\tint i, j, k;\n\tint v = 0;\n\n\tscanf(\"%d\", &N);\n\tfor (i ... |
CDSS_94270 | CDSS | int main(){
int a,b;
scanf("%d%d",&a,&b);
printf("%d\n",a/b+a%b);
return 0;
} | 596 | memory_bytes | {'s_id': 's886721806', 'p_id': 'p00312', 'u_id': 'u300645821', 'date': '1500187132', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '81'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nint main(){\n\tint a,b;\n\tscanf(\"%d%d\",&a,&b);\n\tprintf(\"%d\\n\",a/b+a%b);\n\treturn 0;\n}\nPredict its memory footprint.",
"... |
CDSS_443684 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<math.h>
typedef long long ll;
int main()
{
int n,m,q=0;
scanf("%d %d",&n,&m);
int a[m];
for(int i=0;i<m;i++)
{
scanf("%d",&a[i]);
q=q+a[i];
}
if(q>n)
{
printf("-1\n");
}
else
{
... | 1,708 | memory_bytes | {'s_id': 's206328037', 'p_id': 'p02706', 'u_id': 'u727569092', 'date': '1587345857', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1708', '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>\n#include<stdlib.h>\n#include<string.h>\n#include<math.h>\ntypedef long long ll;\n\nint main()\n{\n\n int n,m,q=0... |
CDSS_371705 | CDSS | #include <stdio.h>
#include <string.h>
int main(void){
int n, tsum=0, hsum=0, i;
char t[100], h[100];
scanf("%d", &n);
for(i=0; i<n; i++){
scanf("%s %s", t, h);
if(strcmp(t, h) == 0){
hsum++;
tsum++;
}else if(strcmp(t, h) < 0){
tsum = tsu... | 2,036 | memory_bytes | {'s_id': 's835382085', 'p_id': 'p02421', 'u_id': 'u212392281', 'date': '1532806138', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2036', 'code_size': '465'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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, tsum=0, hsum=0, i;\n char t[100], h[100];\n \n scanf(\"%... |
CDSS_444298 | CDSS | #include <stdio.h>
int main()
{
int i, j;
int n, m, sum, a[10000];
sum = 0;
scanf("%d%d", &n, &m);
for(i = 0; i < m; i++){
scanf("%d", &a[i]);
sum += a[i];
}
if(sum <= n){
printf("%d\n", n - sum);
}else{
printf("-1\n");
}
return 0;
} | 1,716 | memory_bytes | {'s_id': 's049884374', 'p_id': 'p02706', 'u_id': 'u136798224', 'date': '1587344876', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '1716', '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 i, j;\n int n, m, sum, a[10000];\n sum = 0;\n \n scanf(\"%d%d\", &n, &m);\n for(i = 0;... |
CDSS_681070 | CDSS | #include<stdio.h>
#include<string.h>
int main(){
char s[99];
scanf("%s",s);
puts(strstr(s,"AC")?"Yes":"No");
} | 128 | memory_bytes | {'s_id': 's908115329', 'p_id': 'p03567', 'u_id': 'u382163500', 'date': '1590699263', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '114'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\tchar s[99];\n\tscanf(\"%s\",s);\n\n\tputs(strstr(s,\"AC\")?\"Yes\":\"No\");\n}\n... |
CDSS_108691 | CDSS | #include <stdio.h>
#include <stdlib.h>
int main() {
int n = 0;
int h = 0;
int destn = 0;
int lx;
int ly;
int x;
int y;
int result = 0;
int big;
int small;
int xs;
int ys;
int i = 0;
scanf("%d%d%d", &n, &h, &destn);
for(i = 0; i < destn; ++i) {
scanf("%d%d", &x, &y);
if(i >= 1) {
... | 596 | memory_bytes | {'s_id': 's457217745', 'p_id': 'p00517', 'u_id': 'u372334046', 'date': '1430309824', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '764'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 int n = 0;\n int h = 0;\n int destn = 0;\n int lx;\n int ly;\n int x;\... |
CDSS_401849 | CDSS | #include <stdio.h>
int main(void){
int x[5], i;
scanf("%d %d %d %d %d", &x[0], &x[1], &x[2], &x[3], &x[4]);
for(i=0; i<5; i++){
if(x[i]==0){
printf("%d", i+1);
}
}
return 0;
} | 1,700 | memory_bytes | {'s_id': 's390061261', 'p_id': 'p02639', 'u_id': 'u528999916', 'date': '1592493181', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '7', 'memory': '1700', 'code_size': '200'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 x[5], i;\n scanf(\"%d %d %d %d %d\", &x[0], &x[1], &x[2], &x[3], &x[4]);\n for(i=0; i<5... |
CDSS_193312 | CDSS | #include<stdio.h>
int main(){
int i,j,count=0,n,q,key,l,r,mid;
int a[100000],b[100000];
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d",&a[i]);
}
scanf("%d",&q);
for(i=0;i<q;i++){
scanf("%d",&b[i]);
}
for(j=0;j<q;j++){
key=b[j];
a[n]=key;
l=0;
r=n;
while(l<=r){
mid=(l+r)/2;
if(a[mid]==key){
count... | 2,420 | memory_bytes | {'s_id': 's784270521', 'p_id': 'p02268', 'u_id': 'u888751817', 'date': '1529982529', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2420', 'code_size': '443'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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,count=0,n,q,key,l,r,mid;\n int a[100000],b[100000];\n scanf(\"%d\",&n);\n for(i=0;i<n;i++... |
CDSS_236216 | CDSS | #include<stdio.h>
#include<math.h>
int main(){
int s[1000];
int n,i;
double a,m,z;
while(1){
scanf("%d",&n);
if(!n)
return 0;
m=0;
for(i=0;i<n;i++){
scanf("%d",&s[i]);
m+=s[i];
}
m=m/n;
z=0;
for(i=0;i<n;i++)
z+=(s[i]-m)*(s[i]-m);
a=sqrt(z/n);... | 636 | memory_bytes | {'s_id': 's701261927', 'p_id': 'p02381', 'u_id': 'u533679381', 'date': '1398624860', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '636', 'code_size': '349'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<math.h>\n \nint main(){\n int s[1000];\n int n,i;\n double a,m,z;\n \n while(1){\n scanf(\"%d\",&n)... |
CDSS_423959 | CDSS | #include<stdio.h>
int main()
{
int n,m,h[100000],a[100000],b[100000];
int i,j,c=0,x[100000];
scanf("%d %d",&n,&m);
for(i=1;i<=n;i++){
scanf("%d",&h[i]);
x[i]=0;
}
for(i=1;i<=m;i++){
scanf("%d %d",&a[i],&b[i]);
if(h[a[i]]==h[b[i]]){
x[a[i]]=1;
x[b[i]]=1;
}
if(h[a[i]]>h[b[i]]){
x[b[i]]=1;
}
... | 3,264 | memory_bytes | {'s_id': 's910791213', 'p_id': 'p02689', 'u_id': 'u785727223', 'date': '1598218815', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '44', 'memory': '3264', 'code_size': '444'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 n,m,h[100000],a[100000],b[100000];\n\tint i,j,c=0,x[100000];\n\tscanf(\"%d %d\",&n,&m);\n\tfor... |
CDSS_230978 | CDSS | #include<stdio.h>
#define N 2000000
#define INFTY 2000000010
void maxHeapify(int);
int extractMax(void);
void increaseKey(int,int);
void insert(int);
int parent(int);
int left(int);
int right(int);
int size,A[N];
int main(){
int key;
char com[10];
while(1){
scanf("%s",com);
if(com[0]=='e' && com[1... | 5,760 | memory_bytes | {'s_id': 's540445561', 'p_id': 'p02289', 'u_id': 'u317162027', 'date': '1548149573', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '290', 'memory': '5760', 'code_size': '1451'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 2000000\n#define INFTY 2000000010\n\nvoid maxHeapify(int);\nint extractMax(void);\nvoid increaseKey(int... |
CDSS_361410 | CDSS | #include <stdio.h>
int main(void){
int i=0;
char str[1200];
gets(str);
while(1)
{
if(str[i] == '\0')
{
break;
}
if('a' <= str[i] && str[i] <= 'z')
{
str[i] -= 0x20;
}
else if('A' <= str[i] && str[i] <= 'Z')
{
str[i] +... | 524 | memory_bytes | {'s_id': 's317835405', 'p_id': 'p02415', 'u_id': 'u552648582', 'date': '1421378758', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', '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 int i=0;\n char str[1200];\n\n gets(str);\n\n while(1)\n {\n if(str[i] == '\\0')\n... |
CDSS_164651 | CDSS | #include<stdio.h>
#include<stdlib.h>
int main(void){
int N,i,min,max;
int *F;
while(1){
scanf("%d",&N);
if(N>=2 && N<=200000)break;
}
F = (int*)malloc(sizeof(int)*N);
for(i=0;i<N;i++){
while(1){
scanf("%d",&F[i]);
if(F[i]>=1 && F[i]<=1000000000)break;
}
}
min=F[0];
... | 2,304 | memory_bytes | {'s_id': 's146145980', 'p_id': 'p02258', 'u_id': 'u231643476', 'date': '1533805584', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2304', '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#include<stdlib.h>\n\nint main(void){\n int N,i,min,max;\n int *F;\n \n while(1){\n scanf(\"%d\",&N);\n \n i... |
CDSS_333684 | CDSS | #include <stdio.h>
int main(void){
int data[2];
int i, j;
while(1){
scanf("%d %d", &data[0], &data[1]);
if(data[0] == 0 && data[1] == 0){
return 0;
}
for(i=0 ; i < data[0] ; i++){
for(j=0 ; j < data[1] ; j++){
if(i == 0 || i == data[0] - 1){
printf("#");
}
else if(j == 0 || j == ... | 572 | memory_bytes | {'s_id': 's091170478', 'p_id': 'p02404', 'u_id': 'u212103396', 'date': '1479305084', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '572', 'code_size': '438'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 data[2];\n\tint i, j;\n\t\n\twhile(1){\n\t\tscanf(\"%d %d\", &data[0], &data[1]);\n\t\tif... |
CDSS_372247 | CDSS | #include <stdio.h>
#include <string.h>
int main(void){
char temp, str[1001], re[1001], p[101];
int i, j, a, b, q;
scanf("%s", str);
scanf("%d", &q);
for(i = 0; i < q; i++){
scanf(" %s%d%d", p, &a, &b);
if(strcmp(p, "print") == 0){
for(j = a; j <= b; j++){
printf("%c", str[j]);
}
... | 576 | memory_bytes | {'s_id': 's368050736', 'p_id': 'p02422', 'u_id': 'u084980375', 'date': '1502371683', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '576', 'code_size': '639'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n \nint main(void){\n char temp, str[1001], re[1001], p[101];\n int i, j, a, b, q;\n \n sca... |
CDSS_620206 | CDSS | #include <stdio.h>
int main(void) {
int a, b;
scanf("%d %d", &a, &b);
if ((a & 0x01) && (b & 0x01)) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
} | 128 | memory_bytes | {'s_id': 's170745265', 'p_id': 'p03260', 'u_id': 'u827141374', 'date': '1550432562', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '180'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\n int a, b;\n scanf(\"%d %d\", &a, &b);\n\n if ((a & 0x01) && (b & 0x01)) {\n printf(\"Ye... |
CDSS_625470 | CDSS | #include <stdio.h>
int main(void)
{
int a, b;
scanf ("%d%d", &a, &b);
printf ("%d\n", (a - 1) * (b - 1));
return (0);
}
| 128 | memory_bytes | {'s_id': 's126483063', 'p_id': 'p03280', 'u_id': 'u278788045', 'date': '1534640543', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '137'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n int a, b;\n scanf (\"%d%d\", &a, &b);\n printf (\"%d\\n\", (a - 1) * (b - 1));\n ... |
CDSS_192070 | CDSS | #include <stdio.h>
#define N 100000
#define Q 50000
int main()
{
int S[N],T[Q],C=0;
int n,q,i;
int left,right,mid,key;
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++){
key = T[i];
left = 0;
right = n;
... | 1,184 | memory_bytes | {'s_id': 's768556272', 'p_id': 'p02268', 'u_id': 'u875311313', 'date': '1462936370', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '1184', 'code_size': '536'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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#define Q 50000\n\nint main()\n{\n int S[N],T[Q],C=0;\n int n,q,i;\n int left,right,mid,key;\... |
CDSS_502565 | CDSS | #include <stdio.h>
int main(){
int n,s=0;
scanf("%d", &n);
char str[50];
scanf("%s", &str);
for(int i=0; i < n; ++i){
if (str[i]=='A' && str[(i+1)]=='B' && str[(i+2)]=='C'){
++s;
}
}
printf("%d", s);
return 0;
}
| 128 | memory_bytes | {'s_id': 's701652103', 'p_id': 'p02812', 'u_id': 'u218883826', 'date': '1583405538', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '267'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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,s=0;\n scanf(\"%d\", &n);\n char str[50];\n scanf(\"%s\", &str);\n\n for(int ... |
CDSS_593007 | 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>
#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(a, b) ((a) > (b) ... | 5,120 | memory_bytes | {'s_id': 's213201140', 'p_id': 'p03108', 'u_id': 'u615782628', 'date': '1551648536', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '38', 'memory': '5120', 'code_size': '2961'} | [
{
"content": "Your task is to predict the memory footprint (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_332300 | CDSS | #include <stdio.h>
int main(){
int H,W;
for(;;){
scanf("%d%d", &H,&W);
if(H == 0 && W == 0){
break;
}
for(int i = 0; i < H; i++) {
for (int j = 0; j < W; j++) {
printf("#");
}
printf("\n");
}
printf("... | 2,112 | memory_bytes | {'s_id': 's009447351', 'p_id': 'p02403', 'u_id': 'u798159403', 'date': '1592958009', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', '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>\nint main(){\n int H,W;\n for(;;){\n scanf(\"%d%d\", &H,&W);\n if(H == 0 && W == 0){\n ... |
CDSS_384821 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#define ll long long
#define rep(i,l,r)for(ll i=(l);i<(r);i++)
#define repp(i,l,r,k)for(ll i=(l);i<(r);i+=(k))
#define INF ((1LL<<62)-(1LL<<31))
#define max(p,q)((p)>(q)?(p):(q))
#define min(p,q)((p)<(q)?(p):(q))
#define bit(n,m)(((n)>>(m))&1)... | 1,736 | memory_bytes | {'s_id': 's787545500', 'p_id': 'p02584', 'u_id': 'u382163500', 'date': '1597518500', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1736', 'code_size': '1038'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <math.h>\n#define ll long long\n#define rep(i,l,r)for(ll i=(l);... |
CDSS_355243 | CDSS | #include<stdio.h>
int main(void){
int i,j,k,n,x;
int count = 0;
while(1){
scanf("%d %d\n",&n ,&x);
if (n == 0 && x == 0){
break;
}
for(i=1;i <= n;i++){
for(j=1;j <= n;j++){
for(k=1;k <= n;k++){
if (i+j+k == x && i != j && i != k && j != k && i < j && j < k && i < k){
count += 1;
}
}
}
}
printf("%d\n",count);
count=0;
}... | 604 | memory_bytes | {'s_id': 's271544975', 'p_id': 'p02412', 'u_id': 'u588491011', 'date': '1491724991', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '604', 'code_size': '332'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\nint i,j,k,n,x;\nint count = 0;\nwhile(1){\nscanf(\"%d %d\\n\",&n ,&x);\nif (n == 0 && x == 0){\nbr... |
CDSS_204560 | CDSS | #include<stdio.h>
#define MAX 500000
#define INFTY 2000000000
int g_count;
void merge(int [], int, int, int);
void mergeSort(int [], int, int);
int main(){
int A[MAX], n, i;
scanf("%d",&n);
for(i = 0; i < n; i++) scanf("%d",&A[i]);
mergeSort(A,0,n);
for(i = 0; i < n; i++){
if(i != 0) printf(" ");... | 5,644 | memory_bytes | {'s_id': 's045658224', 'p_id': 'p02272', 'u_id': 'u916257595', 'date': '1545111652', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '100', 'memory': '5644', 'code_size': '999'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 500000\n#define INFTY 2000000000\n\nint g_count;\n\nvoid merge(int [], int, int, int);\nvoid mergeSor... |
CDSS_219164 | CDSS | #include <stdio.h>
struct Node {
int parent;
int left;
int right;
};
int n;
void Preorder(int);
void Inorder(int);
void Postorder(int);
struct Node tree[30];
int dipth[30],height[30];
int main(){
int i,id,left,right,root;
scanf("%d",&n);
for(i=0;i<n;i++)tree[i].parent=tree[i].left=tree[i].right=-1;
for(i=... | 2,104 | memory_bytes | {'s_id': 's499641505', 'p_id': 'p02281', 'u_id': 'u322648397', 'date': '1530850883', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '1070'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nstruct Node {\n int parent;\n int left;\n int right;\n};\nint n;\nvoid Preorder(int);\nvoid Inorder(int);\nvoid... |
CDSS_122053 | CDSS | #include <stdio.h>
int main(){
int i,n,m,p,k,x[101];
int sum,s,re;
while(1){
scanf("%d%d%d",&n,&m,&p);
if(n==0&&m==0&&p==0) break;
sum=0;
for(i=1;i<=n;i++){
scanf("%d",&x[i]);
sum+=x[i];
if(i==m) {
k=x[i];
}
}
re=(double)100*sum*(100-p)/100;
if(k!=0)re... | 596 | memory_bytes | {'s_id': 's718543041', 'p_id': 'p01143', 'u_id': 'u084540620', 'date': '1435759144', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '625'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 i,n,m,p,k,x[101];\n int sum,s,re;\n while(1){\n scanf(\"%d%d%d\",&n,&m,&p);\n if(n==0... |
CDSS_425920 | CDSS | #include<stdio.h>
int main()
{
int K, A, B, x, y, flag = 0;
scanf("%d", &K);
scanf("%d %d", &A, &B);
for(x=A; x<=B; x++){
y=x%K;
if(y==0){
flag++;
break;
}
}
if(flag>0) printf("OK\n");
else printf("NG\n");
return 0;
}
| 1,664 | memory_bytes | {'s_id': 's531595752', 'p_id': 'p02693', 'u_id': 'u863370423', 'date': '1591855492', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1664', 'code_size': '298'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n int K, A, B, x, y, flag = 0;\n scanf(\"%d\", &K);\n scanf(\"%d %d\", &A, &B);\n for(x=A... |
CDSS_350165 | CDSS | #include <stdio.h>
int p[4][3][10] = {0}, b, f, r, v, n;
int main()
{
scanf("%d", &n);
for (int i = 0; i < n; i++)
{
scanf("%d %d %d %d", &b, &f, &r, &v);
p[b - 1][f - 1][r - 1] += v;
}
for (int b = 0; b < 4; b++)
{
for (int f = 0; f < 3; f++)
{
... | 2,108 | memory_bytes | {'s_id': 's886264641', 'p_id': 'p02409', 'u_id': 'u804482668', 'date': '1576223276', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '566'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 p[4][3][10] = {0}, b, f, r, v, n;\n\nint main()\n{\n scanf(\"%d\", &n);\n for (int i = 0; i < n; i++)\... |
CDSS_672349 | CDSS | #include <stdio.h>
int main(void){
int i,work=0,n,loopable;
scanf("%d",&n);
int num[n];
for(i=0;i<n;i++)
scanf("%d",&num[i]);
while(1){
loopable=1;
for(i=0;i<n;i++)
if(num[i]%2==1) loopable=0;
if(loopable==0) break;
for(i=0;i<n;i++)
num[i]=num[i]/2;
... | 128 | memory_bytes | {'s_id': 's725248347', 'p_id': 'p03494', 'u_id': 'u112319905', 'date': '1590115234', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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,work=0,n,loopable;\n\n scanf(\"%d\",&n);\n int num[n];\n\n for(i=0;i<n;i++)\n ... |
CDSS_490313 | CDSS | #define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main(void)
{
char A[11] = {}, B[11] = {};
int numA = 0, numB = 0;
char Getstr[11] = {};
scanf("%s %s", A, B);
scanf("%d %d", &numA, &numB);
scanf("%s", Getstr);
for (int i = 0; Getstr[i] == A[i]; i++)
{
if (Getstr[i] != A[i])
{
break;
}
else... | 128 | memory_bytes | {'s_id': 's743380389', 'p_id': 'p02777', 'u_id': 'u013330561', 'date': '1581279385', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '671'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#define _CRT_SECURE_NO_WARNINGS\n\n#include <stdio.h>\n\nint main(void)\n{\n\tchar A[11] = {}, B[11] = {};\n\tint numA = 0, numB = 0;\... |
CDSS_108329 | CDSS | #include <stdio.h>
int main(){
int stats[5], sum = 0, ave, i;
for(i = 0; i < 5; i++){
scanf("%d", &stats[i]);
if(stats[i] < 40) stats[i] = 40;
sum = sum + stats[i];
}
ave = sum / 5;
printf("%d\n", ave);
return 0;
} | 600 | memory_bytes | {'s_id': 's266168239', 'p_id': 'p00515', 'u_id': 'u536452247', 'date': '1447856183', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '239'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 stats[5], sum = 0, ave, i;\n for(i = 0; i < 5; i++){\n scanf(\"%d\", &stats[i]);\n if(... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.