identifier string | space string | input string | target float64 | metric_type string | metadata string | messages list |
|---|---|---|---|---|---|---|
CDSS_553614 | CDSS | #include<stdio.h>
int main(void){
char s[5];
scanf("%s",&s);
if(s[0]==s[1]&&s[2]==s[3]&&s[0]!=s[2]||
s[0]==s[2]&&s[1]==s[3]&&s[0]!=s[1]||
s[0]==s[3]&&s[1]==s[2]&&s[0]!=s[1])
printf("Yes");
else printf("No");
return 0;
}
| 128 | memory_bytes | {'s_id': 's889005799', 'p_id': 'p02987', 'u_id': 'u073336549', 'date': '1587994308', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '254'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\nchar s[5];\n scanf(\"%s\",&s);\nif(s[0]==s[1]&&s[2]==s[3]&&s[0]!=s[2]||\n s[0]==s[2]&&s[1]==s[3... |
CDSS_658791 | CDSS | #include<stdio.h>
#include<stdlib.h>
int cmp(const void*a,const void *b){
return *(int*)b - *(int*)a;
}
int main(){
int n,a[100],i,s=0;
scanf("%d",&n);
for(i=0;i<n;i++)scanf("%d",&a[i]);
qsort(a,n,sizeof(int),cmp);
for(i=0;i<n;i++){
if(i%2) s-=a[i];
else s+=a[i];
}
printf("%d",s);
} | 128 | memory_bytes | {'s_id': 's951462276', 'p_id': 'p03434', 'u_id': 'u244203620', 'date': '1550328644', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '309'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 cmp(const void*a,const void *b){\n return *(int*)b - *(int*)a;\n}\n\nint main(){\n int ... |
CDSS_711918 | CDSS | #include<stdio.h>
int main()
{
int a, b,c;
scanf("%d%d%d",&a,&b,&c);
if((b-a)==(c-b))
printf("YES\n");
else printf("NO\n");
return 0;
} | 1,620 | memory_bytes | {'s_id': 's441603876', 'p_id': 'p03759', 'u_id': 'u863370423', 'date': '1597658763', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1620', '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>\nint main()\n{\n int a, b,c;\n scanf(\"%d%d%d\",&a,&b,&c);\n if((b-a)==(c-b))\n\t\tprintf(\"YES\\n\");\n\te... |
CDSS_645800 | CDSS | #include <stdio.h>
int main(void)
{
int a,b;
scanf("%d",&a);
scanf("%d",&b);
if(a<=b) {
printf("%d",a);
}else{
printf("%d",a-1);
}
return 0;
} | 128 | memory_bytes | {'s_id': 's213294721', 'p_id': 'p03359', 'u_id': 'u580725438', 'date': '1525568784', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '187'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\",&a);\n scanf(\"%d\",&b);\n if(a<=b) {\n printf(\"... |
CDSS_531984 | CDSS | #include <stdio.h>
int main()
{
char s[4],t[4];
scanf("%s %s",&s,&t);
int count = 0;
for (int i = 0; i < 3; i++)
{
if(s[i] == t[i])count++;
}
printf("%d",count);
}
| 128 | memory_bytes | {'s_id': 's371499439', 'p_id': 'p02921', 'u_id': 'u494609869', 'date': '1572395061', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', '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{\n char s[4],t[4];\n\n scanf(\"%s %s\",&s,&t);\n\n int count = 0;\n for (int i = 0; i <... |
CDSS_185835 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
struct node{
int key;
struct node *next;
struct node *prev;
};
typedef struct node * NodePointer;
NodePointer nil;
NodePointer listSearch(int key){
NodePointer cur = nil->next;
while( cur != nil && cur->key != key ){
cur = cur->next;
}
return... | 15,000 | memory_bytes | {'s_id': 's683292604', 'p_id': 'p02265', 'u_id': 'u435226340', 'date': '1335191324', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '540', 'memory': '15000', 'code_size': '1866'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 *next;\n struct node *prev;\n};\... |
CDSS_497771 | CDSS | #include<stdio.h>
int main (){
int a,b,i;
scanf("%d %d",&a,&b);
if(a>b){
for(i=1;i<=a;i++){
printf("%d",b);
}
}
else if(a<b){
for(i=1;i<=b;i++){
printf("%d",a);
}
}
else{
for(i=1;i<=b;i++){
printf("%d",a);
}
}
} | 128 | memory_bytes | {'s_id': 's813469962', 'p_id': 'p02790', 'u_id': 'u521028221', 'date': '1579464694', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '272'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main (){\n int a,b,i;\n\n scanf(\"%d %d\",&a,&b);\n\n if(a>b){\n for(i=1;i<=a;i++){\n printf(\"%d\... |
CDSS_358772 | CDSS | #include <stdio.h>
int main(void){
int r,c,a[101][101]={0},i,j;
scanf("%d%d",&r,&c);
for(i=0;i<r;i++){
for(j=0;j<c;j++){
scanf("%d",&a[i][j]);
a[i][c]+=a[i][j];
}
}
for(i=0;i<c;i++){
for(j=0;j<r;j++)a[r][i]+=a[j][i];
a[r][c]+=a[r][i];
}
... | 2,064 | memory_bytes | {'s_id': 's559612274', 'p_id': 'p02413', 'u_id': 'u351440844', 'date': '1564804273', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2064', 'code_size': '489'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 main(void){\n int r,c,a[101][101]={0},i,j;\n scanf(\"%d%d\",&r,&c);\n for(i=0;i<r;i++){\n for... |
CDSS_268992 | 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 if(a==b){
printf("a == b\n");
}
return 0;
} | 580 | memory_bytes | {'s_id': 's603925072', 'p_id': 'p02391', 'u_id': 'u797251226', 'date': '1475565822', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', 'code_size': '182'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\nint a,b;\n\nscanf(\"%d %d\",&a,&b);\n\nif(a<b){\nprintf(\"a < b\\n\");\n}else if(a>b){\nprint... |
CDSS_538937 | CDSS | #include <stdio.h>
#include <math.h>
#include <string.h>
#include <stdbool.h> //for bool
#include <stdlib.h> // abs,labs,llabs
#include <limits.h>
#include <ctype.h>
typedef long long int ll;
typedef unsigned long long int ull;
typedef long double ld; //%Lf
int main(void) {
int a, b, ans = 0;
scanf("%d %d", &a, ... | 128 | memory_bytes | {'s_id': 's402241334', 'p_id': 'p02945', 'u_id': 'u544594134', 'date': '1566983030', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '475'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 <stdbool.h> //for bool\n#include <stdlib.h> // abs,labs,llabs\n#... |
CDSS_416330 | CDSS | #include <math.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef unsigned long long int ull;
typedef long long int ll;
typedef long double ld;
int main(void) {
int scan; // scanf result
int k; // to input
char s[102]; // to input
scan = scanf("%d", &k);
scan = scan... | 1,720 | memory_bytes | {'s_id': 's939942758', 'p_id': 'p02676', 'u_id': 'u163703829', 'date': '1589764858', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '1720', 'code_size': '620'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <math.h>\n#include <stdarg.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\ntypedef unsigned long long int... |
CDSS_264468 | CDSS | #include<stdio.h>
int main(void)
{
int S;
int h=0,m=0,s=0;
scanf("%d",&S);
h=S/3600;
m=(S-h*3600)/60;
s=S-(h*3600+m*60);
printf("%d:%d:%d\n",h,m,s);
return 0;
}
| 2,128 | memory_bytes | {'s_id': 's576074467', 'p_id': 'p02390', 'u_id': 'u340071678', 'date': '1568963381', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2128', '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(void)\n{\n\tint S;\n\tint h=0,m=0,s=0;\n\t\n\tscanf(\"%d\",&S);\n\t\n\th=S/3600;\n\tm=(S-h*3600)/60;\n\t... |
CDSS_726893 | CDSS | #include<stdio.h>
#include<string.h>
int main(){
int N,t[105],M,P[105],x[105];
scanf("%d",&N);
for(int i=0;i<N;i++){
scanf("%d",&t[i]);
}
scanf("%d",&M);
for(int i=0;i<M;i++){
scanf("%d%d",&P[i],&x[i]);
}
for(int i=0;i<M;i++){
int res=0;
for(int j=0;j<N;j++){
if(P[i]!=j+1){
res+=t[j];
}
el... | 128 | memory_bytes | {'s_id': 's889088565', 'p_id': 'p03845', 'u_id': 'u089230684', 'date': '1550113039', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '383'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\n\nint main(){\n\tint N,t[105],M,P[105],x[105];\n\tscanf(\"%d\",&N);\n\tfor(int i=0;i<N;i++){\n\... |
CDSS_629554 | CDSS | #include <stdio.h>
#include <string.h>
int main(void) {
char s[11];
int i, n, num, count = 0, flag = 0;
scanf("%s", s);
n = strlen(s);
if (s[0] != 65) {
flag = 1;
}
for (i = 2; i < n-1; i++) {
if (s[i] == 67) {
count++;
num = i;
}
}
if (count != 1) {
flag = 1;
}
... | 128 | memory_bytes | {'s_id': 's581345759', 'p_id': 'p03289', 'u_id': 'u697382193', 'date': '1538756143', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '588'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\nint main(void) {\n char s[11];\n int i, n, num, count = 0, flag = 0;\n\n scanf(\"%s\", s... |
CDSS_254918 | CDSS | #include <stdio.h>
int main(void){int a,b;scanf("%d %d",&a,&b);printf("%d %d\n",a*b,a*2+b*2);return 0;} | 596 | memory_bytes | {'s_id': 's127098463', 'p_id': 'p02389', 'u_id': 'u682585881', 'date': '1500171312', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '103'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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){int a,b;scanf(\"%d %d\",&a,&b);printf(\"%d %d\\n\",a*b,a*2+b*2);return 0;}\nPredict its memory foot... |
CDSS_237105 | CDSS | /*
氏名 : 杉谷 裕貴,学籍番号 : 190441066
概要 : ミンコフスキー距離を求めるプログラム
*/
#include<math.h>
#include<stdlib.h>
#include<stdio.h>
int main(void)
{
int n, i, j,k;/*変数の宣言*/
int x[100], y[100];/*配列の宣言*/
double d1, d2, d3,d4;/*実数の宣言*/
int ab_value=0;
scanf("%d\n", &n);/*整数の入力*/
for (i = 0; i < n; i++)/*n回繰り返す*/
{
scanf("%d", &x[... | 2,136 | memory_bytes | {'s_id': 's404547856', 'p_id': 'p02382', 'u_id': 'u107502896', 'date': '1562230291', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2136', 'code_size': '1177'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n/*\n氏名 : 杉谷 裕貴,学籍番号 : 190441066\n概要 : ミンコフスキー距離を求めるプログラム\n*/\n#include<math.h>\n#include<stdlib.h>\n#include<stdio.h>\n\nint main(void... |
CDSS_369536 | CDSS | //
// main.c
// ITP1_9_A
//
// Created by k16031kk on 2018/05/27.
// Copyright © 2018年 AIT. All rights reserved.
//
#include <stdio.h>
#include <string.h>
#include <ctype.h>
int main(int argc, const char * argv[]) {
// insert code here...
char word[10];
char text[1000];
char eot[12]="END_OF_TEXT";... | 2,100 | memory_bytes | {'s_id': 's706953705', 'p_id': 'p02419', 'u_id': 'u175726508', 'date': '1527352771', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2100', 'code_size': '665'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n//\n// main.c\n// ITP1_9_A\n//\n// Created by k16031kk on 2018/05/27.\n// Copyright © 2018年 AIT. All rights reserved.\n//\n\n#incl... |
CDSS_675712 | CDSS | #include <stdio.h>
int main(void){
long int n, l1, l2, l3, i;
scanf("%ld",&n);
l1=2;
l2=1;
for(i=0;i<n-1;i++){
l3=l2;
l2=l1+l3;
l1=l3;
}
printf("%ld\n",l2);
return 0;
} | 1,732 | memory_bytes | {'s_id': 's154351792', 'p_id': 'p03544', 'u_id': 'u347086824', 'date': '1595905190', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1732', 'code_size': '234'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\n long int n, l1, l2, l3, i;\n \n scanf(\"%ld\",&n);\n \n l1=2;\n l2=1;\n for... |
CDSS_48363 | CDSS | #include <stdio.h>
int main(void)
{
int d;
while(scanf("%d",&d) != EOF)
{
int value=0,s=0;
while(value != 600-d)
{
value += d;
int line = value*value;
s += line*d;
}
printf("%d\n",s);
}
return 0;
} | 596 | memory_bytes | {'s_id': 's221757308', 'p_id': 'p00014', 'u_id': 'u765197056', 'date': '1398419276', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '224'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n\tint d;\n\n\twhile(scanf(\"%d\",&d) != EOF)\n\t{\n\t\tint value=0,s=0;\n\n\t\twhile(value !=... |
CDSS_600027 | CDSS |
#include<stdio.h>
int main(void)
{
int ab,bc,ca;
scanf("%d %d %d",&ab,&bc,&ca);
printf("%d\n",ab*bc/2);
return 0;
} | 128 | memory_bytes | {'s_id': 's648148224', 'p_id': 'p03145', 'u_id': 'u490089586', 'date': '1548109698', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '120'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n\n#include<stdio.h>\nint main(void)\n{\n\tint ab,bc,ca;\n\tscanf(\"%d %d %d\",&ab,&bc,&ca);\n\tprintf(\"%d\\n\",ab*bc/2);\n\treturn 0;... |
CDSS_652492 | CDSS | #include <stdio.h>
int main()
{
int i, N, D, X, A[101];
scanf("%d", &N);
scanf("%d %d", &D, &X);
for (i = 1; i <= N; i++) scanf("%d", &(A[i]));
int ans = X;
for (i = 1; i <= N; i++) ans += (D - 1) / A[i] + 1;
printf("%d\n", ans);
fflush(stdout);
return 0;
} | 128 | memory_bytes | {'s_id': 's345908471', 'p_id': 'p03400', 'u_id': 'u943800443', 'date': '1589069471', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '270'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main()\n{\n\tint i, N, D, X, A[101];\n\tscanf(\"%d\", &N);\n\tscanf(\"%d %d\", &D, &X);\n\tfor (i = 1; i <= ... |
CDSS_214403 | CDSS | #include<stdio.h>
#define MAX 100005
#define NIL -1
struct node{
int p;
int l;
int r;
};
struct node T[MAX];
int n,D[MAX];
void print(int u){
int i,c;
printf("node %d: ",u);
printf("parent = %d, ",T[u].p);
printf("depth = %d, ",D[u]);
if(T[u].p==NIL)printf("root, [");
else if(T[u].l==NIL)printf("l... | 6,356 | memory_bytes | {'s_id': 's246540044', 'p_id': 'p02279', 'u_id': 'u742706349', 'date': '1531201660', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '40', 'memory': '6356', 'code_size': '1022'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 100005\n#define NIL -1\n\nstruct node{\n int p;\n int l;\n int r;\n};\nstruct node T[MAX];\nint n,... |
CDSS_737299 | CDSS | #include<stdio.h>
int main(){
int a,b,h;
scanf("%d%d%d",&a,&b,&h);
printf("%d\n",(a+b)*h/2);
return 0;
} | 128 | memory_bytes | {'s_id': 's178543334', 'p_id': 'p03997', 'u_id': 'u667294123', 'date': '1543715907', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '112'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int a,b,h;\n scanf(\"%d%d%d\",&a,&b,&h);\n printf(\"%d\\n\",(a+b)*h/2);\n return 0;\n}\nPredict i... |
CDSS_487107 | CDSS | #include <stdio.h>
int main()
{
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
if ((a==b && a!=c) || (a==c && a!=b) || (b==c && a!=b))
{
printf("Yes");
}
else
{
printf("No");
}
return 0;
} | 128 | memory_bytes | {'s_id': 's266154450', 'p_id': 'p02771', 'u_id': 'u353919145', 'date': '1585567853', '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>\nint main()\n{\n\tint a,b,c;\n\tscanf(\"%d %d %d\",&a,&b,&c);\n\tif ((a==b && a!=c) || (a==c && a!=b) || (b==c && a... |
CDSS_170451 | CDSS | #include <stdio.h>
int main(){
int i,N,A[100],j,count=0,tmp,min=0;
scanf("%d",&N);
for(i=0;i<N;i++){
scanf("%d",&A[i]);
}
for(i=0;i<N-1;i++){
min =i;
for(j=i;j<N;j++){
if(A[j] < A[min]){
min =j;
}
}
if(min != i) count++;
tmp = A[i];
A[i] = A[min];
A[min] = t... | 604 | memory_bytes | {'s_id': 's366459865', 'p_id': 'p02260', 'u_id': 'u365446430', 'date': '1492570521', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '604', 'code_size': '453'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(){\n int i,N,A[100],j,count=0,tmp,min=0;\n scanf(\"%d\",&N);\n for(i=0;i<N;i++){\n scanf(\"%d\",&A[... |
CDSS_621049 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
int result = 0;
int i, j;
int n, m, k;
int s[100005] = {};
int memo=0;
char word[105][15];
int main() {
scanf("%d", &n);
for (i = 0; i < n; i++) {
scanf("%s", word[i]);
s[i] = strlen(word[i]);
}
for (i = 1; i < n; i++) {
if (word[i][0] != word[i-1][s... | 128 | memory_bytes | {'s_id': 's706381551', 'p_id': 'p03261', 'u_id': 'u018872912', 'date': '1536456714', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '582'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 result = 0;\nint i, j;\nint n, m, k;\nint s[100005] = {};\nint memo=0;\... |
CDSS_214747 | CDSS | #include<stdio.h>
#include<stdlib.h>
#define MAX 100005
#define NIL -1
struct Node
{
int p,l,r;
};
struct Node T[MAX];
int n,D[MAX];
void print(int v)
{
int i,c;
printf("node %d: ",v);
printf("parent = %d, ",T[v].p);
printf("depth = %d, ",D[v]);
if( T[v].p == NIL )
printf("root, ");
else if( T... | 6,404 | memory_bytes | {'s_id': 's769463489', 'p_id': 'p02279', 'u_id': 'u046778640', 'date': '1531435683', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '50', 'memory': '6404', 'code_size': '1132'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 100005\n#define NIL -1\n \nstruct Node\n{\n int p,l,r;\n};\n \nstruct Node T[MAX];... |
CDSS_229356 | CDSS | #include <stdio.h>
#include <stdlib.h>
#define N 500005 //ヒープの個数出すよ
int Left(int i){ //左の子のアドレス値だよ
return 2*i;
}
int Right(int i){ //右の子のアドレス値だよ
return 2*i+1;
}
void maxHeapify(int *A,int i,int n){ //大きいやつを上にもっていく関数やが、親子関係が成立するまで再帰。
int l=Left(i),r=Right(i),largest,tmp;
if(l<=n && A[l]>A[i]) largest=l;//... | 2,552 | memory_bytes | {'s_id': 's365408887', 'p_id': 'p02288', 'u_id': 'u249587244', 'date': '1403804833', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '100', 'memory': '2552', 'code_size': '1232'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#define N 500005 //ヒープの個数出すよ\n\nint Left(int i){ //左の子のアドレス値だよ\n return 2*i;\n}\n \nint Righ... |
CDSS_77299 | CDSS | #include<stdio.h>
int main(){
char tile[128][128];
int i,j,k,l,x,y;
while(1)
{
scanf("%d%d",&i,&j);
if(i==0&j==0)break;
else
{
for(k=0;k<i;k++)
{
scanf("%s",tile[k]);
}
x=0;
y=0;
l=0;
while(tile[y][x] != '.')
{
l++;
if(l>i*j)break;
else if(tile[y][x]=... | 632 | memory_bytes | {'s_id': 's039569767', 'p_id': 'p00104', 'u_id': 'u498680922', 'date': '1353030437', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '632', 'code_size': '520'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 tile[128][128];\n int i,j,k,l,x,y;\n\n while(1)\n {\n scanf(\"%d%d\",&i,&j);\n if(i=... |
CDSS_291605 | CDSS | #include <stdio.h>
int main(void) {
int w, h, x, y, r;
scanf("%d %d %d %d %d",&w,&h,&x,&y,&r);
if ((x - r) >= 0 && (y - r) >= 0){
if ((x + r) <= w && (y + r) <= h){
printf("Yes\n");
}
else printf("No\n");
}
else printf("No\n");
return 0;
} | 580 | memory_bytes | {'s_id': 's961809261', 'p_id': 'p02394', 'u_id': 'u331923107', 'date': '1495595040', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', 'code_size': '257'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 w, h, x, y, r;\n\tscanf(\"%d %d %d %d %d\",&w,&h,&x,&y,&r);\n\n\tif ((x - r) >= 0 && (y - ... |
CDSS_714653 | CDSS | #include<stdio.h>
long max(long a, long b){
if(a > b) return a;
else return b;
}
long min(long a, long b){
if(a < b) return a;
else return b;
}
int f(long a,long b){
long c = max(a,b);
int keta = 1;
for(int i = 0; i < 10; ++i){
if( c/10 > 0 ){
keta ++;
c /= 10;
}
}
return keta;... | 128 | memory_bytes | {'s_id': 's187772070', 'p_id': 'p03775', 'u_id': 'u759675243', 'date': '1590349879', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '128', 'code_size': '574'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nlong max(long a, long b){\n if(a > b) return a;\n else return b;\n}\n\nlong min(long a, long b){\n if(a < b) r... |
CDSS_225294 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define DEBUG 0
#define true 1
#define false 0
//typedef struct Node Node;
struct Node;
typedef struct Node Node;
struct Node{
int key;
int priority;
Node *root;
Node *left;
Node *right;
};
Node* rightRotate(Node* t);
Node* leftRotate(N... | 11,160 | memory_bytes | {'s_id': 's081061151', 'p_id': 'p02286', 'u_id': 'u343482409', 'date': '1558458521', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '150', 'memory': '11160', 'code_size': '4370'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 DEBUG 0\n#define true 1\n#define false 0\n\n//typedef struct N... |
CDSS_573462 | CDSS | #include <stdio.h>
#include <stdint.h>
#include <inttypes.h>
int main (int argc, char const *argv[])
{
int64_t R, G, B, N;
int64_t ans = 0;
scanf("%"PRId64"%"PRId64"%"PRId64"%"PRId64, &R, &G, &B, &N);
for (int r = 0; r <= (N / R); r++) {
for (int g = 0; g <= ((N - R * r) / G); g++) {
... | 128 | memory_bytes | {'s_id': 's281901353', 'p_id': 'p03048', 'u_id': 'u335453773', 'date': '1557624721', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '44', 'memory': '128', 'code_size': '440'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 <stdint.h>\n#include <inttypes.h>\n\nint main (int argc, char const *argv[])\n{\n int64_t R, G, B, N;\... |
CDSS_63118 | CDSS | #include <stdio.h>
int main(void) {
char s[16];
int x,y,i,j,k,m,b[16] = {0},p[16],w[16] = {0};
while(scanf("%s",s) != EOF){
for(i = 0;i <= 15;i++){
w[i] = 0;
b[i] = 0;
}
for(i = 0;i <= 12;i++) b[s[i] - 48]++;
x = 0;
for(i = 1;i <= 9;i++){
if(b[i] >= 4) continue;
b[i]++;
y = 0;
for(j = 1;... | 556 | memory_bytes | {'s_id': 's924363932', 'p_id': 'p00043', 'u_id': 'u444407884', 'date': '1462781278', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '556', 'code_size': '1011'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\n\tchar s[16];\n\tint x,y,i,j,k,m,b[16] = {0},p[16],w[16] = {0};\n\twhile(scanf(\"%s\",s) != EO... |
CDSS_388369 | CDSS | #include<stdio.h>
int main(){
int a,b,c,k;
scanf("%d%d%d",&a,&b,&c);
scanf("%d",&k);
for(int i=1;i>0;i++){
if(a>=b){
k-=1;
b*=2;
if(k<0){printf("No");return 0;}
}else{break;}
}
for(int i=1;i>0;i++){
if(b>=c){
k-=1;
c*=2;
if(k<0){printf("No");return 0;}
... | 2,148 | memory_bytes | {'s_id': 's924118574', 'p_id': 'p02601', 'u_id': 'u280068213', 'date': '1595725672', 'language': 'C', 'original_language': 'C (Clang 10.0.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '7', 'memory': '2148', 'code_size': '375'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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,k;\n scanf(\"%d%d%d\",&a,&b,&c);\n scanf(\"%d\",&k);\n \n for(int i=1;i>0;i++){\n ... |
CDSS_528140 | CDSS | #include <stdio.h>
#include <string.h>
int main(void)
{
char s[101];
int num;
int i;
int len;
num = scanf("%s", s);
if(num != 1)
return (0);
len = strlen(s);
for(i=0; i<len; i++)
{
if(i % 2 == 0)
{
if(s[i] == 'L')
{
pri... | 128 | memory_bytes | {'s_id': 's579887450', 'p_id': 'p02910', 'u_id': 'u378188810', 'date': '1585369203', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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#include <string.h>\n\nint\tmain(void)\n{\n \tchar\ts[101];\n \tint\t\tnum;\n \tint\t\ti;\n \tint\t\tlen;\n \... |
CDSS_653966 | CDSS | #include<stdio.h>
#include<math.h>
#include<stdlib.h>
#include<string.h>
int main(){
int ans=0;
int get=0;
int n,m;
scanf("%d",&n);
char s[n][100];
for(int i=0;i<n;i++){
scanf("%s",s[i]);
}
scanf("%d",&m);
char t[m][100];
for(int i=0;i<m;i++){
scanf("%s",t[i]);
}
for(int i=0;i<n;i++){
get=0;
for(int j=0;j<n;j++){
... | 128 | memory_bytes | {'s_id': 's416499055', 'p_id': 'p03408', 'u_id': 'u342703951', 'date': '1521336319', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '491'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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<stdlib.h>\n#include<string.h>\n\nint main(){\nint ans=0;\nint get=0;\nint n,m;\nscanf(\"... |
CDSS_328061 | CDSS | #include<stdio.h>
int main(void){
int n,i=0;
int d;
int data[10000]={};
int max,min;
long long int sum;
scanf("%d",&n);
while(scanf("%d",&d)==1){
data[i]=d;
i++;
if(i==n)break;
}
max=data[0],min=data[0];
for(i=0; i<n; i++){
... | 2,112 | memory_bytes | {'s_id': 's814770867', 'p_id': 'p02402', 'u_id': 'u336208598', 'date': '1586486256', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '510'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n int n,i=0;\n int d;\n int data[10000]={};\n int max,min;\n long long int sum;\n\n ... |
CDSS_315277 | CDSS | #include<stdio.h>
int main()
{
double r,pi=3.141592653589;
scanf("%lf",&r);
printf("%f %f\n",r*r*pi,2*r*pi);
return 0;
} | 648 | memory_bytes | {'s_id': 's063886776', 'p_id': 'p02400', 'u_id': 'u710890480', 'date': '1495103515', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '648', 'code_size': '128'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n double r,pi=3.141592653589;\n scanf(\"%lf\",&r);\n printf(\"%f %f\\n\",r*r*pi,2*r*pi);\n return... |
CDSS_559062 | CDSS | #include <stdio.h>
int main(){
int a, b;
scanf("%d%d", &a, &b);
printf("%s\n", a < b ? "0" : "10");
} | 128 | memory_bytes | {'s_id': 's670847855', 'p_id': 'p02999', 'u_id': 'u871472869', 'date': '1573295173', '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\nint main(){\n int a, b;\n scanf(\"%d%d\", &a, &b);\n printf(\"%s\\n\", a < b ? \"0\" : \"10\");\n}\nPre... |
CDSS_155687 | CDSS | #include<stdio.h>
#include<math.h>
//int inputdata[20000];
int isPrime(int );
int main(){
int i,sumdata,data,count,answer;
count = 0;
scanf("%d",&sumdata);
for(i = 0; i < sumdata; i++){
scanf("%d",&data);
answer = isPrime(data);
if(answer != -1){
count = count + answer;
}
}
... | 596 | memory_bytes | {'s_id': 's849775705', 'p_id': 'p02257', 'u_id': 'u060671672', 'date': '1469584186', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '596', 'code_size': '617'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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//int inputdata[20000];\n\nint isPrime(int );\n\nint main(){\n\n int i,sumdata,data,count,answ... |
CDSS_192622 | CDSS | #include<stdio.h>
int Search(int);
int S[1000000],n;
int main(){
int i,q,key,count=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",&key);
if(Search(key)==1)
{
count++;
}
}
printf("%d\n",count);
return 0... | 988 | memory_bytes | {'s_id': 's621314511', 'p_id': 'p02268', 'u_id': 'u971398375', 'date': '1494469810', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '988', 'code_size': '547'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 Search(int);\n\nint S[1000000],n;\nint main(){\n int i,q,key,count=0;\n\n scanf(\"%d\",&n);\n for(i=0;i<n;... |
CDSS_589300 | CDSS | #include <stdio.h>
int main(void) {
int H,W,h,w;
scanf("%d %d%d %d",&H,&W,&h,&w);
printf("%d",(H-h)*(W-w));
return 0;
} | 128 | memory_bytes | {'s_id': 's049186679', 'p_id': 'p03101', 'u_id': 'u493122449', 'date': '1552165256', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '139'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\n int H,W,h,w;\n\n scanf(\"%d %d%d %d\",&H,&W,&h,&w);\n\n printf(\"%d\",(H-h)*(W-w));\... |
CDSS_75160 | CDSS | #include <stdio.h>
#include <stdlib.h>
typedef struct {
int id;
int fishNum;
} player_t;
int playerComp(player_t x,player_t y) {
if(x.fishNum>y.fishNum)return 1;
if(x.fishNum<y.fishNum)return -1;
if(x.id<y.id)return 1;
if(x.id>y.id)return -1;
return 0;
}
typedef struct RedBlackTreeNode_tag {
player_t key;
i... | 8,960 | memory_bytes | {'s_id': 's092939679', 'p_id': 'p00099', 'u_id': 'u543521645', 'date': '1365927692', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '70', 'memory': '8960', 'code_size': '8935'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\ntypedef struct {\n\tint id;\n\tint fishNum;\n} player_t;\n\nint playerComp(player_t x,playe... |
CDSS_259575 | CDSS | #include <stdio.h>
int main(void)
{
int h,m,s,S;
scanf("%d", &S);
h = S/3600;
m = (S%3600)/60;
s = S%3600%60;
printf("%d:%d:%d\n", h,m,s);
return 0;
} | 592 | memory_bytes | {'s_id': 's342865951', 'p_id': 'p02390', 'u_id': 'u504889015', 'date': '1434179324', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', '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{\n\tint h,m,s,S;\n\n\tscanf(\"%d\", &S);\n\n\th = S/3600;\n\tm = (S%3600)/60;\n\ts = S%3600%60;... |
CDSS_239443 | CDSS | #include<stdio.h>
#include<string.h>
int main(void){
int f = 0, i,o, j, l, z, q, k[6], s[100][6], n[6], n2[6];
char c;
scanf("%d",&q);
for (z = 0; z < q; z++){
for (i = 0; i < 6; i++){
scanf("%d", &s[z][i]);
n[i] = i;
}
}
for (i = 0; i < q; i++){
f... | 2,076 | memory_bytes | {'s_id': 's268885081', 'p_id': 'p02386', 'u_id': 'u970551499', 'date': '1516813034', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2076', 'code_size': '1524'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 f = 0, i,o, j, l, z, q, k[6], s[100][6], n[6], n2[6];\n char c;\n ... |
CDSS_496716 | CDSS | #include<stdio.h>
int main()
{
int N,M;
scanf("%d %d",&N,&M);
if(M==N)
printf("Yes\n");
else
printf("No\n");
return 0;
}
| 128 | memory_bytes | {'s_id': 's191799366', 'p_id': 'p02789', 'u_id': 'u816631826', 'date': '1581214022', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '161'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n int N,M;\n scanf(\"%d %d\",&N,&M);\n if(M==N)\n printf(\"Yes\\n\");\n else\n ... |
CDSS_521959 | CDSS | #include<stdio.h>
#include<string.h>
int main()
{
int n,i,t;
scanf("%d\n",&n);
char s[n];
gets(s);
t=0;
for(i=0;i<n;i++){
if(s[i]!=s[i+1]){
t++;
}
}
printf("%d\n",t);
return 0;
}
| 256 | memory_bytes | {'s_id': 's718423088', 'p_id': 'p02887', 'u_id': 'u018679195', 'date': '1587185555', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '256', 'code_size': '243'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\nint main()\n{\n int n,i,t;\n scanf(\"%d\\n\",&n);\n char s[n];\n gets(s);\n t=0;... |
CDSS_174860 | CDSS | #include <stdio.h>
#define MAX 36
typedef struct{
char pic;
int num;
}TRUMP;
void input(TRUMP [], int);
void display(TRUMP [], int);
void swap(TRUMP *, TRUMP *);
void copy(TRUMP [], TRUMP [], int);
int isSame(TRUMP [], TRUMP [], int);
void selectionSort(TRUMP[], int);
void bubbleSort(TRUMP[], int);
int main(){
... | 2,104 | memory_bytes | {'s_id': 's753966483', 'p_id': 'p02261', 'u_id': 'u235698505', 'date': '1575880308', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '1780'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 36\n\ntypedef struct{\n char pic;\n int num;\n}TRUMP;\n\nvoid input(TRUMP [], int);\nvoid display(... |
CDSS_465152 | CDSS | #include <stdio.h>
int main()
{
int n,m,a[100],i,j,sum = 0;
scanf("%d %d",&n,&m);
for (i = 0; i < n; i++)
{
scanf("%d",&a[i]);
sum += a[i];
}
int ans = 0;
for (i = 0; i < n; i++)
{
if(a[i] * 4 * m >= sum)
{
ans++;
}
}
if(m <=... | 128 | memory_bytes | {'s_id': 's977926070', 'p_id': 'p02718', 'u_id': 'u236468356', 'date': '1586055898', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '364'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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,a[100],i,j,sum = 0;\n\n scanf(\"%d %d\",&n,&m);\n for (i = 0; i < n; i++)\n ... |
CDSS_63117 | CDSS | #include <stdio.h>
void set(int i, char str[], int count[]);
void pull3(int count[]);
int main(void) {
char str[14];
int count[9];
int i, j, k, l, m;
_Bool comp;
_Bool first;
while (scanf("%s", str) != EOF) {
first = 0;
for (i = 0; i < 9; i++) {
comp = 0;
for (j = 0; j < 9 && !comp; j++) {
set... | 544 | memory_bytes | {'s_id': 's243458708', 'p_id': 'p00043', 'u_id': 'u933965697', 'date': '1440160411', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '544', 'code_size': '1428'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nvoid set(int i, char str[], int count[]);\nvoid pull3(int count[]);\n\nint main(void) {\n\tchar str[14];\n\tint ... |
CDSS_433068 | CDSS | #include<stdio.h>
int main(){
int A;
int B;
int C;
int D;
scanf("%d%d%d%d",&A,&B,&C,&D);
while(A>0&&C>0){
C-=B;
if(C<=0){
printf("Yes");
break;
}
A-=D;
if(A<=0){
printf("No");
}
}
return 0;
} | 1,708 | memory_bytes | {'s_id': 's019349909', 'p_id': 'p02700', 'u_id': 'u113652321', 'date': '1595272814', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1708', 'code_size': '284'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int A;\n int B;\n int C;\n int D;\n scanf(\"%d%d%d%d\",&A,&B,&C,&D);\n while(A>0&&C>0){\n... |
CDSS_636916 | CDSS | #include <stdio.h>
#include <stdlib.h>
int main(){
int N, K, i;
scanf("%d%d", &N, &K);
int *A = (int *)malloc(sizeof(int) * N);
for(i = 0; i < N; i++){
scanf("%d", &A[i]);
}
printf("%d\n", ((N - 1) + (K - 1) - 1) / (K - 1));
return 0;
} | 512 | memory_bytes | {'s_id': 's038818199', 'p_id': 'p03319', 'u_id': 'u208608367', 'date': '1529802279', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '11', 'memory': '512', 'code_size': '246'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\nint main(){\n\tint N, K, i;\n\tscanf(\"%d%d\", &N, &K);\n\tint *A = (int *)malloc(sizeof(in... |
CDSS_510329 | CDSS | #include <stdio.h>
#include <string.h>
int main(void) {
char s[101];
scanf("%s", s);
size_t len = strlen(s);
int cnt = 0;
for (size_t i = 0; i < len/2; i++)
cnt += s[i] != s[len-1-i];
printf("%d\n", cnt);
}
| 128 | memory_bytes | {'s_id': 's811295435', 'p_id': 'p02836', 'u_id': 'u210370951', 'date': '1576051058', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '217'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer 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\tchar s[101];\n\tscanf(\"%s\", s);\n\tsize_t len = strlen(s);\n\n\tint c... |
CDSS_335772 | CDSS | #include<stdio.h>
int main(){
int a[300],b[300],i,k,u,H,W;
for(i=0;i<300;i++){
scanf("%d%d",&a[i],&b[i]);
if(a[i]==0 && b[i]==0)break;
}
for(k=0;k<i;k++){
for(H=1;H<=a[k];H++){
if(H%2==1)for(W=1;W<=b[k];W++){
if(W%2==1)printf("#");
else printf(".");
}
if(H%2==0)for(W=1;W<=b[k]... | 572 | memory_bytes | {'s_id': 's284037048', 'p_id': 'p02405', 'u_id': 'u667513402', 'date': '1466176539', '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>\nint main(){\n int a[300],b[300],i,k,u,H,W;\n for(i=0;i<300;i++){\n scanf(\"%d%d\",&a[i],&b[i]);\n if(a[i]==... |
CDSS_415181 | CDSS | #include<stdio.h>
#include<stdlib.h>
int main(void)
{
int n;
scanf("%d",&n);
switch (n%10)
{
case 2:
case 4:
case 5:
case 7:
case 9:
printf("hon");
break;
case 0:
case 1:
case 6:
case 8:
printf("pon");
break;
case 3... | 1,728 | memory_bytes | {'s_id': 's784661872', 'p_id': 'p02675', 'u_id': 'u007202328', 'date': '1589763958', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1728', 'code_size': '411'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n\nint main(void)\n{\n int n;\n\n scanf(\"%d\",&n);\n\n switch (n%10)\n {\n case ... |
CDSS_614637 | CDSS | #include<stdio.h>
int n,a,b;
int main(){
scanf("%d %d %d",&n,&a,&b);
if(n==1)
printf("Hello World");
else
printf("%d",a+b);
}
| 128 | memory_bytes | {'s_id': 's909226571', 'p_id': 'p03238', 'u_id': 'u409052964', 'date': '1538874222', '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 n,a,b;\nint main(){\n\tscanf(\"%d %d %d\",&n,&a,&b);\n\tif(n==1)\n\t\tprintf(\"Hello World\");\n\telse\n\t\tpri... |
CDSS_659067 | CDSS | #include <stdio.h>
int main(void){
int ab[3][3+1];
int min = 101;
for(int i = 0;i<3;i++){
scanf("%d %d %d",&ab[i][0],&ab[i][1],&ab[i][2]);
//一番左の列にある数値のうち、最小値を代入
if(ab[i][0] < min){
min = ab[i][0];
}
// printf("min %d\n",min);
// printf("ab[%d][0]... | 128 | memory_bytes | {'s_id': 's492513595', 'p_id': 'p03435', 'u_id': 'u633463117', 'date': '1539891484', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '1821'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 ab[3][3+1];\n int min = 101;\n for(int i = 0;i<3;i++){\n scanf(\"%d %d %d\... |
CDSS_597932 | CDSS | #include <stdio.h>
#include <stdlib.h>
int main(void)
{
int n, max = 0, sum = 0, l[11];
scanf("%d", &n);
max = 0, sum = 0;
for (int i = 0; i < n; i++){
scanf("%d", &l[i]);
sum += l[i];
if(max < l[i]){
max = l[i];
}
}
printf("%s\n", sum - max > ma... | 128 | memory_bytes | {'s_id': 's055054573', 'p_id': 'p03136', 'u_id': 'u785790611', 'date': '1556749188', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '354'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\nint main(void)\n{\n int n, max = 0, sum = 0, l[11];\n scanf(\"%d\", &n);\n\n max =... |
CDSS_108934 | CDSS | #include <stdio.h>
int main(void){
int a,b,c,d,p;
int x, y, ans;
scanf("%d", &a);
scanf("%d", &b);
scanf("%d", &c);
scanf("%d", &d);
scanf("%d", &p);
x = a * p;
if(p <= c) y = b;
else y = b + (p-c)*d;
ans = x < y ? x : y;
printf("%d\n", ans);
return 0;
} | 596 | memory_bytes | {'s_id': 's564466641', 'p_id': 'p00531', 'u_id': 'u074575391', 'date': '1435744364', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '282'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n int a,b,c,d,p;\n int x, y, ans;\n scanf(\"%d\", &a);\n scanf(\"%d\", &b);\n scanf(\"%d\",... |
CDSS_673390 | CDSS | #include <stdio.h>
#include <stdlib.h>
int compare_int(const void *a, const void *b){
return *(int*)b - *(int*)a;
}
int main(void){
int n, k, num[200000+5]={0};
scanf("%d %d", &n, &k);
for(int i=0; i<n; i++){
int a;
scanf("%d", &a);
num[a-1]++;
}
int cnt=0;
for(i... | 2,572 | memory_bytes | {'s_id': 's282892464', 'p_id': 'p03497', 'u_id': 'u972042735', 'date': '1599499339', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '42', 'memory': '2572', '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#include <stdlib.h>\nint compare_int(const void *a, const void *b){\n return *(int*)b - *(int*)a;\n}\nint main(... |
CDSS_550087 | CDSS | #include<stdio.h>
int main(){
int n,a,b;
scanf("%d %d %d",&n,&a,&b);
if(n * a < b){
printf("%d",n * a);
}
else{
printf("%d",b);
}
} | 1,732 | memory_bytes | {'s_id': 's762757072', 'p_id': 'p02981', 'u_id': 'u488700515', 'date': '1600453861', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1732', '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(){\n\tint n,a,b;\n\tscanf(\"%d %d %d\",&n,&a,&b);\n\tif(n * a < b){\n\t\tprintf(\"%d\",n * a);\n\t}\n\te... |
CDSS_219544 | CDSS | #include <stdio.h>
#define MAX 25
#define N 100000
#define NIL -1
struct Node {
int parent;
int left;
int right;
};
struct Node T[MAX];
void preParse(int u){
if(u==NIL)
return;
printf(" %d",u);
preParse(T[u].left);
preParse(T[u].right);
}
void inParse(int u){
if(u==NIL)
return;
inParse(T[u].... | 616 | memory_bytes | {'s_id': 's817079627', 'p_id': 'p02281', 'u_id': 'u369179738', 'date': '1497513536', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '616', 'code_size': '1089'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 MAX 25\n#define N 100000\n#define NIL -1\nstruct Node {\n int parent;\n int left;\n int right;\n};\nstr... |
CDSS_616714 | CDSS | #include <stdio.h>
#define REP(i,n) for (int i=0;i<(n);++i)
const int INF = 1e9;
int N;
int main(){
scanf("%d",&N);
int digit = N / 100;
int abc = digit * 100 + digit * 10 + digit;
if(N > abc) {
printf("%d\n",(digit+1) * 100 + (digit+1) * 10 + (digit+1));
} else {
printf("%d\n",ab... | 128 | memory_bytes | {'s_id': 's501391943', 'p_id': 'p03243', 'u_id': 'u843175622', 'date': '1556018845', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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>\n#define REP(i,n) for (int i=0;i<(n);++i)\nconst int INF = 1e9;\n\nint N;\n\nint main(){\n scanf(\"%d\",&N);\n\n... |
CDSS_695701 | CDSS | #include <stdio.h>
int main(void){
int num,a,b,sum;
char buf[128];
fgets(buf, 128, stdin);
sscanf(buf, "%d %d", &a,&b);
int flag = 0;
sum = a + b;
if(a % 3 == 0 || b % 3 == 0 || sum % 3 == 0 ){flag = 1;}
if(flag == 0){printf("Impossible");}
else if(flag == 1){printf("Possible");}
return 0;
}
| 128 | memory_bytes | {'s_id': 's583999629', 'p_id': 'p03657', 'u_id': 'u153477361', 'date': '1500177413', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '319'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 num,a,b,sum;\n char buf[128];\n fgets(buf, 128, stdin);\n sscanf(buf, \"%d %d\... |
CDSS_93453 | CDSS | #include <stdio.h>
int main(void){
int i,x,y,z;
scanf("%d", &z);
for (i=1;i<=z;i++){
scanf("%d", &x);
scanf("%d", &y);
if(x%y==0)
printf("%d\n",y);
else
printf("%d\n",x%y);
}
return 0;
} | 596 | memory_bytes | {'s_id': 's829312508', 'p_id': 'p00292', 'u_id': 'u154388271', 'date': '1431949510', '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(void){\n \n int i,x,y,z;\n \n scanf(\"%d\", &z);\n \n for (i=1;i<=z;i++){\n sc... |
CDSS_545353 | CDSS | #include<stdio.h>
int main(){
int n,p[50],flag=0,ele_1=0,ele_2=0;
scanf("%d",&n);
int i,j;
for(i=1;i<=n;i++){
scanf("%d",&p[i]);
}
for(i=1;i<=n;i++){
if(p[i]!=i && flag == 0){
flag++;
ele_1=i;
}
else if(p[i] != i && flag == 1){
flag++;
ele_2=i;
}
else if(p[i] != i)
flag++;
}
if(flag ... | 128 | memory_bytes | {'s_id': 's425977420', 'p_id': 'p02958', 'u_id': 'u619535866', 'date': '1564277469', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '429'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n\tint n,p[50],flag=0,ele_1=0,ele_2=0;\n\tscanf(\"%d\",&n);\n\tint i,j;\n\tfor(i=1;i<=n;i++){\n\t\tsc... |
CDSS_211609 | CDSS | #include<stdio.h>
int A[100000];
int partition(int A[], int p, int r){
int x = A[r-1];
int i = p;
for(int j = p; j < r - 1; j++){
if(A[j] <= x){
int temp = A[i];
A[i] = A[j];
A[j] = temp;
i++;
}
}
int temp = A[i];
A[i] = A[r-1];
... | 2,100 | memory_bytes | {'s_id': 's606354571', 'p_id': 'p02276', 'u_id': 'u648595971', 'date': '1528417012', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2100', '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>\n\nint A[100000];\n\nint partition(int A[], int p, int r){\n int x = A[r-1];\n int i = p;\n for(int j = p; ... |
CDSS_329241 | CDSS | #include<stdio.h>
int main()
{
int W,H;
int i,j;
while(scanf("%d %d",&H,&W)!=EOF)
{
if(H==0&&W==0)break;
else
{
for(i=0;i<H;i++)
{
for(j=0;j<W;j++)
{
printf("#");
}
printf("\n");
}
printf("\n");
}
}
return 0;
} | 572 | memory_bytes | {'s_id': 's939553838', 'p_id': 'p02403', 'u_id': 'u627002197', 'date': '1440701081', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '572', '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>\n\nint main()\n{\n\tint W,H;\n\tint i,j;\n\t\n\twhile(scanf(\"%d %d\",&H,&W)!=EOF)\n\t{\n\t\tif(H==0&&W==0)break;\n\... |
CDSS_550190 | CDSS | #include<stdio.h>
int min(int a,int b){if(a>b) return b;return a;}
int main(){
int n,a,b;
scanf("%d%d%d",&n,&a,&b);
printf("%d\n",min(b,n*a));
return 0;
} | 128 | memory_bytes | {'s_id': 's302590734', 'p_id': 'p02981', 'u_id': 'u188486233', 'date': '1581221773', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '170'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 min(int a,int b){if(a>b) return b;return a;}\nint main(){\n int n,a,b;\n scanf(\"%d%d%d\",&n,&a,&b);\n ... |
CDSS_700099 | CDSS | #include <stdio.h>
int main(void) {
int N;
int *a;
int i, check = -1, num = 2, x, ans = 0;
int *c;
scanf("%d", &N);
a = (int*)malloc(sizeof(int)*N);
c = (int*)malloc(sizeof(int)*N);
for (i = 0; i < N; i++) {
scanf("%d", &a[i]);
if (a[i] == 2) check = 1;
c[i] = 0;
}
if (check!=1) {
printf("%d\n", che... | 896 | memory_bytes | {'s_id': 's632076439', 'p_id': 'p03680', 'u_id': 'u203927510', 'date': '1498354932', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '13', 'memory': '896', 'code_size': '511'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\n\tint N;\n\tint *a;\n\tint i, check = -1, num = 2, x, ans = 0;\n\tint *c;\n\n\tscanf(\"%d\", &... |
CDSS_269026 | 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': 's719239860', 'p_id': 'p02391', 'u_id': 'u117449545', 'date': '1476247322', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', 'code_size': '172'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 a,b;\n\tscanf(\"%d %d\",&a,&b);\n\tif(a<b)\n\t\tprintf(\"a < b\\n\");\n\telse if(a==b)\n\t\... |
CDSS_201100 | CDSS | #include <stdio.h>
int n,A[20];
int solve(int i,int m){
if(m == 0)return 1;
if(i >= n)return 0;
int res = solve(i+1,m) || solve(i+1,m-A[i]);
return res;
}
int main(void){
int q,m,i;
scanf("%d",&n);
for(i = 0;i < n;i++){
scanf("%d",&A[i]);
}
scanf("%d",&q);
for(i = 0;i < q;i++){
scanf("%d",&m);
if(s... | 2,080 | memory_bytes | {'s_id': 's093237283', 'p_id': 'p02271', 'u_id': 'u458534054', 'date': '1574496884', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '980', 'memory': '2080', 'code_size': '411'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint n,A[20];\n\nint solve(int i,int m){\n\tif(m == 0)return 1;\n\tif(i >= n)return 0;\n\tint res = solve(i+1,m) ... |
CDSS_210716 | CDSS | #include<stdio.h>
#define N 200000
int partition(int *,int ,int );
int main(){
int a,b,i,A[N];
scanf("%d",&a);
for(i = 0;i < a;i++){
scanf("%d",&A[i]);
}
b = partition(A,0,a - 1);
for(i = 0;i < a;i++){
if(i == a - 1)printf("%d\n",A[i]);
else if(i == b)printf("[%d] ",A... | 2,252 | memory_bytes | {'s_id': 's782242625', 'p_id': 'p02276', 'u_id': 'u939890051', 'date': '1545833303', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2252', '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#define N 200000\nint partition(int *,int ,int );\n\nint main(){\n int a,b,i,A[N];\n\n scanf(\"%d\",&a);\n ... |
CDSS_588449 | CDSS | #if 0
cat <<EOF >mistaken-paste
#endif
// thanks for @rsk0315_h4x
#pragma GCC diagnostic ignored "-Wincompatible-pointer-types"
#define _USE_MATH_DEFINES
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <math.h>
#include <time.h>
#define BIG 2000000007
#def... | 8,320 | memory_bytes | {'s_id': 's828577502', 'p_id': 'p03090', 'u_id': 'u238041222', 'date': '1553376891', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '8320', 'code_size': '6705'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#if 0\ncat <<EOF >mistaken-paste\n#endif\n// thanks for @rsk0315_h4x\n\n#pragma GCC diagnostic ignored \"-Wincompatible-pointer-types\... |
CDSS_455073 | CDSS | int main(void){
int n,i;
scanf("%d",&n);
long long ans=0;
for(i=1;i<=n;i++){
if(i%3!=0 && i%5!=0)ans+=i;
}
printf("%lld\n",ans);
}
| 1,728 | memory_bytes | {'s_id': 's683821913', 'p_id': 'p02712', 'u_id': 'u582095101', 'date': '1587353015', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1728', 'code_size': '164'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n int main(void){ \n int n,i; \n scanf(\"%d\",&n); \n long long ans=0; \n for(i=1;i<=n;i++){ \n if(i%3!=0 && i%5!=0)ans+=i;... |
CDSS_433989 | CDSS | #include <stdio.h>
int main()
{
int h1, s1, h2, s2, i;
scanf("%d %d %d %d", &h1, &s1, &h2, &s2);
for (i=0; ; i++) {
h2=h2-s1;
h1=h1-s2;
if (h2<=0 || h1<=0) break;
}
if (h2<=0) printf("Yes\n");
else printf("No\n");
}
| 1,656 | memory_bytes | {'s_id': 's876486485', 'p_id': 'p02700', 'u_id': 'u409231490', 'date': '1587951606', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1656', 'code_size': '266'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main()\n{\n int h1, s1, h2, s2, i;\n scanf(\"%d %d %d %d\", &h1, &s1, &h2, &s2);\n for (i=0; ; i++... |
CDSS_517518 | CDSS | #include <stdio.h>
int main(){
int a, b;
scanf("%d %d", &a, &b);
int c = -1;
if (a <= 9 && b <= 9){
c = a * b;
}
printf("%d", c);
} | 128 | memory_bytes | {'s_id': 's240991290', 'p_id': 'p02879', 'u_id': 'u558493745', 'date': '1573575025', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '164'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n int a, b;\n scanf(\"%d %d\", &a, &b);\n int c = -1;\n if (a <= 9 && b <= 9){\n ... |
CDSS_605888 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
int main(){
int N, H, W, A, B, count=0;
if(scanf("%d %d %d",&N,&H,&W) < 3) N=N;
while(N>0){
if(scanf("%d %d",&A,&B) < 2) N=N;
if(H<=A && W<=B) count++;
N -= 1;
}
printf("%d",count);
} | 128 | memory_bytes | {'s_id': 's382913403', 'p_id': 'p03193', 'u_id': 'u598697760', 'date': '1545531877', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '284'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#include<string.h>\n\nint main(){\n int N, H, W, A, B, count=0;\n if(scanf(\"%d %d %d\",&... |
CDSS_393128 | CDSS | #include<stdio.h>
int main(){
int i;
int n;
char tmp[64];
int ans[4] = {0};
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%s",tmp);
if(tmp[0]=='A'){
ans[0]++;
}
if(tmp[0]=='W'){
ans[1]++;
}
if(tmp[0]=='T'){
ans[2]++;
}
if(tmp[0]=='R'){
... | 1,736 | memory_bytes | {'s_id': 's185703559', 'p_id': 'p02613', 'u_id': 'u956872271', 'date': '1593998395', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '17', 'memory': '1736', 'code_size': '453'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n \tint i;\n int n;\n char tmp[64];\n \tint ans[4] = {0};\n \n scanf(\"%d\",&n);\n\tfor(i=0;i<n;i+... |
CDSS_711620 | CDSS | #include <float.h>
#include <limits.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
// 内部変数
static FILE *szpFpI; // 入力
// 内部変数 - テスト用
#ifdef D_TEST
static int siRes;
static FILE *szpFpA;
static int siTNo;
#endif
// 1行出力
int
fOutLine(
char *pcpLine //... | 384 | memory_bytes | {'s_id': 's170051347', 'p_id': 'p03745', 'u_id': 'u088333128', 'date': '1567612734', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '12', 'memory': '384', 'code_size': '2227'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <float.h>\n#include <limits.h>\n#include <math.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <ti... |
CDSS_58076 | CDSS | #include <stdio.h>
int main(){
int b[14][14];
int i,j,m=0,n=0,x,y,z;
for(i=0;i<14;i++)for(j=0;j<14;j++)b[i][j]=0;
while(scanf("%d,%d,%d",&x,&y,&z)!=EOF){
x+=2;y+=2;
b[x][y]++;
b[x][y-1]++; b[x][y+1]++; b[x-1][y]++; b[x+1][y]++;
if(z>1){
b[x-1][y-1]++; b[x+1][y+1]++; b[x-1][y+1]++; b[x+1][... | 0 | memory_bytes | {'s_id': 's980725349', 'p_id': 'p00026', 'u_id': 'u715881598', 'date': '1341502974', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '546'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 b[14][14];\n int i,j,m=0,n=0,x,y,z;\n for(i=0;i<14;i++)for(j=0;j<14;j++)b[i][j]=0;\n while... |
CDSS_281163 | CDSS | #include<stdio.h>
void ex(int *a,int *b){
int tmp;
tmp=*a;
*a=*b;
*b=tmp;
}
int main(){
int a,b,c;
scanf("%d%d%d",&a,&b,&c);
if(a>b)ex(&a,&b);
if(b>c)ex(&b,&c);
if(a>b)ex(&a,&b);
printf("%d %d %d\n",a,b,c);
return 0;
}
| 2,076 | memory_bytes | {'s_id': 's105845786', 'p_id': 'p02393', 'u_id': 'u542576355', 'date': '1535523695', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2076', 'code_size': '293'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\n void ex(int *a,int *b){\n int tmp;\n tmp=*a;\n *a=*b;\n *b=tmp;\n }\n\n int main(){\n ... |
CDSS_459160 | CDSS | #include <stdio.h>
int func(int a, int b)
{
int tmp;
int r;
if (a < b)
{
tmp = a;
a = b;
b = tmp;
}
r = a % b;
while (r != 0)
{
a = b;
b = r;
r = a%b;
}
return (b);
}
int main()
{
int n;
scanf("%d",&n);
int i = 1;
int j = 1;
int k = 1;
int sum = 0;
while (i <= ... | 1,736 | memory_bytes | {'s_id': 's076627471', 'p_id': 'p02713', 'u_id': 'u827935538', 'date': '1586744253', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '222', 'memory': '1736', 'code_size': '511'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 func(int a, int b)\n{\n int tmp;\n int r;\n if (a < b)\n {\n tmp = a;\n a = b;\n b = tmp;\n }\n ... |
CDSS_238959 | CDSS | #include <stdio.h>
int main() {
int i, j, k, a, b, dice[2][7],
side[5] = {2,3,5,4,2},
n = 0;
for (i=0; i<2; i++)
for (j=1; j<7; j++)
scanf("%d", &dice[i][j]);
for (i=0; i<6; i++) {
if (dice[0][1]==dice[1][1])
for (j=0; j<4; j++) {
... | 2,104 | memory_bytes | {'s_id': 's416148334', 'p_id': 'p02385', 'u_id': 'u784674363', 'date': '1593452651', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '1488'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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, a, b, dice[2][7],\n side[5] = {2,3,5,4,2},\n n = 0;\n \n for (i=0; i<... |
CDSS_546792 | CDSS | #include <stdio.h>
int main() {
int r;
scanf("%d", &r);
printf("%d\n", 3 * r * r);
return 0;
} | 128 | memory_bytes | {'s_id': 's751030540', 'p_id': 'p02969', 'u_id': 'u416420069', 'date': '1573006922', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '105'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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;\n\n scanf(\"%d\", &r);\n printf(\"%d\\n\", 3 * r * r);\n\n return 0;\n}\nPredict its m... |
CDSS_326258 | CDSS | #include <stdio.h>
int main(void){
int n, con;
int inp;
long min, max, sum = 0;
do{
scanf("%d\n", &n);
if(n <= 0) break;
else{
for(con = 0; con < n; con++){
scanf("%d", &inp);
sum += inp;
if(con == 0) {min = inp; max = inp;}
if(inp < min) min = inp;
if(inp > max) max = inp;
}
}
printf("%ld %ld ... | 1,852 | memory_bytes | {'s_id': 's768137910', 'p_id': 'p02402', 'u_id': 'u043234694', 'date': '1507014631', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1852', 'code_size': '376'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n\tint n, con;\n\tint inp;\n\tlong min, max, sum = 0;\n\n\tdo{\n\tscanf(\"%d\\n\", &n);\n\n\tif(... |
CDSS_138668 | CDSS | #include <stdio.h>
int unionfind[100000];
void unionfind_init(int n)
{
for(int i = 0; i < n; ++i) { unionfind[i] = i; }
}
int unionfind_root(int x)
{
if(x != unionfind[x])
{
unionfind[x] = unionfind_root(unionfind[x]);
}
return unionfind[x];
}
void unionfind_merge(int s, int t)
{
unionfind[unionfind_root(s)... | 2,712 | memory_bytes | {'s_id': 's070224773', 'p_id': 'p02240', 'u_id': 'u806784783', 'date': '1537344861', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2712', 'code_size': '733'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 unionfind[100000];\n\nvoid unionfind_init(int n)\n{\n\tfor(int i = 0; i < n; ++i) { unionfind[i] = i; }\n}\n... |
CDSS_498667 | CDSS | #include<stdio.h>
int main(){
int n,i,j,count=0;
int a[11][11];
for(i=0;i<10;i++)
for(j=0;j<10;j++)
a[i][j]=0;
scanf("%d",&n);
for(i=1;i<=n;i++){
j=i;
while(j/10!=0)
j/=10;
a[j][i%10]++;
}
for(i=1;i<=9;i++){
for(j=i;j<=9;j++){
if(i==j)
count+=a[i][j]*a[i][j];
... | 128 | memory_bytes | {'s_id': 's642860595', 'p_id': 'p02792', 'u_id': 'u917851778', 'date': '1586901392', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '128', 'code_size': '413'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int n,i,j,count=0;\n int a[11][11];\n for(i=0;i<10;i++)\n for(j=0;j<10;j++)\n a[i][j]=0;\n... |
CDSS_575433 | CDSS | #include<stdio.h>
int main(void)
{
int a, b, t, all;
scanf("%d %d %d",&a, &b, &t);
all = t/a;
printf("%d",(t/a)*b);
return 0;
} | 128 | memory_bytes | {'s_id': 's508046397', 'p_id': 'p03059', 'u_id': 'u834403535', 'date': '1556414326', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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{\n\tint a, b, t, all; \n\tscanf(\"%d %d %d\",&a, &b, &t);\n\t\n\tall = t/a;\n\tprintf(\"%d\",(t/a)... |
CDSS_594853 | CDSS | #include <stdio.h>
int main()
{
int a, b;
scanf("%d%d", &a, &b);
if(b % a == 0) printf("%d\n", a+b);
else printf("%d\n", b-a);
return 0;
} | 128 | memory_bytes | {'s_id': 's430970723', 'p_id': 'p03125', 'u_id': 'u598995109', 'date': '1550372659', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '160'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main()\n{\n int a, b;\n scanf(\"%d%d\", &a, &b);\n if(b % a == 0) printf(\"%d\\n\", a+b);\n else... |
CDSS_652315 | CDSS | #include<stdio.h>
int main(void)
{
int a,b,c,d,bus,train;
scanf("%d %d %d %d",&a ,&b, &c, &d );
if(a<b) train=a;
else train=b;
if(c<d) bus=c;
else bus=d;
printf("%d",train + bus);
}
| 128 | memory_bytes | {'s_id': 's658176334', 'p_id': 'p03399', 'u_id': 'u620242073', 'date': '1523646934', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '201'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\n int a,b,c,d,bus,train;\n\n scanf(\"%d %d %d %d\",&a ,&b, &c, &d );\n\n if(a<b) train=a;\n e... |
CDSS_739422 | CDSS | #include <stdio.h>
int main (void){
int days;
int first_price_days;
int first_price;
int over_price;
scanf ("%d",&days);
scanf("%d",&first_price_days);
scanf("%d",&first_price);
scanf("%d",&over_price);
if(days > first_price_days){
printf("%d\n",first_price * first_price_day... | 128 | memory_bytes | {'s_id': 's036361156', 'p_id': 'p04011', 'u_id': 'u752466217', 'date': '1497734224', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '439'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main (void){\n int days;\n int first_price_days;\n int first_price;\n int over_price;\n scanf... |
CDSS_314509 | CDSS | #include <stdio.h>
#include <math.h>
int main(void)
{
double r,l,S;
scanf("%lf",&r);
S=M_PI*r*r;
l=2*M_PI*r;
printf("%.6lf %.6lf",S,l);
return 0;
} | 652 | memory_bytes | {'s_id': 's656758208', 'p_id': 'p02400', 'u_id': 'u728581736', 'date': '1477622605', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '652', 'code_size': '154'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n\nint main(void)\n{\n\tdouble r,l,S;\n\tscanf(\"%lf\",&r);\n\tS=M_PI*r*r;\n\tl=2*M_PI*r;\n\tpri... |
CDSS_122517 | CDSS | main(){
int n,u,d,h,p;
scanf("%*d");
for(;~scanf("%d",&n);){
u=d=0;
scanf("%d",&p);
for(;--n;){
scanf("%d",&h);
if(h-p>u)
u=h-p;
if(h-p<d)
d=h-p;
p=h;
}
printf("%d %d\n",u,-d);
}
} | 0 | memory_bytes | {'s_id': 's440846533', 'p_id': 'p01223', 'u_id': 'u399107199', 'date': '1295168123', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '214'} | [
{
"content": "Your task is to predict the 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(){\n\tint n,u,d,h,p;\n\tscanf(\"%*d\");\n\tfor(;~scanf(\"%d\",&n);){\n\t\tu=d=0;\n\t\tscanf(\"%d\",&p);\n\t\tfor(;--n;){\n\t\t\ts... |
CDSS_692738 | CDSS | o;t;f;i;main(a){for(;~scanf("%d",&a);)i++?a%4?a%2?o++:t++:f++:0;puts(f<o-!t?"No":"Yes");} | 128 | memory_bytes | {'s_id': 's097035814', 'p_id': 'p03639', 'u_id': 'u751488284', 'date': '1559659118', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '12', 'memory': '128', '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:\no;t;f;i;main(a){for(;~scanf(\"%d\",&a);)i++?a%4?a%2?o++:t++:f++:0;puts(f<o-!t?\"No\":\"Yes\");}\nPredict its memory footprint.",
"... |
CDSS_739611 | CDSS | #include <stdio.h>
int main()
{
char s[101];
scanf("%s",&s);
char a[27];
int i;
i = 0;
while (i < 26)
{
a[i] = 2;
i++;
}
a[i] = 0;
i = 0;
while (s[i])
{
a[s[i]-'a']++;
i++;
}
i = 0;
while (a[i])
{
//printf("%d\n",a[i]);
if (a[i] % 2 != 0)
{
printf("No\n... | 128 | memory_bytes | {'s_id': 's672220302', 'p_id': 'p04012', 'u_id': 'u827935538', 'date': '1589025905', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '128', 'code_size': '381'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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[101];\n scanf(\"%s\",&s);\n char a[27];\n int i;\n i = 0;\n while (i < 26)\n {\n ... |
CDSS_277313 | CDSS | #include <stdio.h>
int main() {
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
printf("%s\n",a<b&b<c?"Yes":"No");
return 0;
} | 580 | memory_bytes | {'s_id': 's059334810', 'p_id': 'p02392', 'u_id': 'u545548478', 'date': '1478239131', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', 'code_size': '122'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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;\n\tscanf(\"%d %d %d\",&a,&b,&c);\n\tprintf(\"%s\\n\",a<b&b<c?\"Yes\":\"No\");\n\tretu... |
CDSS_594057 | CDSS | // Ver19.02
#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 MAX(a, b) ((a) > (b) ? (a) : (b))
#define MIN(a, b) ((a) < (b) ? (a) : (b))
int upll(const void *a, const void *b) { return *... | 128 | memory_bytes | {'s_id': 's545117303', 'p_id': 'p03110', 'u_id': 'u883325972', 'date': '1551039937', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '864'} | [
{
"content": "Your task is to predict the memory 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.02\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_106010 | CDSS | #include <stdio.h>
#define MIN(A,B) \
( (A) < (B) ? (A) : (B) )
/** Application main entry point. */
int
main (
int argc,
char * argv[ ]
)
{
int p, j;
int t;
scanf ( "%d%d", &p, &t ); p = MIN( p, t );
scanf ( "%d", &t ); p = MIN( p, t );
scanf ( "%d%d", &j, &t ); j = MIN( j, t );
print... | 0 | memory_bytes | {'s_id': 's647991561', 'p_id': 'p00488', 'u_id': 'u009961299', 'date': '1330234339', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '364'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 MIN(A,B) \\\n ( (A) < (B) ? (A) : (B) )\n\n/** Application main entry point. */\nint\nmain (\n int ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.