identifier string | space string | input string | target float64 | metric_type string | metadata string | messages list |
|---|---|---|---|---|---|---|
CDSS_48175 | CDSS | #include <stdio.h>
int main(void){
int d,s=0;
int i;
while(scanf("%d",&d)!=EOF){
s=0;
for(i=1;i*d<600;i++){
s+=(i*d)*(i*d)*d;
}
printf("%d\n",s);
}
return(0);
} | 596 | memory_bytes | {'s_id': 's408530116', 'p_id': 'p00014', 'u_id': 'u174623154', 'date': '1346744720', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '192'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\n int d,s=0;\n int i;\n while(scanf(\"%d\",&d)!=EOF){\n s=0;\n for(i=1;i*d<600;i++){\n ... |
CDSS_671931 | CDSS | #include <stdio.h>
int main(void){
int v=0;
char s[4];
scanf("%s",s);
for(int i=0;i<3;i++){
if(s[i]=='1'){v++;}
}
printf("%d\n",v);
return 0;
} | 128 | memory_bytes | {'s_id': 's326605826', 'p_id': 'p03493', 'u_id': 'u690536347', 'date': '1537374240', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '162'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n int v=0;\n char s[4];\n scanf(\"%s\",s);\n for(int i=0;i<3;i++){\n if(s[i]=='1'){v++;}\... |
CDSS_601810 | CDSS | //set many funcs template
//Ver.20181228
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<stdbool.h>
#include<time.h>
#define inf 1072114514
#define llinf 4154118101919364364
#define mod 1000000007
#define pi 3.1415926535897932384
#define size 512
int max(int a,int b){if(a>b){return a;}return b;}
int m... | 12,672 | memory_bytes | {'s_id': 's846063340', 'p_id': 'p03157', 'u_id': 'u721060623', 'date': '1547324916', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '8', 'memory': '12672', 'code_size': '5883'} | [
{
"content": "Your task is to predict the memory 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.20181228\n#include<stdio.h>\n#include<string.h>\n#include<stdlib.h>\n#include<stdbool.h>\n#include<ti... |
CDSS_680089 | CDSS | #include<stdio.h>
int main()
{
int G,R,x;
scanf("%d %d",&R,&G);
x=(2*G)-R;
printf("%d",x);
return 0;
}
| 128 | memory_bytes | {'s_id': 's258982953', 'p_id': 'p03563', 'u_id': 'u353919145', 'date': '1516249300', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '123'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n int G,R,x;\n scanf(\"%d %d\",&R,&G);\n x=(2*G)-R;\n printf(\"%d\",x);\n return 0;\n}... |
CDSS_735638 | CDSS | #include <stdio.h>
int main() {
char s[17];
char c[17] = "CODEFESTIVAL2016";
int i,count;
scanf("%s\n", s);
count = 0;
for (i = 0; i < 16; i++) {
if (s[i] != c[i]) {
count++;
}
}
printf("%d\n", count);
return 0;
} | 128 | memory_bytes | {'s_id': 's338233158', 'p_id': 'p03970', 'u_id': 'u997325490', 'date': '1476118970', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '313'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 s[17];\n char c[17] = \"CODEFESTIVAL2016\";\n int i,count;\n \n scanf(\... |
CDSS_631730 | CDSS | #include<stdio.h>
#include<string.h>
int main(){
long a[3000],ans=0,b=1;
int n;
scanf("%d",&n);
for(int i=0;i<n;i++){
scanf("%ld",&a[i]);
ans+=a[i]-1;
}
printf("%ld\n",ans);
} | 128 | memory_bytes | {'s_id': 's171450076', 'p_id': 'p03294', 'u_id': 'u855429581', 'date': '1532222506', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '195'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 long a[3000],ans=0,b=1;\n int n;\n scanf(\"%d\",&n);\n for(int i=0;i<n;i++){\... |
CDSS_486005 | CDSS | #include<stdio.h>
int main(void){
int n,sum=0,ave1,ave2,st1=0,st2=0;
scanf("%d",&n);
int a[n];
for(int i=0;i<n;++i){
scanf("%d",&a[i]);
}
for(int k=0;k<n;++k){
sum += a[k];
}
ave1 = sum/n;
ave2 = ave1 + 1;
for(int j=0;j<n;++j){
st1 += (a[j]-ave1)*(a[j]-av... | 128 | memory_bytes | {'s_id': 's224165537', 'p_id': 'p02767', 'u_id': 'u043363214', 'date': '1582425804', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '506'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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,sum=0,ave1,ave2,st1=0,st2=0;\n scanf(\"%d\",&n);\n int a[n];\n for(int i=0;i<... |
CDSS_571992 | CDSS | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdint.h> // uint64_t
#define max(a,b) ((a) > (b) ? (a) : (b))
#define min(a,b) ((a) > (b) ? (b) : (a))
int get_int(void) {
int num;
scanf("%d", &num);
return num;
}
int get_int2(int *a1, int *a2) {
scanf("%d %d", a1, a2);
return 0;
}
#d... | 128 | memory_bytes | {'s_id': 's401781316', 'p_id': 'p03043', 'u_id': 'u866370648', 'date': '1590158200', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '994'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n#include <stdint.h> // uint64_t\n\n#define max(a,b) ((a) > (b) ? (a) : (... |
CDSS_671468 | CDSS | #include<stdio.h>
int main() {
char a,b,s;
scanf("%c%c%c",&a,&b,&s);
if(a=='1'&&b=='1'&&s=='1'){
printf("3\n");
} else if((a=='1'&&b=='1'&&s=='0')||(a=='1'&&b=='0'&&s=='1')||(a=='0'&&b=='1'&&s=='1')){
printf("2");}
else if((a=='0'&&b=='0'&&s=='1')||(a=='0'&&b=='1'&&s=='0')||(a=='1'&&b=='0'&&... | 128 | memory_bytes | {'s_id': 's736423930', 'p_id': 'p03493', 'u_id': 'u816631826', 'date': '1576695343', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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>\nint main() {\n char a,b,s;\n scanf(\"%c%c%c\",&a,&b,&s);\n if(a=='1'&&b=='1'&&s=='1'){\n printf(\"3... |
CDSS_20018 | CDSS | #include <stdio.h>
int main(void)
{
int a,b;
for(a=1;a<10;a++)
for(b=1;b<10;b++)
printf("%dx%d=%d\n",a,b,a*b);
return 0;
}
| 1,920 | memory_bytes | {'s_id': 's226800630', 'p_id': 'p00000', 'u_id': 'u907726044', 'date': '1527902070', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1920', 'code_size': '132'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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;\n\tfor(a=1;a<10;a++)\n\t\tfor(b=1;b<10;b++)\n\t\t\tprintf(\"%dx%d=%d\\n\",a,b,a*b)... |
CDSS_311919 | CDSS | #include<stdio.h>
int main(void)
{
int a,b,d,r;
double f;
scanf("%d %d",&a,&b);
d = a / b;
r = a % b;
f = (double)a / b;
printf("%d %d %f",d,r,f);
return 0;
} | 636 | memory_bytes | {'s_id': 's067426168', 'p_id': 'p02399', 'u_id': 'u903234339', 'date': '1387163507', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '636', 'code_size': '196'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void)\n\n{\n int a,b,d,r;\n double f;\n\n scanf(\"%d %d\",&a,&b);\n\n d = a / b;\n r = a ... |
CDSS_316107 | CDSS | #include <stdio.h>
#include <math.h>
int main(void){
double r,x,y;
scanf("%lf\n",&r);
x = 3.14159265359 * r * r;
y = 2 * r * 3.14159265359;
printf("%.8lf %.8lf\n",x,y);
return 0;
} | 1,748 | memory_bytes | {'s_id': 's835648613', 'p_id': 'p02400', 'u_id': 'u970551499', 'date': '1512778217', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1748', 'code_size': '225'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n\nint main(void){\n double r,x,y;\n \n scanf(\"%lf\\n\",&r);\n \n x = 3.14159265... |
CDSS_196547 | CDSS | #include<stdio.h>
#include<string.h>
#include<stdlib.h>
#define SIZE 10000
struct WORD {
char value[13];
struct WORD *next;
};
struct WORD* HashTable[SIZE]; //default: all NULL
int HashFunc(char s[]) {
long long hash = 0;
for (int i = 0; s[i] != '\0'; i++) {
hash += s[i] * (i + 1);
}
return (int)(hash * 13 % SI... | 19,612 | memory_bytes | {'s_id': 's511990982', 'p_id': 'p02269', 'u_id': 'u331071112', 'date': '1525918893', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1100', 'memory': '19612', 'code_size': '1052'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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#define SIZE 10000\nstruct WORD {\n\tchar value[13];\n\tstruct WORD *next;\... |
CDSS_257925 | CDSS | #include<stdio.h>
int main()
{
int x, y;
scanf("%d %d\n",&x, &y);
int area, perimeter;
area=x*y;
perimeter=2*(x+y);
printf("%d %d\n",area, perimeter);
return 0;
}
| 2,088 | memory_bytes | {'s_id': 's514984460', 'p_id': 'p02389', 'u_id': 'u420569062', 'date': '1580968977', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2088', 'code_size': '196'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main()\n{\n int x, y;\n scanf(\"%d %d\\n\",&x, &y);\n\n int area, perimeter;\n area=x*y;\n per... |
CDSS_337866 | CDSS | #include<stdio.h>
int main(void){
int i, n;
//値を入力
scanf("%d", &n);
//3の倍数,3のつく数字を出力
for(i = 1; i <= n; i++){
int x = i;
if(x % 3 == 0){
printf(" %d", i);
}else{
for(x = i; x > 0; x /= 10){
if(x % 10 == 3){
printf(" %d", i);
break;
}
}
}
}
printf("\n");
return 0;
} | 600 | memory_bytes | {'s_id': 's613119450', 'p_id': 'p02406', 'u_id': 'u574287827', 'date': '1425436024', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '338'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 i, n;\n\t//値を入力\n\tscanf(\"%d\", &n);\n\t//3の倍数,3のつく数字を出力\n\tfor(i = 1; i <= n; i++){\n\t\ti... |
CDSS_480335 | CDSS | #include <stdio.h>
int min_of_common(int a0, int a1, int b0, int b1) {
if (a0 > a1 || b0 > b1) return -1;
if (a0 >= b0 && a0 <= b1) return a0;
if (b0 >= a0 && b0 <= a1) return b0;
return -1;
}
int modify(int current, int target, double tax) {
while ((int)(current * tax) < target) current++;
while ((int)(c... | 128 | memory_bytes | {'s_id': 's658224395', 'p_id': 'p02755', 'u_id': 'u177316612', 'date': '1584831214', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '708'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 min_of_common(int a0, int a1, int b0, int b1) {\n if (a0 > a1 || b0 > b1) return -1;\n if (a0 >= b0 && a0 ... |
CDSS_252487 | CDSS | #include <stdio.h>
int main(void){
int a,b,c,d;
scanf("%d %d",&a,&b);
c = a * b;
d = 2*(a+b);
printf("%d %d\n",c,d);
return 0;
} | 596 | memory_bytes | {'s_id': 's581235256', 'p_id': 'p02389', 'u_id': 'u090788074', 'date': '1465526445', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '142'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n int a,b,c,d;\n scanf(\"%d %d\",&a,&b);\n c = a * b;\n d = 2*(a+b);\n printf(\"%d %d\\n\",... |
CDSS_362885 | CDSS | #include<stdio.h>
int main(){
int i;
char st,al[53]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
do{
scanf("%c", &st);
for(i=0;i<53;i++){
if(al[i] ==st){
st = al[(i+26)%52];
break;
}}
printf("%c",st);
... | 2,060 | memory_bytes | {'s_id': 's162161450', 'p_id': 'p02415', 'u_id': 'u487166123', 'date': '1564813439', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2060', 'code_size': '373'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n int i;\n char st,al[53]=\"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n \n ... |
CDSS_722398 | CDSS | #include <stdio.h>
int main(void){
int a, b, c, d;
int s1, s2;
scanf("%d %d %d %d", &a, &b, &c, &d);
s1 = a * b;
s2 = c * d;
printf("%d", s1 >= s2 ? s1 : s2);
return 0;
} | 1,716 | memory_bytes | {'s_id': 's228658239', 'p_id': 'p03826', 'u_id': 'u913482608', 'date': '1597672117', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1716', '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#include <stdio.h>\n\nint main(void){\n int a, b, c, d;\n int s1, s2;\n\n scanf(\"%d %d %d %d\", &a, &b, &c, &d);\n s1 = a... |
CDSS_222293 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
struct Node {
int key;
struct Node *rig, *lef, *parent;
};
struct Node *root,*NIL;
void insert(int);
void inorder(struct Node *);
void preorder(struct Node *);
int main(){
int n,i,x;
char c[10];
char in[10]="insert";
char pri[10]="print";
sca... | 25,240 | memory_bytes | {'s_id': 's971895027', 'p_id': 'p02283', 'u_id': 'u684290568', 'date': '1579520713', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '330', 'memory': '25240', 'code_size': '1266'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\nstruct Node {\n int key;\n struct Node *rig, *lef, *parent;\n};\n\ns... |
CDSS_248024 | CDSS | #include<stdio.h>
int main(void)
{
int x,s;
scanf("%d",&x);
s=x*x*x;
printf("%d\n",s);
return 0;
} | 596 | memory_bytes | {'s_id': 's788762822', 'p_id': 'p02388', 'u_id': 'u249774651', 'date': '1386035671', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '119'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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,s;\n scanf(\"%d\",&x);\n s=x*x*x;\n printf(\"%d\\n\",s);\n return 0;\n}\... |
CDSS_543165 | CDSS | #include <stdio.h>
int main(){
int n,fl=1;
long max;
long *h;
scanf("%d",&n);
h=(long*)malloc(n*sizeof(long));
for (int i=0;i<n;i++) scanf("%ld",&h[i]);
max=h[0];
for (int i=1;i<n;i++){
if (h[i]>max){
max=h[i];
continue;
}
if(max>h[i]+1){
fl=0;
break;
}
}
free... | 1,024 | memory_bytes | {'s_id': 's872229492', 'p_id': 'p02953', 'u_id': 'u351299035', 'date': '1564969166', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '15', 'memory': '1024', '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 int n,fl=1;\n long max;\n long *h;\n scanf(\"%d\",&n);\n h=(long*)malloc(n*sizeof(long));\n fo... |
CDSS_582414 | CDSS | #include<stdio.h>
int main(){
int a,b,c,d,e,k;
scanf("%d%d%d%d%d%d",&a,&b,&c,&d,&e,&k);
if(e - a > k ){
printf(":(");
}else if(d-a > k){
printf(":(");
}else if(c-a > k){
printf(":(");
}else if(b-a > k){
printf(":(");
}else if(c-b > k){
printf(":(");
}else if(d-b > k){
printf... | 128 | memory_bytes | {'s_id': 's940458943', 'p_id': 'p03075', 'u_id': 'u132583371', 'date': '1589208607', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '522'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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,c,d,e,k;\n scanf(\"%d%d%d%d%d%d\",&a,&b,&c,&d,&e,&k);\n if(e - a > k ){\n printf(\":(\"... |
CDSS_93455 | CDSS | #include<stdio.h>
int main(void){
int i,k,p;
int dev;
scanf("%d",&i);
while(i > 0){
scanf(" %d %d",&k,&p);
dev = k % p;
if(dev == 0){
dev = p;
}
printf("%d\n",dev);
i--;
}
return(0);
} | 596 | memory_bytes | {'s_id': 's851071605', 'p_id': 'p00292', 'u_id': 'u876735840', 'date': '1434353828', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '229'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void){\n\t\n\tint i,k,p;\n\tint dev;\n\t\n\tscanf(\"%d\",&i);\n\t\n\twhile(i > 0){\n\t\t\n\t\tscanf(\" %... |
CDSS_728477 | CDSS | #include <stdio.h>
#include <string.h>
int i;
int main(void)
{
char s[100001];
char t[4][8]={"maerd","remaerd","esare","resare"};// <-4種
char tmp;
scanf("%s",s);
int len_s=(int)strlen(s);
for(int k=0;k<len_s/2;k++){
tmp=s[k];
s[k]=s[len_s-1-k];
s[len_s-1-k]=tmp;
}
... | 256 | memory_bytes | {'s_id': 's006975715', 'p_id': 'p03854', 'u_id': 'u912025537', 'date': '1562303610', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '869', 'memory': '256', 'code_size': '1210'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 i;\nint main(void)\n{\n char s[100001];\n char t[4][8]={\"maerd\",\"remaerd\",\"e... |
CDSS_206820 | CDSS | #include <stdio.h>
#include <stdlib.h>
#define MAX 2000001
#define VMAX 10000
//void CoutingSort(int [], int n);
int main(){
int *A, *B;
int n,i, j;
int C[VMAX+1];
scanf("%d", &n);
A = malloc(sizeof(int)*n+1);
B = malloc(sizeof(int)*n+1);
for ( i = 0; i <= VMAX; i++ ) C[i] = 0;
... | 17,412 | memory_bytes | {'s_id': 's661567633', 'p_id': 'p02275', 'u_id': 'u779655017', 'date': '1545283890', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '230', 'memory': '17412', 'code_size': '693'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#define MAX 2000001\n#define VMAX 10000\n\n\n//void CoutingSort(int [], int n);\n\nint main()... |
CDSS_377401 | CDSS | #include<stdio.h>
int n,i;
int a[300000],b[300000],c[300000],d[300000];
int main(){
scanf("%d",&n);
for (i=1;i<=n;i++)
scanf("%d",&a[i]);
for (i=1;i<=n;i++)
scanf("%d",&b[i]);
for (i=1;i<=n;i++)
c[i]=b[n-i+1];
int flag=1;
for (i=1;i<=n;i++)
if (c[i]==a[i])
flag=0;
if (flag==1){
printf("Yes\n")... | 4,880 | memory_bytes | {'s_id': 's012566451', 'p_id': 'p02557', 'u_id': 'u872719242', 'date': '1600070348', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '67', 'memory': '4880', 'code_size': '599'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint n,i;\nint a[300000],b[300000],c[300000],d[300000];\nint main(){\n\tscanf(\"%d\",&n);\n\tfor (i=1;i<=n;i++)\n\t ... |
CDSS_521812 | CDSS | #include<stdio.h>
int main(){
int n;
int d[50];
int ans=0;
scanf("%d",&n);
for(int i=0;i<n;i++){
scanf("%d",&d[i]);
}
for(int i=0;i<n-1;i++){
for(int j=i+1;j<n;j++){
ans+=d[i]*d[j];
//printf("%d\n",ans);
}
}
printf("%d",ans);
return 0;
} | 128 | memory_bytes | {'s_id': 's964080519', 'p_id': 'p02886', 'u_id': 'u955881349', 'date': '1571534389', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '283'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int n;\n int d[50];\n int ans=0;\n scanf(\"%d\",&n);\n for(int i=0;i<n;i++){\n scanf(\"%d\",&... |
CDSS_718730 | CDSS | #include<stdio.h>
int main(){
int n,d[1000010],i,j,k;
char s[100010];
scanf("%d %s",&n,s);
for(i=0;s[i];i++){
if(s[i]-s[(i+1)%n])break;
}
if(s[i]==0){
for(i=0;i<n;i++)printf("%c",s[i]=='o'?'S':'W');
printf("\n");
return 0;
} //printf("%d\n",i);
for(k=0;k<4;k++){
d[i]=k/2;
d[... | 2,816 | memory_bytes | {'s_id': 's795465889', 'p_id': 'p03800', 'u_id': 'u121922047', 'date': '1487472372', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '7', 'memory': '2816', 'code_size': '796'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int n,d[1000010],i,j,k;\n char s[100010];\n scanf(\"%d %s\",&n,s);\n for(i=0;s[i];i++){\n if(s... |
CDSS_547296 | CDSS | #include <stdio.h>
int main()
{
int r;
scanf("%d",&r);
printf("%d",3 * r * r);
}
| 128 | memory_bytes | {'s_id': 's842169832', 'p_id': 'p02969', 'u_id': 'u494609869', 'date': '1563670917', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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:\n#include <stdio.h>\n\nint main()\n{\n int r;\n scanf(\"%d\",&r);\n printf(\"%d\",3 * r * r);\n}\n\nPredict its memory footpri... |
CDSS_381023 | CDSS | #include<stdio.h>
#include<math.h>
#include<string.h>
#include<stdlib.h>
#include<limits.h>
#define MOD 1000000007
#define PI 3.14159265
#define seive_len 1000001
#define p_seive_len 1000001
typedef long long int lli;
int *array;
int seive[seive_len];
int pseive[p_seive_len];
long long int min(long long int a, long ... | 2,152 | memory_bytes | {'s_id': 's070601099', 'p_id': 'p02576', 'u_id': 'u908484929', 'date': '1598122960', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '2152', 'code_size': '2510'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<math.h>\n#include<string.h>\n#include<stdlib.h>\n#include<limits.h>\n#define MOD 1000000007\n#define PI 3.... |
CDSS_304249 | CDSS | #include <stdio.h>
int main(void)
{
int a,b,c,i,count=0;
scanf("%d %d %d",&a,&b,&c);
for(i=a;i<=b;i++){
if(c%i==0) count++;
}
printf("%d\n",count);
return 0;
} | 596 | memory_bytes | {'s_id': 's209914767', 'p_id': 'p02398', 'u_id': 'u792323881', 'date': '1417876080', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '174'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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,i,count=0;\n\t\n\tscanf(\"%d %d %d\",&a,&b,&c);\n\tfor(i=a;i<=b;i++){\n\t\tif(c%i... |
CDSS_95998 | CDSS | #include<stdio.h>
int main(void){
int a, b, x;
scanf("%d %d %d", &a, &b, &x);
while(x%500) x++;
x /= 100;
if(a<b*2){
if(a>=b) printf("%d\n", x/10*a + (x%10)/5*b);
else printf("%d\n", (x/10+!!(x%10))*a);
}else printf("%d\n", x/5*b);
... | 2,148 | memory_bytes | {'s_id': 's861218893', 'p_id': 'p00378', 'u_id': 'u726971073', 'date': '1581090212', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2148', 'code_size': '334'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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, x;\n scanf(\"%d %d %d\", &a, &b, &x);\n\n while(x%500) x++;\n ... |
CDSS_89229 | CDSS | #define M 26
P[M],A[M],B[M];
int R(a){return P[a]==a?a:(P[a]=R(P[a]));}
char s[99];main(k,l,x,y){for(;scanf("%d",&l),l;puts(k<M?"NG":"OK")){
for(k=0;k<M;k++)A[k]=B[k]=0,P[k]=k;
for(k=0;k<l;k++)scanf("%s",s),A[x=*s-97]++,B[y=s[strlen(s)-1]-97]++,P[R(x)]=R(y);
for(k=0;k<M;k++)if(A[k]-B[k]||(A[k]&&R(*s-97)!=R(k)))break... | 584 | memory_bytes | {'s_id': 's066801876', 'p_id': 'p00225', 'u_id': 'u300645821', 'date': '1355216540', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '584', '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#define M 26\nP[M],A[M],B[M];\nint R(a){return P[a]==a?a:(P[a]=R(P[a]));}\nchar s[99];main(k,l,x,y){for(;scanf(\"%d\",&l),l;puts(k<M?\... |
CDSS_311133 | CDSS | #include<stdio.h>
int main(void){
int a,b,d,r;
double f;
scanf("%d %d",&a,&b);
d=a/b;
r=a%b;
f=(double)a/b;
printf("%d %d %lf\n",d,r,f);
return 0;
} | 1,788 | memory_bytes | {'s_id': 's947316058', 'p_id': 'p02399', 'u_id': 'u705537935', 'date': '1513815499', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1788', 'code_size': '148'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 a,b,d,r;\ndouble f;\nscanf(\"%d %d\",&a,&b);\nd=a/b;\nr=a%b;\nf=(double)a/b;\nprintf(\"%d %d %... |
CDSS_130525 | CDSS | #include <stdio.h>
#include <stdlib.h>
int main(void){
int n,fib,f[44],i,f1=1,f2=1;
scanf("%d",&n);
if(n == 0 || n == 1){
fib = 1;
}
else {
for(i = 1 ; i < n ; i++){
fib = f1 + f2;
f1 = f2;
f2 = fib;
}
}
printf("%d\n",fib);
return 0;
} | 0 | memory_bytes | {'s_id': 's887030222', 'p_id': 'p02233', 'u_id': 'u065806587', 'date': '1340938748', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', '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#include <stdlib.h>\n\nint main(void){\n int n,fib,f[44],i,f1=1,f2=1;\n\n scanf(\"%d\",&n);\n\n if(n == 0 || n ... |
CDSS_677463 | CDSS | #include <stdio.h>
int main (){
int x, y, z, ocupado, m=0;
scanf("%d%d%d", &x, &y, &z);
ocupado = z+y+z;
do {
ocupado += y+z;
m++;
} while (ocupado <= x);
printf("%d\n", m);
return 0;
}
| 128 | memory_bytes | {'s_id': 's722397543', 'p_id': 'p03548', 'u_id': 'u109867600', 'date': '1575724800', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '128', '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\nint main (){\n\tint x, y, z, ocupado, m=0;\n\n\tscanf(\"%d%d%d\", &x, &y, &z);\n\n\tocupado = z+y+z;\n\n\tdo {\n... |
CDSS_336599 | CDSS | #include<stdio.h>
int main(void){
int h,w;
while(1){
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++){
if((i+j)%2==0)printf("#");
else printf(".");
}printf("\n");
}printf("\n");
}retu... | 2,044 | memory_bytes | {'s_id': 's629715808', 'p_id': 'p02405', 'u_id': 'u117673497', 'date': '1527154419', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2044', 'code_size': '328'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void){\n int h,w;\n while(1){\n scanf(\"%d%d\",&h,&w);\n if(h==0&&w==0)break;\n ... |
CDSS_130741 | CDSS | #include <stdio.h>
int fibonacci(int);
int F[44];
int main()
{
int n,m,i;
scanf("%d",&n);
for(i=0;i<n;i++){
F[i] = 0;
}
m = fibonacci(n);
printf("%d\n",m);
return 0;
}
int fibonacci(int n)
{
if(n==0 || n==1) return F[n] = 1;
if(F[n]!=0) return F[n];
return F[n] = fibonacci(n-2) + fib... | 2,108 | memory_bytes | {'s_id': 's537764344', 'p_id': 'p02233', 'u_id': 'u239154393', 'date': '1579502182', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '346'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 fibonacci(int);\n\nint F[44];\n\nint main()\n{\n int n,m,i;\n \n scanf(\"%d\",&n);\n\n for(i=0;i<n;i++){\n... |
CDSS_221199 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define NIL -1
typedef struct node{
int key;
struct node *parent;
struct node *left;
struct node *right;
}Node;
void insert(Node **, Node *);
void print(Node *);
void inorderTreeWalk(Node *);
void preorderTreeWalk(Node *);
main(){
int m, key, i;
... | 24,040 | memory_bytes | {'s_id': 's442063214', 'p_id': 'p02283', 'u_id': 'u290461361', 'date': '1434070444', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '430', 'memory': '24040', 'code_size': '1348'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 NIL -1\n\ntypedef struct node{\n int key;\n struct node *par... |
CDSS_593569 | CDSS | #include <stdio.h>
#include <string.h>
int main(void)
{
char u[10][100];
int n, i;
double x[100], s, s1, s2;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%lf",&x[i]);
scanf("%s",u[i]);
}
s1=s2=0;
for(i=0;i<n;i++){
if(strcmp(u[i],"BTC")==0) s1+=x[i];
else s2+=x[i];
}
s=s1*380000.0+s2;
printf... | 384 | memory_bytes | {'s_id': 's699869556', 'p_id': 'p03110', 'u_id': 'u347086824', 'date': '1591303122', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '384', 'code_size': '345'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\nint main(void)\n{\n\tchar u[10][100];\n\tint n, i;\n\tdouble x[100], s, s1, s2;\n\t\n\tscanf(... |
CDSS_672915 | CDSS | #include<stdio.h>
int main(void)
{
int N,i,M;
scanf("%d",&N);
int A[200],B[200];
for(i=0;i<N;i++){
scanf("%d",&A[i]);
}
for(i=0;i<N;i++){
B[i]=0;
}
for(i=0;i<N;i++){
while(A[i]%2==0){
A[i]=A[i]/2;
B[i]=B[i]+1;
}
}
M=B[0];
for(i=1;i<N;i++){
if(B[i]<M){
M=B[i];
}
}
printf(... | 128 | memory_bytes | {'s_id': 's271195369', 'p_id': 'p03494', 'u_id': 'u937747602', 'date': '1523230438', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '345'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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,M;\n\tscanf(\"%d\",&N);\n\t\n\t\n\tint A[200],B[200];\n\t\n\tfor(i=0;i<N;i++){\n\t\t... |
CDSS_65481 | CDSS | #include<stdio.h>
#include<string.h>
int main()
{
int c;
char str[1024];
gets(str);
for(c=0;c<strlen(str);c++){
if(strncmp(&str[c],"apple",5)==0){
str[c]='p';
str[c+1]='e';
str[c+2]='a';
str[c+3]='c';
str[c+4]='h';
}else if(strncmp(&str[c],"peach",5)==0){
str[c]='a';
str[c+1]='p';
str[c+... | 524 | memory_bytes | {'s_id': 's347849602', 'p_id': 'p00050', 'u_id': 'u726704931', 'date': '1500881512', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', 'code_size': '402'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\nint main()\n{\n\tint c;\n\tchar str[1024];\n\tgets(str);\n\tfor(c=0;c<strlen(str);c++){\n\t\tif... |
CDSS_223773 | CDSS | //Binary Search Tree 2
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
typedef struct Node{
int key;
struct Node *parent;
struct Node *left;
struct Node *right;
}Node;
void Insert(int);
void Inorder(Node*);
void Preorder(Node*);
Node * Find(Node*,int);
Node *Root;
int main(){
int m,i,k;
char order[8]... | 20,452 | memory_bytes | {'s_id': 's444075521', 'p_id': 'p02284', 'u_id': 'u860990527', 'date': '1579540444', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '290', 'memory': '20452', 'code_size': '1633'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n//Binary Search Tree 2\n#include<stdio.h>\n#include<stdlib.h>\n#include<string.h>\n\ntypedef struct Node{\n\tint key;\n\tstruct Node *... |
CDSS_40414 | CDSS | #include<stdio.h>
#include<math.h>
main(){
double debt=100000;
double tmp;
int n,i;
scanf("%d",&n);
for(i=0;i<n;i++){
debt=debt*1.05;
tmp=ceil(debt/1000);
debt=tmp*1000;
}
printf("%.0f\n",debt);
return 0;
} | 632 | memory_bytes | {'s_id': 's333397514', 'p_id': 'p00007', 'u_id': 'u463990569', 'date': '1366131576', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '632', '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#include<math.h>\nmain(){\n\tdouble debt=100000;\n\tdouble tmp;\n\tint n,i;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i<n;i++... |
CDSS_193452 | CDSS | // Binary Search
#include <stdio.h>
int binarySearch(int*, int, int);
int main(){
int i, n, q, S[100000], T[50000], count=0;
// 数列Tに含まれる整数の数と、その内容を入力
scanf("%d", &n);
for(i=0; i < n; i++){
scanf("%d", &S[i]);
}
// 数列Sに含まれる整数の数と、その内容を入力
scanf("%d", &q);
for(i=0; i < q; i++){
scanf("%d", &T[i]... | 2,412 | memory_bytes | {'s_id': 's321414702', 'p_id': 'p02268', 'u_id': 'u610113905', 'date': '1529990753', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2412', 'code_size': '1068'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n// Binary Search\n#include <stdio.h>\n\nint binarySearch(int*, int, int);\n\nint main(){\n int i, n, q, S[100000], T[50000], count=0;... |
CDSS_525464 | CDSS | #include<stdio.h>
int N, a, ans[100100];
int main(){
scanf("%d",&N);
for(int i=0; i<N; i++){
scanf("%d",&a);
ans[a-1] = i + 1;
}
for(int i=0; i<N; i++){
if(i)putchar(32);
printf("%d",ans[i]);
}putchar(10);
} | 2,088 | memory_bytes | {'s_id': 's778531028', 'p_id': 'p02899', 'u_id': 'u244203620', 'date': '1593286100', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '32', 'memory': '2088', '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>\nint N, a, ans[100100];\nint main(){\n\tscanf(\"%d\",&N);\n\tfor(int i=0; i<N; i++){\n\t\tscanf(\"%d\",&a);\n\t\tans... |
CDSS_180647 | CDSS | #include <stdio.h>
#include <stdlib.h>
struct TaskStruct
{
char name[12];
int time;
};
typedef struct TaskStruct Task;
#define QUEUE_SIZE 100000
struct QueueStruct
{
int head, tail;
Task data[QUEUE_SIZE];
};
typedef struct QueueStruct Queue;
void queue_clear(Queue *queue)
{
queue->head = 0;
queue->tail = 0;
}
... | 3,324 | memory_bytes | {'s_id': 's542405967', 'p_id': 'p02264', 'u_id': 'u806784783', 'date': '1535617091', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '3324', 'code_size': '1346'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 TaskStruct\n{\n\tchar name[12];\n\tint time;\n};\ntypedef struct TaskStruct Task;\n\... |
CDSS_275892 | CDSS | #include <stdio.h>
int main(void){
int a, b, c;
scanf("%d %d %d", &a, &b, &c);
if (a < b && b < c) printf("Yes\n");
else printf("No\n");
return 0;
} | 580 | memory_bytes | {'s_id': 's799197878', 'p_id': 'p02392', 'u_id': 'u015362057', 'date': '1449324083', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', 'code_size': '154'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n\tint a, b, c;\n\tscanf(\"%d %d %d\", &a, &b, &c);\n\tif (a < b && b < c) printf(\"Yes\\n\");\n... |
CDSS_117955 | CDSS | #include <stdio.h>
int main(){
int i,j,k,h,w,min,minh,minw;
for(i=0;i<100;i++){
scanf("%d %d", &h, &w);
if(h==0&&w==0) break;
min =150*150 +150 * 150;
minh = 150;
minw = 150;
for(j=1;j<=150;j++){
for(k=j+1;k<=150;k++){
if((j*j+k*k)>(h... | 596 | memory_bytes | {'s_id': 's450123143', 'p_id': 'p00767', 'u_id': 'u519335411', 'date': '1499582370', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '719'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n int i,j,k,h,w,min,minh,minw;\n\n for(i=0;i<100;i++){\n scanf(\"%d %d\", &h, &w);\n ... |
CDSS_604137 | CDSS | #include <stdio.h>
const int Mod = 1000000007;
int main()
{
int i, H, W;
char a[1002][1002] = {};
scanf("%d %d", &H, &W);
for (i = 1; i <= H; i++) scanf("%s", &(a[i][1]));
int j;
long long dp[1002][1002] = {};
for (i = 1, dp[1][1] = 1; i <= H; i++) {
for (j = 1; j <= W; j++) {
if (a[i][j+1] == '.') dp[i... | 10,552 | memory_bytes | {'s_id': 's923349985', 'p_id': 'p03167', 'u_id': 'u943800443', 'date': '1599936908', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '27', 'memory': '10552', 'code_size': '494'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nconst int Mod = 1000000007;\n\nint main()\n{\n\tint i, H, W;\n\tchar a[1002][1002] = {};\n\tscanf(\"%d %d\", &H,... |
CDSS_376206 | CDSS | #include <stdio.h>
int main(void)
{
int i;
scanf("%d", &i);
printf("%d", !i);
} | 1,708 | memory_bytes | {'s_id': 's684814829', 'p_id': 'p02552', 'u_id': 'u637756086', 'date': '1600023699', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1708', 'code_size': '89'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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;\n \n scanf(\"%d\", &i);\n printf(\"%d\", !i);\n}\nPredict its memory footprint.",... |
CDSS_240408 | CDSS | #include <stdio.h>
int main(void)
{
int x;
scanf("%d",&x);
printf("%d\n",x*x*x);
return 0;
} | 596 | memory_bytes | {'s_id': 's906243436', 'p_id': 'p02388', 'u_id': 'u827148580', 'date': '1428903124', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '101'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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;\n\n\tscanf(\"%d\",&x);\n\t\n\tprintf(\"%d\\n\",x*x*x);\n\t\n\treturn 0;\n}\nPredict it... |
CDSS_618710 | CDSS | #include <stdio.h>
//int is_war(int vedtor)
int main(void){
// Your code here!
int n,m,i,a,b;
scanf("%d %d ",&n,&m);
int x[n+1],y[m+1];
scanf("%d %d\n",&x[n],&y[m]);
a=x[n],b=y[m];
for(i=0; i<n; i++){
scanf("%d ",&x[i]);
a>x[i]? (a=a):(a=x[i]);
}
for(i=0; i... | 128 | memory_bytes | {'s_id': 's794271662', 'p_id': 'p03251', 'u_id': 'u060936992', 'date': '1537825535', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '450'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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//int is_war(int vedtor)\nint main(void){\n // Your code here!\n int n,m,i,a,b;\n scanf(\"%d %d \",&n,&... |
CDSS_266678 | CDSS | #include<stdio.h>
int main(void)
{
int a;
int 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;
} | 580 | memory_bytes | {'s_id': 's121364676', 'p_id': 'p02391', 'u_id': 'u461552288', 'date': '1443410593', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', '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{\n int a;\n int b;\n scanf(\"%d %d\" , &a , &b );\n if(a<b){\n \tprintf(\"a < b\\n\");\n \t}\n e... |
CDSS_493863 | CDSS | #include<stdio.h>
int main(void){
int a[100000],h,n,i,b=0;
scanf("%d %d",&h,&n);
for(i=0;i<n;i++){
scanf("%d",&a[i]);
}
while(1){
h=h-a[b];
b=b+1;
if(b==n){
break;
}
}
if(h<=0){
printf("Yes\n");
}
else{
printf("No\n");
}
return 0;
}
| 2,036 | memory_bytes | {'s_id': 's029823460', 'p_id': 'p02784', 'u_id': 'u334911316', 'date': '1598430298', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '25', 'memory': '2036', 'code_size': '289'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n int a[100000],h,n,i,b=0;\n scanf(\"%d %d\",&h,&n);\n for(i=0;i<n;i++){\n scanf(\"%d\",&a[i]... |
CDSS_524719 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#define max(a, b) (((a) > (b)) ? (a) : (b)) /* 2個の値の最大値 */
#define min(a, b) (((a) < (b)) ? (a) : (b)) /* 2個の値の最小値 */
#define ENTER printf("\n") /* 改行プリント */
int DBG = 1; /* デバッグプリント 提出時は0 */
/* main **************************... | 128 | memory_bytes | {'s_id': 's894435363', 'p_id': 'p02897', 'u_id': 'u231667262', 'date': '1569719160', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '601'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 <ctype.h>\n#define max(a, b)\t(((a) > (b)) ? (a) : (b))\t\t/* 2... |
CDSS_330514 | CDSS | #include <stdio.h>
int main(void){
int i,j,H,W;
while(1){
scanf("%d %d",&H,&W);
if(H==0 && W==0){
break;
}
for(i=1;i<=H;i++){
for(j=1;j<=W;j++){
printf("#");
}
puts("");
}
puts("");
}
return 0... | 588 | memory_bytes | {'s_id': 's268504055', 'p_id': 'p02403', 'u_id': 'u579530412', 'date': '1496191256', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '588', 'code_size': '323'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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,H,W;\n while(1){\n scanf(\"%d %d\",&H,&W);\n if(H==0 && W==0){\n ... |
CDSS_222840 | CDSS | #include<stdio.h>
#include<stdlib.h>
#define NIL NULL
struct node{
struct node *right;
struct node *left;
struct node *parent;
int key;
};
typedef struct node * Node;
Node root;
void insert(int k){
Node y=NIL;
Node x=root;
Node z;
z=malloc(sizeof(struct node));
z->key=k;
z->left=NIL;
z->righ... | 20,428 | memory_bytes | {'s_id': 's402399146', 'p_id': 'p02284', 'u_id': 'u862559864', 'date': '1531537015', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '290', 'memory': '20428', 'code_size': '1358'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n\n#define NIL NULL\n\nstruct node{\n struct node *right;\n struct node *left;\n struct node ... |
CDSS_593667 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <memory.h>
#include <math.h>
int main (int argc, char **argv)
{
int n = 0;
struct Human {
char x[16];
char u[4];
} *h = NULL;
int i = 0;
long long j = 0;
long long bi = 0;
long long bf = 0;
scanf("%d", &n);
h = (struct Huma... | 128 | memory_bytes | {'s_id': 's635158639', 'p_id': 'p03110', 'u_id': 'u916960489', 'date': '1564237322', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '836'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <memory.h>\n#include <math.h>\n\nint main (int argc, char **arg... |
CDSS_23596 | CDSS | #include <stdio.h>
#define NUM 10
int main(void)
{
int height[NUM];
int i = 0, j, temp;
while (i < NUM) {
scanf("%d", &height[i]);
if (height[i] < 0 || height[i] > 10000) {
scanf("%d", &height[i]);
}
else
{
i++;
}
}
for (i = 0; i<NUM; i++) {
for (j = i + 1; j<NUM; j++) {
if (height[i] < ... | 600 | memory_bytes | {'s_id': 's234237775', 'p_id': 'p00001', 'u_id': 'u481307862', 'date': '1481702820', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '487'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 NUM 10\n\nint main(void)\n{\n\tint height[NUM];\n\tint i = 0, j, temp;\n\n\twhile (i < NUM) {\n\t\tscanf... |
CDSS_545694 | CDSS | #include<stdio.h>
int main(){
long long int n;
long long int a[200000];
long long int b[200000];
scanf("%lld",&n);
int i;
for(i=1;i<=n+1;i++){
scanf("%lld",&a[i]);
}
for(i=1;i<=n;i++){
scanf("%lld",&b[i]);
}
long long int k=0;
for(i=1;i<=n;i++){
if(b[i... | 2,688 | memory_bytes | {'s_id': 's762974047', 'p_id': 'p02959', 'u_id': 'u348231925', 'date': '1565603775', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '25', 'memory': '2688', 'code_size': '668'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 long long int n;\n long long int a[200000];\n long long int b[200000];\n scanf(\"%lld\",&... |
CDSS_396095 | CDSS | #pragma GCC optimize("Ofast")
#include<stdio.h>
int main(void)
{
char buf[400002];
int i = 0;
while(1) if(EOF == (buf[++i] = getchar_unlocked())) break;
int ans = 0;
i >>= 1;
char* x = buf + i;
while(--i) ans += buf[i] != x[i];
printf("%d", ans);
}
| 1,992 | memory_bytes | {'s_id': 's158870192', 'p_id': 'p02622', 'u_id': 'u004311543', 'date': '1594082644', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1992', 'code_size': '265'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#pragma GCC optimize(\"Ofast\")\n#include<stdio.h>\nint main(void)\n{\n char buf[400002];\n int i = 0;\n while(1) if(EOF == (buf[++... |
CDSS_258261 | CDSS | #include<stdio.h>
int main(void)
{
int a,b,c,d;
scanf("%d%d",&a,&b);
c=a*b;
printf("%d ",c);
d=a*2+b*2;
printf("%d\n",d);
return 0;
}
| 2,044 | memory_bytes | {'s_id': 's836630411', 'p_id': 'p02389', 'u_id': 'u613386137', 'date': '1557993195', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2044', 'code_size': '135'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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\",&a,&b);\nc=a*b;\nprintf(\"%d \",c);\nd=a*2+b*2;\nprintf(\"%d\\n\",d... |
CDSS_632467 | CDSS | //#include <iostream>
#include <stdio.h>
#include <string.h>
#include <math.h>
//using namespace std;
int main()
{
// freopen("in.txt", "r", stdin);
// freopen("out.txt", "w", stdout);
char str[1100];
char str2[1000];
int i, j, w;
while(gets(str))
{
scanf("%d", &w);
int len... | 128 | memory_bytes | {'s_id': 's187700412', 'p_id': 'p03303', 'u_id': 'u353919145', 'date': '1562265140', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '581'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n//#include <iostream>\n#include <stdio.h>\n#include <string.h>\n#include <math.h>\n\n\n//using namespace std;\n\nint main()\n{\n\n// ... |
CDSS_356786 | CDSS | #include<stdio.h>
int main() {
int n, x;
int i, j, k;
int cnt;
while (1) {
scanf("%d %d", &n, &x);
if (n == 0 && x == 0) {
break;
}
cnt = 0;
for (i = 1; i <= n; i++) {
for (j = i + 1; j <= n; j++) {
if (i != j) {
for (k = j + 1; k <= n; k++) {
if (i != k && j != k) {
if ((i... | 2,048 | memory_bytes | {'s_id': 's898576964', 'p_id': 'p02412', 'u_id': 'u470487508', 'date': '1530748990', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2048', 'code_size': '432'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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, x;\n\tint i, j, k;\n\tint cnt;\n\n\twhile (1) {\n\t\tscanf(\"%d %d\", &n, &x);\n\n\t\tif (... |
CDSS_659982 | CDSS | #include <stdio.h>
int main()
{
int a,b,p,k,m;
scanf("%d %d %d",&a,&b,&p);
k= a-b;
m=k%p;
printf("%d",m);
return 0;
}
| 1,732 | memory_bytes | {'s_id': 's785879668', 'p_id': 'p03447', 'u_id': 'u816631826', 'date': '1596083957', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1732', '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>\n\nint main()\n {\n int a,b,p,k,m;\n scanf(\"%d %d %d\",&a,&b,&p);\n\n k= a-b;\n m=k%p;\n printf(\"%... |
CDSS_176556 | CDSS | #include <stdio.h>
#include <stdlib.h>
static int pos = 0;
static int stack[100];
void push(int i){
stack[pos++] = i;
}
int pop(void){
return stack[--pos];
}
int main(void){
char str[16];
while (scanf("%s ", str) != EOF){
int a,b;
switch (str[0]) {
case '*':
case '+':
case '-':
a ... | 552 | memory_bytes | {'s_id': 's663926744', 'p_id': 'p02263', 'u_id': 'u817021824', 'date': '1415385380', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '552', 'code_size': '601'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\nstatic int pos = 0;\nstatic int stack[100];\n\nvoid push(int i){\n stack[pos++] = i;\n}\n\... |
CDSS_362911 | CDSS | #include <stdio.h>
int main(void){
char str[1200];
int count=0;
int i;
while (1) {
scanf("%c", &str[i]);
if (str[i] == '\n')break;
count++;
i++;
}
for (i = 0; i<count; i++) {
if (65 <= str[i] && str[i] <= 90) {
printf("%c", str[i] + 32);
}
else if (96 <= str[i] && str... | 2,036 | memory_bytes | {'s_id': 's475480342', 'p_id': 'p02415', 'u_id': 'u886089506', 'date': '1561162672', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2036', 'code_size': '451'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n \n char str[1200];\n int count=0;\n int i;\n \n while (1) {\n\t\tscanf(\"%c\... |
CDSS_269372 | 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;
} | 580 | memory_bytes | {'s_id': 's139875554', 'p_id': 'p02391', 'u_id': 'u996845498', 'date': '1478831953', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', '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>\nint main (){\n\tint a,b;\n\tscanf(\"%d %d\",&a,&b);\n\tif(a<b){\n\tprintf(\"a < b\\n\");\n\t\t} else if(a>b){\n\t\t... |
CDSS_111374 | CDSS | gcd(a,b){
if(b)
return gcd(b,a%b);
else
return a;
}
main(){
int a,b;
for(;~scanf("%d%d",&a,&b);){
printf("%d\n",gcd(a,b));
}
} | 0 | memory_bytes | {'s_id': 's857598627', 'p_id': 'p00595', 'u_id': 'u399107199', 'date': '1295167763', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', '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:\ngcd(a,b){\n\tif(b)\n\t\treturn gcd(b,a%b);\n\telse\n\t\treturn a;\n}\nmain(){\n\tint a,b;\n\tfor(;~scanf(\"%d%d\",&a,&b);){\n\t\tprint... |
CDSS_191698 | CDSS | #include <stdio.h>
int main(){
int i, k, n, q, m, l, r, S[100000], T[100000];
k = 0;
scanf("%d", &n);
for(i = 0; i < n; i++) scanf("%d", &S[i]);
scanf("%d", &q);
for(i = 0; i < q; i++) scanf("%d", &T[i]);
for(i = 0; i< q; i++){
l = 0;
r = n;
while(l < r){
m = (l + r)/2;
if(T[i] == ... | 1,192 | memory_bytes | {'s_id': 's455697005', 'p_id': 'p02268', 'u_id': 'u059658063', 'date': '1430445692', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '1192', 'code_size': '473'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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, k, n, q, m, l, r, S[100000], T[100000];\n k = 0;\n\n scanf(\"%d\", &n);\n for(i = 0; i ... |
CDSS_372242 | CDSS | #include <stdio.h>
#include <string.h>
int main(void)
{
char str[1001], p[1001], o[10];
int a, b, q, i;
scanf("%s", &str);
scanf("%d", &q);
while(q--)
{
scanf("%s %d %d", &o, &a, &b);
if(!strcmp(o, "replace"))
{
scanf("%s", &p);
for(i = a; i <=... | 572 | memory_bytes | {'s_id': 's969885348', 'p_id': 'p02422', 'u_id': 'u600152841', 'date': '1502024250', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '572', 'code_size': '1631'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\nint main(void)\n{\n char str[1001], p[1001], o[10];\n int a, b, q, i;\n\n scanf(\"... |
CDSS_165734 | CDSS | // 1_2_A
#include <stdio.h>
#include <stdlib.h>
void BubbleSort(int *numbers, int length){
int flag = 1, i, tmp, cnt = 0;
while(flag){
flag = 0;
for(i = length - 1; i >=1; i--){
if(numbers[i] < numbers[i-1]){
tmp = numbers[i];
numbers[i] = numbers[i-1... | 600 | memory_bytes | {'s_id': 's145485251', 'p_id': 'p02259', 'u_id': 'u949338836', 'date': '1477407126', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '834'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n// 1_2_A\n#include <stdio.h>\n#include <stdlib.h>\n\nvoid BubbleSort(int *numbers, int length){\n int flag = 1, i, tmp, cnt = 0;\n ... |
CDSS_590808 | CDSS | #include <stdio.h>
int main(){
int a,b,c,ans;
scanf("%d %d %d",&a,&b,&c);
ans = b / a;
if(ans>c) ans=c;
printf("%d\n",ans);
return 0;
} | 128 | memory_bytes | {'s_id': 's704880126', 'p_id': 'p03105', 'u_id': 'u816631826', 'date': '1587120528', '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>\n\nint main(){\n int a,b,c,ans;\n scanf(\"%d %d %d\",&a,&b,&c);\n ans = b / a;\n if(ans>c) ans=c;\n printf(\"%... |
CDSS_126880 | CDSS | #include <stdio.h>
#include <math.h>
#define EPS 1e-9
int main(void) {
int UW, UH, A, B, AB;
double PI = 4.0 * atan(1);
while (scanf("%d%d%d%d%d", &UW, &UH, &A, &B, &AB) == 5 && (UW | UH | A | B | AB) != 0) {
double ra;
double rb;
double xa, ya;
double xbs, ybs;
double left = 0, right = 2;
int i;
int... | 728 | memory_bytes | {'s_id': 's797366695', 'p_id': 'p01684', 'u_id': 'u543521645', 'date': '1482820447', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '728', 'code_size': '1995'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\n#define EPS 1e-9\n\nint main(void) {\n\tint UW, UH, A, B, AB;\n\tdouble PI = 4.0 * atan(1);\n... |
CDSS_474664 | CDSS | #include<stdio.h>
int main()
{
int s[33];
s[1]=1;
s[2]=1;
s[3]=1;
s[4]=2;
s[5]=1;
s[6]=2;
s[7]=1;
s[8]=5;
s[9]=2;
s[10]=2;
s[11]=1;
s[12]=5;
s[13]=1;
s[14]=2;
s[15]=1;
s[16]=14;
s[17]=1;
s[18]=5;
s[19]=1;
s[20]=5;
s[21]=2;
s[22... | 128 | memory_bytes | {'s_id': 's772048428', 'p_id': 'p02741', 'u_id': 'u149757670', 'date': '1584237901', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '533'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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[33];\n s[1]=1;\n s[2]=1;\n s[3]=1;\n s[4]=2;\n s[5]=1;\n s[6]=2;\n ... |
CDSS_414709 | CDSS | #include<stdio.h>
int main(){
int x;
scanf("%d",&x);
x%=100;
x%=10;
switch(x){
case 2 :
case 4:
case 5:
case 7:
case 9:
printf("hon\n");
break;
case 0 :
case 1:
case 6:
case 8:
printf("pon\n");
break;
defaul... | 1,636 | memory_bytes | {'s_id': 's559200130', 'p_id': 'p02675', 'u_id': 'u133832537', 'date': '1589867846', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '1636', 'code_size': '368'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n\tint x;\n \t\n \tscanf(\"%d\",&x);\n \tx%=100;\n \tx%=10;\n \t\n \tswitch(x){\n case 2 :\n... |
CDSS_667199 | CDSS | #include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <inttypes.h>
#include <ctype.h>
#include <stdint.h>
#include <string.h>
#include <wchar.h>
#include <math.h>
#define N_MAX (100)
#define P_MAX (100)
#define DP_ARRAY_SIZE (N_MAX * P_MAX / 32 + 1)
#define MIN(a, b) ((a) < (b) ? (a) : (b))
#define MAX... | 256 | memory_bytes | {'s_id': 's223600539', 'p_id': 'p03474', 'u_id': 'u615782628', 'date': '1566969441', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '256', 'code_size': '7034'} | [
{
"content": "Your task is to predict the memory footprint (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_80492 | CDSS | #include <stdio.h>
int main(){
long long n = 0;
long long kaimono = 0;
long long goukei = 0;
int i;
scanf("%lld",&n);
for (i = 0; i < n; i++) {
scanf("%lld",&kaimono);
goukei = goukei + kaimono;
}
printf("%lld\n",goukei / n);
return (0);
} | 596 | memory_bytes | {'s_id': 's895952186', 'p_id': 'p00134', 'u_id': 'u292263436', 'date': '1384780255', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '292'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n long long n = 0;\n long long kaimono = 0;\n long long goukei = 0;\n int i;\n scanf(... |
CDSS_673819 | CDSS | #include <stdio.h>
int main()
{
int N;
int a,b;
int sum;
scanf("%d %d %d",&N,&a,&b);
sum = N * a;
if(sum > b)
printf("%d\n",b);
else
printf("%d\n",sum);
return 0;
} | 128 | memory_bytes | {'s_id': 's690132144', 'p_id': 'p03501', 'u_id': 'u050385891', 'date': '1512610505', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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>\nint main()\n{\n int N;\n int a,b;\n int sum;\n scanf(\"%d %d %d\",&N,&a,&b);\n sum = N * a;\n if... |
CDSS_92087 | CDSS | #include <stdio.h>
int main(void)
{
int t, n;
int i;
for (i = 0; i < 4; i++) {
scanf("%d%d", &t, &n);
switch (t) {
case 1: printf("%d\n", 6000 * n); break;
case 2: printf("%d\n", 4000 * n); break;
case 3: printf("%d\n", 3000 * n); break;
case 4: printf("%d\n", 2000 * n); break;
}
}
return 0;
} | 600 | memory_bytes | {'s_id': 's032120627', 'p_id': 'p00272', 'u_id': 'u559653147', 'date': '1434726255', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '320'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 t, n;\n\tint i;\n\n\tfor (i = 0; i < 4; i++) {\n\t\tscanf(\"%d%d\", &t, &n);\n\t\tswitc... |
CDSS_208372 | CDSS | #include <stdio.h>
#include <stdlib.h>
#define K 10000
int main(){
int i,j;
int len,C[K+1];
unsigned short *A,*B;
scanf("%d",&len);
A=malloc(sizeof(short)*len+1);
B=malloc(sizeof(short)*len+1);
for(i=0;i<=K;i++) C[i]=0;
for(i=0;i<len;i++){
scanf("%hu",&A[i+1]);
C[A[i+1]]++;
}
for(i=0;i<=... | 8,460 | memory_bytes | {'s_id': 's121013159', 'p_id': 'p02275', 'u_id': 'u761306808', 'date': '1496283158', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '400', 'memory': '8460', 'code_size': '501'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 K 10000\n\nint main(){\n\n int i,j;\n int len,C[K+1];\n unsigned short *A,*B;\n\n ... |
CDSS_201317 | CDSS | #include<stdio.h>
int n;
int solve(int i,int A[],int m){
int tmp;
if(m==0)return 1;
if(i>=n)return 0;
tmp=(solve(i+1,A,m)||solve(i+1,A,m-A[i]));
return tmp;
}
int main(){
int q,A[2001],m,i;
scanf("%d",&n);
for(i=0;i<n;i++){
... | 2,040 | memory_bytes | {'s_id': 's730974285', 'p_id': 'p02271', 'u_id': 'u542576355', 'date': '1543286260', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '440', 'memory': '2040', 'code_size': '611'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n int n;\n\n int solve(int i,int A[],int m){\n int tmp;\n if(m==0)return 1;\n if(i>=n)return... |
CDSS_737047 | CDSS | main(a,b,h){scanf("%d%d%d",&a,&b,&h);printf("%d",(a+b)*h/2);} | 128 | memory_bytes | {'s_id': 's710308178', 'p_id': 'p03997', 'u_id': 'u242031676', 'date': '1585442696', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '61'} | [
{
"content": "Your task is to predict the 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,b,h){scanf(\"%d%d%d\",&a,&b,&h);printf(\"%d\",(a+b)*h/2);}\nPredict its memory footprint.",
"role": "user"
},
{
"co... |
CDSS_76025 | CDSS | #include<stdio.h>
#include<string.h>
main(){
int a,b,c,d,e;
char f[1002];
scanf("%d\n",&a);
while(a--){
gets(f);
c=strlen(f);
for(d=0;d+6<c+1;d++){
if(((f[d]=='H'&&f[d+1]=='o')&&(f[d+2]=='s'&&f[d+3]=='h'))&&(f[d+4]=='i'&&f[d+5]=='n')&&(f[d+6]=='o')){
f[d+6]='a';
}
}
puts(f);
}
return 0;
} | 580 | memory_bytes | {'s_id': 's266388623', 'p_id': 'p00101', 'u_id': 'u683492488', 'date': '1442753652', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', 'code_size': '289'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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>\nmain(){\nint a,b,c,d,e;\nchar f[1002];\nscanf(\"%d\\n\",&a);\nwhile(a--){\ngets(f);\nc=strlen(f... |
CDSS_131579 | CDSS | #include <stdio.h>
void matrixChainOrder(void);
int num,p[101],m[101][101];
int main(){
int i,a;
scanf("%d",&num);
for(i=0;i<num-1;i++)scanf("%d%d",&p[i],&a);
scanf("%d%d",&p[num-1],&p[num]);
matrixChainOrder();
printf("%d\n",m[1][num]);
return 0;
}
void matrixChainOrder(void){
int i,n,l,j,k,q;
n =nu... | 632 | memory_bytes | {'s_id': 's631169579', 'p_id': 'p02234', 'u_id': 'u937490775', 'date': '1467773894', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '632', 'code_size': '578'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nvoid matrixChainOrder(void);\nint num,p[101],m[101][101];\nint main(){\n int i,a;\n scanf(\"%d\",&num);\n for... |
CDSS_194723 | CDSS | #include<stdio.h>
int A[1000000],n;
int binarySearch(int key)
{
int left=0;
int right=n;
int mid;
while(left<right){
mid=(left+right)/2;
if(key==A[mid]){return 1;}
if(key>A[mid]){left=mid+1;}
else if(key<A[mid]){right=mid;}
}
return 0;
}
int main(void){
int i,q,k,sum=0;
scanf("%d",&n);
for(i=0; i<n; ... | 2,248 | memory_bytes | {'s_id': 's008387876', 'p_id': 'p02268', 'u_id': 'u961418437', 'date': '1574405179', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2248', 'code_size': '466'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 A[1000000],n;\nint binarySearch(int key)\n{\n\tint left=0;\n\tint right=n;\n\tint mid;\n\twhile(left<right){\n\... |
CDSS_204914 | CDSS | #include <stdio.h>
#include <math.h>
typedef struct{
double x;
double y;
}Point;
void koch(int,Point,Point);
int main ( void ){
int num;
scanf("%d" , &num );
Point a = {0.0, 0.0};
Point b = {100.0, 0.0};
printf("%.8f %.8f\n" , a.x , a.y );
koch( num , a , b );
printf("%.8f %.8f\n" , b.x , b.y )... | 640 | memory_bytes | {'s_id': 's400718904', 'p_id': 'p02273', 'u_id': 'u411264309', 'date': '1470440211', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '640', 'code_size': '969'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\ntypedef struct{\n double x;\n double y;\n}Point;\n\nvoid koch(int,Point,Point);\n\nint main... |
CDSS_58764 | CDSS | #include <stdio.h>
int main(void)
{
int data[100];
int max = 0;
int n;
int i;
for (i = 0; i < 100; i++){
data[i] = 0;
}
while (scanf("%d", &n) != EOF){
data[n]++;
if (data[n] > max){
max = data[n];
}
}
for (i = 0; i < 100; i++){
if (max == data[i]){
printf("%d\n", i);
}
}
return (0... | 596 | memory_bytes | {'s_id': 's528338379', 'p_id': 'p00028', 'u_id': 'u958626383', 'date': '1404395938', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '324'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 data[100];\n\tint max = 0;\n\tint n;\n\tint i;\n\t\n\tfor (i = 0; i < 100; i++){\n\t\td... |
CDSS_606336 | CDSS | #include <stdio.h>
typedef unsigned int uint;
inline static uint gl(void){
uint x = 0;
for(;;){
const uint c = getchar_unlocked() - 48;
if(c < 10){
x = x*10 + c;
}else{
return x;
}
}
}
int main(void){
const size_t n = gl();
for(size_t i=0; i<n... | 128 | memory_bytes | {'s_id': 's553366798', 'p_id': 'p03197', 'u_id': 'u188638030', 'date': '1545540246', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '128', '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>\ntypedef unsigned int uint;\ninline static uint gl(void){\n uint x = 0;\n for(;;){\n const uint c = ge... |
CDSS_67657 | CDSS | #include <stdio.h>
int main(){
double x1,x2,x3,x4,y1,y2,y3,y4,v1x,v1y,v2x,v2y;
while(scanf("%lf %lf %lf %lf %lf %lf %lf %lf",&x1,&y1,&x2,&y2,&x3,&y3,&x4,&y4) != EOF){
v1x = x2-x1;
v1y = y2-y1;
v2x = x4-x3;
v2y = y4-y3;
if(v1x*v2x+v1y*v2y == 0.0){
printf("YES\n");
}else{
printf("NO\n");
}
}
r... | 612 | memory_bytes | {'s_id': 's373377993', 'p_id': 'p00058', 'u_id': 'u377201167', 'date': '1358083347', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '612', 'code_size': '330'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\tdouble x1,x2,x3,x4,y1,y2,y3,y4,v1x,v1y,v2x,v2y;\n\n\twhile(scanf(\"%lf %lf %lf %lf %lf %lf %lf %l... |
CDSS_471669 | CDSS | #include <stdio.h>
int main()
{
int N,M;
scanf("%d%d",&N,&M);
int a=(N*(N-1))/2;
int b=(M*(M-1))/2;
printf("%d",a+b);
return 0;
}
| 128 | memory_bytes | {'s_id': 's945858258', 'p_id': 'p02729', 'u_id': 'u822572590', 'date': '1585499184', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '157'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main()\n{\n int N,M;\n scanf(\"%d%d\",&N,&M);\n int a=(N*(N-1))/2;\n int b=(M*(M-1))/2;\n pr... |
CDSS_303859 | CDSS | #include <stdio.h>
int main(void) {
int x, y, tmp;
for(;;) {
scanf("%d %d", &x, &y);
if(x == 0 && y == 0) {
break;
} else if(x > y) {
tmp = x;
x = y;
y = tmp;
}
printf("%d %d\n", x, y);
}
}
| 2,052 | memory_bytes | {'s_id': 's357667234', 'p_id': 'p02397', 'u_id': 'u674778431', 'date': '1540184399', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2052', 'code_size': '291'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\n int x, y, tmp;\n for(;;) {\n scanf(\"%d %d\", &x, &y);\n if(x == 0 && y =... |
CDSS_520808 | CDSS | #include<stdio.h>
int main(void){
int a,b;
scanf("%d %d", &a,&b);
if(b*2 >= a){
printf("0");
}
else{
printf("%d\n", a-b*2);
}
return 0;
} | 128 | memory_bytes | {'s_id': 's698801118', 'p_id': 'p02885', 'u_id': 'u864044748', 'date': '1575501745', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '157'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n int a,b;\n scanf(\"%d %d\", &a,&b);\n if(b*2 >= a){\n printf(\"0\");\n }\n else{\n print... |
CDSS_149590 | CDSS | #include <stdio.h>
void trace(int A[], int N){
int i;
for (i = 0; i< N; i++) {
if (i>0) printf(" ");
printf("%d",A[i]);
}
printf("\n");
}
void insertionSort(int A[],int N) {
int j, i, v;
for (i = 1; i<N; i++){
v = A[i];
j = i-1;
while(j>=0 && A[j] >v){
... | 2,136 | memory_bytes | {'s_id': 's647744587', 'p_id': 'p02255', 'u_id': 'u351341371', 'date': '1581509524', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2136', 'code_size': '598'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nvoid trace(int A[], int N){\n int i;\n for (i = 0; i< N; i++) {\n if (i>0) printf(\" \");\n ... |
CDSS_264972 | CDSS | #include <stdio.h>
int main(void){
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,100 | memory_bytes | {'s_id': 's601871863', 'p_id': 'p02391', 'u_id': 'u018010995', 'date': '1531813817', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2100', '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>\nint main(void){\n\tint a,b;\n\tscanf(\"%d %d\",&a,&b);\n\t\tif(a<b){printf(\"a < b\\n\");\n\t\t}else if(a>b){print... |
CDSS_82271 | CDSS | #include<stdio.h>
int main(void)
{
int c,d,e,f,g,h,i,j;
float a,b;
c=0;
d=0;
e=0;
f=0;
g=0;
h=0;
i=0;
j=0;
while(scanf("%f %f",&a,&b)!=EOF) {
if(1.1<=a && a<=2.0) {
c+=1;
}
else if(a>=0.6) {
d+=1;
}
else if(a>=0.2) {
e+=1;
}
else if(a>=0.1) {
f+=1;
}
if(1.1<=b && b<=2.0) {
g+... | 624 | memory_bytes | {'s_id': 's380629852', 'p_id': 'p00149', 'u_id': 'u276879171', 'date': '1351404089', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '624', 'code_size': '538'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 c,d,e,f,g,h,i,j;\n\tfloat a,b;\n\tc=0;\n\td=0;\n\te=0;\n\tf=0;\n\tg=0;\n\th=0;\n\ti=0;\n\t... |
CDSS_522031 | CDSS | #include <stdio.h>
char str[100100];
int main(){
int n;
scanf("%d%s", &n, str);
int cnt = 0;
for (int i = 0; i < n - 1; i++) {
if (str[i] != str[i + 1]) cnt++;
}
printf("%d\n", cnt + 1);
} | 256 | memory_bytes | {'s_id': 's312824536', 'p_id': 'p02887', 'u_id': 'u871472869', 'date': '1575413228', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '256', 'code_size': '222'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nchar str[100100];\n\nint main(){\n int n;\n scanf(\"%d%s\", &n, str);\n int cnt = 0;\n for (int i = ... |
CDSS_77486 | CDSS | #include <stdio.h>
#include <string.h>
typedef struct{
char index[31];
int page;
}Index;
int main(){
Index book[100];
Index tmp;
int i,j,n=0;
char change[31];
while(scanf("%s %d",book[n].index,&book[n].page) != EOF){
n++;
}
for(i=0;i<n-1;i++){
for(j=n-1;j>i;j--){
if(strcmp(book[j].index,... | 632 | memory_bytes | {'s_id': 's134807052', 'p_id': 'p00105', 'u_id': 'u284889485', 'date': '1372919885', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '632', 'code_size': '1043'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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>\ntypedef struct{\n char index[31];\n int page;\n}Index;\nint main(){\n Index book[100];\n ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.