identifier string | space string | input string | target float64 | metric_type string | metadata string | messages list |
|---|---|---|---|---|---|---|
CDSS_279875 | 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;
}
| 2,104 | memory_bytes | {'s_id': 's216600507', 'p_id': 'p02392', 'u_id': 'u951499500', 'date': '1527768038', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '176'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void){\n int a, b, c;\n\n scanf(\"%d %d %d\", &a, &b, &c);\n if(a < b && b < c){\n printf(\"Yes\\n... |
CDSS_172602 | CDSS | #include <stdio.h>
int main(void)
{
int N, i, j, minj, temp;
int count = 0;
int A[100];
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;}
... | 1,992 | memory_bytes | {'s_id': 's040622918', 'p_id': 'p02260', 'u_id': 'u666222268', 'date': '1542019684', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1992', '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\nint main(void)\n{\n int N, i, j, minj, temp;\n int count = 0;\n int A[100];\n\n scanf(\"%d\", &N);\n... |
CDSS_343784 | CDSS | main(){int a[100],n,i;int *p=a;scanf("%d",&n);for(i=n;i-->0;)scanf("%d",p++);while(--n)printf("%d ",*--p);printf("%d\n",*a);exit(0);} | 596 | memory_bytes | {'s_id': 's051893928', 'p_id': 'p02407', 'u_id': 'u309428289', 'date': '1383155123', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '133'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nmain(){int a[100],n,i;int *p=a;scanf(\"%d\",&n);for(i=n;i-->0;)scanf(\"%d\",p++);while(--n)printf(\"%d \",*--p);printf(\"%d\\n\",*a);e... |
CDSS_186442 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
struct node
{
unsigned int key;
struct node *next;
struct node *prev;
};
typedef struct node * NodePointer;
NodePointer nil;
NodePointer listSearch(int key){
NodePointer cur = nil->next;
while(cur!=nil && cur->key != key)
{
cur = cur->next;
... | 32,988 | memory_bytes | {'s_id': 's187829362', 'p_id': 'p02265', 'u_id': 'u569815091', 'date': '1549202841', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '220', 'memory': '32988', 'code_size': '1704'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\nstruct node\n{\n unsigned int key;\n struct node *next;\n struct no... |
CDSS_124884 | CDSS | // AOJ 2293 Dangerous Tower
// 2018.3.6 bal4u
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define QMAX 3005
typedef struct { int t, s; } QUE;
QUE que[QMAX]; int qsize;
#define PARENT(i) ((i)>>1)
#define LEFT(i) ((i)<<1)
#define RIGHT(i) (((i)<<1)+1)
void min_heapify(int i)
{
int l, r, min;
QUE q... | 14,024 | memory_bytes | {'s_id': 's611166951', 'p_id': 'p01410', 'u_id': 'u847467233', 'date': '1520323636', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '190', 'memory': '14024', 'code_size': '3242'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n// AOJ 2293 Dangerous Tower\n// 2018.3.6 bal4u\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\n#define QMAX 3005\nt... |
CDSS_310822 | CDSS | #include <stdio.h>
/*
?????????
2????????´??° a ??¨ b ?????????????????§?????\?????????????¨??????????????????°??????????????????????????????:
a ?? b : d (??´??°)
a ?? b ????????? : r (??´??°)
a ?? b : f (???????°???°?????°)
Input
1??????2????????´??° a, b ????????????????????????
Output
d, r, f ???1??????????????... | 632 | memory_bytes | {'s_id': 's857110802', 'p_id': 'p02399', 'u_id': 'u899755487', 'date': '1501722889', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '632', 'code_size': '650'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\n/*\n\n?????????\n\n2????????´??° a ??¨ b ?????????????????§?????\\?????????????¨??????????????????°?????????????... |
CDSS_111760 | CDSS | k,i,j,b[999];main(n){for(;scanf("%d%d",&n,&k),n;puts(b[i]<0?"No":"Yes")){for(i=0;i<k;)scanf("%d",&b[i++]);for(;n--;)for(j=0;j<k;b[j++]-=i)scanf("%d",&i);for(i=0;i<k-1;i++)if(b[i]<0)break;}} | 388 | memory_bytes | {'s_id': 's461292445', 'p_id': 'p00605', 'u_id': 'u752673456', 'date': '1323957641', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '40', 'memory': '388', '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:\nk,i,j,b[999];main(n){for(;scanf(\"%d%d\",&n,&k),n;puts(b[i]<0?\"No\":\"Yes\")){for(i=0;i<k;)scanf(\"%d\",&b[i++]);for(;n--;)for(j=0;j<... |
CDSS_332528 | CDSS | #include<stdio.h>
int main(void){
int i, j, a, b;
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");
}
return 0;
}
| 2,044 | memory_bytes | {'s_id': 's355698683', 'p_id': 'p02403', 'u_id': 'u183363727', 'date': '1563045682', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2044', 'code_size': '260'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n\tint i, j, a, b;\n\n\twhile (1)\n\t{\n\t\tscanf(\"%d %d\", &a, &b);\n\t\tif (a == 0 && b == 0) \n... |
CDSS_377873 | CDSS | #include <stdio.h>
int main(){
int D,T,S;
double sum;
scanf("%d",&D);
scanf("%d",&T);
scanf("%d",&S);
sum = (double)D / (double)S;
if(sum <= T){
printf("Yes\n");
}else{
printf("No\n");
}
return 0;
}
| 1,640 | memory_bytes | {'s_id': 's330249039', 'p_id': 'p02570', 'u_id': 'u600169989', 'date': '1599221965', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '1640', 'code_size': '220'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n\tint D,T,S;\n\tdouble sum;\n\t\n\tscanf(\"%d\",&D);\n\tscanf(\"%d\",&T);\n\tscanf(\"%d\",&S);\n\t\... |
CDSS_473349 | CDSS | #include<stdio.h>
int main(){
double n,a;
scanf("%lf",&n);
a=(n*n*n)/27;
printf("%lf",a);
} | 128 | memory_bytes | {'s_id': 's707233847', 'p_id': 'p02731', 'u_id': 'u815247632', 'date': '1584928815', '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>\nint main(){\n double n,a;\n \n scanf(\"%lf\",&n);\n \n a=(n*n*n)/27;\n printf(\"%lf\",a);\n }\nPredict its m... |
CDSS_624553 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <limits.h>
int min(int a, int b){
return a > b ? b : a;
}
int max(int a, int b){
return a > b ? a : b;
}
int main(void){
int n, k;
int near = INT_MAX;
int *x;
scanf("%d %d", &n, &k);
x = malloc(sizeof(int) * n);
for(int i = 0; i < n; i++){
scanf("%d", x + i);... | 512 | memory_bytes | {'s_id': 's514468808', 'p_id': 'p03274', 'u_id': 'u576678086', 'date': '1566551950', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '13', 'memory': '512', 'code_size': '538'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <limits.h>\n\nint min(int a, int b){\n\treturn a > b ? b : a;\n}\n\nint max(int a, i... |
CDSS_77069 | CDSS | b,o,s;main(a){for(;~scanf("%s",&a);)a>1e5?b=a%3?a&1?++o%3?b:(s=!printf("%d\n",b>3?s+b-3:s)):b+1:!(s-=~b):b;} | 0 | memory_bytes | {'s_id': 's219818762', 'p_id': 'p00103', 'u_id': 'u611853667', 'date': '1318493858', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', '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:\nb,o,s;main(a){for(;~scanf(\"%s\",&a);)a>1e5?b=a%3?a&1?++o%3?b:(s=!printf(\"%d\\n\",b>3?s+b-3:s)):b+1:!(s-=~b):b;}\nPredict its memory ... |
CDSS_142606 | CDSS | #include<stdio.h>
#include<stdlib.h>
int Puzzle[3][3];
int tmp[3][3];
int da[4] = {0, 1, 0, -1};
int db[4] = {1, 0, -1, 0};
int Roop(int);
void Kara(int *, int *);
void swap(int *, int *);
int ABC(int, int, int, int, int);
int Cal(){
int i, a;
int sum = 0;
for(i = 0 ; i < 9 ; i++){
a = Puzzle[i/3]... | 2,144 | memory_bytes | {'s_id': 's644848564', 'p_id': 'p02245', 'u_id': 'u661640111', 'date': '1580915166', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2144', 'code_size': '1857'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 Puzzle[3][3];\nint tmp[3][3];\nint da[4] = {0, 1, 0, -1};\nint db[4] = {1, 0, -1, 0};\nin... |
CDSS_685768 | CDSS | #include<stdio.h>
#include<stdlib.h>
int compare_int(const void *a, const void *b)
{
return *(int*)a-*(int*)b;
}
int main()
{
int n;
int a[100001];
int i;
int ans=0;
int s=0,t=0;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d",&a[i]);
}
qsort(a,n,sizeof(int),compare_int);
for(i=0;i<n;i++){
... | 2,292 | memory_bytes | {'s_id': 's068542220', 'p_id': 'p03607', 'u_id': 'u287365470', 'date': '1594136322', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '33', 'memory': '2292', 'code_size': '553'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 compare_int(const void *a, const void *b)\n{\n return *(int*)a-*(int*)b;\n}\n\nint main(... |
CDSS_423376 | CDSS | #include<stdio.h>
int main(void)
{
int n, k, d[100], a[100][100], i, f, x[100]={0}, z=0;
scanf("%d%d",&n,&k);
for(i=0;i<k;i++){
scanf("%d",&d[i]);
for(f=0;f<d[i];f++){
scanf("%d",&a[i][f]);
if(x[a[i][f]-1]==0)
z++;
x[a[i][f]-1]=1;
}
}
printf("%d... | 1,772 | memory_bytes | {'s_id': 's119665849', 'p_id': 'p02688', 'u_id': 'u212857313', 'date': '1589323344', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1772', 'code_size': '346'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void)\n{\n int n, k, d[100], a[100][100], i, f, x[100]={0}, z=0;\n\n scanf(\"%d%d\",&n,&k);\n for(... |
CDSS_637905 | CDSS | #include <stdio.h>
int main(void){
int D,N=0;
int Ringo=1;
scanf("%d%d",&D,&N);
for(int i=0;i<D;i++){
Ringo*=100;
}
if(N!=100){
Ringo*=N;
} else {
Ringo*=101;
}
printf("%d",Ringo);
return 0;
}
| 128 | memory_bytes | {'s_id': 's541496927', 'p_id': 'p03324', 'u_id': 'u189366578', 'date': '1592278561', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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(void){\n int D,N=0;\n int Ringo=1;\n scanf(\"%d%d\",&D,&N);\n\n for(int i=0;i<D;i++){\n ... |
CDSS_618268 | CDSS | #define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main(void) {
int ni[4], max = 0, min = 10, mid, a, b;
scanf("%d%d%d", &ni[0], &ni[1], &ni[2]);
for (int i = 0; i < 3; i++) {
if (max < ni[i]) {
max = ni[i];
a = i;
}
}
for (int i = 0; i < 3; i++) {
if (min > ni[i]) {
min = ni[i];
b = i;
}... | 128 | memory_bytes | {'s_id': 's867555399', 'p_id': 'p03250', 'u_id': 'u486641442', 'date': '1537751998', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '455'} | [
{
"content": "Your task is to predict the memory 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(void) {\n\tint ni[4], max = 0, min = 10, mid, a, b;\n\n\tscanf(\"%d%d%... |
CDSS_367696 | CDSS | int main(){
char strs[101];
char strp[101];
char strss[201];
scanf("%s",strs);
scanf("%s",strp);
/*strs?????????str?????£?????????strss?????????*/
int i = 0 ;
int t = strlen(strs);
for(i=0;i<t;i++){
strss[i] = strs[i];
strss[i+t] = strs[i];
}
strss[2*t] = '\0';
// printf("?????????strss???%s\n",strss)... | 524 | memory_bytes | {'s_id': 's710765531', 'p_id': 'p02418', 'u_id': 'u619199361', 'date': '1495465281', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', 'code_size': '416'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nint main(){\n\tchar strs[101];\n\tchar strp[101];\n\tchar strss[201];\n\n\tscanf(\"%s\",strs);\n\tscanf(\"%s\",strp);\n\n\t/*strs?????... |
CDSS_387432 | CDSS | #include<stdio.h>
int main()
{
int k;
scanf("%d", &k);
int i;
int c = 7;
for (i = 0; i < k; i++)
{
c %= k;
if (c == 0)
{
printf("%d\n", i + 1);
return 0;
}
c = 10 * c + 7;
}
printf("-1\n");
return 0;
} | 1,732 | memory_bytes | {'s_id': 's701121239', 'p_id': 'p02596', 'u_id': 'u600300412', 'date': '1596416689', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '16', 'memory': '1732', 'code_size': '226'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 k;\n\tscanf(\"%d\", &k);\n\tint i;\n\tint c = 7;\n\tfor (i = 0; i < k; i++)\n\t{\n\t\tc %= k;\... |
CDSS_116232 | CDSS | #include <stdio.h>
int main()
{
int n, p;
while (scanf("%d %d", &n, &p) * n){
int stone[64] = {0};
int bowl = p;
int i;
for (i = 0; stone[i] != p; i = (i + 1) % n){
if (bowl > 0){
bowl--;
stone[i]++;
}
else {
... | 600 | memory_bytes | {'s_id': 's875205012', 'p_id': 'p00740', 'u_id': 'u376883550', 'date': '1455174772', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '60', 'memory': '600', 'code_size': '442'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main()\n{\n int n, p;\n\n while (scanf(\"%d %d\", &n, &p) * n){\n int stone[64] = {0};\n ... |
CDSS_217414 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<math.h>
#include<limits.h>
#define lpton(i,n) for(int i=0;i<(int)n;i++)
#define lpto0(i,n) for(int i=n;i>-1;i--)
#define lpmn(i,m,n) for(i=m;i<n;i++)
#define ms0(l) memset(l,0,sizeof(l))
#define ms(l,n,s) memset(l,n,s)
#define m(x,n) (x*)malloc(n*sizeof(x... | 2,044 | memory_bytes | {'s_id': 's296463317', 'p_id': 'p02280', 'u_id': 'u985658044', 'date': '1531410547', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2044', 'code_size': '2004'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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<limits.h>\n#define lpton(i,n) for(int i=0;i<(int... |
CDSS_205259 | CDSS |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
typedef struct {
float x;
float y;
} Vector;
void printVectorEndl(Vector u) {
printf("%f %f\n", u.x, u.y);
}
void fractalGeneration (
Vector begin,
Vector end,
int remainingNumberOfGenerations
)
{
remainingNumberOfGenerations--... | 2,048 | memory_bytes | {'s_id': 's572009268', 'p_id': 'p02273', 'u_id': 'u562880406', 'date': '1530519284', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2048', 'code_size': '1867'} | [
{
"content": "Your task is to predict the memory 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 <stdlib.h>\n#include <math.h>\n\ntypedef struct {\n float x;\n float y;\n} Vector;\n\n\nvoid prin... |
CDSS_682408 | CDSS | #include <stdio.h>
#include <string.h>
int main() {
char s[55]; scanf("%s", s);
int len = strlen(s);
for (int i = len-1; i >= len-8; i--) s[i] = NULL;
printf("%s\n", s);
} | 128 | memory_bytes | {'s_id': 's092152370', 'p_id': 'p03577', 'u_id': 'u355780225', 'date': '1534646282', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '180'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\nint main() {\n char s[55]; scanf(\"%s\", s);\n int len = strlen(s);\n for (int i = len-1... |
CDSS_439849 | CDSS | #include <stdio.h>
#include<math.h>
int main(void){
int R;
float s;
scanf("%d" ,&R);
s=2*(float)R*M_PI;
printf("%5.3lf" ,s );
return 0;
}
| 1,748 | memory_bytes | {'s_id': 's172847094', 'p_id': 'p02705', 'u_id': 'u643678905', 'date': '1587345219', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '1748', 'code_size': '170'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include<math.h>\nint main(void){\n int R;\n float s;\n\n scanf(\"%d\" ,&R);\n s=2*(float)R*M_PI;\n\n ... |
CDSS_270828 | CDSS | #include<stdio.h>
int main(){
int a,b;
scanf("%d %d", &a, &b);
if(a<b){
printf("a < b\n");
}else if(a==b){
printf("a == b\n");
}else if(a>b){
printf("a > b\n");
}
return 0;
} | 580 | memory_bytes | {'s_id': 's437224365', 'p_id': 'p02391', 'u_id': 'u426572144', 'date': '1495808655', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', 'code_size': '203'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n int a,b;\n\n scanf(\"%d %d\", &a, &b);\n\n if(a<b){\n printf(\"a < b\\n\");\n }else if(a==b)... |
CDSS_700127 | CDSS | #include<stdio.h>
#include<stdlib.h>
int main(){
int i,n,m;
long long count=1;
scanf("%d%d",&n,&m);
if(n==m){
for(i=1;i<=n;i++){
count*=(long long)i;
count%=1000000007;
if(count==0)
count=1000000007;
}
count*=count;
count*=2;
count%=1000000007;
}
else if(abs(n-... | 1,700 | memory_bytes | {'s_id': 's020055732', 'p_id': 'p03681', 'u_id': 'u917851778', 'date': '1593484395', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '7', 'memory': '1700', 'code_size': '642'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 int i,n,m;\n long long count=1;\n scanf(\"%d%d\",&n,&m);\n if(n==m){\n fo... |
CDSS_19784 | CDSS | #include<stdio.h>
int main(){
int x,y;
for(x=1;x<10;x++){
for(y=1;y<10;y++){
printf("%dx%d=%d\n",x,y,x*y);
}
}
return 0;
} | 1,764 | memory_bytes | {'s_id': 's586949439', 'p_id': 'p00000', 'u_id': 'u212778627', 'date': '1510747463', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1764', '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\nint main(){\n\nint x,y;\nfor(x=1;x<10;x++){\nfor(y=1;y<10;y++){\n\nprintf(\"%dx%d=%d\\n\",x,y,x*y);\n}\n}\n re... |
CDSS_678849 | CDSS | #include <stdio.h>
#include <math.h>
int main(void){
int n,i,j,max=1;
scanf("%d",&n);
for(i=1;i<=n;i++){
if(i*i<=n&&max<i*i) max=i*i;
if(i*i>n) break;
}
printf("%d\n",max);
return 0;
} | 128 | memory_bytes | {'s_id': 's921473886', 'p_id': 'p03556', 'u_id': 'u185896732', 'date': '1553029195', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '204'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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,i,j,max=1;\n scanf(\"%d\",&n);\n for(i=1;i<=n;i++){\n if(i*i<=n&&... |
CDSS_726138 | CDSS | #include <stdio.h>
int main()
{
int a, b;
char c;
scanf("%d ", &a);
scanf("%c", &c);
scanf(" %d", &b);
if(c=='+')
printf("%d", a+b);
else if(c=='-')
printf("%d", a-b);
return 0;
}
| 128 | memory_bytes | {'s_id': 's890281714', 'p_id': 'p03844', 'u_id': 'u863370423', 'date': '1568507236', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '230'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 char c;\n scanf(\"%d \", &a);\n scanf(\"%c\", &c);\n scanf(\" %d\", &... |
CDSS_509106 | CDSS | #include<stdio.h>
int main()
{
int A1,A2,A3,s;
scanf("%d %d %d",&A1,&A2,&A3);
s=A1+A2+A3;
if(s>=22)
{
printf("bust\n");
}
else
{
printf("win\n");
}
return 0;
}
| 1,644 | memory_bytes | {'s_id': 's000304350', 'p_id': 'p02835', 'u_id': 'u816631826', 'date': '1595826136', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1644', 'code_size': '217'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n int A1,A2,A3,s;\n scanf(\"%d %d %d\",&A1,&A2,&A3);\n s=A1+A2+A3;\n if(s>=22)\n {\n ... |
CDSS_204362 | CDSS | #include<stdio.h>
#define INF 1000000001
int count;
void merge(int *,int,int,int);
void mergeSort(int *,int,int);
int main(){
int i,n;
int S[500000];
scanf("%d",&n);
for(i=0;i<n;i++)scanf("%d",&S[i]);
mergeSort(S,0,n);
for(i=0;i<n-1;i++)printf("%d ",S[i]);
printf("%d\n",S[i]);
printf("%d\n",count... | 5,668 | memory_bytes | {'s_id': 's468059717', 'p_id': 'p02272', 'u_id': 'u661829589', 'date': '1576821510', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '100', 'memory': '5668', 'code_size': '931'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 INF 1000000001\n\nint count;\n\nvoid merge(int *,int,int,int);\nvoid mergeSort(int *,int,int);\n\nint mai... |
CDSS_547975 | CDSS | #include "stdio.h"
#include <stdlib.h>
int main (){
/* int a, b, c;
char x,y,z;
// scanf("%c%c%c", &x, &y, &z); ... | 128 | memory_bytes | {'s_id': 's721212828', 'p_id': 'p02970', 'u_id': 'u339419997', 'date': '1563672419', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '761'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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; ... |
CDSS_626928 | CDSS | main(N,K){scanf("%d%d",&N,&K);puts(N%K?"1":"0");} | 128 | memory_bytes | {'s_id': 's472107871', 'p_id': 'p03284', 'u_id': 'u826189900', 'date': '1586962612', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '49'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nmain(N,K){scanf(\"%d%d\",&N,&K);puts(N%K?\"1\":\"0\");}\nPredict its memory footprint.",
"role": "user"
},
{
"content": "1... |
CDSS_313264 | CDSS | #include<stdio.h>
#include<math.h>
int main(void){
double r;
double a,b;
scanf("%lf",&r);
a = r*r*M_PI;
b = 2.0*r*M_PI;
printf("%f %f\n",a,b);
return 0;
} | 648 | memory_bytes | {'s_id': 's345111506', 'p_id': 'p02400', 'u_id': 'u238050721', 'date': '1442721645', '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#include<math.h>\nint main(void){\n double r;\n double a,b;\n scanf(\"%lf\",&r);\n a = r*r*M_PI;\n b = 2.0*r*M... |
CDSS_633333 | CDSS | #include<stdio.h>
int main(void)
{
int a,N;
scanf("%d",&N);
if (N % 2 == 0) {
printf("%d", N);
}
else {
a = N * 2;
printf("%d", a);
}
return 0;
}
| 128 | memory_bytes | {'s_id': 's119844259', 'p_id': 'p03307', 'u_id': 'u539847932', 'date': '1531418612', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '162'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void)\n{\n\tint a,N;\n\tscanf(\"%d\",&N);\n\tif (N % 2 == 0) {\n\t\tprintf(\"%d\", N);\n\t}\n\telse {\n\... |
CDSS_289119 | CDSS | #include<stdio.h>
int main(void){
int W, H, x, y, r; //頂点の座標(W,H),円の中心の座標(x,y),半径
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); //頂点の座標,円の中心の座標,半径を入力
if((W >= x && H >= y) && (0 <= x && 0 <= y)){
if(W >= (x + r) && H >= (y + r)){
printf("Yes\n");
}else{
printf("No\n");
}
}else{
printf("No\n");
... | 584 | memory_bytes | {'s_id': 's179538385', 'p_id': 'p02394', 'u_id': 'u574287827', 'date': '1425281192', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '584', 'code_size': '396'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n\tint W, H, x, y, r;\t\t\t\t\t\t\t\t//頂点の座標(W,H),円の中心の座標(x,y),半径\n\tscanf(\"%d %d %d %d %d\", &W, ... |
CDSS_41343 | CDSS | #include <stdio.h>
int main(){
int in,out,a,b,c,d;
while(scanf("%d", &in) != EOF){
out = 0;
for(a = 0; a < 10; a++){
for(b = 0; b < 10; b++){
for(c = 0; c < 10; c++){
for(d = 0; d < 10; d++){
if((a+b+c+d) == in){
out++;
}
}
}
}
}
printf("%d\n", out);
}
r... | 0 | memory_bytes | {'s_id': 's407328040', 'p_id': 'p00008', 'u_id': 'u012244905', 'date': '1314942574', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', '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\tint in,out,a,b,c,d;\n\t\n\twhile(scanf(\"%d\", &in) != EOF){\n\t\tout = 0;\n\t\t\n\t\tfor(a = 0; ... |
CDSS_501531 | 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)... | 384 | memory_bytes | {'s_id': 's708790637', 'p_id': 'p02808', 'u_id': 'u382163500', 'date': '1578797377', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '85', 'memory': '384', 'code_size': '1484'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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_565613 | CDSS | #include <stdio.h>
#include <string.h>
typedef long long ll;
int len;
char str[200010];
ll dp[200005];
ll sum;
int solve(int idx);
int main()
{
for (int i = 0; i < 200005; i++) {
dp[i] = -1;
}
scanf("%s", str);
len = strlen(str);
for (int i = len - 1; i >= 0; i--) {
if (str[... | 2,944 | memory_bytes | {'s_id': 's406888061', 'p_id': 'p03018', 'u_id': 'u683588090', 'date': '1559525800', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '2944', 'code_size': '652'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\ntypedef long long ll;\n\nint len;\nchar str[200010];\nll dp[200005];\nll sum;\n\nint solve(in... |
CDSS_346534 | CDSS | #include<stdio.h>
int main(void)
{
int num;
int a[4][13]={0};
char c;
char check;
int i,j,k;
scanf("%d",&num);
while((check = getchar())!='\n');
for(k=0;k<num;k++){
scanf("%c %d",&c,&i);
while((check = getchar())!='\n');
switch(c){
case 'S':
... | 2,048 | memory_bytes | {'s_id': 's310536326', 'p_id': 'p02408', 'u_id': 'u069968421', 'date': '1521039095', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2048', 'code_size': '1022'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void)\n{\n int num;\n int a[4][13]={0};\n char c; \n char check;\n int i,j,k;\n\n s... |
CDSS_119713 | CDSS | #include <stdio.h>
long long power3[32];
#define LIM3 31 // 3^32 > 2^50
void prepare()
{
int i;
long long acc;
for(i=0,acc=1LL;i<LIM3;i++)
{
power3[i]=acc;
acc *= 3;
}
}
int log3(long long n)
{ int i;
for(i=0;i<LIM3;i++)
if((n >= power3[i]) && (n < 3*power3[i]))
return(i);
... | 2,108 | memory_bytes | {'s_id': 's315323919', 'p_id': 'p00979', 'u_id': 'u708993917', 'date': '1574947413', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '891'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 power3[32];\n#define LIM3 31 // 3^32 > 2^50\n\nvoid prepare()\n{\n int i;\n long long acc;\n for(i=... |
CDSS_70878 | CDSS | #include <stdio.h>
int main()
{
char str[51];
int i, j;
while ( scanf( "%s", str ) != EOF ) {
i = 0;
while ( str[i] != '\0' ) {
if ( str[i] == '@' ) {
j = 0;
while ( j < str[... | 2,032 | memory_bytes | {'s_id': 's418261526', 'p_id': 'p00077', 'u_id': 'u952759940', 'date': '1542809235', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2032', 'code_size': '751'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main()\n{\n char str[51];\n int i, j;\n\n while ( scanf( \"%s\", str ) != EOF ) {\n ... |
CDSS_352765 | CDSS | #include <stdio.h>
int main()
{
int m,f,r,sum=0;
while(1)
{
scanf("%d%d%d",&m,&f,&r);
if(m==-1 && f==-1 && r==-1)break;
sum=m+f;
if(m==-1 || f==-1)printf("F\n");
else if(sum>=80)printf("A\n");
else if(sum>=65)printf("B\n");
else if(sum>=50)printf("C\n");
else if(s... | 584 | memory_bytes | {'s_id': 's469547190', 'p_id': 'p02411', 'u_id': 'u352566398', 'date': '1499080366', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '584', 'code_size': '429'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main()\n{\n int m,f,r,sum=0;\n while(1)\n {\n scanf(\"%d%d%d\",&m,&f,&r);\n if(m==-1 && f==-1 &... |
CDSS_362872 | CDSS | #include<stdio.h>
int main(){
char moji;
while(1){
scanf("%c",&moji);
if(moji>=65 && moji<=90) moji+=32;
else if(moji>=97 && moji<=122) moji-=32;
printf("%c",moji);
if(moji==10) break;
}
return 0;
}
| 2,076 | memory_bytes | {'s_id': 's234498333', 'p_id': 'p02415', 'u_id': 'u906448367', 'date': '1566810626', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2076', 'code_size': '240'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 char moji;\n \n while(1){\n scanf(\"%c\",&moji);\n \n if(moji>=65 && moji<=90) moji+=32... |
CDSS_705232 | CDSS | #include<stdio.h>
int main(void){
int x,y;
int i,j;
scanf("%d",&x);
scanf("%d",&y);
if(1<=x&&x<y&&y<=12){
if(x==1||x==3||x==5||x==7||x==8||x==10){
if(y==3||y==5||y==7||y==8||y==10||y==12){
printf("Yes");
}else{
printf("No");
}
}else if(x==4||x==6||x==9){
if(y==6||y==9||y==11){
printf("Ye... | 128 | memory_bytes | {'s_id': 's679273326', 'p_id': 'p03711', 'u_id': 'u016862477', 'date': '1495330956', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '422'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 x,y;\n\tint i,j;\n\tscanf(\"%d\",&x);\n\tscanf(\"%d\",&y);\n\tif(1<=x&&x<y&&y<=12){\n\t\tif(... |
CDSS_514782 | CDSS | #include<stdio.h>
int main(){
int r;
scanf("%d",&r);
printf("%d\n",r*r);
return 0;
}
| 128 | memory_bytes | {'s_id': 's764898011', 'p_id': 'p02859', 'u_id': 'u481026841', 'date': '1573956110', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '93'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 r;\n scanf(\"%d\",&r);\n printf(\"%d\\n\",r*r);\n return 0;\n}\n\nPredict its memory footprin... |
CDSS_181282 | CDSS | #include<stdio.h>
#include<string.h>
#define L 100005
typedef struct kozo{
char name[100];
int t;
}P;
P Q[L+1];
int head, tail,n;
void enqueue(P x){
Q[tail]=x;
tail=(tail+1)%L;
}
P dequeue(){
P x=Q[head];
head =(head +1)%L;
return x;
}
int min(int a,int b){return a<b ? a:b;}
int main(){
int elaps... | 10,756 | memory_bytes | {'s_id': 's328513622', 'p_id': 'p02264', 'u_id': 'u648375209', 'date': '1461738423', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '10756', 'code_size': '664'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 L 100005\n\ntypedef struct kozo{\n char name[100];\n int t;\n}P;\n\nP Q[L+1];\nint ... |
CDSS_417934 | CDSS | #pragma region kyopuro_templates
#pragma GCC optimize("Ofast")
#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)f... | 28,476 | memory_bytes | {'s_id': 's712155098', 'p_id': 'p02678', 'u_id': 'u004279520', 'date': '1600895581', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '161', 'memory': '28476', 'code_size': '23609'} | [
{
"content": "Your task is to predict the memory 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#pragma GCC optimize(\"Ofast\")\n#include<stdio.h>\n#include<stdlib.h>\n#include<math.h>\n#include<s... |
CDSS_411335 | CDSS | #include <stdlib.h>
#include <string.h>
#include <math.h>
#include <stdio.h>
int compare(const void *a,const void *b){
if(*(long long *)a>*(long long *)b)return 1;
return -1;
}
int main(int argc, const char * argv[]) {
unsigned long long a;
scanf("%llu",&a);
char b[5];
scanf("%s",b);
unsigne... | 1,732 | memory_bytes | {'s_id': 's244744616', 'p_id': 'p02659', 'u_id': 'u993046043', 'date': '1591019948', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1732', 'code_size': '706'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdlib.h>\n#include <string.h>\n#include <math.h>\n#include <stdio.h>\nint compare(const void *a,const void *b){\n if(*(l... |
CDSS_115225 | 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++)
int c(const void*x,const void*y){return strcmp((char*)x,(char*)y);}
char s[99];
char ss[600][99];
int main(){
ll cnt;
scanf("%lld",&cnt);
while(cnt--){
scanf(" %s",s);
ll n=strlen(s);
ll cnt=... | 2,040 | memory_bytes | {'s_id': 's580481809', 'p_id': 'p00723', 'u_id': 'u409832240', 'date': '1558587460', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2040', 'code_size': '1187'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\nint c(con... |
CDSS_582563 | CDSS | // AtCoder ABC123: A - Five Antennas
// 2019.9.9 bal4u
#include <stdio.h>
#define ABS(x) ((x)>=0?(x):-(x))
int main()
{
int i, j, k, d, a[5], ans;
for (i = 0; i < 5; i++) scanf("%d", a+i);
scanf("%d", &k);
ans = 0; for (i = 0; i < 5; i++) for (j = i+1; j < 5; j++) {
d = ABS(a[i]-a[j]);
if (d > k) ans++;
... | 128 | memory_bytes | {'s_id': 's700494342', 'p_id': 'p03075', 'u_id': 'u759237395', 'date': '1568016155', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '365'} | [
{
"content": "Your task is to predict the memory 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 ABC123: A - Five Antennas\n// 2019.9.9 bal4u\n\n#include <stdio.h>\n\n#define ABS(x) ((x)>=0?(x):-(x))\n\nint main()\n{\n\... |
CDSS_469750 | CDSS | int main()
{
int A;
int hun;
int V = 0;
scanf("%d", &A);
hun = A / 500;
if (A % 500 != 0)
{
V = (A % 500) / 5;
}
printf("%d",(hun*1000)+(V*5));
return 0;
} | 128 | memory_bytes | {'s_id': 's159332120', 'p_id': 'p02724', 'u_id': 'u082930937', 'date': '1585448146', '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:\nint main()\n{\n\tint\t\tA;\n\tint\t\thun;\n\tint\t\tV = 0;\n \tscanf(\"%d\", &A);\n\thun = A / 500;\n\tif (A % 500 != 0)\n\t{\n\t\tV =... |
CDSS_222248 | CDSS | #include <stdio.h>
#include <stdlib.h>
struct node
{
struct node *right;
struct node *left;
struct node *parent;
int key;
};
typedef struct node *Node;
#define NIL NULL
Node root;
Node treeMinimum(Node x)
{
while (x->left != NIL)
{
x = x->left;
}
return x;
}
Node treeMaximum(... | 25,192 | memory_bytes | {'s_id': 's886324231', 'p_id': 'p02283', 'u_id': 'u495619484', 'date': '1593092011', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '330', 'memory': '25192', 'code_size': '2555'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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{\n struct node *right;\n struct node *left;\n struct node *parent;\n... |
CDSS_737045 | CDSS | #include<stdio.h>
int main(){
int unused __attribute__((unused));
int a, b, h;
unused = scanf("%d", &a);
unused = scanf("%d", &b);
unused = scanf("%d", &h);
printf("%d", (a+b)*h/2);
return 0;
} | 128 | memory_bytes | {'s_id': 's430646139', 'p_id': 'p03997', 'u_id': 'u997413262', 'date': '1585575471', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '209'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 unused __attribute__((unused));\n int a, b, h;\n\n unused = scanf(\"%d\", &a);\n unused = sca... |
CDSS_449599 | CDSS | #include<stdio.h>
int main()
{
int m;
char n[5];
for(m=0; m<3; m++)
{
scanf("%c",&n[m]);
if(n[m]=='7')
goto end;
}
printf("No\n");
goto finish;
end:
printf("Yes\n");
finish:
return 0;
}
| 1,596 | memory_bytes | {'s_id': 's216389699', 'p_id': 'p02711', 'u_id': 'u604531599', 'date': '1586742669', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1596', 'code_size': '252'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 m;\n char n[5];\n\n for(m=0; m<3; m++)\n {\n scanf(\"%c\",&n[m]);\n ... |
CDSS_549951 | CDSS | #include<stdio.h>
int main()
{
int n,i,x;
int a[100006];
scanf("%d", &n);
for(i=0; i<n; i++)
{
scanf("%d", &a[i]);
}
for(i=1; i<n; i++)
{
if(i==1)
{
x=a[i-1]^a[i];
}
else
{
x=x^a[i];
}
}
if(x!=0)
... | 512 | memory_bytes | {'s_id': 's413495994', 'p_id': 'p02975', 'u_id': 'u526278960', 'date': '1563155757', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '12', 'memory': '512', 'code_size': '400'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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,x;\n int a[100006];\n scanf(\"%d\", &n);\n for(i=0; i<n; i++)\n {\n s... |
CDSS_531912 | CDSS | #include<stdio.h>
int main(){
int i,c=0;
char s[3],t[3];
scanf("%s%s",s,t);
for(i=0;i<3;i++){
if(s[i]==t[i])c++;
}
printf("%d",c);
return 0;
} | 128 | memory_bytes | {'s_id': 's855878484', 'p_id': 'p02921', 'u_id': 'u321065001', 'date': '1577561449', '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>\nint main(){\n int i,c=0;\n char s[3],t[3];\n scanf(\"%s%s\",s,t);\n for(i=0;i<3;i++){\n if(s[i]==t[i])c++;\n... |
CDSS_393270 | CDSS | #include<stdio.h>
#include<math.h>
#define rep(i,n) for(int i = 0; i < n; i++)
#define H_MAX 6
#define W_MAX 6
/*配列(整数型)の表示のための関数*/
void print_array_int(char name[], int nlen, int array[], int alen) {
printf("%s = [", name);
rep(i,alen) {
printf("%d", array[i]);
if (i == alen - 1) {
//pass
}
else {
pr... | 2,564 | memory_bytes | {'s_id': 's148359999', 'p_id': 'p02614', 'u_id': 'u318233626', 'date': '1599880932', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '2564', 'code_size': '2619'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 rep(i,n) for(int i = 0; i < n; i++)\n#define H_MAX 6\n#define W_MAX 6\n\n/*配列(整数型)の表示のた... |
CDSS_403675 | CDSS | #include <stdio.h>
int main()
{
int x,n;
scanf("%d %d",&x,&n);
if(n == 0)
printf("%d", x);
else
{
int p[n];
int marcador = 0, menos = 1, mais = 1;
int gambiarraMenos = 0, gambiarraMais = 0;
for(int i = 0; i<n; i++)
{
scanf(" %d", &p[i]);
if(p[i] == x... | 1,712 | memory_bytes | {'s_id': 's839347274', 'p_id': 'p02641', 'u_id': 'u251582062', 'date': '1592376560', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '8', 'memory': '1712', 'code_size': '1358'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main()\n{\n int x,n;\n scanf(\"%d %d\",&x,&n);\n if(n == 0)\n printf(\"%d\", x);\n else\n {\n... |
CDSS_398717 | CDSS | #include <stdio.h>
int main() {
char a;
scanf("%c", &a);
if('A' <= a && a <= 'Z') {
puts("A");
} else {
puts("a");
}
} | 1,588 | memory_bytes | {'s_id': 's629064668', 'p_id': 'p02627', 'u_id': 'u432998668', 'date': '1594070333', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1588', '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\nint main() {\n char a;\n scanf(\"%c\", &a);\n if('A' <= a && a <= 'Z') {\n puts(\"A\");\n } e... |
CDSS_135718 | CDSS | #include <stdio.h>
#define MAX 150
int am[MAX][MAX];
int main()
{
int i,j,k,n,t;
scanf("%d",&n);
for(i=1;i<=n;i++)
for(j=1;j<=n;j++)
am[i][j] = 0;
for(i=1;i<=n;i++)
{
scanf("%d%d",&j,&k);
for(j=1;j<=k;j++)
{
scanf("%d",&t);//iの次の人たち
am[i][t] = 1;
}
}
for(i=1;i<=... | 2,132 | memory_bytes | {'s_id': 's762472004', 'p_id': 'p02237', 'u_id': 'u002192973', 'date': '1579778381', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2132', 'code_size': '497'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 150\nint am[MAX][MAX];\n\nint main()\n{\n int i,j,k,n,t;\n\n scanf(\"%d\",&n);\n for(i=1;i<=n;i++)\... |
CDSS_64849 | CDSS | #include<stdio.h>
double n;
int main(){
while(scanf("%lf",&n)!=EOF){
if(n<=48.0)printf("light fly\n");
else if(n<=51.0)printf("fly\n");
else if(n<=54.0)printf("bantam\n");
else if(n<=57.0)printf("feather\n");
else if(n<=60.0)printf("light\n");
else if(n<=64.0)printf("light welter\n");
else if(n<=69.0)p... | 0 | memory_bytes | {'s_id': 's126393692', 'p_id': 'p00048', 'u_id': 'u435952407', 'date': '1301389287', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '507'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\ndouble n;\n\nint main(){\n\twhile(scanf(\"%lf\",&n)!=EOF){\n\t\tif(n<=48.0)printf(\"light fly\\n\");\n\t\telse if... |
CDSS_517860 | CDSS | #include<stdio.h>
int main(){
int a, b,c;
scanf("%d %d",&a,&b);
c = a * b;
if(a >= 10 || b >= 10){
c = -1;
}
printf("%d",c);
}
| 128 | memory_bytes | {'s_id': 's269156825', 'p_id': 'p02879', 'u_id': 'u700705777', 'date': '1572228418', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '156'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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;\n scanf(\"%d %d\",&a,&b);\n \n c = a * b;\n \n if(a >= 10 || b >= 10){\n c = -... |
CDSS_330314 | CDSS | #include <stdio.h>
int main()
{
for(;;) {
int h, w, i, j;
scanf("%d %d", &h, &w);
if (h == 0 & w == 0) { return 0; }
for ( j = 0 ; j < h; j++)
{
for ( i = 0 ; i < w; i++)
{
printf("#");
}
printf("\n");
}
printf("\n");
}
} | 572 | memory_bytes | {'s_id': 's203638483', 'p_id': 'p02403', 'u_id': 'u180183800', 'date': '1493786893', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '572', 'code_size': '255'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\tfor(;;) {\n\t\tint h, w, i, j;\n\t\tscanf(\"%d %d\", &h, &w);\n\t\tif (h == 0 & w == 0) { retur... |
CDSS_303963 | CDSS | #include<stdio.h>
int main()
{
int a,b,c;
int i;
int sum;
sum = 0;
scanf("%d %d %d",&a,&b,&c);
for(i=a;i<=b;i++){
if(c%i==0){
sum++;
}
}
printf("%d\n",sum);
return 0;
}
| 2,104 | memory_bytes | {'s_id': 's417866600', 'p_id': 'p02398', 'u_id': 'u522826937', 'date': '1531300255', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', '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>\n int main()\n {\n int a,b,c;\n int i;\n int sum;\n sum = 0;\n scanf(\"%d %d %d\",&a,&b,&c);\n\n f... |
CDSS_622296 | CDSS | /* ex 7_1
Stuartyg */
#include <stdio.h>
#include <math.h>
int N = 245;
int D = 55;
typedef struct point{ //頂点を表す構造体pointの定義
int x_elem;
int y_elem;
}point;
point shift_point(point apex,int x_diff,int y_diff); //プロトタイプ宣言
int main(void){
point apex,vertex,top,peak; //頂点の名前
int x_diff,y_diff;
sc... | 1,704 | memory_bytes | {'s_id': 's627807847', 'p_id': 'p03265', 'u_id': 'u811068179', 'date': '1594438926', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1704', 'code_size': '996'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n/* ex 7_1\n Stuartyg */\n\n#include <stdio.h>\n#include <math.h>\nint N = 245;\nint D = 55;\ntypedef struct point{ //頂点を表す構造体pointの定... |
CDSS_191142 | CDSS | #include<stdio.h>
#include<stdlib.h>
int linearSearch(int *,int);
int n;
int main(){
int q,s[10000],t[500],i,j,count;
count = 0;
scanf("%d",&n);
if(n < 1 || 10000 < n)exit(0);
for(i = 0; i < n; i++){
scanf("%d",&s[i]);
if(s[i] < 0 || 1000000000 < s[i])exit(0);
}
scanf("%d",&q);
if(q < ... | 2,104 | memory_bytes | {'s_id': 's178873958', 'p_id': 'p02267', 'u_id': 'u418578333', 'date': '1544883717', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '799'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 linearSearch(int *,int);\n\nint n;\n\nint main(){\n int q,s[10000],t[500],i,j,count;\n\n... |
CDSS_358796 | CDSS | #include <stdio.h>
int main(void)
{
int r, c;
int graph[100][100] = { 0 }, row_sum[100] = { 0 }, column_sum[100] = { 0 };
int i, j;
int whole_sum = 0;
scanf("%d %d", &r, &c);
for (i = 0; i < r; i++)
{
for (j = 0; j < c; j++)
{
scanf("%d", &graph[i][j]);
}
}
for (i = 0; i < r; i++)
{
for (j = 0;... | 2,056 | memory_bytes | {'s_id': 's778435901', 'p_id': 'p02413', 'u_id': 'u476190624', 'date': '1562938868', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2056', 'code_size': '642'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 r, c;\n\tint graph[100][100] = { 0 }, row_sum[100] = { 0 }, column_sum[100] = { 0 };\n\... |
CDSS_684521 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <math.h>
/*ソートの時に使う
int sort(const void *a, const void *b){
return *(int*)a-*(int*)b ;
}
qsort (data,sizeof(data),sizeof(int),sort);
*/
int main(void){
int a,b,c,d,e,f;
scanf("%d%d%d%d%d%d",&a,&b,&c,&d,&e,&f);
... | 1,152 | memory_bytes | {'s_id': 's642130883', 'p_id': 'p03599', 'u_id': 'u750028862', 'date': '1530797441', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '9', 'memory': '1152', 'code_size': '1394'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 <stdbool.h>\n#include <math.h>\n\n/*ソートの時に使う\nint sort(const vo... |
CDSS_231252 | CDSS | #include <stdio.h>
int main() {
int n, x0, y0, x1, y1, x2, y2, x3, y3;
scanf("%d", &n);
while(n--) {
scanf("%d%d%d%d%d%d%d%d", &x0, &y0, &x1, &y1, &x2, &y2, &x3, &y3);
if ((x1-x0) * (y3-y2) - (y1-y0) * (x3-x2) == 0) puts("2");
else if ((x1-x0) * (x3-x2) + (y1-y0) * (y3-y2) == 0) put... | 2,120 | memory_bytes | {'s_id': 's913550570', 'p_id': 'p02293', 'u_id': 'u475394465', 'date': '1583318854', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2120', '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>\n\nint main() {\n int n, x0, y0, x1, y1, x2, y2, x3, y3;\n scanf(\"%d\", &n);\n while(n--) {\n scan... |
CDSS_434903 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<math.h>
#include<time.h>
#define FOR(i,n) for(int i=0;i<n;i++)
#define PRN(n) printf("%d\n",n)
#define PRF(n) printf("%lf\n",n)
#define PRL(n) printf("%lld\n",n)
#define PRS(s) printf("%s\n",s)
#define PRC(c) printf("%c",c)
#define INI(n) scanf("%d",&n)
#... | 5,728 | memory_bytes | {'s_id': 's031570162', 'p_id': 'p02701', 'u_id': 'u008829811', 'date': '1600354354', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '79', 'memory': '5728', 'code_size': '1878'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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#define FOR(i,n) for(int i=0;i<n;i++)\n... |
CDSS_190745 | CDSS | #include <stdio.h>
#define MAX_N 10000
int main(){
int N,Q,i,j,S[MAX_N],T,res = 0;
scanf("%d",&N);
for(i = 0 ; i < N ; i++){
if(i < N)break;
}
for(i = 0 ; i < N ; i++){
scanf("%d",&S[i]);
}
scanf("%d",&Q);
for(i = 0 ; i < Q ; i++){
scanf("%d",&T);
for(j = 0 ; j < N ; j++){
if... | 2,108 | memory_bytes | {'s_id': 's139628946', 'p_id': 'p02267', 'u_id': 'u569402626', 'date': '1580106408', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '418'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\n#define MAX_N 10000\n\nint main(){\n int N,Q,i,j,S[MAX_N],T,res = 0;\n scanf(\"%d\",&N);\n\n for(i = 0 ; i < ... |
CDSS_501868 | CDSS | #include <stdio.h>
int main(void)
{
int k,x;
scanf("%d%d",&k,&x);
if(500*k>=x)
printf("Yes\n");
else
printf("No\n");
return 0;
} | 128 | memory_bytes | {'s_id': 's841172092', 'p_id': 'p02811', 'u_id': 'u596813883', 'date': '1586272566', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '165'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void)\n{\n int k,x;\n\n scanf(\"%d%d\",&k,&x);\n if(500*k>=x)\n printf(\"Yes\\n\");\n ... |
CDSS_531448 | CDSS | #include<stdio.h>
#include<math.h>
#include<string.h>
int main()
{
int n;
int a[100]={0},b[100]={0};
int sumPoint = 0;
scanf("%d",&n);
b[0] = 9999999;
b[n] = 9999999;
for(int i = 1; i < n; i++){
scanf("%d ",&b[i]);
// printf("%3d ",a[i]);
}
for(int i = 1; i <= ... | 128 | memory_bytes | {'s_id': 's712485559', 'p_id': 'p02917', 'u_id': 'u425139458', 'date': '1567906931', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '469'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<math.h>\n#include<string.h>\n\nint main()\n{\n int n;\n int a[100]={0},b[100]={0};\n int sumPoint... |
CDSS_680244 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#define BIG 2000000007
#define MOD 1000000007
typedef unsigned long long ull;
typedef signed long long sll;
#define N_MAX 200000
#define M_MAX 100
typedef struct {
int a;
int b;
} hw;
typedef struct {
sll a;
sll b;
} hwll;
co... | 128 | memory_bytes | {'s_id': 's221554589', 'p_id': 'p03563', 'u_id': 'u238041222', 'date': '1509238870', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '4748'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 BIG 2000000007\n \n#define MOD 1000000007\... |
CDSS_401200 | 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... | 49,992 | memory_bytes | {'s_id': 's452197430', 'p_id': 'p02632', 'u_id': 'u004279520', 'date': '1592841223', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '480', 'memory': '49992', 'code_size': '6941'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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_130226 | CDSS | #include <stdio.h>
#define n 44
int main(){
int f[n],i,a;
f[0]=f[1]=1;
scanf("%d",&a);
for(i=2;i<=a;i++){
f[i]=f[i-1]+f[i-2];
}
printf("%d\n",f[a]);
return 0;
} | 596 | memory_bytes | {'s_id': 's792480670', 'p_id': 'p02233', 'u_id': 'u570450279', 'date': '1499305678', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '178'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#define n 44\nint main(){\n int f[n],i,a;\n f[0]=f[1]=1;\n scanf(\"%d\",&a);\n for(i=2;i<=a;i++){\n f[i]=f[... |
CDSS_666735 | CDSS | #include<stdio.h>
int main(void){
int M;
scanf("%d",&M);
printf("%d\n",48-M);
return 0;
}
| 128 | memory_bytes | {'s_id': 's807947914', 'p_id': 'p03473', 'u_id': 'u535447913', 'date': '1567103465', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '94'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n\tint M;\n\tscanf(\"%d\",&M);\n\tprintf(\"%d\\n\",48-M);\n\treturn 0;\n}\n\nPredict its memory foo... |
CDSS_584146 | CDSS | long long n,x,i,ans;main(){
scanf("%lld%lld",&n,&x);
ans=(n-1)/x;
for(i=0;i<4;i++){scanf("%lld",&x);ans=(ans>(n-1)/x?ans:(n-1)/x); }
printf("%lld",5+ans);} | 128 | memory_bytes | {'s_id': 's560616539', 'p_id': 'p03077', 'u_id': 'u333114422', 'date': '1591308231', '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:\nlong long n,x,i,ans;main(){\nscanf(\"%lld%lld\",&n,&x);\nans=(n-1)/x;\nfor(i=0;i<4;i++){scanf(\"%lld\",&x);ans=(ans>(n-1)/x?ans:(n-1)/... |
CDSS_692331 | CDSS | #include <stdio.h>
#define MAX 11
//printf("1\n");
/*
*/
int main(){
int i,tmp,a1=0,a2=0,a4=0,n;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d",&tmp);
if(tmp%4==0){
a4++;
}else if(tmp%2==0){
a2++;
}else{
a1++;
}... | 128 | memory_bytes | {'s_id': 's521919494', 'p_id': 'p03637', 'u_id': 'u353919145', 'date': '1550870232', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '13', 'memory': '128', 'code_size': '593'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 11\n//printf(\"1\\n\");\n\n/*\n\n\n */\n\nint main(){\n int i,tmp,a1=0,a2=0,a4=0,n;\n scanf(\"%d... |
CDSS_669131 | CDSS | #include<stdio.h>
int main() {
long long int X, Y;
scanf("%lld%lld", &X, &Y);
int count = 0;
for (long long int i = X; i <= Y; i *= 2) {
count++;
// printf("%lld\n", i);
// printf("%d\n", count);
}
printf("%d", count);
return 0;
}
| 128 | memory_bytes | {'s_id': 's469642814', 'p_id': 'p03479', 'u_id': 'u276980836', 'date': '1576185046', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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\tint main() {\n\t\tlong long int X, Y;\n\t\tscanf(\"%lld%lld\", &X, &Y);\n\n\t\tint count = 0;\n\n\t\tfor (long lo... |
CDSS_613405 | CDSS | #include<stdio.h>
void cookie(int *x,int *y){
*y=*y+*x/2;
*x=*x/2;
}
int main(){
int a,b,k;
scanf("%d %d %d",&a,&b,&k);
int i;
for(i=0;i<k;i++){
if(i%2==0) cookie(&a,&b);
if(i%2==1) cookie(&b,&a);
}
printf("%d %d\n",a,b);
} | 128 | memory_bytes | {'s_id': 's083767505', 'p_id': 'p03228', 'u_id': 'u845405230', 'date': '1540689373', '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>\nvoid cookie(int *x,int *y){\n *y=*y+*x/2;\n *x=*x/2;\n}\nint main(){\n int a,b,k;\n scanf(\"%d %d %d\",&a,&... |
CDSS_237453 | CDSS | #include<stdio.h>
struct Dice
{
int mae;
int ue;
int migi;
int hidari;
int sita;
int usiro;
};
struct Dice ROLL_E(struct Dice dice)
{
int a = dice.ue;
dice.ue = dice.hidari;
dice.hidari = dice.sita;
dice.sita = dice.migi;
dice.migi = a;
return dice;
}
struct Dice ROLL_N(struct Dice dice)
{
int a = d... | 596 | memory_bytes | {'s_id': 's056205500', 'p_id': 'p02383', 'u_id': 'u261444710', 'date': '1469528501', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '1362'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nstruct Dice\n{\n\tint mae;\n\tint ue;\n\tint migi;\n\tint hidari;\n\tint sita;\n\tint usiro;\n};\n\nstruct Dice R... |
CDSS_729308 | CDSS | #include<stdio.h>
int main()
{
int i;
char a;
for(i=1;i<=9;i++)
scanf("%c",&a);
printf("A%cC",a);
return 0;
}
| 128 | memory_bytes | {'s_id': 's385144476', 'p_id': 'p03860', 'u_id': 'u089230684', 'date': '1500794310', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '143'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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{\n int i;\n char a;\n for(i=1;i<=9;i++)\n scanf(\"%c\",&a);\n\n\n printf(\"A%cC... |
CDSS_281171 | CDSS | #include <stdio.h>
int main(void) {
int l,m,n;
scanf("%d %d %d",&l,&m,&n);
if(l > m)
{
int temp;
temp =l;
l=m;
m=temp;
}
if (m>n)
{
int temp1;
temp1 =m;
m=n;
n=temp1;
}
if (l>m)
{
int temp2;
temp2=l;
l=m;
m=temp2;
}
printf("%d %d %d\n",l,m,n);
... | 2,064 | memory_bytes | {'s_id': 's650331583', 'p_id': 'p02393', 'u_id': 'u277871505', 'date': '1540222126', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2064', 'code_size': '364'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\n\t\n\tint l,m,n;\n\t\n\tscanf(\"%d %d %d\",&l,&m,&n);\n\t\n\tif(l > m)\n\t{\n\t\tint temp;\n\t... |
CDSS_64375 | CDSS | #include<stdio.h>
int main(){
char c='A',a,b;for(;scanf("%c,%c%*c",&a,&b)!=EOF;c==a?c=b:c==b?c=a:1);
printf("%c\n",c);
return 0;
} | 544 | memory_bytes | {'s_id': 's407020211', 'p_id': 'p00047', 'u_id': 'u221679506', 'date': '1450842084', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '544', 'code_size': '143'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 char c='A',a,b;for(;scanf(\"%c,%c%*c\",&a,&b)!=EOF;c==a?c=b:c==b?c=a:1);\n printf(\"%c\\n\",c... |
CDSS_169155 | CDSS | #include<stdio.h>
#define A 100
int sw=0;
void bubblesort(int *a, int n){
int tmp,flag=1,i;
while(flag==1){
flag=0;
for(i=n-1;i>0;i--){
if(a[i]<a[i-1]){
tmp=a[i];
a[i]=a[i-1];
a[i-1]=tmp;
flag=1;
sw++;
}
}
}
}
void print(int *a, int n){
int i;... | 2,108 | memory_bytes | {'s_id': 's985503403', 'p_id': 'p02259', 'u_id': 'u692127517', 'date': '1548196763', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '548'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#define A 100\n\nint sw=0;\n\nvoid bubblesort(int *a, int n){\n int tmp,flag=1,i;\n\n while(flag==1){\n flag=0... |
CDSS_311185 | CDSS | #include<stdio.h>
int main()
{
long long int a,b;
scanf("%lld %lld",&a,&b);
printf("%lld %lld %.5lf\n",a/b,a%b,(double)a/b);
return 0;
}
| 2,052 | memory_bytes | {'s_id': 's127135002', 'p_id': 'p02399', 'u_id': 'u011621222', 'date': '1518584873', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2052', 'code_size': '154'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n long long int a,b;\n scanf(\"%lld %lld\",&a,&b);\n printf(\"%lld %lld %.5lf\\n\",a/b,a%b,(... |
CDSS_592685 | CDSS | #include <stdio.h>
int main(void) {
char str[100001];
fgets(str,100001,stdin);
unsigned long zero,one,ans,index;
zero = 0;
one = 0;
for (index=0;index<100001;index++) {
if (str[index]=='0') zero++;
else if (str[index]=='1') one++;
else break;
}
ans = ((zero<one)?zero:one)*2;
printf("%ld\n",ans);
ret... | 256 | memory_bytes | {'s_id': 's843783120', 'p_id': 'p03107', 'u_id': 'u808169136', 'date': '1551699892', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '256', 'code_size': '328'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n \nint main(void) {\n\tchar str[100001];\n\tfgets(str,100001,stdin);\n\tunsigned long zero,one,ans,index;\n\tzero ... |
CDSS_332555 | CDSS | #include <stdio.h>
#include <ctype.h>
#include <stdlib.h>
int main()
{
int H, W;
int h, w;
while (1) {
scanf("%d%d", &H, &W);
if (H == 0 && W == 0) break;
for (h = 0; h < H; h++) {
for (w = 0; w < W; w++) putchar('#');
putchar('\n');
}
putc... | 2,104 | memory_bytes | {'s_id': 's232621691', 'p_id': 'p02403', 'u_id': 'u571301978', 'date': '1558659130', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '353'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <ctype.h>\n#include <stdlib.h>\n \nint main()\n{\n int H, W;\n int h, w;\n \n while (1) {\n ... |
CDSS_700811 | CDSS | #include<stdio.h>
int main(void)
{
int r,g,b,total;
scanf("%d %d %d",&r,&g,&b);
total=r*100+g*10+b;
if(total%4==0){
printf("YES\n");
}else{
printf("NO\n");
}
return 0;
} | 128 | memory_bytes | {'s_id': 's464819414', 'p_id': 'p03693', 'u_id': 'u969215838', 'date': '1560573727', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '205'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\n\tint r,g,b,total;\n \tscanf(\"%d %d %d\",&r,&g,&b);\n \ttotal=r*100+g*10+b;\n \tif(total%4==... |
CDSS_164386 | CDSS | #include <stdio.h>
int main()
{
int n ;
scanf("%d", &n) ;
int r0, r1 ;
scanf("%d %d",&r0,&r1) ;
int maxv = r1-r0 ;
int minv ;
if( r1 <= r0 ){
minv = r1 ;
}else{
minv = r0 ;
}
int r, i ;
for( i = 0 ; i < n - 2 ; i++ ){
scanf("%d", &r) ;
if( maxv <= r - minv ){
maxv = r - mi... | 2,140 | memory_bytes | {'s_id': 's349064005', 'p_id': 'p02258', 'u_id': 'u987236471', 'date': '1574228585', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2140', 'code_size': '422'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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\n int r0, r1 ;\n scanf(\"%d %d\",&r0,&r1) ;\n\n int maxv = r1... |
CDSS_80428 | CDSS | #include<stdio.h>
int main(){
int i, n, x;
double ans;
scanf("%d", &n);
for(i=0, ans=0.0; i<n; ++i){
scanf("%d", &x);
ans += x;
}
ans /= (double)n;
printf("%.0f\n", ans);
return 0;
} | 628 | memory_bytes | {'s_id': 's272882262', 'p_id': 'p00134', 'u_id': 'u278606251', 'date': '1354683405', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '628', 'code_size': '208'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n int i, n, x;\n double ans;\n\n scanf(\"%d\", &n);\n for(i=0, ans=0.0; i<n; ++i){\n scanf(\"%... |
CDSS_696005 | CDSS | //set many funcs template
//Ver.20180717
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<stdbool.h>
#include<time.h>
#define inf 1072114514
#define llinf 4154118101919364364
#define mod 1000000007
#define pi 3.1415926535897932384
int max(int a,int b){if(a>b){return a;}return b;}
int min(int a,int b){i... | 128 | memory_bytes | {'s_id': 's394666302', 'p_id': 'p03658', 'u_id': 'u721060623', 'date': '1544817779', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '4361'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n//set many funcs template\n//Ver.20180717\n#include<stdio.h>\n#include<string.h>\n#include<stdlib.h>\n#include<stdbool.h>\n#include<ti... |
CDSS_235494 | CDSS | #include<stdio.h>
#include<math.h>
int main(void)
{
double a,b,c;
double theta;
double s,l,h;
scanf("%lf%lf%lf",&a,&b,&theta);
theta*=M_PI/180;
s=a*b*sin(theta)/2;
c=sqrt(a*a+b*b-2*a*b*cos(theta));
l=a+b+c;
h=2*s/a;
printf("%f\n%f\n%f\n",s,l,h);
return 0;
}
| 2,088 | memory_bytes | {'s_id': 's661497041', 'p_id': 'p02380', 'u_id': 'u090372546', 'date': '1532694078', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2088', '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#include<math.h>\nint main(void)\n{\n double a,b,c;\n double theta;\n double s,l,h;\n scanf(\"%lf%lf%lf\",&a,&b... |
CDSS_542734 | CDSS | #include <stdio.h>
int main(void) {
int n;
scanf("%d", &n);
int a[n];
int buf;
int flag = 0;
for (int i = 0; i < n; i++) {
scanf("%d", &a[i]);
if (i == 1) {
buf = a[i];
continue;
}
if (a[i] > buf) {
buf = a[i];
}
... | 512 | memory_bytes | {'s_id': 's659946158', 'p_id': 'p02953', 'u_id': 'u111374324', 'date': '1565239516', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '13', 'memory': '512', 'code_size': '507'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\n int n;\n scanf(\"%d\", &n);\n\n int a[n];\n int buf;\n int flag = 0;\n\n fo... |
CDSS_301734 | CDSS | #include <stdio.h>
int main(void)
{
int x, y, tmp;
while (1) {
scanf("%d %d", &x, &y);
if (x == 0 && y == 0) break;
if (x > y) {
tmp = y;
y = x;
x = tmp;
}
printf("%d %d\n", x, y);
}
return 0;
} | 600 | memory_bytes | {'s_id': 's312761996', 'p_id': 'p02397', 'u_id': 'u928564834', 'date': '1495287069', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '222'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n\tint x, y, tmp;\n\n\twhile (1) {\n\t\tscanf(\"%d %d\", &x, &y);\n\t\tif (x == 0 && y == 0) b... |
CDSS_69177 | CDSS | #include <stdio.h>
#define WIDTH 12
#define HEIGHT 12
void delIsland( int, int );
char field[ WIDTH ][ HEIGHT ];
const int dx[ 4 ] = { -1, 0, 1, 0 }, dy[ 4 ] = { 0, -1, 0, 1 };
int main( void ) {
int x, y, island;
while ( ungetc( getchar(), stdin ) != EOF ) {
for ( y = 0; y < HEIGHT; y++ )
for ( x = 0; x < ... | 548 | memory_bytes | {'s_id': 's899038983', 'p_id': 'p00067', 'u_id': 'u340315059', 'date': '1373128696', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '548', 'code_size': '830'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 WIDTH 12\n#define HEIGHT 12\n\nvoid delIsland( int, int );\n\nchar field[ WIDTH ][ HEIGHT ];\nconst int ... |
CDSS_141763 | CDSS | #include<stdio.h>
int a[8],b[8],c[15],d[15];
char t[8][8];
int change(int y,int x){
return 7-x+y;
}
int change2(int y,int x){
return y+x;
}
int solve(int y){
if(y==8)return 1;
if(a[y])return solve(y+1);
int x;
for(x=0;x<8;x++){
if(b[x])continue;
if(c[change(y,x)])continue;
if(d[change2(y... | 572 | memory_bytes | {'s_id': 's974792676', 'p_id': 'p02244', 'u_id': 'u017575647', 'date': '1444719519', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '572', 'code_size': '935'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n \nint a[8],b[8],c[15],d[15];\nchar t[8][8];\n \nint change(int y,int x){\n return 7-x+y;\n}\n \nint change2(int y... |
CDSS_241144 | CDSS | #include<stdio.h>
int main(void){
int a = 0;
scanf("%d",&a);
printf("%d\n",a*a*a);
return 0;
} | 596 | memory_bytes | {'s_id': 's365521741', 'p_id': 'p02388', 'u_id': 'u878035281', 'date': '1445326531', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '94'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\nint a = 0;\nscanf(\"%d\",&a);\nprintf(\"%d\\n\",a*a*a);\nreturn 0;\n}\nPredict its memory footprin... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.