identifier string | space string | input string | target float64 | metric_type string | metadata string | messages list |
|---|---|---|---|---|---|---|
CDSS_264290 | CDSS | #include<stdio.h>
int main(){
int s,h,m,ss,sm;
scanf("%d",&s);
if(s<60){
printf("0:0:%d\n",s);
}
else if(s<3600 && s>= 60){
m = s/60;
ss = s - (m*60);
printf("0:%d:%d\n",m,ss);
}
else if(s>=3600 && s<=86400){
h = s/3600;
sm = s - (h*3600);
m = sm/60;
ss = sm - (m*60);
printf("%d:%d:%d\n",h,m,ss);
}
re... | 2,112 | memory_bytes | {'s_id': 's578113686', 'p_id': 'p02390', 'u_id': 'u350504475', 'date': '1585988818', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', '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\nint s,h,m,ss,sm;\nscanf(\"%d\",&s);\n\nif(s<60){\n\tprintf(\"0:0:%d\\n\",s);\n}\nelse if(s<3600 &&... |
CDSS_18752 | CDSS | #include<stdio.h>
int main(){
int i =0;
int j=0;
for(i=1;i<10;i++){
for(j=1;j<10;j++){
printf("%dx%d=%d\n",i,j,i*j);
}
}
return 0;
} | 524 | memory_bytes | {'s_id': 's563401776', 'p_id': 'p00000', 'u_id': 'u328733599', 'date': '1466389370', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', '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>\n\nint main(){\n\tint i =0;\n\tint j=0;\n\tfor(i=1;i<10;i++){\n\t\tfor(j=1;j<10;j++){\n\t\t\tprintf(\"%dx%d=%d\\n\",... |
CDSS_735585 | CDSS | #include<stdio.h>
int main()
{
char a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p;
char s[16] = "CODEFESTIVAL2016";
scanf("%c",&a);
scanf("%c",&b);
scanf("%c",&c);
scanf("%c",&d);
scanf("%c",&e);
scanf("%c",&f);
scanf("%c",&g);
scanf("%c",&h);
scanf("%c",&i);
scanf("%c",&j);
scanf("%c",&k);
scanf("%c",&l);
scanf("%c"... | 128 | memory_bytes | {'s_id': 's155503671', 'p_id': 'p03970', 'u_id': 'u368432054', 'date': '1476125940', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '975'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\tchar a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p;\n\tchar s[16] = \"CODEFESTIVAL2016\";\n\tscanf(\"%c\",&a);... |
CDSS_535318 | CDSS | /*
* main.c
*
* Created on: 2019/07/21
* Author: family
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
int main()
{
int M = 0, D = 0;
int i = 0, j = 0, ans = 0;
scanf("%d %d", &M, &D);
for (i = 2; i <= M; i++) {
for (j = 20; j <= D; j++) {
if ((j%10) < 2) {
con... | 128 | memory_bytes | {'s_id': 's357457203', 'p_id': 'p02927', 'u_id': 'u898925304', 'date': '1566695395', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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/*\n * main.c\n *\n * Created on: 2019/07/21\n * Author: family\n */\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <strin... |
CDSS_490315 | CDSS | #include<stdio.h>
#include<string.h>
#include<math.h>
int main(void) {
char str1[11], str2[11],str[11];
int ball1, ball2;
scanf("%s %s", str1, str2);
scanf("%d %d", &ball1, &ball2);
scanf("%s", str);
if (strcmp(str1, str) == 0)ball1--;
else ball2--;
printf("%d %d", ball1, ball2);
return 0;
} | 128 | memory_bytes | {'s_id': 's710184389', 'p_id': 'p02777', 'u_id': 'u105100688', 'date': '1581279362', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '128', 'code_size': '304'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\n#include<math.h>\n\nint main(void) {\n\tchar str1[11], str2[11],str[11];\n\tint ball1, ball2;\n... |
CDSS_681412 | CDSS | #include <stdio.h>
int main(){
int A,B,C,D;
scanf("%d %d %d",&A,&B,&C);
if(A==B) D=C;
else if(A==C) D=B;
else D=A;
printf("%d\n",D);
return 0;
} | 1,720 | memory_bytes | {'s_id': 's448707314', 'p_id': 'p03573', 'u_id': 'u347116006', 'date': '1593403178', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1720', 'code_size': '159'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n int A,B,C,D;\n scanf(\"%d %d %d\",&A,&B,&C);\n if(A==B) D=C;\n else if(A==C) D=B;\n else D=A;... |
CDSS_252715 | CDSS | #include<stdio.h>
int main(void)
{
int a, b;
scanf("%d %d", &a, &b);
printf("%d %d\n",a * b,2 * ( a + b));
return 0;
} | 596 | memory_bytes | {'s_id': 's921396296', 'p_id': 'p02389', 'u_id': 'u837051839', 'date': '1467784890', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '124'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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;\n\tscanf(\"%d %d\", &a, &b);\n\t\n\tprintf(\"%d %d\\n\",a * b,2 * ( a + b));\n\tretu... |
CDSS_610562 | CDSS | #include <stdio.h>
#include <math.h>
int main(int argc, char const *argv[])
{
int n, n1=1, n2, a[100], a1, b[100], i1=1, i2, ans=0, flag;
scanf("%d", &n);
if (n<10)
{
printf("%d\n", 0);
return 0;
}
for (int i = 0; i < 100; ++i)
{
b[i]=0;
}
a[0]=2;
for (int i = 3; i <= n; ++i)
{
flag=0;
for (int j ... | 128 | memory_bytes | {'s_id': 's997258009', 'p_id': 'p03213', 'u_id': 'u727854164', 'date': '1544132484', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '1118'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n\nint main(int argc, char const *argv[])\n{\n\tint n, n1=1, n2, a[100], a1, b[100], i1=1, i2, a... |
CDSS_640445 | CDSS |
#include <stdio.h>
int main(void)
{
//変数の宣言
int a,b;
int n,ans;
//データの読み込み
scanf("%d %d",&a,&b);
// printf("nは%dです\n", n);
// printf("データの読み込み終了\n");
//実際の処理
n=b-a;
ans=n*(n+1)/2-b;
// printf("計算部分終了\n");
//出力
printf("%d",ans);
// printf("結果の出力終了\n");
return 0;
}
| 128 | memory_bytes | {'s_id': 's842038270', 'p_id': 'p03328', 'u_id': 'u705931757', 'date': '1536897104', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '391'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n\n#include <stdio.h>\n\nint main(void)\n{\n\t//変数の宣言\n\tint a,b;\n\tint n,ans;\n\t\n\t//データの読み込み\n\t\n\tscanf(\"%d %d\",&a,&b);\n\t\n/... |
CDSS_56923 | CDSS | #include <stdio.h>
int main(void) {
int i,max=0;
double v[50];
for(i=0;i<50;i++){
int ret=scanf("%lf",&v[i]);
if(ret==EOF) break;
if(i>max) max=i;
}
int N[50];
double t[50],t2[50],y[50],n[50];
for(i=0;i<=max;i++){
t[i]=v[i]/9.8;
t2[i]=t[i]*t[i];
y[i]=4.9*t2[i];
n[i]=(y[i]+5.0)/5.0;
N[i]=n[i]+1.0;... | 2,036 | memory_bytes | {'s_id': 's659197084', 'p_id': 'p00024', 'u_id': 'u374434600', 'date': '1528477577', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2036', 'code_size': '361'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void) {\n\tint i,max=0;\n\tdouble v[50];\n\tfor(i=0;i<50;i++){\n\t\tint ret=scanf(\"%lf\",&v[i]);\n\t\tif... |
CDSS_370756 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main (){
char card[201];
char cardcpy1[201],cardcpy2[201];
int m,h,i,j,substr,wordcount,lenght;
while(1){
scanf("%s",card);
if(card[0] =='-')break;
scanf("%d",&m);
for(i = 0,lenght = strlen(card);i < m;i++){
... | 2,028 | memory_bytes | {'s_id': 's542400645', 'p_id': 'p02420', 'u_id': 'u333326383', 'date': '1573361287', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2028', 'code_size': '1230'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\nint main (){\n char card[201];\n char cardcpy1[201],cardcpy2[201];... |
CDSS_704330 | CDSS | #include <stdio.h>
int main(){
long n, a, b; scanf("%ld %ld %ld", &n, &a, &b);
long ans = 0;
if(n <= 2 || a > b){
if((n==1&&a==b) || (n==2&&a<=b)) ans = 1;
printf("%ld\n", ans);
return 0;
}
ans = (b - a) * (n - 2) + 1;
printf("%ld\n", ans);
return 0;
}
| 1,708 | memory_bytes | {'s_id': 's583338751', 'p_id': 'p03705', 'u_id': 'u792720861', 'date': '1593907656', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1708', '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\nint main(){\n long n, a, b; scanf(\"%ld %ld %ld\", &n, &a, &b);\n long ans = 0;\n if(n <= 2 || a > b){\n ... |
CDSS_75544 | CDSS | #include<stdio.h>
#define u_int unsigned int
int main(void){
struct shain{
u_int ID;
u_int uriage;
}uri[4000];
u_int i,j,n,flg;
u_int ids,tank,kazu,now;
while(scanf("%u",&n)&&n!=0){
for(i=0;i<4000;i++){
uri[i].ID=0;
uri[i].uriage=0;
}
for(i=0,now=0;i<n;i++,now++){
sca... | 0 | memory_bytes | {'s_id': 's729136979', 'p_id': 'p00100', 'u_id': 'u703949805', 'date': '1301128746', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '766'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#define u_int unsigned int\n\nint main(void){\n struct shain{\n u_int ID;\n u_int uriage;\n }uri[4000];\n ... |
CDSS_506394 | CDSS | #include<stdio.h>
int main() {
int A, B;
scanf("%d %d", &A, &B);
printf("%d\n", 6-A-B);
return 0;
} | 2,092 | memory_bytes | {'s_id': 's168405466', 'p_id': 'p02829', 'u_id': 'u353919145', 'date': '1600221554', 'language': 'C', 'original_language': 'C (Clang 10.0.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '2092', 'code_size': '108'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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;\n\t\n\tscanf(\"%d %d\", &A, &B);\n\tprintf(\"%d\\n\", 6-A-B);\n\t\n\treturn 0;\n}\nPred... |
CDSS_191092 | CDSS | /*--------------------------*/
// p.119
// 5.2 線形探索
//
// ALDS1_4_A: Linear Search
//
// 配列Aに含まれる,配列Sの要素の個数を出力するプログラム
//
// 入力例:
// 5 (n)
// 1 2 3 4 5 (A: nコの配列)
// 3 (q)
// 3 4 1 (T: qコの配列)
// 出力例:
// 3
//
/*--------------------------*/
#include<stdio.h>
// 線形探索
int linearSearch(int A[], int n, i... | 2,044 | memory_bytes | {'s_id': 's131480698', 'p_id': 'p02267', 'u_id': 'u672952262', 'date': '1550930934', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2044', 'code_size': '1041'} | [
{
"content": "Your task is to predict the memory 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// p.119\n// 5.2 線形探索\n//\n// ALDS1_4_A: Linear Search\n//\n// 配列Aに含まれる,配列Sの要素の個数を出力するプログラム\n//\n// 入力... |
CDSS_625030 | CDSS | #include <stdio.h>
int main()
{
int a,b;
scanf("%d %d %d",&a,&b);
printf("%d",(a-1)*(b-1));
} | 128 | memory_bytes | {'s_id': 's507835885', 'p_id': 'p03280', 'u_id': 'u827935538', 'date': '1585790312', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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>\n \nint main()\n{\n int a,b;\n scanf(\"%d %d %d\",&a,&b);\n printf(\"%d\",(a-1)*(b-1));\n}\nPredict its memory f... |
CDSS_677393 | CDSS | #include<stdio.h>
int main(){
int x,y,z;
scanf("%d%d%d",&x,&y,&z);
x-=z;
printf("%d\n",x/(y+z));
return 0;
}
| 128 | memory_bytes | {'s_id': 's629097167', 'p_id': 'p03548', 'u_id': 'u917851778', 'date': '1592360728', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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>\nint main(){\n int x,y,z;\n scanf(\"%d%d%d\",&x,&y,&z);\n x-=z;\n printf(\"%d\\n\",x/(y+z));\n return 0;\n}\n\n... |
CDSS_563792 | CDSS | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <math.h>
#include <stdbool.h>
#define LL long long
#define INF 1<<31-1
#define MIN(x,y) ((x)<(y)?(x):(y))
#define MAX(x,y) ((x)<(y)?(y):(x))
#define FOR(i,a,n) for(i=a;i<n;i++)
#define MOD 1000000007
#define NUM 100001
void swap(int* a,int* b){int tmp=... | 128 | memory_bytes | {'s_id': 's083316450', 'p_id': 'p03012', 'u_id': 'u596117821', 'date': '1560129626', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '705'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 <math.h>\n#include <stdbool.h>\n#define LL long long\n#define I... |
CDSS_505736 | CDSS | #include<stdio.h>
int main(void)
{
int n,k,r,s,p,i,f,u[100000];
char t[100000];
scanf("%d %d",&n,&k);
scanf("%d %d %d",&r,&s,&p);
scanf("%s",t);
f=0;
/*printf("%d %d\n",r,p);*/
/*printf("%c %c %c\n",t[0],t[1],t[2]);*/
for(i=0;i<k;i++){
if(t[i]=='r'){
f=f+p;
u[i]=1;
/*printf("%d p... | 640 | memory_bytes | {'s_id': 's040167814', 'p_id': 'p02820', 'u_id': 'u986190948', 'date': '1577676147', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '640', 'code_size': '1074'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 n,k,r,s,p,i,f,u[100000];\n char t[100000];\n scanf(\"%d %d\",&n,&k);\n scanf(\"%d %d %d... |
CDSS_684787 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include<string.h>
int main ()
{
char ara[2];
scanf("%s",ara);
if(ara[0]== '9' || ara[1]== '9')
printf("Yes\n");
else
printf("No\n");
return 0;
} | 128 | memory_bytes | {'s_id': 's808119693', 'p_id': 'p03605', 'u_id': 'u364372703', 'date': '1586751416', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '224'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include<string.h>\n\nint main ()\n{\n char ara[2];\n scanf(\"%s\",ara);\n if(ara[0]... |
CDSS_592073 | CDSS | #include<stdio.h>
int main(){
int a,b,k;
scanf("%d %d %d",&a,&b,&k);
int A[a];
int n = -1;
for(int i = 1; i <= a; i++){
if(a % i == 0){
n++;
A[n] = i;
}
}
int i = n;
int count = 0;
int num = 0;
while(1){
if(b % A[i] == ... | 128 | memory_bytes | {'s_id': 's767904607', 'p_id': 'p03106', 'u_id': 'u187995923', 'date': '1551645689', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '478'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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,k;\n scanf(\"%d %d %d\",&a,&b,&k);\n int A[a];\n int n = -1;\n for(int i = 1; ... |
CDSS_574859 | CDSS | #include<stdio.h>
int main()
{
int a,b,t;
int k=0;
scanf("%d%d%d",&a,&b,&t);
t=t+0.5;
k=t/a;
printf("%d\n",k*b);
return 0;
} | 128 | memory_bytes | {'s_id': 's629844702', 'p_id': 'p03059', 'u_id': 'u353919145', 'date': '1581103051', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '146'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n int a,b,t;\n int k=0;\n scanf(\"%d%d%d\",&a,&b,&t);\n t=t+0.5;\n k=t/a;\n\tprintf(\"... |
CDSS_317316 | CDSS | #define PI 3.141592653589
main () {
double r;
scanf("%lf", &r);
printf("%f %f\n", r * r * PI, 2 * r * PI);
}
| 2,072 | memory_bytes | {'s_id': 's824423858', 'p_id': 'p02400', 'u_id': 'u655658530', 'date': '1566727160', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2072', 'code_size': '118'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#define PI 3.141592653589\n \nmain () {\n double r;\n scanf(\"%lf\", &r);\n printf(\"%f %f\\n\", r * r * PI, 2 * r * PI);\n}\n\nPr... |
CDSS_538477 | CDSS | #include<stdio.h>
#include<string.h>
int main(void){
int a,b,max;
scanf("%d%d",&a,&b);
max=a*b>a-b?a*b:a-b;
max=max>a+b?max:a+b;
printf("%d",max);
return 0;
} | 128 | memory_bytes | {'s_id': 's191069341', 'p_id': 'p02945', 'u_id': 'u270535768', 'date': '1588889402', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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#include<string.h>\nint main(void){\n int a,b,max;\n scanf(\"%d%d\",&a,&b);\n max=a*b>a-b?a*b:a-b;\n ma... |
CDSS_120247 | CDSS | #include<stdio.h>
typedef struct{
int coin;
int cost;
}Data;
int shop[100];
int n;
int main(void){
while(1){
scanf("%d",&n);
if(n==0) break;
for(int i=0;i<n;i++){
scanf("%d",&shop[i]);
}
Data dp[50001][2];
for(int i=0;i<2;i++){
for(int ... | 2,508 | memory_bytes | {'s_id': 's725504443', 'p_id': 'p01088', 'u_id': 'u952081851', 'date': '1529663279', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '110', 'memory': '2508', 'code_size': '4643'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 struct{\n int coin;\n int cost;\n}Data;\nint shop[100];\nint n;\nint main(void){\n while(1){\n ... |
CDSS_653284 | CDSS | #include<stdio.h>
int main()
{
int a, b, c;
scanf("%d%d%d", &a, &b, &c);
if (a + b >= c) {
printf("Yes\n");
}
else {
printf("No\n");
}
} | 128 | memory_bytes | {'s_id': 's836383682', 'p_id': 'p03407', 'u_id': 'u327298521', 'date': '1589596870', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '179'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main()\n{\n int a, b, c;\n\n scanf(\"%d%d%d\", &a, &b, &c);\n\n if (a + b >= c) {\n printf(\"... |
CDSS_277826 | 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': 's183325647', 'p_id': 'p02392', 'u_id': 'u084055261', 'date': '1491989436', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', 'code_size': '189'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n int a,b,c;\n scanf(\"%d %d %d\",&a,&b,&c);\n if((a<b)&&(b<c)){\n printf(\"Yes\\n\... |
CDSS_325278 | CDSS | #include <stdio.h>
int main()
{
int n,i;
int a[10000];
int max = -1000000,min = 1000000;
long sum = 0;
scanf("%d",&n);
for(i = 0; i < n; i++)
{
scanf("%d",&a[i]);
}
for(i = 0; i < n; i++)
{
if(max < a[i])
{
max = a[i];
}
if(min > a[i])
{
min = a[i];
}
sum += a[i];
}
printf("%d... | 640 | memory_bytes | {'s_id': 's167368433', 'p_id': 'p02402', 'u_id': 'u490434148', 'date': '1494220730', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '640', 'code_size': '359'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main()\n{\n\tint n,i;\n\tint a[10000];\n\tint max = -1000000,min = 1000000;\n\tlong sum = 0;\n\t\n\tscanf(\"... |
CDSS_567007 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <time.h>
#define _CRT_SECURE_NO_WARNINGS
#define TLong long long
#define TBMod 1000000007
int main(int argc, char const *argv[])
{
int a,p;
scanf("%d%d",&a,&p);
printf("%d\n", (3 * a + p) / 2);
return 0;
}
| 128 | memory_bytes | {'s_id': 's512045871', 'p_id': 'p03029', 'u_id': 'u185464141', 'date': '1558918930', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '298'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <math.h>\n#include <time.h>\n\n#define _CRT_SECURE_NO_WARNINGS\... |
CDSS_642351 | CDSS | #include<stdio.h>
#include <math.h>
int main(void){
int A,B;
scanf("%d %d",&A,&B);
int C,D;
C = fmax(A+B,A-B);
D = fmax(C,A*B);
printf("%d",D);
return 0;
}
| 128 | memory_bytes | {'s_id': 's351306303', 'p_id': 'p03337', 'u_id': 'u085356325', 'date': '1527383209', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '171'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include <math.h>\n\nint main(void){\n int A,B;\n scanf(\"%d %d\",&A,&B);\n int C,D;\n C = fmax(A+B,A-B);\n D ... |
CDSS_653141 | CDSS | #include <stdio.h>
#include <stdlib.h>
int main()
{
int n,a[100000];
int suma;
int i,j;
scanf("%d",&n);
a[0] = 0;
for (i = 1; i <= n; i++)scanf("%d",&a[i]);
a[i] = 0;
suma = 0;
for (i = 0; i < n + 2; i++)
{
suma += abs(a[i + 1] - a[i]);
}
for (i = 1; i <= n; i... | 1,536 | memory_bytes | {'s_id': 's740648867', 'p_id': 'p03403', 'u_id': 'u494609869', 'date': '1585655636', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '1536', '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#include <stdlib.h>\n\nint main()\n{\n int n,a[100000];\n int suma;\n int i,j;\n\n scanf(\"%d\",&n);\n... |
CDSS_617949 | CDSS | #include <stdio.h>
int cmpfunc (const void * a, const void * b)
{
return ( *(int*)a - *(int*)b );
}
int main()
{
int a[4], ans=0, max, max2, max3;
scanf("%d %d %d", &a[0], &a[1], &a[2]);
qsort (a, 3, sizeof(int), cmpfunc);
max = a[2];
max2= a[1];
max3= a[0];
ans = (max * 10) + max2 + m... | 128 | memory_bytes | {'s_id': 's394059015', 'p_id': 'p03250', 'u_id': 'u816631826', 'date': '1559756774', '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 cmpfunc (const void * a, const void * b)\n{\n return ( *(int*)a - *(int*)b );\n}\n\nint main()\n{\n int... |
CDSS_726770 | CDSS | #include <stdio.h>
int main() {
int n, t[100], m, p, x, sum = 0;
scanf("%d", &n);
for (int i = 0; i < n; i++) {
scanf("%d", &t[i]);
sum += t[i];
}
scanf("%d", &m);
for (int i = 0; i < m; i++) {
scanf("%d%d", &p, &x);
printf("%d\n", sum - t[p - 1] + x);
}
return 0;
} | 128 | memory_bytes | {'s_id': 's310431476', 'p_id': 'p03845', 'u_id': 'u030504180', 'date': '1586988485', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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>\nint main() {\n\tint n, t[100], m, p, x, sum = 0;\n\tscanf(\"%d\", &n);\n\tfor (int i = 0; i < n; i++) {\n\t\tscanf... |
CDSS_480560 | CDSS | #include <stdio.h>
#define rep(i, n) for (int i = 0; i < (int) (n); i++)
#define MOD 1000000007
typedef long long ll;
int main(){
int a, b, c, d, e, f, g, h, i, j, k, l, ans;
scanf("%d%d", &a, &b);
c = a + 1;
d = b + 1;
e = a * 12.5;
f = b * 10;
g = c * 12.5;
h = d * 10;
i = e * 0.08;
j = f * 0.1;
k = g * 0... | 128 | memory_bytes | {'s_id': 's345210411', 'p_id': 'p02755', 'u_id': 'u822725754', 'date': '1583638330', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '528'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 < (int) (n); i++)\n#define MOD 1000000007\ntypedef long long ll;\n\nint main()... |
CDSS_197792 | CDSS | #include<stdio.h>
#include<string.h>
#define M 1046527
#define NIL (-1)
#define L 14
char H[M][L]; /* Hash Table */
int getChar(char ch){
if ( ch == 'A') return 1;
else if ( ch == 'C') return 2;
else if ( ch == 'G') return 3;
else if ( ch == 'T') return 4;
else return 0;
}
/* convert a string into an inte... | 16,044 | memory_bytes | {'s_id': 's887171956', 'p_id': 'p02269', 'u_id': 'u586920078', 'date': '1575614614', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '180', 'memory': '16044', 'code_size': '1439'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\n#define M 1046527\n#define NIL (-1)\n#define L 14\n\nchar H[M][L]; /* Hash Table */\n\nint ge... |
CDSS_172003 | CDSS | #include <stdio.h>
int selectionSort(int A[],int N){
int i, j, t, sw =0,minj;
for (i=0; i <N -1; i++){
minj = i;
for (j=i; j<N;j++){
if (A[j] <A[minj]) minj = j;
}
t = A[i]; A[i] = A[minj]; A[minj] = t; // 交換する
if (i !=minj) sw++;
}
return sw;
}
int main(){
... | 2,140 | memory_bytes | {'s_id': 's070991768', 'p_id': 'p02260', 'u_id': 'u351341371', 'date': '1581681345', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2140', 'code_size': '609'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\n\nint selectionSort(int A[],int N){\n int i, j, t, sw =0,minj;\n for (i=0; i <N -1; i++){\n minj = ... |
CDSS_423782 | CDSS | #define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main(){
int N = 0, K = 0, A = 0, d = 0, sunuke[101] = { 0 }, ans = 0;
scanf("%d", &N);
scanf("%d", &K);
ans = N;
for (int i = 0; i < K; i++) {
scanf("%d", &d);
for (int k = 0; k < d; k++) {
scanf("%d", &A);
if (sunuke[A] == 0) {
... | 1,728 | memory_bytes | {'s_id': 's858779870', 'p_id': 'p02688', 'u_id': 'u424405505', 'date': '1588555238', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1728', 'code_size': '405'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#define _CRT_SECURE_NO_WARNINGS\n#include <stdio.h>\n\nint main(){\n int N = 0, K = 0, A = 0, d = 0, sunuke[101] = { 0 }, ans = 0;\n ... |
CDSS_499725 | CDSS | #include<stdio.h>
int main()
{
char p[2];
{
scanf("%s",&p);
p[0]++;
printf("%s\n",p);
}
}
| 1,604 | memory_bytes | {'s_id': 's755987168', 'p_id': 'p02801', 'u_id': 'u395620793', 'date': '1595724605', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1604', 'code_size': '126'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n char p[2];\n {\n scanf(\"%s\",&p);\n p[0]++;\n printf(\"%s\\n\",p);\n ... |
CDSS_607707 | CDSS | #include <stdio.h>
int main (void) {
int n;
scanf("%d", &n);
if (n == 25) {
puts("Christmas");
} else if (n == 24) {
puts("Christmas Eve");
} else if (n == 23) {
puts("Christmas Eve Eve");
} else if (n == 22) {
puts("Christmas Eve Eve Eve");
}
return 0;
}
| 128 | memory_bytes | {'s_id': 's231917619', 'p_id': 'p03206', 'u_id': 'u968950181', 'date': '1544321735', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', '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>\nint main (void) {\n\tint n;\n\tscanf(\"%d\", &n);\n\tif (n == 25) {\n\t\tputs(\"Christmas\");\n\t} else if (n == 2... |
CDSS_471631 | CDSS | #include<stdio.h>
int main() {
int n, m, p = 0;
scanf("%d %d", &n, &m);
if (n != 0) {
p = p + (n*(n - 1))/2;
}
if (m != 0) {
p = p + (m*(m - 1))/2;
}
printf("%d", p);
} | 128 | memory_bytes | {'s_id': 's515009945', 'p_id': 'p02729', 'u_id': 'u737015864', 'date': '1586196912', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '128', 'code_size': '180'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main() {\n\tint n, m, p = 0;\n\tscanf(\"%d %d\", &n, &m);\n\tif (n != 0) {\n\t\tp = p + (n*(n - 1))/2;\n\t}\n... |
CDSS_157963 | CDSS | #include<stdio.h>
#include<math.h>
int Sosu(int N){
int i=3;
if(N==2)return 1;
if(N<2 || N%2==0)return 0;
while(i<=sqrt(N)){
if(N%i==0)return 0;
i=i+2;
}
return 1;
}
int main(void){
int N;
int n,i;
int S=0,c=0;
while(1){
scanf("%d",&n);
if(n>=1 && n<=10000)break;
}
for(i=0 ; i<n ; i++){
while(1){
scanf("%d",&... | 2,084 | memory_bytes | {'s_id': 's904215103', 'p_id': 'p02257', 'u_id': 'u781291236', 'date': '1529214791', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2084', 'code_size': '407'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<math.h>\nint Sosu(int N){\n int i=3;\nif(N==2)return 1;\nif(N<2 || N%2==0)return 0;\nwhile(i<=sqrt(N)){\n... |
CDSS_579158 | CDSS | #include<stdio.h>
int main(){
int A,B;
int anser;
scanf("%d%d",&A,&B);
if(A>B){
anser=A+(A-1);
}
if(A<B){
anser=B+(B-1);
}
if(A==B){
anser=A+B;
}
printf("%d",anser );
return 0;
} | 128 | memory_bytes | {'s_id': 's151433587', 'p_id': 'p03071', 'u_id': 'u499568451', 'date': '1586986698', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '198'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n\tint A,B;\n\tint anser;\n\n\tscanf(\"%d%d\",&A,&B);\n\n\tif(A>B){\n\t\tanser=A+(A-1);\n\t}\n\tif(A<... |
CDSS_81696 | CDSS | #include <stdio.h> // printf(), scanf()
#include <stdlib.h> // abs()
#include <string.h> // memset()
#include <stdbool.h>
#define MAX_N 15
#define MAX_S (1 << MAX_N)
const double INF = 1e10;
int n;
int s[MAX_N], l[MAX_N], v[MAX_N];
double dp[MAX_N][MAX_S];
int w[MAX_N][MAX_S];
short prev[MAX... | 8,652 | memory_bytes | {'s_id': 's567921727', 'p_id': 'p00146', 'u_id': 'u818887270', 'date': '1513263652', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '8652', 'code_size': '1451'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h> // printf(), scanf()\n#include <stdlib.h> // abs()\n#include <string.h> // memset()\n#incl... |
CDSS_703073 | CDSS | #include <stdio.h>
int main(void)
{
char s[1024];
int cs[27] = {0};
int i;
scanf("%s", s);
i = 0;
while (s[i])
cs[s[i++] - 'a'] += 1;
i = 0;
while (i < 27)
{
if (1 < cs[i++])
{
printf("no\n");
return (0);
}
}
printf("yes\n");
return 0;
} | 1,640 | memory_bytes | {'s_id': 's805801104', 'p_id': 'p03698', 'u_id': 'u332052931', 'date': '1598564632', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1640', 'code_size': '268'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\tchar \ts[1024];\n\tint\t\tcs[27] = {0};\n\tint\t\ti;\n\n\tscanf(\"%s\", s);\n\ti = 0;\n\twh... |
CDSS_351736 | CDSS | #include<stdio.h>
int main(){
int m,f,r,sum=0;//m=中間、f=期末、r=再試、sum=中間と期末の合計
while(1){
scanf("%d %d %d",&m,&f,&r);
sum=m+f;
if(m==-1&&f==-1&&r==-1)
break;
if(m==-1||f==-1){
printf("F\n");
continue;
}
if(sum>=80)
pr... | 2,104 | memory_bytes | {'s_id': 's713310601', 'p_id': 'p02411', 'u_id': 'u679210025', 'date': '1531125862', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '687'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 m,f,r,sum=0;//m=中間、f=期末、r=再試、sum=中間と期末の合計\n\n while(1){\n scanf(\"%d %d %d\",&m,&f,&... |
CDSS_287333 | CDSS | #include <stdio.h>
int main(void){
int a, b, c;
1 <= a, b, c <= 10000;
scanf("%d %d %d",&a, &b, &c);
if(a < b && b < c)
printf("%d %d %d\n",a, b, c);
else if(a <= c && c <= b)
printf("%d %d %d\n",a, c, b);
else if(b <= a && a <= c)
printf("%d %d %d\n",b, a, c);
else ... | 2,104 | memory_bytes | {'s_id': 's847559724', 'p_id': 'p02393', 'u_id': 'u037441960', 'date': '1526950236', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '532'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\n int a, b, c;\n 1 <= a, b, c <= 10000;\n scanf(\"%d %d %d\",&a, &b, &c);\n if(a < b &... |
CDSS_568664 | CDSS | #include<stdio.h>
int main(void){
int r, D, x;
int i, s;
scanf("%d %d %d",&r, &D, &x);
for(i = 0; i < 10; i++){
s = r * x - D;
printf("%d\n", s);
x = s;
}
} | 128 | memory_bytes | {'s_id': 's963639589', 'p_id': 'p03036', 'u_id': 'u617440820', 'date': '1569682429', '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(void){\n int r, D, x;\n int i, s;\n\n scanf(\"%d %d %d\",&r, &D, &x);\n\n for(i = 0; i < 10;... |
CDSS_293399 | CDSS | #include <stdio.h>
int main()
{
int iRangeX;
int iRangeY;
int iCercleX;
int iCercleY;
int radius;
scanf("%d %d %d %d %d",&iRangeX,&iRangeY,&iCercleX,&iCercleY,&radius);
if (radius <= iCercleX && iCercleX <= iRangeX - radius)
{
if (radius <= iCercleY && iCercleY <= iRangeY - radius)
{
printf("Yes\n");
... | 2,100 | memory_bytes | {'s_id': 's435854487', 'p_id': 'p02394', 'u_id': 'u069761469', 'date': '1589354604', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2100', 'code_size': '404'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 iRangeX;\n\tint iRangeY;\n\tint iCercleX;\n\tint iCercleY;\n\tint radius;\n\n\tscanf(\"%d %... |
CDSS_101942 | CDSS | #include<stdio.h>
int graph[101][101],n,c,d;
void warshall_floyd(){
int i,j;
for(i=1;i<=n;i++)
for(j=1;j<=n;j++)
graph[i][j]=graph[j][i]=min(graph[i][j],graph[i][c]+graph[c][d]+graph[d][j]);
}
int min(int x,int y){
return x<y?x:y;
}
int main(){
int k,i,j,x,e,a,b;
while(scanf("%d %d",&n,&k),n,k){... | 0 | memory_bytes | {'s_id': 's932567887', 'p_id': 'p00449', 'u_id': 'u047988051', 'date': '1322377000', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '0', 'code_size': '672'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 graph[101][101],n,c,d;\n\nvoid warshall_floyd(){\n int i,j;\n for(i=1;i<=n;i++)\n for(j=1;j<=n;j++)\n ... |
CDSS_143988 | CDSS | #include<stdio.h>
#define MAX 1000
void insertionSort(int *,int);
main(){
int i,n,a[100];
scanf("%d",&n);
for(i=0;i < n;i++){
scanf("%d",&a[i]);
}
for(i=0;i < n-1;i++){
printf("%d ",a[i]);
}
printf("%d\n",a[n-1]);
insertionSort(a,n);
return 0;
}
void insertionSort(int *a... | 600 | memory_bytes | {'s_id': 's193374025', 'p_id': 'p02255', 'u_id': 'u834630313', 'date': '1428634183', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '579'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#define MAX 1000\n\nvoid insertionSort(int *,int);\n\nmain(){\n int i,n,a[100];\n \n scanf(\"%d\",&n);\n \n fo... |
CDSS_609502 | CDSS | #include<stdio.h>
int main(){
int m;
while(scanf("%d",&m)!=EOF){
if(m==7||m==3||m==5)
printf("YES\n");
else
printf("NO\n");
}
} | 128 | memory_bytes | {'s_id': 's925810130', 'p_id': 'p03210', 'u_id': 'u083502364', 'date': '1543806037', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '127'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\nint m;\nwhile(scanf(\"%d\",&m)!=EOF){\nif(m==7||m==3||m==5)\nprintf(\"YES\\n\");\nelse\nprintf(\"NO\\n... |
CDSS_211861 | CDSS | #include <stdio.h>
#define N 100001
int A[N];
int n;
int partition(int *, int, int);
main() {
int i, p, part;
scanf("%d", &n);
p = 1;
for(i = p; i < n + 1; i++) {
scanf("%d", &A[i]);
}
part = partition(A, p, n);
for(i = p; i < n + 1; i++) {
if(i == n && i == part) {
printf("[%d]\... | 988 | memory_bytes | {'s_id': 's592275059', 'p_id': 'p02276', 'u_id': 'u206172681', 'date': '1401429783', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '988', 'code_size': '821'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\n#define N 100001\nint A[N];\nint n;\n\nint partition(int *, int, int);\n\nmain() {\n int i, p, part;\n scanf(\... |
CDSS_425807 | CDSS | #include <stdio.h>
#include <string.h>
#include <stdbool.h>
int main() {
int k, a, b;
scanf("%d %d %d", &k, &a, &b);
bool ok = 0;
for (int i = a; i <= b; i++)
if (i % k == 0) ok = 1;
if (ok) printf("OK\n");
else printf("NG\n");
} | 1,660 | memory_bytes | {'s_id': 's724652835', 'p_id': 'p02693', 'u_id': 'u717915211', 'date': '1594844910', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1660', 'code_size': '262'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n#include <stdbool.h>\n\nint main() {\n int k, a, b;\n scanf(\"%d %d %d\", &k, &a, &b);\... |
CDSS_526368 | CDSS | #include <stdio.h>
long long int gcd(long long int x, long long int y)
{
while(x > 0 && y > 0) {
if(x > y) {
x = x - y;
}
else {
y = y - x;
}
}
if(x == 0) {
return y;
}
else {
return x;
}
}
long long int approximate_sqrt(long long int x)
{
long long int root = x/4;
... | 128 | memory_bytes | {'s_id': 's421612009', 'p_id': 'p02900', 'u_id': 'u300773907', 'date': '1570160113', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '128', 'code_size': '1127'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 long int gcd(long long int x, long long int y)\n{\n while(x > 0 && y > 0) {\n if(x > y) {\n x = x ... |
CDSS_712193 | CDSS | #include <stdio.h>
int main(){
int a,b,c,d,e;
scanf("%d%d%d",&a,&b,&c);
d=b-a;
e=c-b;
if (d==e)
{
printf("YES\n");
}else
{
printf("NO\n");
}
} | 128 | memory_bytes | {'s_id': 's246736313', 'p_id': 'p03759', 'u_id': 'u980659030', 'date': '1527889856', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '155'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(){\n\tint a,b,c,d,e;\n\tscanf(\"%d%d%d\",&a,&b,&c);\n\td=b-a;\n\te=c-b;\n\tif (d==e)\n\t{\n\t\tprintf(\"Y... |
CDSS_243213 | CDSS | #include<stdio.h>
#include<math.h>
int main()
{
int x;
scanf("%d" , &x);
x = x*x*x;
printf("%d\n", x);
return 0 ;
} | 596 | memory_bytes | {'s_id': 's581379232', 'p_id': 'p02388', 'u_id': 'u009374362', 'date': '1468063238', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '129'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<math.h>\nint main()\n{\n\tint x;\n\t\n\tscanf(\"%d\" , &x);\n\t\n\tx = x*x*x;\n\t\t\n\tprintf(\"%d\\n\", x... |
CDSS_522399 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#define ll long long
#define rep(i,l,r)for(ll i=(l);i<(r);i++)
#define repp(i,l,r,k)for(ll i=(l);i<(r);i+=(k))
#define INF ((1LL<<62)-(1LL<<31))
#define max(p,q)((p)>(q)?(p):(q))
#define min(p,q)((p)<(q)?(p):(q))
#define bit(n,m)(((n)>>(m))&1)... | 128 | memory_bytes | {'s_id': 's490065022', 'p_id': 'p02887', 'u_id': 'u382163500', 'date': '1571533392', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '128', 'code_size': '907'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <math.h>\n#define ll long long\n#define rep(i,l,r)for(ll i=(l);... |
CDSS_380301 | CDSS | #include <stdio.h>
typedef struct {
int key, id;
} data;
typedef struct {
data obj[400001];
int size;
} min_heap;
void push(data x, min_heap* h)
{
int i = ++(h->size);
data tmp;
h->obj[i] = x;
while (i > 1) {
if (h->obj[i].key < h->obj[i>>1].key) {
tmp = h->obj[i>>1];
h->obj[i>>1] = h->obj[i];
h->o... | 6,644 | memory_bytes | {'s_id': 's180966534', 'p_id': 'p02575', 'u_id': 'u943800443', 'date': '1598798224', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '90', 'memory': '6644', 'code_size': '2297'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\ntypedef struct {\n\tint key, id;\n} data;\n\ntypedef struct {\n\tdata obj[400001];\n\tint size;\n} min_heap;\n\n... |
CDSS_277941 | CDSS | #include <stdio.h>
int main(int argc, const char * argv[]) {
int a;
int b;
int 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': 's734546040', 'p_id': 'p02392', 'u_id': 'u678247011', 'date': '1492749512', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', 'code_size': '228'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(int argc, const char * argv[]) {\n int a;\n int b;\n int c;\n scanf(\"%d %d %d\",&a,&b,&c);... |
CDSS_594182 | CDSS | #include<stdio.h>
#include<math.h>
int main()
{
int n;
int a, b, c;
scanf("%d %d %d %d", &n, &a, &b, &c);
int i;
int l[10];
for (i = 0; i < n; i++)
scanf("%d", &l[i]);
int ans = 20000000;
int j, p;
int x, y, z;
int d;
for (i = 0; i < pow(4, n); i++)
{
x = ... | 128 | memory_bytes | {'s_id': 's746222024', 'p_id': 'p03111', 'u_id': 'u600300412', 'date': '1551041880', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '8', 'memory': '128', 'code_size': '1028'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<math.h>\nint main()\n{\n int n;\n int a, b, c;\n scanf(\"%d %d %d %d\", &n, &a, &b, &c);\n int... |
CDSS_660101 | CDSS | #include<stdio.h>
int main(void) {
int x, a, b;
int m = 0;
scanf("%d %d %d", &x, &a, &b);
m = x - a;
while (m >= b) {
m = m - b;
}
printf("%d\n", m);
return 0;
} | 128 | memory_bytes | {'s_id': 's562042411', 'p_id': 'p03447', 'u_id': 'u216563808', 'date': '1563817028', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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\tint x, a, b;\n\tint m = 0;\n\tscanf(\"%d %d %d\", &x, &a, &b);\n\tm = x - a;\n\twhile (m >= b... |
CDSS_498584 | CDSS | #include <stdio.h>
int
main(){
long int N;
long int p[200200];
int i;
scanf("%ld",&N);
for(i=0;i<N;i++){
scanf("%ld",p+i);
}
long st = p[0];
long cnt=0;
for(i=1;i<N;i++){
if(st>=p[i]){
st = p[i];
cnt++;
}
}
cnt++;
printf("%ld\n",cnt);
return 0;
} | 1,664 | memory_bytes | {'s_id': 's748380290', 'p_id': 'p02791', 'u_id': 'u062865912', 'date': '1579464916', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '21', 'memory': '1664', 'code_size': '287'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 \nmain(){\n\tlong int N;\n\tlong int p[200200];\n\tint i;\n\tscanf(\"%ld\",&N);\n\t\n\tfor(i=0;i<N;i++){\n\t... |
CDSS_149891 | CDSS | #include <stdio.h>
void insertionSort(int A[], int N)
{
int i, j, k;
int v;
for (i = 1; i < N; i++) {
v = A[i];
j = i - 1;
while (j >= 0 && A[j] > v) {
A[j + 1] = A[j];
j--;
}
A[j + 1] = v;
for (k = 0; k < N; k++) {
if (k != N -1) {
printf("%d ", A[k]);
} ... | 2,044 | memory_bytes | {'s_id': 's131858006', 'p_id': 'p02255', 'u_id': 'u492405338', 'date': '1569225070', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2044', 'code_size': '725'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 insertionSort(int A[], int N)\n{\n int i, j, k;\n int v;\n \n for (i = 1; i < N; i++) {\n v = A[i]... |
CDSS_97535 | CDSS | #include <stdio.h>
#include <string.h>
int main(void)
{
int n,i,ans,tmp;
char cmd[6];
int dice[6];
while(1)
{
ans = 1;
for(i=0;i<6;i++)
{
dice[i] = i+1;
}
scanf("%d",&n);
if(n == 0)return 0;
for(i=0;i<n;i++)
{
sc... | 604 | memory_bytes | {'s_id': 's990952682', 'p_id': 'p00425', 'u_id': 'u113556167', 'date': '1446911878', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '604', 'code_size': '2130'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 int n,i,ans,tmp;\n char cmd[6];\n int dice[6];\n while(1)\n ... |
CDSS_625711 | CDSS | #include<stdio.h>
int main(void)
{
int i,j;
int a;
int num=0;
int count=0;
scanf("%d",&a);
for(i=1;i<=a;i=i+2)
{
for(j=i;j>0;j--)
{
if(i%j==0) count++;
}
if(count==8) num++;
count=0;
}
printf("%d",num);
return 0;
} | 128 | memory_bytes | {'s_id': 's575211028', 'p_id': 'p03281', 'u_id': 'u980917193', 'date': '1555098900', '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>\n\nint main(void)\n{\n\tint i,j;\n \tint a;\n \tint num=0;\n \tint count=0;\n \tscanf(\"%d\",&a);\n \tfor(i=1;i... |
CDSS_171156 | CDSS | #include <stdio.h>
void selectionSort(int a[], int n) {
int cnt = 0;
int s = 0;
int min_j = 0;
for (int i = 0; i < n; i++) {
int min_j = i;
int flag = 0;
for (int j = i + 1; j < n; j++) {
if (a[min_j] > a[j]) {
min_j = j;
flag = 1;
} else {
continue;
}
... | 2,100 | memory_bytes | {'s_id': 's493290188', 'p_id': 'p02260', 'u_id': 'u329192531', 'date': '1519093807', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2100', 'code_size': '750'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 selectionSort(int a[], int n) {\n int cnt = 0;\n int s = 0;\n int min_j = 0;\n\n for (int i = 0; i < n;... |
CDSS_629593 | CDSS | #include<stdio.h>
#include<string.h>
int main()
{
char a[15];
gets(a);
int i,q=0,m,p=0;
int x=strlen(a);
for(i=2;i<x-1;i++){
if(a[i]=='C'){
p++;
m=i;
}
}
for(i=1;i<m;i++){
if(a[i]>='A' && a[i]<='Z')
q++;
}
for(i=m+1;i<x;i++){
... | 128 | memory_bytes | {'s_id': 's595422255', 'p_id': 'p03289', 'u_id': 'u018679195', 'date': '1538016959', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '490'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\n int main()\n {\n char a[15];\n gets(a);\n int i,q=0,m,p=0;\n int x=strlen(a);\n ... |
CDSS_668397 | CDSS | #include <stdio.h>
int main(){
int a,b,c,d;
scanf("%d %d %d %d",&a,&b,&c,&d);
if(a+b==c+d){
printf("Balanced\n");
}else if(a+b>c+d){
printf("Left\n");
}else{
printf("Right\n");
}
return 0;
} | 128 | memory_bytes | {'s_id': 's127399033', 'p_id': 'p03477', 'u_id': 'u399527088', 'date': '1514081224', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '218'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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,d;\n scanf(\"%d %d %d %d\",&a,&b,&c,&d);\n if(a+b==c+d){\n printf(\"Balanced\\n\"... |
CDSS_484078 | CDSS | #include<stdio.h>
int main(){
int n, r;
scanf("%d %d", &n, &r);
if(n > 10){
printf("%d", r);
} else {
printf("%d", r+100*(10-n));
}
return 0;
}
| 1,728 | memory_bytes | {'s_id': 's248100489', 'p_id': 'p02765', 'u_id': 'u503636785', 'date': '1597716138', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1728', 'code_size': '177'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n int n, r;\n scanf(\"%d %d\", &n, &r);\n\n if(n > 10){\n printf(\"%d\", r);\n } else {\... |
CDSS_309848 | 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/(double)b;
printf("%d %d %lf\n",d,r,f);
return 0;
} | 636 | memory_bytes | {'s_id': 's327859956', 'p_id': 'p02399', 'u_id': 'u066039378', 'date': '1479221520', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '636', 'code_size': '180'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n #include<stdio.h>\n\n\nint main(void){\n\n\nint a,b,d,r;\n\n\ndouble f;\n\n\n scanf(\"%d %d\",&a,&b);\n\n\n d=a/b;\n\n\nr=a%b;\n\n\nf... |
CDSS_496949 | CDSS | #include<stdio.h>
int main(){
int n,m;
scanf("%d %d",&n,&m);
if(n==m)printf("Yes");
else printf("No");
return 0;
} | 128 | memory_bytes | {'s_id': 's131002377', 'p_id': 'p02789', 'u_id': 'u660009720', 'date': '1579540802', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '116'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\nint n,m;\nscanf(\"%d %d\",&n,&m);\nif(n==m)printf(\"Yes\");\nelse printf(\"No\");\n return 0;\n}\nPre... |
CDSS_574320 | CDSS | #include <stdio.h>
#include <stdlib.h>
int main(void)
{
int h, w;
int i, j;
int masu[1000000] = {0};
int kuro[1000000] = {0};
int index = 0;
int count = 0;
int sum = 0;
int work;
int work2;
int ans = 0;
char str[1000][1001];
scanf("%d%d", &h, &w);
for(i = 0; i < h; i++) {
scanf("%s", str[i]);
}
... | 8,960 | memory_bytes | {'s_id': 's359744900', 'p_id': 'p03053', 'u_id': 'u833841247', 'date': '1557340868', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '23', 'memory': '8960', 'code_size': '1470'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\tint h, w;\n\tint i, j;\n\tint masu[1000000] = {0};\n\tint kuro[1000000... |
CDSS_210953 | CDSS |
#include <stdio.h>
#include <string.h>
#define DEF_ELEM_MAX 1000001
typedef long long llong;
int A[DEF_ELEM_MAX];
int N;
/////////////////////////////////////////////////////////////////////////////////
//
/////////////////////////////////////////////////////////////////////////////////
void swap(int *x, int *y)
{... | 988 | memory_bytes | {'s_id': 's393270413', 'p_id': 'p02276', 'u_id': 'u320509644', 'date': '1433300737', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '988', 'code_size': '1247'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n\n#include <stdio.h>\n#include <string.h>\n\n#define DEF_ELEM_MAX 1000001\n\ntypedef long long llong;\n\nint A[DEF_ELEM_MAX];\nint N;\... |
CDSS_590885 | CDSS | #include<stdio.h>
int main()
{
int a,b,c,x;
scanf("%d%d%d",&a,&b,&c);
if(a<=b){
x=b/a;
if(x>c)
printf("%d",c);
else
printf("%d",x);
}
else
printf("0");
return 0;
} | 128 | memory_bytes | {'s_id': 's150580037', 'p_id': 'p03105', 'u_id': 'u089230684', 'date': '1574386147', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '237'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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,x;\n scanf(\"%d%d%d\",&a,&b,&c);\n if(a<=b){\n x=b/a;\n if(x>c)\n ... |
CDSS_651966 | CDSS | #include <stdio.h>
int main(){
int a,b,c,d,x,y, Mini;
scanf("%d %d %d %d",&a,&b,&c,&d);
if(a>b){
x=b;
}
else{
x=a;
}
if(c>d){
y=d;
}
else{
y=c;
}
Mini=x+y;
printf("%d",Mini);
}
| 1,728 | memory_bytes | {'s_id': 's157712727', 'p_id': 'p03399', 'u_id': 'u089230684', 'date': '1596083264', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1728', '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>\nint main(){\nint a,b,c,d,x,y, Mini;\nscanf(\"%d %d %d %d\",&a,&b,&c,&d);\nif(a>b){\n x=b;\n}\nelse{\n x=a;\... |
CDSS_31457 | CDSS | #include<stdio.h>
int main()
{
int a,b,c,n,i;
scanf("%d",&n);
for(i=1;i<=n;i++)
{
scanf("%d%d%d",&a,&b,&c);
if(a*a==b*b+c*c||b*b==a*a+c*c||c*c==b*b+a*a)
printf("YES\n");
else
printf("NO\n");
}
return 0;
} | 576 | memory_bytes | {'s_id': 's762486917', 'p_id': 'p00003', 'u_id': 'u011621222', 'date': '1400684153', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '576', '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>\nint main()\n{\n\tint a,b,c,n,i;\n\tscanf(\"%d\",&n);\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tscanf(\"%d%d%d\",&a,&b,&c);\n\t... |
CDSS_223249 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define MAX 100000
#define NIL -1
typedef struct search{
struct search *right;
struct search *left;
struct search *p;
int key;
}search;
void insert(int);
void inorderTreeWalk(search *x);
void Puriorder(search *x);
search *find(search *x, int k)... | 19,364 | memory_bytes | {'s_id': 's912069229', 'p_id': 'p02284', 'u_id': 'u760666840', 'date': '1466646612', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '380', 'memory': '19364', 'code_size': '1871'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 MAX 100000\n#define NIL -1\n \ntypedef struct search{\n stru... |
CDSS_288551 | CDSS | #include<stdio.h>
int main(){
int a,b,c,x;
scanf("%d %d %d",&a,&b,&c);
if(a > b){
x=a;
a=b;
b=x;
}
if(a > c){
x=a;
a=c;
c=x;
}
if(b > c){
x=b;
b=c;
c=x;
}
printf("%d %d %d\n",a,b,c);
return 0;
}
| 2,120 | memory_bytes | {'s_id': 's142230508', 'p_id': 'p02393', 'u_id': 'u270836301', 'date': '1536385926', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2120', 'code_size': '218'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 \nint a,b,c,x;\n \nscanf(\"%d %d %d\",&a,&b,&c);\n \nif(a > b){\nx=a;\na=b;\nb=x;\n}\nif... |
CDSS_372492 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
void print_a_b(char str[],int a,int b);
void reverse(char str[],int a,int b);
void replace(char str[],int a,int b,char p[]);
char str[1005];
char p[1005];
int main(){
char op[10];
int q;//命令の回数
int a, b, ord;
scanf("%s%d",str,&q);
for(i... | 2,104 | memory_bytes | {'s_id': 's577574066', 'p_id': 'p02422', 'u_id': 'u333326383', 'date': '1573618551', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '1121'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\nvoid print_a_b(char str[],int a,int b);\nvoid reverse(char str[],int a... |
CDSS_492937 | CDSS | #include<stdio.h>
int main(){
int h,a;
int i=0;
scanf("%d %d",&h,&a);
while(h>0){
h = h - a;
i += 1;
}
printf("%d",i);
return 0;
}
| 128 | memory_bytes | {'s_id': 's065820936', 'p_id': 'p02783', 'u_id': 'u359243713', 'date': '1588259409', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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(){\n int h,a;\n int i=0;\n\n scanf(\"%d %d\",&h,&a);\n while(h>0){\n h = h - a;\n ... |
CDSS_583363 | CDSS | #include <stdio.h>
#include <stdlib.h>
int main(void)
{
int a[5], k;
int i, j;
for(i = 0; i < 5; i++) {
scanf("%d", &a[i]);
}
scanf("%d", &k);
for(i = 0; i < 4; i++) {
for(j = i + 1; j < 5; j++) {
if(abs(a[i] - a[j]) > k) {
printf(":(\n");
return 0;
}
}
}
printf("Yay!\n");
return 0;
... | 128 | memory_bytes | {'s_id': 's966578350', 'p_id': 'p03075', 'u_id': 'u833841247', 'date': '1554577712', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '321'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\tint a[5], k;\n\tint i, j;\n\t\n\tfor(i = 0; i < 5; i++) {\n\t\tscanf(\... |
CDSS_566671 | CDSS | #include <stdio.h>
int main()
{
int A,P,app;
scanf("%d%d",&A,&P);
app=(A*3+P)/2;
printf("%d\n",app);
return 0;
} | 128 | memory_bytes | {'s_id': 's353825391', 'p_id': 'p03029', 'u_id': 'u263366485', 'date': '1559853025', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '129'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h> \nint main()\n{\n int A,P,app;\n scanf(\"%d%d\",&A,&P);\n app=(A*3+P)/2;\n printf(\"%d\\n\",app);\nretu... |
CDSS_207642 | CDSS | #include <stdio.h>
#define N 20000001
int B[N], C[N], A[N], n;
void CountingSort(int k)
{
int i, j;
for(i = 0; i <= k; i++)
{
C[i] = 0;
}
for(j = 1;j <= n;j++)
{
C[A[j]]++;
}
for(i = 1;i <= k;i++)
{
C[i] = C[i] + C[i - 1];
}
for(j = n;j > 0;j--)
{
B[C[A[j]... | 21,076 | memory_bytes | {'s_id': 's105145601', 'p_id': 'p02275', 'u_id': 'u130293826', 'date': '1433325035', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '420', 'memory': '21076', '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#define N 20000001\n\nint B[N], C[N], A[N], n;\n\nvoid CountingSort(int k)\n{\n int i, j;\n for(i = 0; i <= k; i... |
CDSS_347253 | CDSS | #include <stdio.h>
int main(void)
{
int n, i, j, t;
int data[4][13];
char ch;
char moyou[4] = { 'S','H','C','D' };
scanf("%d", &n);
for (i = 0; i < 4; i++)
{
for (j = 0; j < 13; j++)
{
data[i][j] = 0;
}
}
scanf("%d", &n);
for (i = 0; i < n... | 2,060 | memory_bytes | {'s_id': 's324953198', 'p_id': 'p02408', 'u_id': 'u102921666', 'date': '1595920253', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2060', 'code_size': '917'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n int n, i, j, t;\n int data[4][13];\n char ch;\n char moyou[4] = { 'S','H','C','D... |
CDSS_111218 | CDSS | #include<stdio.h>
int map[10][10],count;
int x,y,N=10;
int main(){
while(scanf("%d",&N)*N){
for(x=0;x<10;x++){
for(y=0;y<10;y++){
map[x][y]=x?map[x-1][y+1]+1:y?map[x][y-1]+y:1;
}
}
printf("Case %d:\n",++count);
for(x=0;x<N;x++){
for(y=0;y<N;y++){
if(x+y<N){
if((x+y)%2){
... | 616 | memory_bytes | {'s_id': 's341961198', 'p_id': 'p00593', 'u_id': 'u399045574', 'date': '1397032550', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '616', 'code_size': '633'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 map[10][10],count;\nint x,y,N=10;\n\nint main(){\n while(scanf(\"%d\",&N)*N){\n for(x=0;x<10;x++){\n for... |
CDSS_50218 | CDSS | #include<stdio.h>
#include<string.h>
int main(void)
{
char str[81];
int i;
while (fgets(str,81,stdin) != NULL) {
while (1) {
for (i = 0; i < strlen(str); i++) {
if (str[i] >= 'a' && str[i] <= 'z')
str[i] = (str[i] - 'a' + 1) % 26 + 'a';
}
if (strstr(str, "this") != NULL) break;
else if (strst... | 524 | memory_bytes | {'s_id': 's871293117', 'p_id': 'p00017', 'u_id': 'u481307862', 'date': '1484469753', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', 'code_size': '436'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 str[81];\n\tint i;\n\n\twhile (fgets(str,81,stdin) != NULL) {\n\t\twh... |
CDSS_697432 | CDSS | #include<stdio.h>
int sort(a,b,c){
int A, B, C;
A = a+b;
B = a+c;
C = b+c;
int tmp=A;
if(B < tmp)
tmp =B;
if(C < tmp)
tmp =C;
return tmp;
}
int main(){
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
printf("%d\n", sort(a,b,c));
return 0;
} | 128 | memory_bytes | {'s_id': 's511918789', 'p_id': 'p03671', 'u_id': 'u775097519', 'date': '1564364630', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '251'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint sort(a,b,c){\n int A, B, C;\n A = a+b;\n B = a+c;\n C = b+c;\n\nint tmp=A;\nif(B < tmp)\ntmp =B;\nif(C < t... |
CDSS_697999 | CDSS | #include<stdio.h>
#include<string.h>
int main(void){
int i,j,k=0;
char s[202];
gets(s);
for(j=strlen(s)-2;j>=0;j=j-2){
if(strlen(s)%2!=0)continue;
if(strncmp(s,s+j/2,j/2)==0){printf("%d",j);;return 0;}
}
}
| 1,644 | memory_bytes | {'s_id': 's654155062', 'p_id': 'p03672', 'u_id': 'u064242862', 'date': '1596073132', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '7', 'memory': '1644', 'code_size': '262'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 int i,j,k=0;\n char s[202];\n\n gets(s);\n\n for(j=strlen(s... |
CDSS_178010 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
int top,s[1000];
int main(){
int a,b;
top=0;
char s[100];
while(scanf("%s",s)!=EOF){
if(s[0]=='+'){
a=pop();
b=pop();
push(a+b);
}else if(s[0]=='-'){
b=pop();
a=pop();
push(a-b);
}else if(s[0]=='*'){
... | 548 | memory_bytes | {'s_id': 's422251649', 'p_id': 'p02263', 'u_id': 'u896148161', 'date': '1493265286', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '548', 'code_size': '523'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 top,s[1000];\n\nint main(){\n int a,b;\n top=0;\n char s[100];\... |
CDSS_93439 | CDSS | n,x;main(y){for(scanf("%d",&n);n--;printf("%d\n",(x-1)%y+1))scanf("%d%d",&x,&y);exit(0);} | 596 | memory_bytes | {'s_id': 's114465961', 'p_id': 'p00292', 'u_id': 'u300645821', 'date': '1422373856', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', '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:\nn,x;main(y){for(scanf(\"%d\",&n);n--;printf(\"%d\\n\",(x-1)%y+1))scanf(\"%d%d\",&x,&y);exit(0);}\nPredict its memory footprint.",
... |
CDSS_670432 | CDSS | #include<stdio.h>
#include<math.h>
int main(){
int i, smin, tmax, snum=0, tnum=0, num, count;
char s[256], t[256];
scanf("%s", s);
scanf("%s", t);
while(s[++snum]!='\0');
while(t[++tnum]!='\0');
num = snum<tnum?snum:tnum;
for(count=0; count<num;count++){
smin=0;
tmax=0;
i=-1;
while(s[++i] != '\0') if... | 128 | memory_bytes | {'s_id': 's829304165', 'p_id': 'p03486', 'u_id': 'u933929042', 'date': '1513669330', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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#include<stdio.h>\n#include<math.h>\n\nint main(){\n\t\n\tint i, smin, tmax, snum=0, tnum=0, num, count;\n\tchar s[256], t[256];\n\tsc... |
CDSS_470659 | CDSS | #include <float.h>
#include <limits.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <math.h>
#define P 1000000007
int comp(const void *a, const void *b){return *(int*)a-*(int*)b;}
int compw(const void *a, const void *b){return (*(int*)a>*(int*)b)-(*(int*)... | 128 | memory_bytes | {'s_id': 's521861692', 'p_id': 'p02725', 'u_id': 'u292252214', 'date': '1585449860', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '11', 'memory': '128', 'code_size': '1166'} | [
{
"content": "Your task is to predict the memory footprint (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 <stdint.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <... |
CDSS_190801 | CDSS | #include <stdio.h>
int main(){
int i,j,S[10000],T[500],n,q,C=0;
scanf("%d",&n);
for(j=0;j<n;j++){
scanf("%d",&S[j]);
}
scanf("%d",&q);
for(j=0;j<q;j++){
scanf("%d",&T[j]);
}
for(j=0;j<q;j++){
i = 0;
S[n] = T[j];
while(T[j] != S[i]){
i++;
}
if(i < n) C++;
}
... | 2,104 | memory_bytes | {'s_id': 's411072661', 'p_id': 'p02267', 'u_id': 'u087575580', 'date': '1576749597', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '357'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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,S[10000],T[500],n,q,C=0;\n \n scanf(\"%d\",&n);\n for(j=0;j<n;j++){\n scanf(\"%d\",... |
CDSS_666640 | CDSS | #include<stdio.h>
int main()
{
int M;
scanf("%d",&M);
printf("%d",(24-M)+24);
return 0;
}
| 1,736 | memory_bytes | {'s_id': 's137164346', 'p_id': 'p03473', 'u_id': 'u863370423', 'date': '1596094117', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1736', 'code_size': '106'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 M;\n scanf(\"%d\",&M);\n printf(\"%d\",(24-M)+24);\n return 0;\n}\n\nPredict its me... |
CDSS_173638 | CDSS | #include <stdio.h>
#define N 100
typedef struct{
char a;
char value;
}Card_t;
void bubble(Card_t A[],int v){
int i,j;
Card_t t;
for(i=0;i<v;i++){
for(j=v-1;j>=i;j--){
if(A[j].value < A[j-1].value){
t=A[j];
A[j]=A[j-1];
A[j-1]=t;
}
... | 608 | memory_bytes | {'s_id': 's637091206', 'p_id': 'p02261', 'u_id': 'u761306808', 'date': '1497419616', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '608', 'code_size': '1467'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n #include <stdio.h>\n #define N 100\n\n typedef struct{\n char a;\n char value;\n }Card_t;\n\n void bubble(Card_t A[],int v... |
CDSS_159705 | CDSS | #include <math.h>
int prime(int val){
if (val==2) return 1;
if (val==3) return 1;
int count = 0;
for (int i = 2; i < sqrt(val) + 1; i++){
if(val%i == 0){
count++;
}
}
if ( count > 0) return 0;
else return 1;
}
int main(){
int Num;
scanf("%d",&Num);... | 2,108 | memory_bytes | {'s_id': 's325903703', 'p_id': 'p02257', 'u_id': 'u083579293', 'date': '1560835457', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '170', 'memory': '2108', 'code_size': '613'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <math.h>\nint prime(int val){\n if (val==2) return 1;\n if (val==3) return 1;\n int count = 0;\n for (int i = 2; ... |
CDSS_190029 | CDSS | #include<stdio.h>
#include<stdlib.h>
int linearSearch(int n,int key,int *S);
int main(){
int n,*S,q,*T,i,N,count=0;
scanf("%d\n",&n);
S=(int *)malloc(n*sizeof(int));
for(i=0;i<n;i++){
scanf("%d",&S[i]);
}
scanf("%d\n",&q);
T=(int *)malloc(q*sizeof(int));
for(i=0;i<q;i++){
scanf("%d",&T[i]);
}
... | 2,104 | memory_bytes | {'s_id': 's227739639', 'p_id': 'p02267', 'u_id': 'u563626345', 'date': '1530497416', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '587'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 linearSearch(int n,int key,int *S);\nint main(){\n int n,*S,q,*T,i,N,count=0;\n scanf(\"%... |
CDSS_218789 | CDSS | #include <stdio.h>
#define MAX 10000
#define NIL -1
struct Node{
int parent,left,right;
};
struct Node T[MAX];
int n,D[MAX],H[MAX];
void setDepth(int u,int d){
if(u==NIL)return;
D[u]=d;
setDepth(T[u].left,d+1);
setDepth(T[u].right,d+1);
}
int setHeight(int u){
int h1=0,h2=0;
if(T[u].left != NIL)
h1... | 2,108 | memory_bytes | {'s_id': 's016950640', 'p_id': 'p02280', 'u_id': 'u003241570', 'date': '1579228521', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '1583'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 10000\n#define NIL -1\n\nstruct Node{\n int parent,left,right;\n};\nstruct Node T[MAX];\nint n,D[MAX]... |
CDSS_328166 | CDSS | #include <stdio.h>
#include <math.h>
int main(){
int n;
long long a;
scanf("%d", &n);
long long min, max;
long long sum;
for(int i=0; i< n; i++){
scanf("%lld", &a);
if(i==0){
min = a;
max = a;
sum = a;
}
else{
... | 2,136 | memory_bytes | {'s_id': 's376578406', 'p_id': 'p02402', 'u_id': 'u726320445', 'date': '1568595461', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2136', 'code_size': '495'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n\nint main(){\n \n\n int n;\n long long a;\n\n scanf(\"%d\", &n);\n\n long long ... |
CDSS_162028 | CDSS | #include <stdio.h>
#define INI -1000000000
int main()
{
int i,n,k,maxv=INI,minv;
scanf("%d%d",&n,&minv);
for(i=1;i<n;i++){
scanf("%d",&k);
if(maxv<k-minv) maxv=k-minv;
if(k<minv) minv=k;
}
printf("%d\n",maxv);
return 0;
} | 596 | memory_bytes | {'s_id': 's384070777', 'p_id': 'p02258', 'u_id': 'u359023956', 'date': '1501153304', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '30', 'memory': '596', 'code_size': '250'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#define INI -1000000000\n\nint main()\n{\n int i,n,k,maxv=INI,minv;\n\n scanf(\"%d%d\",&n,&minv);\n\n for(i=1;i... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.