identifier string | space string | input string | target float64 | metric_type string | metadata string | messages list |
|---|---|---|---|---|---|---|
CDSS_650257 | CDSS | #define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<math.h>
//for
#define REP(i,n) for(int i=0,i##_len=(int)(n);i<i##_len;i++)
#define REPS(i,n) for(int i=1,i##_len=(int)(n);i<=i##_len;i++)
#define RREP(i,n) for(int i=(int)(n)-1;i>=0;i--)
#define RREPS(i,n) for(int i=(int)... | 512 | memory_bytes | {'s_id': 's135288348', 'p_id': 'p03380', 'u_id': 'u539339654', 'date': '1523757615', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '21', 'memory': '512', 'code_size': '2034'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#define _CRT_SECURE_NO_WARNINGS\n\n#include<stdio.h>\n#include<string.h>\n#include<stdlib.h>\n#include<math.h>\n\n//for\n#define REP(i... |
CDSS_480937 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<math.h>
#define num sizeof(a)/sizeof(int)
#define N 100000
int main(){
char s[3*N],add[2],sagyou[3*N],emp[3*N];
int q,size,t,f,number=0,i,ins,distin=0;
scanf("%s%d",s,&q);
s[N-1]='\0';
strcpy(sagyou,s);
for(size=0;s[size]!='\0';s... | 896 | memory_bytes | {'s_id': 's516908768', 'p_id': 'p02756', 'u_id': 'u582588783', 'date': '1585725677', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '541', 'memory': '896', 'code_size': '1192'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\n#define num sizeof(a)/sizeof(int)\n#define N 100000\n\n... |
CDSS_76620 | CDSS | #include <stdio.h>
#include <string.h>
int main(){
int n,i,j,data;
int sum[11],sum2[11];
while(1){
scanf("%d",&n);
if(n == 0){
break;
}
memset(sum,0,sizeof(sum));
memset(sum2,0,sizeof(sum2));
for(i = 0;i < n;i++){
for(j = 0;j < n;j++){
scanf("%d",&data);
printf("%5d",data);
sum[j] +... | 616 | memory_bytes | {'s_id': 's289505709', 'p_id': 'p00102', 'u_id': 'u377201167', 'date': '1361320541', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '616', 'code_size': '494'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\nint main(){\n\tint n,i,j,data;\n\tint sum[11],sum2[11];\n\n\twhile(1){\n\t\tscanf(\"%d\",&n... |
CDSS_523686 | CDSS | #include <stdio.h>
#include <stdlib.h>
#ifdef DEBUG
struct test {
int N;
char S[200][201];
int a;
} t[] = {
{
6, {"011000", "100100", "100010", "010001", "001001", "000110"}, 4
},
{
2, {"01", "10"}, 2
},
{
3, {"011", "101", "110"}, -1
},
{
6, {"01... | 384 | memory_bytes | {'s_id': 's830887177', 'p_id': 'p02892', 'u_id': 'u913347928', 'date': '1571509792', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '33', 'memory': '384', 'code_size': '2476'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\n#ifdef DEBUG\nstruct test {\n int N;\n char S[200][201];\n int a;\n} t[] = {\n ... |
CDSS_484340 | CDSS | #include<stdio.h>
int main(void){
int N, R;
scanf("%d%d",&N, &R);
if(N>10)printf("%d\n", R);
else printf("%d\n",R+(10-N)*100);
return 0;
} | 128 | memory_bytes | {'s_id': 's728696431', 'p_id': 'p02765', 'u_id': 'u397953026', 'date': '1584154727', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '128', 'code_size': '138'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\nint N, R;\nscanf(\"%d%d\",&N, &R);\nif(N>10)printf(\"%d\\n\", R);\nelse printf(\"%d\\n\",R+(10-N)*... |
CDSS_317106 | CDSS | #include <stdio.h>
#include <math.h>
int main(){
double r;
scanf("%lf",&r);
printf("%f %f\n",3.141592653589*r*r,2*3.141592653589*r);
return 0;
}
| 2,100 | memory_bytes | {'s_id': 's109112647', 'p_id': 'p02400', 'u_id': 'u871104300', 'date': '1591764120', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2100', 'code_size': '166'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 double r;\n scanf(\"%lf\",&r);\n \n printf(\"%f %f\\n\",3.14159265358... |
CDSS_600266 | CDSS | #include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<math.h>
#define max(x,y)(x>y?x:y)
#define min(x,y)(x>y?y:x)
typedef long long int ll;
typedef unsigned long long int ull;
int asc_cmp(const void* X,const void* Y){int x=*(int*)X,y=*(int*)Y;if(x<y)return -1;else if(x==y)return 0;else return 1;}
int desc_cm... | 7,936 | memory_bytes | {'s_id': 's947110963', 'p_id': 'p03146', 'u_id': 'u679951803', 'date': '1580085320', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '7936', 'code_size': '685'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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#define max(x,y)(x>y?x:y)\n#define min(x,y)(x>y?y:x)\ntyp... |
CDSS_312856 | CDSS | #include <stdio.h>
#define pi 3.141592653589793;
int main(void)
{
double r,s,l;
scanf("%lf",&r);
s = r*r*pi;
l = 2*r*pi;
printf("%lf %lf\n",s,l);
return 0;
} | 648 | memory_bytes | {'s_id': 's117250673', 'p_id': 'p02400', 'u_id': 'u902054144', 'date': '1413361570', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '648', 'code_size': '168'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 pi 3.141592653589793;\n\nint main(void)\n{\n\tdouble r,s,l;\n\t\n\tscanf(\"%lf\",&r);\n\ts = r*r*pi;\n\tl ... |
CDSS_667766 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
//gcdやり直す
void swap (int *x, int *y) {
int temp;
temp = *x;
*x = *y;
*y = temp;
}
/***
* pivotを決め、
* 全データをpivotを境目に振り分け、
* pivotの添え字を返す
***/
int partition (int array[], int left, int right) {
int i, j, pivot;
i = left;
... | 2,484 | memory_bytes | {'s_id': 's150559665', 'p_id': 'p03476', 'u_id': 'u835924161', 'date': '1593066011', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '89', 'memory': '2484', 'code_size': '1921'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <math.h>\n#include <string.h>\n\n//gcdやり直す\n\nvoid swap (int *x, int *y) {\n int te... |
CDSS_681009 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
int main(void){
char s2[50], t[50];
int ls2, lt, i, j, k;
scanf("%s",s2);
scanf("%s",t);
ls2 = strlen(s2);
lt = strlen(t);
//printf("%d %d\n",ls2,lt);
for(i=ls2-lt;i>=0;i--){
for(j=0;j<lt;j++) if(t[j]!=s2[i+j] && s2[i+j]!... | 128 | memory_bytes | {'s_id': 's562533331', 'p_id': 'p03565', 'u_id': 'u335733930', 'date': '1509240578', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '612'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\n\nint main(void){\n char s2[50], t[50];\n int ls2... |
CDSS_400986 | CDSS | #include <stdio.h>
int main() {
int n, q, b[100010], c[100010], num[100010] = { 0 };
long long int all = 0;
scanf("%d", &n);
for (int i = 0; i < n; i++) {
int a;
scanf("%d", &a);
all += a;
num[a]++;
}
scanf("%d", &q);
for (int i = 0; i < q; i++) scanf("%d%d", &b[i], &c[i]);
for (int i = 0; i < q; i++)... | 2,900 | memory_bytes | {'s_id': 's995403753', 'p_id': 'p02630', 'u_id': 'u957846568', 'date': '1592792354', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '48', 'memory': '2900', 'code_size': '441'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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, q, b[100010], c[100010], num[100010] = { 0 };\n\tlong long int all = 0;\n\tscanf(\"%d\", ... |
CDSS_179940 | CDSS | // c
# include<stdio.h>
# include<stdlib.h>
# include<string.h>
int top,S[1000];
void push(int x){
top++;
S[top]=x;
}
int pop(){
top--;
return S[top+1];
}
int main(){
int a,b,x;
char s[100];
top = 0 ;
// 読み込みの指定がない場合はEOF判定をする
while(scanf("%s",s)!= EOF){
if(s[0] == '+'){
... | 2,104 | memory_bytes | {'s_id': 's841902156', 'p_id': 'p02263', 'u_id': 'u145671674', 'date': '1589118412', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '737'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n// c\n# include<stdio.h>\n# include<stdlib.h>\n# include<string.h>\nint top,S[1000];\n\nvoid push(int x){\n top++;\n S[top]=x;\n... |
CDSS_735324 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
int descending_compare(const void *a, const void *b){
if (*(int*)a > *(int*)b){
return -1;
}else if (*(int*)a == *(int*)b){
return 0;
}else{
return 1;
}
}
int ascending_compare(const void *a, const vo... | 256 | memory_bytes | {'s_id': 's724154374', 'p_id': 'p03965', 'u_id': 'u543284218', 'date': '1517895302', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '256', 'code_size': '1687'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\n\nint descending_compare(const void *a, const void ... |
CDSS_221933 | CDSS | #include<stdio.h>
#include<stdlib.h>
struct tree {
int data;
struct tree *left;
struct tree *right;
};
struct tree *root = NULL;
int Search(struct tree*, int);
struct tree *Insert(struct tree*, int);
struct tree *Alsearch(struct tree**);
struct tree *Remove(struct tree**, int);
void Dispm(struct... | 17,320 | memory_bytes | {'s_id': 's845503809', 'p_id': 'p02283', 'u_id': 'u141038857', 'date': '1514438674', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '350', 'memory': '17320', 'code_size': '3615'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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>\nstruct tree {\n int data;\n struct tree *left;\n struct tree *right;\n};\n... |
CDSS_332433 | CDSS | #include<stdio.h>
int main()
{
int a,b,i,j;
while(1){
scanf("%d%d",&a,&b);
if(a==0 && b==0)
break;
for(i=0;i<a;i++)
{
for(j=0;j<b;j++)
{
printf("#");
}
printf("\n");
}
printf("\n");
}
}
| 2,120 | memory_bytes | {'s_id': 's302299460', 'p_id': 'p02403', 'u_id': 'u011621222', 'date': '1582180738', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2120', 'code_size': '260'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n int a,b,i,j;\n while(1){\n scanf(\"%d%d\",&a,&b);\n if(a==0 && b==0)\n break;\n for(i=... |
CDSS_723170 | CDSS | #include<stdio.h>
int main()
{
int n,max=0,i,x=0;
char s[1001];
scanf("%d", &n);
scanf("%s", s);
for(i=0; i<n; i++){
if(s[i]=='I') x++;
else x--;
if(x > max) max=x;
}
printf("%d\n", max);
return 0;
} | 128 | memory_bytes | {'s_id': 's903608293', 'p_id': 'p03827', 'u_id': 'u538438162', 'date': '1501293314', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '199'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\nint n,max=0,i,x=0;\nchar s[1001];\nscanf(\"%d\", &n);\nscanf(\"%s\", s);\nfor(i=0; i<n; i++){\nif(s[... |
CDSS_171219 | CDSS | #include <stdio.h>
/* 選択ソート (0オリジン) */
int selectionSort(int A[], int N) {
int i, j, t, sw = 0, mini;
for(i=0; i<N-1; i++) {
mini = i;
for(j=i; j<N; j++) {
if(A[j] < A[mini]) mini = j;
}
t = A[i];
A[i] = A[mini];
A[mini] = t;
if(i != mini) sw++;
}
return sw;
}
int main(void) {
... | 2,104 | memory_bytes | {'s_id': 's974214601', 'p_id': 'p02260', 'u_id': 'u666307258', 'date': '1527490816', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '575'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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/* 選択ソート (0オリジン) */\nint selectionSort(int A[], int N) {\n int i, j, t, sw = 0, mini;\n for(i=0; i<N-1; i++) {... |
CDSS_181336 | CDSS | #include<stdio.h>
#include<string.h>
#define LEN 100005
typedef struct pp{
char name[100];
int t;
}P;
P Q[LEN];
int head, tail, n;
void enqueue(P x){
Q[tail] = x;
tail = (tail + 1) % LEN;
}
P dequeue(){
P x = Q[head];
head = (head + 1) % LEN;
return x;
}
int min(int a, int b){return a < b ? a : b; ... | 10,756 | memory_bytes | {'s_id': 's985250452', 'p_id': 'p02264', 'u_id': 'u840849126', 'date': '1461748286', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '10756', 'code_size': '723'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\n#define LEN 100005\n\ntypedef struct pp{\n char name[100];\n int t;\n}P;\n\nP Q[LEN];\nint he... |
CDSS_309353 | CDSS | #include <stdio.h>
int main()
{
int a, b;
scanf("%d %d", &a, &b);
printf("%d %d %.8lf\n", a / b, a % b, (double)a / b);
return 0;
} | 640 | memory_bytes | {'s_id': 's717740873', 'p_id': 'p02399', 'u_id': 'u770241242', 'date': '1465532462', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '640', '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()\n{\n\tint a, b;\n\n\tscanf(\"%d %d\", &a, &b);\n\n\tprintf(\"%d %d %.8lf\\n\", a / b, a % b, (double)... |
CDSS_372618 | CDSS | /*
* ID: ITP2_10_B
* Problem: Bit Operation II
*/
#include <stdio.h>
void print_bits(unsigned int a)
{
int i;
for (i = 0; i < 32; i++) {
printf("%c", (a & 0x80000000) == 0 ? '0' : '1');
a <<= 1;
}
printf("\n");
}
int main(void)
{
unsigned int a, b;
scanf("%d %d", &a, &b);
... | 2,052 | memory_bytes | {'s_id': 's993747835', 'p_id': 'p02424', 'u_id': 'u428405749', 'date': '1544960916', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2052', 'code_size': '408'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n/*\n * ID: ITP2_10_B\n * Problem: Bit Operation II\n */\n\n#include <stdio.h>\n\nvoid print_bits(unsigned int a)\n{\n int i;\n f... |
CDSS_80519 | CDSS | #include <stdio.h>
int main(void){
int n;
scanf("%d",&n);
long v;
long sum=0;
for(int i=0;i<n;i++){
scanf("%ld",&v);
sum+=v;
}
printf("%ld\n",sum/n);
return 0;
}
| 1,992 | memory_bytes | {'s_id': 's925932919', 'p_id': 'p00134', 'u_id': 'u371539389', 'date': '1580791750', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1992', 'code_size': '188'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n int n;\n scanf(\"%d\",&n);\n long v;\n long sum=0;\n for(int i=0;i<n;i++){\n scanf(\"%... |
CDSS_238054 | CDSS | #include <stdio.h>
typedef struct {
int cur;
int n;
int s;
int e;
int w;
} Dice;
typedef enum {
POSITIVE,
NEGATIVE
} ROLL_DIR;
void v_index_change(int *cur, int *a, int *b)
{
int tmp = *cur;
*cur = *a;
*b = tmp;
*a = 7 - tmp;
}
void h_index_change(int *p1, int *p2, int *p3, int *p4)
{
int tmp = *p1;
*p... | 596 | memory_bytes | {'s_id': 's915994422', 'p_id': 'p02384', 'u_id': 'u360015976', 'date': '1459482177', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '2758'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 cur;\n\tint n;\n\tint s;\n\tint e;\n\tint w;\n} Dice;\n\ntypedef enum {\n\tPOSITIVE,\n\t... |
CDSS_715510 | CDSS | #include<stdio.h>
int main()
{
char str[5],r;
while(gets(str)!=NULL)
{
if(str[0]=='H')
{
if(str[2]=='H')
r='H';
else
r='D';
}
else
{
if(str[2]=='H')
r='D';
else
... | 128 | memory_bytes | {'s_id': 's040687438', 'p_id': 'p03777', 'u_id': 'u326499395', 'date': '1489886467', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '128', 'code_size': '388'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 str[5],r;\n while(gets(str)!=NULL)\n {\n if(str[0]=='H')\n {\n ... |
CDSS_110213 | CDSS | #include<stdio.h>
#include<stdlib.h>
int main()
{
int i,j,h,w,a[32][32],k,l,m=2147483000,r;
scanf("%d %d",&h,&w);
for(i=0;i<h;i++){
for(j=0;j<w;j++){
scanf("%d",&a[i][j]);
}
}
for(i=0;i<h;i++){
for(j=0;j<w;j++){
r=0;
for(k=0;k<h;k++){
... | 2,108 | memory_bytes | {'s_id': 's719242566', 'p_id': 'p00566', 'u_id': 'u726704931', 'date': '1545029163', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '529'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\nint main()\n{\n int i,j,h,w,a[32][32],k,l,m=2147483000,r;\n scanf(\"%d %d\",&h,&w);\n ... |
CDSS_711065 | CDSS | #include<stdio.h>
int main()
{
double a,b;
scanf("%lf",&a);
scanf("%lf",&b);
if(a > b){
printf("GREATER\n");
}else if(a == b){
printf("EQUAL\n");
}else if(a < b){
printf("LE... | 128 | memory_bytes | {'s_id': 's845486751', 'p_id': 'p03738', 'u_id': 'u862564921', 'date': '1500862327', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '373'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n #include<stdio.h>\n int main()\n {\n double a,b;\n scanf(\"%lf\",&a);\n scanf(\"%lf... |
CDSS_155362 | CDSS | #include<stdio.h>
#include<math.h>
#define N 10000
int main(){
int n,A[N],i,j,count=0,flag,k1;
double k2;
scanf("%d",&n);
for(i=0;i<n;i++) scanf("%d",&A[i]);
for( j = 0 ; j < n ; j++ ){
flag = 0;
if( A[j] != 2){
if( A[j]%2 == 1){
k2 = sqrt(A[j]);
k1 = ceil(k2);
for( i = 2 ; i <= k1 ; i++ ... | 636 | memory_bytes | {'s_id': 's379093615', 'p_id': 'p02257', 'u_id': 'u565781955', 'date': '1460515505', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '636', 'code_size': '483'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<math.h>\n\n#define N 10000\nint main(){\n int n,A[N],i,j,count=0,flag,k1;\n double k2;\n\n scanf(\"%d\"... |
CDSS_649735 | CDSS | #include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(void)
{
int n, m, x, i, a, l = 0, r = 0;
int num[101] = {0};
scanf("%d%d%d", &n, &m, &x);
for (i = 0; i < m; ++i) scanf("%d", num + i);
for (i = 0; i < m; ++i) {
if (num[i] < x) ++l;
else ++r;
... | 128 | memory_bytes | {'s_id': 's330355004', 'p_id': 'p03378', 'u_id': 'u793460037', 'date': '1525321411', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '394'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <ctype.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\nint main(void)\n{\n int n, m, x, i, a, l = 0, r... |
CDSS_547325 | CDSS | #include<stdio.h>
int main(void){
int r;
scanf("%d",&r);
printf("%d",3*r*r);
return 0;
} | 128 | memory_bytes | {'s_id': 's461511255', 'p_id': 'p02969', 'u_id': 'u177053419', 'date': '1563670881', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '107'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void){\n int r;\n scanf(\"%d\",&r);\n\n printf(\"%d\",3*r*r);\n\n return 0;\n}\nPredict its ... |
CDSS_679964 | CDSS | #include<stdio.h>
int main()
{
int a,b,c;
scanf("%d%d",&a,&c);
b=c*2-a;
printf("%d",b);
return 0;
} | 128 | memory_bytes | {'s_id': 's230288012', 'p_id': 'p03563', 'u_id': 'u273965067', 'date': '1544133948', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '111'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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\",&a,&c);\n\tb=c*2-a;\n\tprintf(\"%d\",b);\n\t\n\t\n\t\n return 0;\t\n}... |
CDSS_658095 | CDSS | #include <stdio.h>
int main(void){
int N, A;
scanf("%d %d", &N, &A);
if(N%500 <= A){
printf("Yes\n");
}else{
printf("No\n");
}
return 0;
}
| 128 | memory_bytes | {'s_id': 's595853592', 'p_id': 'p03433', 'u_id': 'u889278665', 'date': '1544260392', '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(void){\n int N, A;\n scanf(\"%d %d\", &N, &A);\n if(N%500 <= A){\n printf(\"Yes\\n\");\n }else{\... |
CDSS_46089 | CDSS | #include<stdio.h>
int main(){
int i,ch,a[50],w,n,p,q,tmp;
for(i=1;i<50;i++) a[i]=i;
scanf("%d",&w);
while((ch=getchar())!='\n');
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d,%d",&p,&q);
tmp=a[q];
a[q]=a[p];
a[p]=tmp;
}
for(i=1;i<=w;i++) printf("%d\n",a[i]... | 600 | memory_bytes | {'s_id': 's948617459', 'p_id': 'p00011', 'u_id': 'u510563501', 'date': '1373348227', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '339'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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,ch,a[50],w,n,p,q,tmp;\n for(i=1;i<50;i++) a[i]=i;\n scanf(\"%d\",&w);\n while((c... |
CDSS_635958 | CDSS | #include<stdio.h>
#include<math.h>
main(){
int i,N,l,sum=0;
scanf("%d",&N);
i=N;
for(l=(int)log10(N);l>=0;l--){
sum+=N/(int)pow(10,l);
N%=(int)pow(10,l);
}
if(i%sum) puts("No");
else puts("Yes");
}
| 128 | memory_bytes | {'s_id': 's498619976', 'p_id': 'p03316', 'u_id': 'u241428348', 'date': '1529806148', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '220'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<math.h>\nmain(){\n int i,N,l,sum=0;\n scanf(\"%d\",&N);\n i=N;\n for(l=(int)log10(N);l>=0;l--){\n s... |
CDSS_485354 | CDSS | #include<stdio.h>
#include<math.h>
int main(void){
int N,K;
scanf("%d %d",&N,&K);
int count = 0;
long int x=0;
x = N;
while(x>=0){
x = (long int)(x/K);
if(x==0){
break;
}
count++;
}
count++;
printf("%d",count);
return 0;
} | 128 | memory_bytes | {'s_id': 's399289742', 'p_id': 'p02766', 'u_id': 'u387720785', 'date': '1582426188', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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#include<math.h>\nint main(void){\n int N,K;\n scanf(\"%d %d\",&N,&K);\n int count = 0;\n \tlong int x=0;... |
CDSS_467996 | CDSS | #include<stdio.h>
int main(){
char s[7];
scanf("%s",s);
if(s[2]==s[3] && s[4]==s[5])
printf("Yes");
else
printf("No");
}
| 1,708 | memory_bytes | {'s_id': 's851664834', 'p_id': 'p02723', 'u_id': 'u403081723', 'date': '1596743503', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '9', 'memory': '1708', 'code_size': '137'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n char s[7];\n scanf(\"%s\",s);\n if(s[2]==s[3] && s[4]==s[5])\n printf(\"Yes\");\n else\n pr... |
CDSS_222129 | CDSS | #include<stdio.h>
#include<stdlib.h>
struct node{
struct node *right;
struct node *left;
struct node *parent;
int key;
};
typedef struct node * Node;
#define NIL NULL
Node root;
void insert(int k){
Node y = NIL;
Node x = root;
Node z;
z = malloc(sizeof(struct node));
z->key = k;
z->left = NIL;
... | 24,040 | memory_bytes | {'s_id': 's722423914', 'p_id': 'p02283', 'u_id': 'u221048589', 'date': '1403679929', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '400', 'memory': '24040', 'code_size': '1146'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n\nstruct node{\n struct node *right;\n struct node *left;\n struct node *parent;\n int key;... |
CDSS_303904 | CDSS | #include<stdio.h>
int main()
{
int x,y;
while(1){
scanf("%d %d",&x,&y);
if(x == 0 && y == 0)
break;
if(x < y)
printf("%d %d\n",x,y);
else
printf("%d %d\n",y,x);
}
return 0;
}
| 2,040 | memory_bytes | {'s_id': 's441916780', 'p_id': 'p02397', 'u_id': 'u087630821', 'date': '1532575940', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2040', 'code_size': '259'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main()\n{\n int x,y;\n while(1){\n scanf(\"%d %d\",&x,&y);\n if(x == 0 && y == 0)\n ... |
CDSS_509145 | CDSS | #include<stdio.h>
int main(void){
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
if(a+b+c>=22){printf("bust");}
if(a+b+c<22){printf("win");}
return 0;
} | 1,708 | memory_bytes | {'s_id': 's812414892', 'p_id': 'p02835', 'u_id': 'u452450985', 'date': '1593954772', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1708', 'code_size': '149'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void){\n\nint a,b,c;\n\nscanf(\"%d %d %d\",&a,&b,&c);\n\nif(a+b+c>=22){printf(\"bust\");}\nif(a+b+c<22){... |
CDSS_659005 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<string.h>
#include<stdbool.h>
#include<assert.h>
typedef long long ll;
typedef long double ld;
#define rep(i,l,r)for(ll i=(l);i<(r);i++)
#define repp(i,l,r,k)for(ll i=(l);i<(r);i+=(k))
#define rrep(i,l,r)for(ll i=(l);i>=(r);i--)
#define INF (1LL<<60)
#defin... | 128 | memory_bytes | {'s_id': 's109460215', 'p_id': 'p03435', 'u_id': 'u004279520', 'date': '1587555604', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '2167'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#include<math.h>\n#include<string.h>\n#include<stdbool.h>\n#include<assert.h>\ntypedef long lon... |
CDSS_739871 | CDSS | #include <stdio.h>
#include <string.h>
#define MAX 100
int main(void) {
char w[MAX], cnt[26]={0};
int i;
scanf("%s", w);
for(i=0; i<strlen(w); i++)
cnt[w[i]-'a']++;
for(i=0; i<26; i++) {
if(cnt[i]%2!=0) {
printf("No\n");
return 0;
}
}
prin... | 128 | memory_bytes | {'s_id': 's847795871', 'p_id': 'p04012', 'u_id': 'u768152935', 'date': '1528425956', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '349'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n#define MAX 100\nint main(void) {\n char w[MAX], cnt[26]={0};\n int i;\n scanf(\"%s\... |
CDSS_680438 | CDSS | #include<stdio.h>
int main(){
int n,k,ans=1,i;
scanf("%d%d",&n,&k);
for(i=0;i<n;i++){
if(ans<k){
ans=ans*2;
}else ans+=k;
}
printf("%d\n",ans);
return 0;
} | 128 | memory_bytes | {'s_id': 's122924313', 'p_id': 'p03564', 'u_id': 'u946810083', 'date': '1548533920', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '128', 'code_size': '169'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n\tint n,k,ans=1,i;\n\tscanf(\"%d%d\",&n,&k);\n\tfor(i=0;i<n;i++){\n\t\tif(ans<k){\n\t\t\tans=ans*2;\... |
CDSS_142379 | CDSS | #include <stdio.h>
#define N 8
#define NOT_FREE 1
#define FREE -1
int row[N],col[N],dpos[2*N-1],dneg[2*N-1],buf[N][N];
int flag=0;
void putQueen(int);
void printBoard();
int main(){
int a,b,i,n,j;
for(i=0;i<N;i++){
row[i]=FREE;
col[i] = FREE;
}
for(i = 0;i<2*N;i++){
dpos[i] = FREE;
dneg[i] =F... | 2,060 | memory_bytes | {'s_id': 's336218060', 'p_id': 'p02244', 'u_id': 'u530315698', 'date': '1533194993', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2060', 'code_size': '1151'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 8\n#define NOT_FREE 1\n#define FREE -1\n\nint row[N],col[N],dpos[2*N-1],dneg[2*N-1],buf[N][N];\nint fl... |
CDSS_226070 | CDSS | #include<stdio.h>
#define H 250
int parent(int);
int left(int);
int right(int);
main(){
int i,n,A[H+1],l,r;
scanf("%d",&n);
for(i=1;i<=n;i++){
scanf("%d",&A[i]);
}
for(i=1;i<=n;i++){
printf("node %d: key = %d, ",i,A[i]);
if(i>=1){
if(i!=1)printf("parent key = %d, ",A[parent(i)]);... | 600 | memory_bytes | {'s_id': 's441398363', 'p_id': 'p02287', 'u_id': 'u766995356', 'date': '1434680958', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '626'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 H 250\n\nint parent(int);\n \nint left(int);\n\nint right(int);\n\n\nmain(){\n\n int i,n,A[H+1],l,r;\n\n ... |
CDSS_390496 | CDSS | #include <stdio.h>
int miyukiti[12345];
int main(void) {
int x, y, z;
int N;
int i;
if (scanf("%d", &N) != 1) return 1;
for (x = 1; x * x <= N; x++) {
for (y = 1; y * y <= N; y++) {
for (z = 1; z * z <= N; z++) {
int satorina = x * x + y * y + z * z + x * y + y * z + z * x;
if (satorina <= N) miyuki... | 1,728 | memory_bytes | {'s_id': 's909127242', 'p_id': 'p02608', 'u_id': 'u646118499', 'date': '1594516240', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '1728', 'code_size': '424'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 miyukiti[12345];\n\nint main(void) {\n\tint x, y, z;\n\tint N;\n\tint i;\n\tif (scanf(\"%d\", &N) != 1) retu... |
CDSS_720543 | CDSS | #include<stdio.h>
int main(void)
{
int a;
scanf("%d",&a);
if(a<1200)
printf("ABC\n");
else
printf("ARC\n");
return 0;
}
| 128 | memory_bytes | {'s_id': 's930916778', 'p_id': 'p03813', 'u_id': 'u151785909', 'date': '1587493355', '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{\n int a;\n scanf(\"%d\",&a);\n if(a<1200)\n printf(\"ABC\\n\");\n else\n printf(\"ARC... |
CDSS_229508 | CDSS | #include<stdio.h>
#define H 500000
int h;
void maxheapify(int A[],int i){
int l,r,largest,tmp;
l=2*i;
r=2*i+1;
if(l<=h && A[l]>A[i]) largest = l;
else largest = i;
if(r<=h && A[r]>A[largest]) largest = r;
if(largest != i){
tmp=A[i];
A[i]=A[largest];
A[largest]=tmp;
maxheapify(A,larg... | 3,680 | memory_bytes | {'s_id': 's005626853', 'p_id': 'p02288', 'u_id': 'u992148549', 'date': '1579582015', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '60', 'memory': '3680', 'code_size': '591'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 H 500000\n\nint h;\n\nvoid maxheapify(int A[],int i){\n int l,r,largest,tmp;\n\n l=2*i;\n r=2*i+1;\n\n ... |
CDSS_335799 | CDSS | #include<stdio.h>
int main(){
int H,W,i,j;
do{
scanf("%d %d",&H,&W);
if(H == 0 && W == 0)
break;
for(i=1;i <= H;i++){
for(j=1;j <= W;j++){
if((i+j) % 2 == 0){
printf("#");
}
if((i+j) % 2 != 0){
printf(".");
}
if(j == W){
printf("\n");
}
}
}
pri... | 572 | memory_bytes | {'s_id': 's282443603', 'p_id': 'p02405', 'u_id': 'u017545322', 'date': '1466641387', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '572', '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>\nint main(){\n int H,W,i,j;\n do{\n scanf(\"%d %d\",&H,&W);\n if(H == 0 && W == 0)\n break;\n for(i=... |
CDSS_418906 | CDSS | #include <stdio.h>
int main() {
char S[11],T[12]; //Char型宣言
int i;
scanf("%s %s",S,T); //標準入力の取得
for (i = 0;S[i] != '\0';i++){
if (S[i] != T[i]){
printf("No\n");
return 0;
}
}
printf("Yes\n");
return 0;
} | 1,644 | memory_bytes | {'s_id': 's871047990', 'p_id': 'p02681', 'u_id': 'u429241821', 'date': '1589245892', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '1644', '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>\nint main() {\n char S[11],T[12];\t//Char型宣言\n int i;\n \n scanf(\"%s %s\",S,T);\t//標準入力の取得\n \n ... |
CDSS_639772 | CDSS | #include<stdio.h>
int main(){
int a;
scanf("%d",&a);
if(a>=1000)printf("ABD");
else printf("ABC");
return 0;
}
| 128 | memory_bytes | {'s_id': 's446893922', 'p_id': 'p03327', 'u_id': 'u105454924', 'date': '1559010595', '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(){\nint a;\n scanf(\"%d\",&a);\n if(a>=1000)printf(\"ABD\");\n else printf(\"ABC\");\n return 0;\n}\n\... |
CDSS_264486 | CDSS | #include<stdio.h>
int main(){
int S=0;
int h, m, 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;
}
| 2,084 | memory_bytes | {'s_id': 's520038959', 'p_id': 'p02390', 'u_id': 'u978799212', 'date': '1568962634', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2084', '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\nint main(){\n\tint S=0;\n\tint h, m, s;\n\t\n\tscanf(\"%d\", &S);\n\th = S/3600;\n\tm = (S%3600)/60;\n\ts = (S%36... |
CDSS_353187 | CDSS | #include <stdio.h>
int main(int argc, const char * argv[]) {
int m,f,r;
int a[50][3];
int i=0,j=0;
while(1){
scanf("%d %d %d",&m,&f,&r);
if(m==-1 && f==-1 && r==-1){
break;
}
a[i][0]=m;
a[i][1]=f;
a[i][2]=r;
... | 2,044 | memory_bytes | {'s_id': 's174946915', 'p_id': 'p02411', 'u_id': 'u891523811', 'date': '1527237624', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2044', 'code_size': '1117'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 m,f,r;\n int a[50][3];\n \n int i=0,j=0;\n \n ... |
CDSS_233520 | CDSS | #include <stdio.h>
#include <math.h>
int main() {
double x1,x2,y1,y2;
double x,y,z;
scanf("%lf %lf %lf %lf",&x1,&y1,&x2,&y2);
x = (x2-x1) * (x2-x1);
y = (y2-y1) * (y2-y1);
printf("%.11lf",sqrt(x+y));
return 0;
}
| 2,096 | memory_bytes | {'s_id': 's768073346', 'p_id': 'p02379', 'u_id': 'u472996874', 'date': '1531182040', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2096', 'code_size': '220'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n\nint main() {\n\ndouble x1,x2,y1,y2;\ndouble x,y,z;\nscanf(\"%lf %lf %lf %lf\",&x1,&y1,&x2,&y2... |
CDSS_682671 | CDSS | #include<stdio.h>
int main()
{
int N;
scanf("%d", &N);
unsigned long long int h, n, w;
for (h = 1; h < 3501; h++)
{
for (n = h; n < 3501; n++)
{
if (4 * h*n - N * n - N * h > 0)
{
if ((N*h*n) % (4 * h*n - N * n - N * h) == 0)
{
... | 128 | memory_bytes | {'s_id': 's867164632', 'p_id': 'p03583', 'u_id': 'u600300412', 'date': '1552284611', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '50', 'memory': '128', 'code_size': '531'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n int N;\n scanf(\"%d\", &N);\n unsigned long long int h, n, w;\n for (h = 1; h < 3501; h... |
CDSS_592692 | CDSS | #include <stdio.h>
#include <math.h>
int main(void)
{
char s[100000];
int i,cnt[2]={0},n;
scanf("%s",s);
n=strlen(s);
for(i=0;i<n;i++){
cnt[s[i] - '0']++;
}
printf("%d\n",(int)fmin(cnt[0],cnt[1])*2);
return 0;
}
| 256 | memory_bytes | {'s_id': 's450342329', 'p_id': 'p03107', 'u_id': 'u573564324', 'date': '1551687391', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '256', 'code_size': '223'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n\nint main(void)\n{\n\tchar s[100000];\n\tint i,cnt[2]={0},n;\n\tscanf(\"%s\",s);\n\tn=strlen(s... |
CDSS_746054 | CDSS | #pragma region kyopuro_templates
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<string.h>
#include<stdbool.h>
#include<assert.h>
#include<time.h>
#include<ctype.h>
typedef long long ll;
typedef long double ld;
#define rep(i,l,r)for(ll i=(l);i<(r);i++)
#define repp(i,l,r,k)for(ll i=(l);i<(r);i+=(k))
#def... | 48,980 | memory_bytes | {'s_id': 's509245446', 'p_id': 'p04046', 'u_id': 'u004279520', 'date': '1596648189', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '263', 'memory': '48980', 'code_size': '14410'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#pragma region kyopuro_templates\n#include<stdio.h>\n#include<stdlib.h>\n#include<math.h>\n#include<string.h>\n#include<stdbool.h>\n#i... |
CDSS_471627 | CDSS | #include <stdio.h>
int main(){
int N,M;
scanf("%d %d",&N,&M);
printf("%d\n", N*(N-1)/2+M*(M-1)/2);
return 0;
}
| 128 | memory_bytes | {'s_id': 's879021492', 'p_id': 'p02729', 'u_id': 'u618608862', 'date': '1586223414', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '123'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n int N,M;\n\n scanf(\"%d %d\",&N,&M);\n\n printf(\"%d\\n\", N*(N-1)/2+M*(M-1)/2);\n\n return 0;... |
CDSS_510461 | CDSS | #include <stdio.h>
#include <string.h>
/*--- 文字列strの長さを返す ---*/
unsigned str_length(const char str[])
{
unsigned len = 0;
while (str[len])
len++;
return (len);
}
/*--- 文字列を逆順に並べ替える ---*/
void rev_string(char str[])
{
int i;
int len = str_length(str);
for (i = 0; i < len / 2; i++) {
... | 128 | memory_bytes | {'s_id': 's164091654', 'p_id': 'p02836', 'u_id': 'u149854193', 'date': '1575858801', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '1427'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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/*--- 文字列strの長さを返す ---*/\nunsigned str_length(const char str[])\n{\n unsigned len = 0;\n... |
CDSS_165326 | CDSS | #include<stdio.h>
#define N 100
void swap(int*, int*);
void pr(int*, int);
int main(){
int n, i, j, k;
int t=0; // times
int a[N];
scanf("%d", &n);
for ( i = 0; i < n; i++ ) scanf("%d", &a[i]);
for( i = 0 ; i < n ; i++){
for(j = n-1 ; j > i ; j--){
if( a[j] < a[j-1] ){
swap(&a[j] ,&a[j-1]);
... | 604 | memory_bytes | {'s_id': 's551288890', 'p_id': 'p02259', 'u_id': 'u789419412', 'date': '1460602045', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '604', 'code_size': '618'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\nvoid swap(int*, int*);\nvoid pr(int*, int);\n\nint main(){\n int n, i, j, k;\n int t=0; // times... |
CDSS_406389 | CDSS | #include<stdio.h>
int main()
{
int a,b;
scanf("%d %d",&a,&b);
printf("%d",a*b);
return 0;
} | 1,712 | memory_bytes | {'s_id': 's397449805', 'p_id': 'p02657', 'u_id': 'u964582525', 'date': '1596656012', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1712', '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>\nint main()\n{\n int a,b;\n scanf(\"%d %d\",&a,&b);\n printf(\"%d\",a*b);\n return 0;\n} \nPredict its m... |
CDSS_380952 | CDSS | #include <stdio.h>
#include <math.h>
int main(void){
int n, x, t;
scanf("%d %d %d", &n, &x, &t);
printf("%d\n", (int)ceil((double)n/(double)x)*t);
return 0;
}
| 1,732 | memory_bytes | {'s_id': 's289266505', 'p_id': 'p02576', 'u_id': 'u972042735', 'date': '1598123160', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1732', '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#include <math.h>\nint main(void){\n int n, x, t;\n \n scanf(\"%d %d %d\", &n, &x, &t);\n printf(\"%d\... |
CDSS_652372 | CDSS | #include <stdio.h>
int main(void){
int a,b,c,d;
scanf("%d",&a);
scanf("%d",&b);
scanf("%d",&c);
scanf("%d",&d);
int bus,train;
if(a>=b){
bus = b;
}
else{
bus = a;
}
if(c>=d){
train = d;
}
else{
train = c;
}
p... | 128 | memory_bytes | {'s_id': 's408481489', 'p_id': 'p03399', 'u_id': 'u776202654', 'date': '1522036058', '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>\nint main(void){\n int a,b,c,d;\n scanf(\"%d\",&a);\n scanf(\"%d\",&b);\n scanf(\"%d\",&c);\n scanf(... |
CDSS_49836 | CDSS | #include<stdio.h>
#include<math.h>
#define PI 3.141592653589793238
int main(){
double x = 0, y = 0, nowdig = 90;
int a, b;
while(1){
scanf("%d,%d", &a, &b);
if(a == 0 && b == 0)break;
x += (double)a * cos(nowdig * PI / 180);
y += (double)a * sin(nowdig * PI / 180);
nowdig -= b;
}
printf... | 604 | memory_bytes | {'s_id': 's583973389', 'p_id': 'p00016', 'u_id': 'u611853667', 'date': '1349771430', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '604', 'code_size': '363'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<math.h>\n#define PI 3.141592653589793238\n\nint main(){\n double x = 0, y = 0, nowdig = 90;\n int a, b;\... |
CDSS_554643 | CDSS | #include<stdio.h>
int main(void){
int n, p[21], i;
scanf("%d",&n);
for(i=1; i<=n; i++){
scanf("%d",&p[i]);
}
int x=0;
for(i=2; i<n; i++){
if(((p[i]>p[i-1])&&(p[i]<p[i+1])) || ((p[i]<p[i-1])&&(p[i]>p[i+1]))){
x++;
}
}
printf("%d\n",x);
r... | 128 | memory_bytes | {'s_id': 's549126314', 'p_id': 'p02988', 'u_id': 'u005542640', 'date': '1588982870', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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(void){\n int n, p[21], i;\n\n scanf(\"%d\",&n);\n for(i=1; i<=n; i++){\n scanf(\"%d\",&p... |
CDSS_697626 | CDSS | #include <stdio.h>
int main()
{
int a,b,c,n;
scanf("%d%d%d",&a,&b,&c);
if(a>=b){
if(a>=c){n=b+c;}
if(a<c){n=a+b;}}
else {
if(b>=c){n=a+c;}
if(b<c){n=a+b;}}
printf("%d",n);
return 0;
} | 128 | memory_bytes | {'s_id': 's423509794', 'p_id': 'p03671', 'u_id': 'u018679195', 'date': '1509073507', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '235'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main()\n{\n int a,b,c,n;\n scanf(\"%d%d%d\",&a,&b,&c);\n if(a>=b){\n if(a>=c){n=b+c;}\n ... |
CDSS_296784 | CDSS | #include<stdio.h>
int main()
{
int x, i=0;
while(1){
scanf("%d", &x);
if(x == 0) break;
i++;
printf("Case %d: %d\n", i ,x);
}
return 0;
} | 600 | memory_bytes | {'s_id': 's338767065', 'p_id': 'p02396', 'u_id': 'u694718044', 'date': '1497066282', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '163'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 x, i=0;\n\n while(1){\n scanf(\"%d\", &x);\n if(x == 0) break;\n \n i++;\n\n printf(\"Ca... |
CDSS_230904 | CDSS | #include<stdio.h>
int h, A[2000001];
void maxHeapify(int i) {
int temp;
int l,r,largest;
l = 2*i;
r = 2*i+1;
if(l<=h && A[l] > A[i]) largest = l;
else largest = i;
if(r<=h && A[r]>A[largest]){ largest = r; }
if(largest != i){
temp = A[i];
A[i] = A[largest];
A[largest] = temp;
maxHeapify(largest);
} ... | 5,668 | memory_bytes | {'s_id': 's054856350', 'p_id': 'p02289', 'u_id': 'u145656623', 'date': '1577379181', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '300', 'memory': '5668', 'code_size': '928'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 h, A[2000001];\n\nvoid maxHeapify(int i) {\n\tint temp;\n\tint l,r,largest;\n\tl = 2*i;\n\tr = 2*i+1;\n\n\tif... |
CDSS_276185 | 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': 's090649274', 'p_id': 'p02392', 'u_id': 'u439307430', 'date': '1461287673', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', '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(void)\n\n{\n\nint a,b,c;\n\nscanf(\"%d %d %d\",&a,&b,&c);\n\n if(a<b&&b<c)\n\n{\n\nprintf(\"Yes\\n\");\n... |
CDSS_594518 | CDSS | #include <stdio.h>
int main()
{
int n,i;
scanf("%d%d",&n,&i);
if( i %n==0)
{
printf("%d",n+i);
}
else {
printf("%d",i-n);
}
return 0;
} | 128 | memory_bytes | {'s_id': 's327397275', 'p_id': 'p03125', 'u_id': 'u816631826', 'date': '1568262932', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '153'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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,i;\nscanf(\"%d%d\",&n,&i);\n if( i %n==0)\n {\n printf(\"%d\",n+i);\n}\n else {\n ... |
CDSS_731431 | CDSS | #include <stdio.h>
#define Mod 1000000007
int main()
{
int N, M;
scanf("%d %d", &N, &M);
int i, j, k;
long long dp[302][302] = {}, tmp;
for (k = 1, dp[1][1] = 1; k <= M; k++) {
for (i = k; i >= 1; i--) {
for (j = i; j >= 1; j--) {
tmp = dp[i][j] % Mod;
dp[i][j] = 0;
dp[i+1][j] += tmp * (N - i... | 2,416 | memory_bytes | {'s_id': 's409241869', 'p_id': 'p03924', 'u_id': 'u943800443', 'date': '1595456445', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '28', 'memory': '2416', 'code_size': '457'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 Mod 1000000007\n\nint main()\n{\t\n\tint N, M;\n\tscanf(\"%d %d\", &N, &M);\n\t\n\tint i, j, k;\n\tlong ... |
CDSS_98863 | CDSS | #include <stdio.h>
int main()
{
int aj,as,ar,ae;
int bj,bs,br,be;
int S,T;
scanf("%d %d %d %d",&aj,&as,&ar,&ae);
scanf("%d %d %d %d",&bj,&bs,&br,&be);
S=aj+as+ar+ae;
T=bj+bs+br+be;
if(S>T)printf("%d\n",S);
else printf("%d\n",T);
} | 1,800 | memory_bytes | {'s_id': 's519467504', 'p_id': 'p00433', 'u_id': 'u204605037', 'date': '1504587551', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1800', '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\nint main()\n{\n\tint aj,as,ar,ae;\n\tint bj,bs,br,be;\n\tint S,T;\n\t\n\tscanf(\"%d %d %d %d\",&aj,&as,&ar,&ae);... |
CDSS_576200 | CDSS | #include <stdio.h>
int main(){
int n,v[20],c[20],sum=0;
scanf("%d",&n);
for (int i=0;i<n;i++) scanf("%d",&v[i]);
for (int i=0;i<n;i++) scanf("%d",&c[i]);
for (int i=0;i<n;i++){
if (v[i]>c[i]) sum=sum+v[i]-c[i];
}
printf("%d\n",sum);
return 0;
} | 128 | memory_bytes | {'s_id': 's195350847', 'p_id': 'p03060', 'u_id': 'u351299035', 'date': '1556413409', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '264'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(){\n int n,v[20],c[20],sum=0;\n scanf(\"%d\",&n);\n for (int i=0;i<n;i++) scanf(\"%d\",&v[i]);\n for ... |
CDSS_36523 | CDSS | #include <stdio.h>
long gcd(long x, long y) {
long z;
while ((z = x % y) != 0) {
x = y;
y = z;
}
return y;
}
long lcm(long x, long y) {
return x * y / gcd(x, y);;
}
int main(int argc, const char * argv[])
{
long a, b;
while (scanf("%ld %ld", ... | 596 | memory_bytes | {'s_id': 's344032244', 'p_id': 'p00005', 'u_id': 'u493797593', 'date': '1354706360', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '415'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 gcd(long x, long y) {\n \n long z;\n \n while ((z = x % y) != 0) {\n x = y;\n y =... |
CDSS_521250 | CDSS | #include<stdio.h>
int main(){
int a,b;
scanf("%d %d",&a,&b);
if(a-2*b<=0)printf("0");
else printf("%d",a-2*b);
} | 128 | memory_bytes | {'s_id': 's598237564', 'p_id': 'p02885', 'u_id': 'u004676431', 'date': '1571533592', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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>\nint main(){\n\tint a,b;\n \tscanf(\"%d %d\",&a,&b);\n \tif(a-2*b<=0)printf(\"0\");\n \telse printf(\"%d\",a-2*b)... |
CDSS_258091 | CDSS | #include<stdio.h>
int main( void){
int a , b;
int s , l;
scanf( "%d %d" , &a , &b );
s = a * b;
l = 2 * ( a + b );
printf( "%d %d\n" , s , l );
}
| 2,084 | memory_bytes | {'s_id': 's226805113', 'p_id': 'p02389', 'u_id': 'u839873872', 'date': '1568961987', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2084', 'code_size': '196'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main( void){\n \n int a , b;\n int s , l;\n \n scanf( \"%d %d\" , &a , &b );\n \n s = a ... |
CDSS_603188 | CDSS | #include "stdio.h"
int max_int(int a,int b){
if (a>b) {return a;}
return b;
}
int main(int argc, char const *argv[]) {
int N;
scanf("%d", &N);
int A[N],B[N],C[N];
int Am[N],Bm[N],Cm[N];
for (size_t i = 0; i < N; i++) {
scanf("%d%d%d",&A[i],&B[i],&C[i]);
}
Am[0]=A[0];Bm[0]=B[0];Cm[0]=C[0];
for ... | 2,560 | memory_bytes | {'s_id': 's706772779', 'p_id': 'p03162', 'u_id': 'u950580323', 'date': '1546876975', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '26', 'memory': '2560', 'code_size': '575'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 max_int(int a,int b){\n if (a>b) {return a;}\n return b;\n}\n\nint main(int argc, char const *argv[]) {\... |
CDSS_398823 | CDSS | #include<stdio.h>
main(){
char x;
scanf("%c",&x);
if(x>='a' && x<='z'){
printf("a");
}
else{
printf("A");
}
return 0;
}
| 1,600 | memory_bytes | {'s_id': 's591255559', 'p_id': 'p02627', 'u_id': 'u995267970', 'date': '1593058765', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1600', 'code_size': '123'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nmain(){\nchar x;\nscanf(\"%c\",&x);\n \nif(x>='a' && x<='z'){\nprintf(\"a\");\n}\nelse{\nprintf(\"A\");\n}\nreturn ... |
CDSS_675241 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define ll long long
#define rep(i,l,r)for(ll i=(l);i<(r);i++)
#define max(p,q)((p)>(q)?(p):(q))
#define min(p,q)((p)<(q)?(p):(q))
int main(){
ll a;
scanf("%lld",&a);
puts(a%1000%111==0||a/10%111==0?"Yes":"No");
} | 128 | memory_bytes | {'s_id': 's040980320', 'p_id': 'p03543', 'u_id': 'u382163500', 'date': '1546290088', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '276'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#define ll long long\n#define rep(i,l,r)for(ll i=(l);i<(r);i++)\n#define... |
CDSS_583087 | CDSS | #include <stdio.h>
int main(void)
{
int n[5],i,k,t,j;
for(i=0;i<5;i++){
scanf("%d\n",&n[i]);
}
scanf("%d\n",&k);
for(i=4;i>=1;i--){
for(j=i-1;j>=0;j--){
t=n[i]-n[j];
if(t>k){
printf(":(");
return 0;
}
}
}
printf("Yay!");
return 0;
}
| 128 | memory_bytes | {'s_id': 's876331715', 'p_id': 'p03075', 'u_id': 'u812802411', 'date': '1554582381', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '301'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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[5],i,k,t,j;\n\n for(i=0;i<5;i++){\n scanf(\"%d\\n\",&n[i]);\n }\n scanf(\"%d\\n... |
CDSS_514912 | CDSS | #include<stdio.h>
int main()
{
int tc;
scanf("%d",&tc);
char input[105];
scanf("%s",input);
int mid = tc/2;
int flag = 1;
if(tc % 2 == 1) flag = 0;
for(int i = 0;i<mid;i++)
{
if(input[i] != input[mid+i])
{
flag = 0;
}
}
if(flag == 0) printf("No\n");
else{
printf("Yes\n");
}
} | 2,080 | memory_bytes | {'s_id': 's711182157', 'p_id': 'p02860', 'u_id': 'u089230684', 'date': '1597125786', 'language': 'C', 'original_language': 'C (Clang 10.0.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '2080', 'code_size': '302'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n\tint tc;\n\tscanf(\"%d\",&tc);\n\tchar input[105];\n\tscanf(\"%s\",input);\n\tint mid = tc/2;\n\tin... |
CDSS_551142 | CDSS | //atcoder clange
#include <stdio.h>
int main(void){
int N;
int A,B;
scanf("%d", &N);//数値の取得
scanf("%d", &A);//数値の取得
scanf("%d", &B);//数値の取得
if(N*A > B){
printf("%d",B);
return 0;
}else if(N*A <= B){
printf("%d",N*A);
return 0;
}
return 0;
} | 128 | memory_bytes | {'s_id': 's021656315', 'p_id': 'p02981', 'u_id': 'u845148770', 'date': '1562547785', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '308'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n//atcoder clange\n#include <stdio.h>\n\nint main(void){\n int N;\n int A,B;\n scanf(\"%d\", &N);//数値の取得\n scanf(\"%d\", &A);/... |
CDSS_259530 | CDSS | #include<stdio.h>
int main(void){
int x;
scanf("%d",&x);
printf("%d:%d:%d\n",x/3600,(x%3600)/60,(x%3600)%60);
return(0);
} | 592 | memory_bytes | {'s_id': 's543728346', 'p_id': 'p02390', 'u_id': 'u253341367', 'date': '1433228851', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', 'code_size': '130'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 x;\n scanf(\"%d\",&x);\n printf(\"%d:%d:%d\\n\",x/3600,(x%3600)/60,(x%3600)%60);\n return... |
CDSS_174750 | CDSS | #include<stdio.h>
#include<string.h>
void judge(int n,char[36] [3],char[36][3]);
int main(){
int i, j, n, minj;
char temp[36];
char C_B[36][3], C_S[36][3];
scanf("%d",&n);
for( i=0 ; i<n ; i++){
scanf("%s",C_B[i]);
strcpy(C_S[i],C_B[i]);
}
//バブルソート開始
for( i=0 ; i<n ; i++){
for( j=n-1 ; ... | 2,084 | memory_bytes | {'s_id': 's669588820', 'p_id': 'p02261', 'u_id': 'u357121199', 'date': '1580638787', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2084', 'code_size': '1233'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\nvoid judge(int n,char[36] [3],char[36][3]);\n\nint main(){\n int i, j, n, minj;\n char temp... |
CDSS_573070 | CDSS | #include <stdio.h>
#include <string.h>
int main(void){
int x,y,a,count,count2;
count = count2 = 0;
scanf("%d %d\n",&x, &y);
x = x - y;
count2 = x + 1;
printf("%d",count2);
return 0;
} | 128 | memory_bytes | {'s_id': 's864619860', 'p_id': 'p03047', 'u_id': 'u776632505', 'date': '1557623939', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '216'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 x,y,a,count,count2;\n count = count2 = 0;\n scanf(\"%d %d\\n\"... |
CDSS_362145 | CDSS | #include <stdio.h>
#include <ctype.h>
int main(int argc, const char * argv[]) {
char word;
while(1){
scanf("%c",&word);
if(word=='\n'){
printf("\n");
break;
}else if(isupper(word)){
printf("%c",tolower(word));
}else if(islower(word)){
printf("%c",toupper(word)... | 524 | memory_bytes | {'s_id': 's975461928', 'p_id': 'p02415', 'u_id': 'u315014509', 'date': '1499233524', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', 'code_size': '388'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <ctype.h>\nint main(int argc, const char * argv[]) {\n char word;\n while(1){\n scanf(\"%c\"... |
CDSS_594735 | CDSS | #include<stdio.h>
int main(void){
int A,B;
int answer;
scanf("%d",&A);
scanf("%d",&B);
if(B%A){answer=B-A;}
else{answer=A+B;}
printf("%d",answer);
return 0;
} | 128 | memory_bytes | {'s_id': 's537445852', 'p_id': 'p03125', 'u_id': 'u787457563', 'date': '1551204002', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '163'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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;\nint answer;\nscanf(\"%d\",&A);\nscanf(\"%d\",&B);\n\nif(B%A){answer=B-A;}\nelse{ans... |
CDSS_733365 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <math.h>
#include <limits.h>
#define Max(a, b) ((a) > (b) ? (a) : (b))
#define Min(a, b) ((a) > (b) ? (b) : (a))
#define abs(x) ((x) > 0 ? (x) : -(x))
#define MOD (ll)1000000007 //10^9 + 7
#define endl printf("\n")
typedef long lon... | 2,944 | memory_bytes | {'s_id': 's974882988', 'p_id': 'p03952', 'u_id': 'u801102476', 'date': '1569252566', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '18', 'memory': '2944', 'code_size': '1208'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 <stdbool.h>\n#include <string.h>\n#include <math.h>\n#include <limits.h>\n#define Ma... |
CDSS_532006 | CDSS | #include <stdio.h>
int main(void) {
char s[5];
char t[5];
int count = 0;
fgets(s, 5, stdin);
fgets(t, 5, stdin);
for (int i = 0; i < 3; i++) {
if (s[i] == t[i]) {
count++;
}
}
printf("%d\n", count);
return 0;
}
| 128 | memory_bytes | {'s_id': 's263540634', 'p_id': 'p02921', 'u_id': 'u644332191', 'date': '1571475375', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '280'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 char s[5];\n char t[5];\n int count = 0;\n\n fgets(s, 5, stdin);\n fgets(t, 5,... |
CDSS_231078 | CDSS | #include <stdio.h>
#include <math.h>
double get_radian(double x1, double y1, double x2, double y2) {
if(fabs(x1-x2) < 0.00000001) {
if(y1 >= y2) {
return 3 * M_PI / 2;
}
return M_PI / 2;
} else if(fabs(y1-y2) < 0.00000001) {
if(x1 >= x2) {
return M_PI;
}
return 0.0;
}
if(x2 >= x1) {
if(y2 >= ... | 780 | memory_bytes | {'s_id': 's219311026', 'p_id': 'p02290', 'u_id': 'u703161091', 'date': '1406271283', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '780', 'code_size': '1204'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\ndouble get_radian(double x1, double y1, double x2, double y2) {\n\tif(fabs(x1-x2) < 0.0000000... |
CDSS_122118 | CDSS | n,m,p,i,x,s,w;
main()
{
for(;scanf("%d%d%d",&n,&m,&p),n; printf("%d\n",w?(int)(s*((100-p)/100.0))/w:0))
for(s=i=0;i++<n;s+=x*100)
scanf("%d",&x),w=i-m?w:x;
exit(0);
} | 0 | memory_bytes | {'s_id': 's580441709', 'p_id': 'p01143', 'u_id': 'u752673456', 'date': '1324365560', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '184'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nn,m,p,i,x,s,w;\nmain()\n{\n for(;scanf(\"%d%d%d\",&n,&m,&p),n; printf(\"%d\\n\",w?(int)(s*((100-p)/100.0))/w:0))\n for(s=i=0;i++<n... |
CDSS_558631 | CDSS | #include <stdio.h>
#define N 200000
typedef struct a{
int cost;
int deadline;
} Work;
typedef Work key;
void marge(key data[], key work[], int start, int mid, int end){
int i = start;
int j = mid + 1;
int k = start;
while(i <= mid && j <= end){
if(data[i].deadline <= data[j].deadline)... | 3,328 | memory_bytes | {'s_id': 's872250133', 'p_id': 'p02996', 'u_id': 'u828593789', 'date': '1561233692', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '61', 'memory': '3328', 'code_size': '1464'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\n\ntypedef struct a{\n int cost;\n int deadline;\n} Work;\n\ntypedef Work key;\n\nvoid marg... |
CDSS_589198 | CDSS | #include<stdio.h>
#include<stdlib.h>
int main(){
int a,b;
scanf("%d%d",&a,&b);
int c,d;
scanf("%d%d",&c,&d);
printf("%d\n",(a-c)*(b-d));
} | 128 | memory_bytes | {'s_id': 's258246735', 'p_id': 'p03101', 'u_id': 'u812003342', 'date': '1552594690', '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>\n#include<stdlib.h>\nint main(){\n\tint a,b;\n scanf(\"%d%d\",&a,&b);\n int c,d;\n scanf(\"%d%d\",&c,&d);\n... |
CDSS_210070 | CDSS | #include <stdio.h>
#include <stdlib.h>
#define MAX 2000001
#define VMAX 10000
int main(){
unsigned short *A, *B;
int C[VMAX+1];
int n, i, j;
scanf("%d", &n);
A = malloc(sizeof(short)*n+1);
B = malloc(sizeof(short)*n+1);
/* your code */
for(i=0; i<=VMAX; i++){
C[i] = 0;
}
for(i=0; i<n; i++){
scan... | 9,584 | memory_bytes | {'s_id': 's838369708', 'p_id': 'p02275', 'u_id': 'u145656623', 'date': '1576932237', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '220', 'memory': '9584', 'code_size': '576'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#define MAX 2000001\n#define VMAX 10000\n\nint main(){\n\tunsigned short *A, *B;\n\tint C[VMA... |
CDSS_643869 | CDSS | #include <stdio.h>
#include <stdlib.h>
int main(){
int a,b,c,d;
scanf("%d%d%d%d",&a,&b,&c,&d);
if(abs(a-c) <= d){
printf("Yes");
}else if(abs(a-b) <= d && abs(b-c) <= d){
printf("Yes");
}else{
printf("No");
}
} | 128 | memory_bytes | {'s_id': 's589120726', 'p_id': 'p03351', 'u_id': 'u815628714', 'date': '1590762698', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '239'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\nint main(){\n int a,b,c,d;\n scanf(\"%d%d%d%d\",&a,&b,&c,&d);\n \n if(abs(a-c) <= d){\... |
CDSS_171376 | CDSS | #include<stdio.h>
#define N 100
int main()
{
int i,j,A[N],minj,n,ch,count=0;
scanf("%d",&n);
for(i=0; i<n; i++){
scanf("%d",&A[i]);
}
for(i=0; i<n; i++){
minj = i;
for(j=i; j<n; j++){
if(A[j] < A[minj]){
minj = j;
}
}
if(A[i] > A[minj]){
count++;
}
ch = A[i];
A... | 2,124 | memory_bytes | {'s_id': 's014661836', 'p_id': 'p02260', 'u_id': 'u849362680', 'date': '1529385348', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2124', 'code_size': '471'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#define N 100\n\nint main()\n{\n int i,j,A[N],minj,n,ch,count=0;\n\n scanf(\"%d\",&n);\n\n for(i=0; i<n; i++){\n... |
CDSS_580566 | CDSS | #include <stdio.h>
int main(void){
int num,ans,hmax,i,j,k;
ans = 1;
hmax = 0;
scanf("%d",&num);
int h[num];
for (i=0;i<num;i++){
scanf("%d",&h[i]);
}
for (j=1;j<num;j++){
for(k=0;k<j;k++){
if(h[k]> hmax){
hmax = h[k];
}
}if... | 128 | memory_bytes | {'s_id': 's418351366', 'p_id': 'p03072', 'u_id': 'u234365185', 'date': '1556746978', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '421'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n int num,ans,hmax,i,j,k;\n ans = 1;\n hmax = 0;\n scanf(\"%d\",&num);\n int h[nu... |
CDSS_459268 | CDSS | /*
* FileName: C
* CreatedDate: 2020-04-12 21:49:50 +0900
* LastModified: 2020-04-12 21:53:18 +0900
*/
#include <stdio.h>
int gcd(int x,int y){
int r;
while((r=x%y)!=0){
x=y;
y=r;
}
return y;
}
int main(void){
int n,count=0;
scanf("%d",&n);
for(int i=1;i<n+1;i++){
... | 1,728 | memory_bytes | {'s_id': 's105215197', 'p_id': 'p02713', 'u_id': 'u326552320', 'date': '1586742827', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '218', 'memory': '1728', 'code_size': '584'} | [
{
"content": "Your task is to predict the memory 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 * FileName: C\n * CreatedDate: 2020-04-12 21:49:50 +0900\n * LastModified: 2020-04-12 21:53:18 +0900\n */\n\n#include <stdio... |
CDSS_416903 | CDSS | /* ex4_2
urah */
#include <stdio.h>
#include <math.h>
// プロトタイプ宣言
double distance(int len_hour_hand, int len_minute_hand, double hour, double minute);
int main(void){
int len_hour_hand, len_minute_hand;
double hour, minute, ans;
// 入力の受け取り
scanf("%d\t%d\t%lf\t%lf", &len_hour_hand, &len_minute_ha... | 2,600 | memory_bytes | {'s_id': 's727091980', 'p_id': 'p02677', 'u_id': 'u777499281', 'date': '1590632722', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '2600', '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/* ex4_2\n urah */\n\n#include <stdio.h>\n#include <math.h>\n\n// プロトタイプ宣言\ndouble distance(int len_hour_hand, int len_minute_hand,... |
CDSS_648451 | CDSS | #include<stdio.h>
int main(void) {
int a, b, c, x, y, ab = 0,h,t,i,d;
scanf("%d%d%d%d%d", &a, &b, &c, &x, &y);
h = (x > y) ? y:x;
t = (x > y) ? x - y : y - x;
if (a + b < c * 2) {
ab += ((a + b) * h);
}
else {
ab += ((c * 2)* h);
}
if (x > y) {
d = (a > c * 2) ? c * 2 : a;
ab += (d * t);
}
else {
d... | 128 | memory_bytes | {'s_id': 's471468130', 'p_id': 'p03371', 'u_id': 'u794921280', 'date': '1524362765', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '401'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void) {\n\tint a, b, c, x, y, ab = 0,h,t,i,d;\n\tscanf(\"%d%d%d%d%d\", &a, &b, &c, &x, &y);\n\th = (x > y)... |
CDSS_536398 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
int main(void){
int a;
char s[11];
scanf("%d\n%s", &a, s);
if(a>=3200)printf("%s\n", s);
else printf("red\n");
return 0;
}
| 128 | memory_bytes | {'s_id': 's354846780', 'p_id': 'p02933', 'u_id': 'u924527074', 'date': '1566180958', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '225'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <math.h>\n#include <string.h>\n\nint main(void){\n int a;\n char s[11];\n s... |
CDSS_263392 | CDSS | #include <stdio.h>
#include <stdlib.h>
int main()
{
int sec;
scanf("%d", &sec);
printf("%d:%d:%d\n", sec / 3600, (sec % 3600) / 60, sec % 60);
return 0;
}
| 2,076 | memory_bytes | {'s_id': 's442067596', 'p_id': 'p02390', 'u_id': 'u684754380', 'date': '1523857940', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2076', 'code_size': '175'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 sec;\n \n scanf(\"%d\", &sec);\n printf(\"%d:%d:%d\\n\", sec ... |
CDSS_579078 | CDSS | #if 0
cat <<EOF >mistaken-paste
#endif
// thx Ebi-chan!
#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 FOD 998244353
typedef uint64... | 1,536 | memory_bytes | {'s_id': 's143080321', 'p_id': 'p03070', 'u_id': 'u238041222', 'date': '1559512898', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '83', 'memory': '1536', 'code_size': '1487'} | [
{
"content": "Your task is to predict the memory 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// thx Ebi-chan!\n\n#pragma GCC diagnostic ignored \"-Wincompatible-pointer-types\"\n#define... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.