identifier string | space string | input string | target float64 | metric_type string | metadata string | messages list |
|---|---|---|---|---|---|---|
CDSS_366713 | CDSS | #include <stdio.h>
int main()
{
int count[26] = {};
int n, i;
char ch;
while( scanf("%c", &ch) != EOF ){
if(ch >= 'a' && ch <= 'z'){
n = ch - 'a';
count[n]++;
}
else if(ch >= 'A' && ch <= 'Z'){
n = ch - 'A';
count[n]++;
}
}
for(i = 0; i < 26; i++){
printf("%c : %d\n",'a... | 2,044 | memory_bytes | {'s_id': 's269317162', 'p_id': 'p02417', 'u_id': 'u570958314', 'date': '1564100260', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2044', 'code_size': '355'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 count[26] = {};\n int n, i;\n char ch;\n while( scanf(\"%c\", &ch) != EOF ){\n if(ch >=... |
CDSS_631012 | CDSS | // Ver19.02
#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 upll(const void *a, const void *b) { return *(ll *)a < *(ll *)b ? -1 : *(ll *)a > *(ll *... | 128 | memory_bytes | {'s_id': 's738385014', 'p_id': 'p03293', 'u_id': 'u883325972', 'date': '1551033768', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '622'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n// Ver19.02\n#include <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);... |
CDSS_307587 | CDSS | #include <stdio.h>
int main(void){
int a,b,c,count=0;
scanf("%d%d%d",&a,&b,&c);
for(int i=a;i<b+1;i++){
if(c%i==0)count++;
}
printf("%d\n",count);
return 0;
}
| 2,100 | memory_bytes | {'s_id': 's449547981', 'p_id': 'p02398', 'u_id': 'u844402742', 'date': '1519308489', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2100', '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\nint main(void){\n\tint a,b,c,count=0;\n\tscanf(\"%d%d%d\",&a,&b,&c);\n\tfor(int i=a;i<b+1;i++){\n\t\tif(c%i==0)c... |
CDSS_477597 | CDSS | #include<stdio.h>
#include<string.h>
void swap (int *x, int *y) {
int temp; // 値を一時保存する変数
temp = *x;
*x = *y;
*y = temp;
}
int partition (int array[], int left, int right) {
int i, j, pivot;
i = left;
j = right + 1;
pivot = left; // 先頭要素をpivotとする
do {
do { i++; } while (array[i] < array[pi... | 2,176 | memory_bytes | {'s_id': 's645356575', 'p_id': 'p02748', 'u_id': 'u605253462', 'date': '1583721584', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '53', 'memory': '2176', 'code_size': '1767'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 swap (int *x, int *y) {\n int temp; // 値を一時保存する変数\n\n temp = *x;\n *x = *y;\n *y ... |
CDSS_312742 | CDSS | #include <stdio.h>
#include <math.h>
int
main (
int argc,
char *argv[ ]
)
{
double r;
scanf ( "%lf", &r );
printf ( "%.5f %.5f\n", r * r * M_PI, 2. * r * M_PI );
return ( 0 );
}
| 2,040 | memory_bytes | {'s_id': 's747911159', 'p_id': 'p02400', 'u_id': 'u087392296', 'date': '1559041988', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2040', 'code_size': '201'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n \nint\nmain (\n int argc,\n char *argv[ ]\n )\n{\n double r;\n \n scanf ( \"%lf\", &r )... |
CDSS_667594 | CDSS | #include<stdio.h>
#include<stdlib.h>
int main()
{
int n;
scanf("%d", &n);
int c[505];
int s[505];
int f[505];
int t[505];
int i, j;
for (i = 0; i < n-1; i++)
{
scanf("%d%d%d", c+i,s+i,f+i);
t[i] = s[i];
}
for (i = 0; i < n-1; i++)
{
for (j = i; j < n-1; j++)
{
while (!(t[i] % f[j] == 0) || t[i] <... | 128 | memory_bytes | {'s_id': 's219313116', 'p_id': 'p03475', 'u_id': 'u353919145', 'date': '1549225394', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '96', 'memory': '128', '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#include<stdlib.h>\nint main()\n{\n\tint n;\n\tscanf(\"%d\", &n);\n\tint c[505];\n\tint s[505];\n\tint f[505];\n\ti... |
CDSS_213428 | CDSS |
#include<stdio.h>
#define MAX 100000
#define SENTINEL 2000000000
struct Card {
char suit;
int value;
};
struct Card L[MAX / 2 + 2], R[MAX / 2 + 2];
void merge(struct Card A[], int n, int left, int mid, int right){ //カードの配列を2分割
int i, j, k;
int n1 = mid - left;
int n2 = right - mid;
for ( i =... | 4,040 | memory_bytes | {'s_id': 's785894756', 'p_id': 'p02277', 'u_id': 'u566062753', 'date': '1592974048', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '4040', 'code_size': '2062'} | [
{
"content": "Your task is to predict the memory 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#define MAX 100000\n#define SENTINEL 2000000000\n\nstruct Card {\n char suit;\n int value;\n};\n\nstruct Ca... |
CDSS_299005 | CDSS | #include <stdio.h>
int main(void)
{
int i,x;
for(i=1;i<=10000;i++)
{
scanf("%d",&x);
if(x>0&&x<=10000)
{
if(x==0)
{
break;
}
printf("Case %d: %d\n",i,x);
}
else break;
}
return 0;
}
| 2,040 | memory_bytes | {'s_id': 's155092490', 'p_id': 'p02396', 'u_id': 'u418935967', 'date': '1591421993', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2040', 'code_size': '287'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void)\n{\n int i,x;\n for(i=1;i<=10000;i++)\n {\n scanf(\"%d\",&x);\n if(x>0&&x<=1... |
CDSS_176297 | CDSS | #include <stdio.h>
#define N 1000000
int G[N], A[N], gsize;
int cnt;
void insertionSort(int A[N], int n, int g){
int v,j;
for( int i = g; i < n; i++ ){
v = A[i];
j = i-g;
while( j >= 0 && A[j] > v ){
A[j+g] = A[j];
j = j-g;
cnt++;
}
A[j+g] = v;
}
}
void shellSort(int A[N], int n){
int h;... | 5,600 | memory_bytes | {'s_id': 's286367134', 'p_id': 'p02262', 'u_id': 'u607924390', 'date': '1570775392', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '250', 'memory': '5600', 'code_size': '828'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 1000000\n\nint G[N], A[N], gsize;\nint cnt;\n\nvoid insertionSort(int A[N], int n, int g){\n\t\n\tint v,... |
CDSS_222620 | 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->key != NIL)
x->key = x->left->key;
return x;
}
Node treeMaximum(Node x){
while (... | 25,168 | memory_bytes | {'s_id': 's590947130', 'p_id': 'p02283', 'u_id': 'u339134023', 'date': '1547098211', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '320', 'memory': '25168', 'code_size': '2035'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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_39620 | CDSS | #include <stdio.h>
int main(void)
{
int n;
int money;
scanf("%d", &n);
money = 100000;
while (n != 0){
money += money * 0.05;
if (money % 1000 != 0){
money = money - (money % 1000) + 1000;
}
n--;
}
printf("%d\n", money);
return (0);
} | 592 | memory_bytes | {'s_id': 's333615099', 'p_id': 'p00007', 'u_id': 'u240754089', 'date': '1456037705', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', 'code_size': '263'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n\tint n;\n\tint money;\n\t\n\tscanf(\"%d\", &n);\n\t\n\tmoney = 100000;\n\twhile (n != 0){\n\... |
CDSS_107978 | CDSS | #include <stdio.h>
#include <math.h>
#include <string.h>
#include <stdlib.h>
#define rad M_PI/3
#define N 2147483647
#define Max 500000
#define NTL -1
#define min(a,b) ((a>b)?b:a)
int main(){
int i,n,x,y,ans,max=0;
scanf("%d%d",&n,&ans);
for(i=0;i<n;i++){
scanf("%d%d",&x,&y);
ans+=x-y;
if(ans<0){
... | 2,096 | memory_bytes | {'s_id': 's945938141', 'p_id': 'p00510', 'u_id': 'u606460153', 'date': '1523451597', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2096', 'code_size': '448'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n#include <string.h>\n#include <stdlib.h>\n#define rad M_PI/3\n#define N 2147483647\n#define Max... |
CDSS_197993 | CDSS | #include<stdio.h>
#include<string.h>
#define int long long
#define M 1046527 /* your task*/
#define L 14
char H[M][L]; /* Hash Table */
int getChar(char ch){
if ( ch == 'A') return 1;
else if ( ch == 'C') return 2;
else if ( ch == 'G') return 3;
else if ( ch == 'T') return 4;
}
/* convert a string into an ... | 16,040 | memory_bytes | {'s_id': 's109388340', 'p_id': 'p02269', 'u_id': 'u175705399', 'date': '1544889647', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '240', 'memory': '16040', 'code_size': '1457'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 int long long\n\n#define M 1046527 /* your task*/\n#define L 14\n\nchar H[M][L]; /* H... |
CDSS_222450 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
struct node{
struct node *right;
struct node *left;
struct node *parent;
int key;
};
typedef struct node * Node;
/* プロトタイプ宣言 */
Node treeMinimum(Node x);
Node treeMaximum(Node x);
Node treeSearch(Node u, int k);
Node treeSuccessor(Node x);
void insert(i... | 25,124 | memory_bytes | {'s_id': 's309138250', 'p_id': 'p02283', 'u_id': 'u942290961', 'date': '1578550286', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '320', 'memory': '25124', 'code_size': '1864'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 struct node *right;\n struct node *left;\n struct node ... |
CDSS_216836 | CDSS | #include<stdio.h>
#define MAX 100000
struct Node { int p, l,r;};
struct Node T[MAX];
int n,k=0,D[MAX];
int getdep(int k);
void print(int k);
int main(){
int i,j,d,sec,c,l;
scanf("%d",&n);
for(i=0;i<n;i++){
T[i].p =-1;
T[i].l=-1;
T[i].r=-1;
}
for(i=0;i<n;i++){
scanf("%d %d",&sec,&d);
... | 3,360 | memory_bytes | {'s_id': 's974245571', 'p_id': 'p02279', 'u_id': 'u006036653', 'date': '1578379444', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '40', 'memory': '3360', 'code_size': '1018'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 100000\n struct Node { int p, l,r;};\n struct Node T[MAX];\nint n,k=0,D[MAX];\nint getdep(int k);\nv... |
CDSS_668052 | CDSS | #include <stdio.h>
int main(){
int A,B,C,D;
scanf("%d %d %d %d",&A,&B,&C,&D);
A+=B;
C+=D;
if(A>C) printf("Left\n");
else if(A<C) printf("Right\n");
else printf("Balanced\n");
return 0;
} | 1,624 | memory_bytes | {'s_id': 's095219266', 'p_id': 'p03477', 'u_id': 'u347116006', 'date': '1593314280', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1624', '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,C,D;\n scanf(\"%d %d %d %d\",&A,&B,&C,&D);\n A+=B;\n C+=D;\n if(A>C) printf(\"Left\\n... |
CDSS_468503 | CDSS | #include <stdio.h>
int main(){
char S[6];
scanf("%s",S);
if(S[2]==S[3] && S[4]==S[5]){
printf("Yes");
}else{
printf("No");
}
return 0;
} | 128 | memory_bytes | {'s_id': 's315420420', 'p_id': 'p02723', 'u_id': 'u075356666', 'date': '1585847103', '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>\nint main(){\n char S[6];\n scanf(\"%s\",S);\n if(S[2]==S[3] && S[4]==S[5]){\n printf(\"Yes\");\n }else{\n ... |
CDSS_297530 | CDSS | #include <stdio.h>
int main(void){
int i=1;
int x;
do{
scanf("%d",&x);
if(x!=0){
printf("Case %d: %d\n",i,x);
i++;
}
}while(x!=0);
return 0;
} | 1,760 | memory_bytes | {'s_id': 's405610863', 'p_id': 'p02396', 'u_id': 'u134753023', 'date': '1510311485', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1760', 'code_size': '164'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n int i=1;\n int x;\ndo{\n scanf(\"%d\",&x);\n\n if(x!=0){\n printf(\"Case %d: %d\\n\",i,... |
CDSS_116327 | CDSS | #include <stdio.h>
int main( void ) {
int i, n, p, now, have[ 50 ], rest;
for ( ; scanf( "%d %d", &n, &p ), rest = p; printf( "%d\n", now ) ) {
for ( i = 0; i < 50; i++ )
have[ i ] = 0;
for ( now = 0; ; now = ( now + 1 ) % n ) {
if ( rest == 1 && have[ now ] == p - 1 )
break;
if ( rest == 0 ) {
... | 600 | memory_bytes | {'s_id': 's756325817', 'p_id': 'p00740', 'u_id': 'u340315059', 'date': '1374314205', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '50', 'memory': '600', 'code_size': '432'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main( void ) {\n\tint i, n, p, now, have[ 50 ], rest;\n\n\tfor ( ; scanf( \"%d %d\", &n, &p ), rest = p; pri... |
CDSS_534936 | CDSS | A[999][1000],I[1000],u[999];i,j;d;F=2;main(N){for(scanf("%d",&N);i<N;++i)for(j=0;j<N-1;)scanf("%d",A[j++]+i);for(;F&2;)for(F=1,i=!++d;i<N;++i)u[i]<d&I[i]<N-1&&I[F&=2,j=A[I[i]][i]-1]<N-1&&u[j]<d&A[I[j]][j]==i+1&&++I[u[i]=u[j]=d,++I[i],F=2,j];printf("%d",F*d-1);} | 4,096 | memory_bytes | {'s_id': 's348458310', 'p_id': 'p02925', 'u_id': 'u657913472', 'date': '1567393569', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1987', 'memory': '4096', 'code_size': '261'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nA[999][1000],I[1000],u[999];i,j;d;F=2;main(N){for(scanf(\"%d\",&N);i<N;++i)for(j=0;j<N-1;)scanf(\"%d\",A[j++]+i);for(;F&2;)for(F=1,i=!... |
CDSS_291032 | CDSS | #include<stdio.h>
main(){
int a=0;
int W,H,x,y,r=0;
scanf("%d %d %d %d %d",&W,&H,&x,&y,&r);
if(x-r>=0&&x+r<=W){
if(y-r>=0&&y+r<=H){
a=1;
}
}
else{
a=0;
}
if(a==1){
printf("Yes\n");
}
else if(a==0){
printf("No\n");
}
return 0;
} | 584 | memory_bytes | {'s_id': 's548468962', 'p_id': 'p02394', 'u_id': 'u982671043', 'date': '1482136395', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '584', 'code_size': '277'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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(){\n int a=0;\n int W,H,x,y,r=0;\n scanf(\"%d %d %d %d %d\",&W,&H,&x,&y,&r);\n if(x-r>=0&&x+r<=W){\n if... |
CDSS_296125 | CDSS | #include <stdio.h>
int main(void)
{
int x,c;
scanf("%d",&x);
c = 1;
while(x != 0){
printf("Case %d: %d\n",c,x);
scanf("%d",&x);
c++;
}
return 0;
} | 600 | memory_bytes | {'s_id': 's741906124', 'p_id': 'p02396', 'u_id': 'u197138296', 'date': '1484268146', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '150'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 x,c;\nscanf(\"%d\",&x);\nc = 1;\n\nwhile(x != 0){\nprintf(\"Case %d: %d\\n\",c,x);\nscanf... |
CDSS_366826 | CDSS | #include<stdio.h>
int main()
{
char str1[200],str2[100],str3[100];
scanf("%s",str1);
strcpy(str3,str1);
strcat(str1,str3);
scanf("%s",str2);
if(strstr(str1,str2))printf("Yes\n");
else printf("No\n");
return 0;
}
| 2,104 | memory_bytes | {'s_id': 's209599940', 'p_id': 'p02418', 'u_id': 'u542576355', 'date': '1531373732', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', '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>\nint main()\n{\n char str1[200],str2[100],str3[100];\n\n scanf(\"%s\",str1);\n strcpy(str3,str1);\n strcat(str1,str3... |
CDSS_622270 | CDSS | #include <stdio.h>
//座標用の構造体
typedef struct{
int x_elem;
int y_elem;
}point;
//a_1,a_2,a_3の順に反時計回りかつa_2が直角な直角二等辺となるa_3を出力
point shift_point(point a1,point a2);
int main(void){
point apex1,apex2,apex3,apex4;
//ドット演算子は優先度が最も高いので以下の書き方で入力可能
scanf("%d%d%d%d",&apex1.x_elem,&apex1.y_elem,&apex2.x_elem,&apex2.y_e... | 1,732 | memory_bytes | {'s_id': 's711778381', 'p_id': 'p03265', 'u_id': 'u268398294', 'date': '1594538959', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1732', 'code_size': '1152'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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//座標用の構造体\ntypedef struct{\n int x_elem;\n int y_elem;\n}point;\n\n//a_1,a_2,a_3の順に反時計回りかつa_2が直角な直角二等辺となるa_3を出... |
CDSS_510829 | CDSS | #include<stdio.h>
const long long mod = 1000000007;
int main(){
int n;
scanf("%d",&n);
long long a[n + 1];
long long ans = 0, p;
for(int i = 0; i < n; i++)
scanf("%lld",&a[i]);
for(int i = 0; i < 60; i++){
long long x = 0;
for(int j = 0; j < n; j++)
if(a[j] >>... | 2,560 | memory_bytes | {'s_id': 's258467031', 'p_id': 'p02838', 'u_id': 'u188486233', 'date': '1588537150', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '67', 'memory': '2560', 'code_size': '530'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nconst long long mod = 1000000007;\nint main(){\n int n;\n scanf(\"%d\",&n);\n long long a[n + 1];\n lon... |
CDSS_136870 | CDSS | #include <stdio.h>
#define N 100
#define WHITE 0
#define GRAY 1
#define BLACK 2
void dfs(void);
void dfs_v(int);
int n,M[N][N];
int color[N],d[N],f[N],time;
int main(){
int u,k,v;
int i,j;
scanf("%d",&n);
for(i=0;i<n;i++){
for(j=0;j<n;j++){
M[i][j]=0;
}
}
for(i=0;i<n;i++){
scanf(" %d%d... | 636 | memory_bytes | {'s_id': 's684377267', 'p_id': 'p02238', 'u_id': 'u924145816', 'date': '1502327331', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '636', 'code_size': '863'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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#define WHITE 0\n#define GRAY 1\n#define BLACK 2\nvoid dfs(void);\nvoid dfs_v(int);\nint n,M[N][N];... |
CDSS_297743 | CDSS | #include <stdio.h>
int main(){
int i=0;
int x[9999];
do{
scanf("%d",&x[i]);
if(x[i] == 0){
break;
}
i++;
}while(i < 100000);
i = 0;
do{
if(x[i] != 0){
printf("Case %d: %d\n",i+1,x[i]);
}else{
brea... | 1,792 | memory_bytes | {'s_id': 's266846813', 'p_id': 'p02396', 'u_id': 'u092993594', 'date': '1514020590', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1792', '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\nint main(){\n\n int i=0;\n int x[9999];\n\n\n do{\n scanf(\"%d\",&x[i]);\n \n if(x... |
CDSS_172814 | CDSS | #include <stdio.h>
#define n 36
struct Card{
char suit;
char value;
};
void BubbleSort(struct Card C[],int N){
int i,j;
struct Card a;
for(i=0;i<N;i++){
for(j=N-1;j>=i+1;j--){
if(C[j].value < C[j-1].value){
a = C[j];
C[j] = C[j-1];
C[j-1] = a;
}
}
}
}
voi... | 2,108 | memory_bytes | {'s_id': 's992483486', 'p_id': 'p02261', 'u_id': 'u071740547', 'date': '1546165892', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '1668'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 36\n\nstruct Card{\n \n char suit;\n char value;\n};\n\nvoid BubbleSort(struct Card C[],int N){\n ... |
CDSS_263216 | CDSS | #include <stdio.h>
int main(void) {
int s;
scanf("%d",&s);
printf("%d:%d:%d\n",s/3600,(s/60)%60,s%60);
return 0;
}
| 2,100 | memory_bytes | {'s_id': 's456993370', 'p_id': 'p02390', 'u_id': 'u673592786', 'date': '1520150680', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2100', 'code_size': '120'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\n\tint s;\n\tscanf(\"%d\",&s);\n\tprintf(\"%d:%d:%d\\n\",s/3600,(s/60)%60,s%60);\n\treturn 0;\n... |
CDSS_605706 | CDSS | #include<stdio.h>
int main(void) {
int n;
int c=0;
scanf("%d", &n);
while(n){
if(n%10==2){
c++;
}
n/=10;
}
printf("%d\n", c);
return 0;
}
| 128 | memory_bytes | {'s_id': 's888236930', 'p_id': 'p03192', 'u_id': 'u579508806', 'date': '1545537463', '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) {\nint n;\nint c=0;\nscanf(\"%d\", &n);\nwhile(n){\nif(n%10==2){\nc++;\n}\nn/=10;\n}\nprintf(\"%d\... |
CDSS_687711 | CDSS | #include <stdio.h>
#include <stdlib.h>
int main (void) {
int i, a = 0, n = 0;
int *p;
p = malloc(sizeof(int)*100000);
scanf("%d",&n);
for(i = 0;i < n;i++){
scanf("%d",&p[i]);
}
for(i = 0;i < n;i++){
if(p[i] == i+1){
if(p[i+1] == i+2){
p[i] = i+2;
p[i+1] = i+1;
}
else{
p[i-1] = i+1... | 512 | memory_bytes | {'s_id': 's268554920', 'p_id': 'p03612', 'u_id': 'u645607298', 'date': '1505149466', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '11', 'memory': '512', 'code_size': '389'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\nint main (void) {\n\tint i, a = 0, n = 0;\n\tint *p;\n\tp = malloc(sizeof(int)*100000);\n\t... |
CDSS_703105 | CDSS | #include <stdio.h>
int main(void)
{
int a,b,c,e;
char A[27]={1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1};
scanf("%s",A);
c=0;
e=26;
for(b=0;b<27;b++){
if(A[b]==1){
e=b-1;
b=1000;
}
}
for(a=0;a<e;a++){
for(b=0;b<e;b++){
... | 1,724 | memory_bytes | {'s_id': 's384070894', 'p_id': 'p03698', 'u_id': 'u655007941', 'date': '1592851765', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1724', 'code_size': '484'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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,c,e;\n char A[27]={1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1};\n ... |
CDSS_247492 | CDSS | #include <stdio.h>
int n;
int main(){
scanf("%d",&n);
n = n * n * n;
printf("%d\n", n);
return 0;
}
| 2,104 | memory_bytes | {'s_id': 's432764601', 'p_id': 'p02388', 'u_id': 'u346935742', 'date': '1527311374', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', '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 n;\n\nint main(){\n scanf(\"%d\",&n);\n n = n * n * n;\n printf(\"%d\\n\", n);\n return 0;\n ... |
CDSS_595148 | CDSS | #include<stdio.h>
int main(){
int a,b,c[31]={0},d=0;
scanf("%d %d",&a,&b);
for(int i=0; i<a; i++){
int e;
scanf("%d",&e);
for(int j=0; j<e; j++){
int f;
scanf("%d",&f);
c[f]++;
}
}
for(int i=1; i<=b; i++){
if(c[i]==a){d++;}
}
printf("%d",d);
return 0;} | 128 | memory_bytes | {'s_id': 's477142559', 'p_id': 'p03126', 'u_id': 'u079774926', 'date': '1579790493', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '306'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int a,b,c[31]={0},d=0;\n scanf(\"%d %d\",&a,&b);\n for(int i=0; i<a; i++){\n int e;\n scanf(... |
CDSS_129679 | CDSS | #include <stdio.h>
int dp[45];
int fib(int n)
{
if( n == 0 || n == 1 ){
dp[n] = 1;
} else if( dp[n] == -1 ){
dp[n] = fib(n-1) + fib(n-2);
}
return dp[n];
}
int main()
{
int i;
for( i = 0; i < 45; ++i ) dp[i] = -1;
int n;
scanf("%d", &n);
printf("%d\n", fib(n));
... | 596 | memory_bytes | {'s_id': 's959206456', 'p_id': 'p02233', 'u_id': 'u699840499', 'date': '1443265127', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '336'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 dp[45];\n\nint fib(int n)\n{\n if( n == 0 || n == 1 ){\n dp[n] = 1;\n } else if( dp[n] == -1 ){... |
CDSS_298785 | CDSS | #include <stdio.h>
int main(void) {
int x;
int i = 1;
while(1) {
scanf("%d", &x);
if (x == 0) {
break;
}
printf("Case %d: %d\n", i, x);
i++;
}
return 0;
} | 600 | memory_bytes | {'s_id': 's947368194', 'p_id': 'p02396', 'u_id': 'u309428289', 'date': '1381686456', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '173'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\n\tint x;\n\tint i = 1;\n\twhile(1) {\n\t\tscanf(\"%d\", &x);\n\t\tif (x == 0) {\n\t\t\tbreak;\... |
CDSS_388065 | CDSS | #include<stdio.h>
int main()
{
int x,a;
scanf("%d",&x);
a=(10-(x/200));
printf("%d",a);
} | 1,732 | memory_bytes | {'s_id': 's831529685', 'p_id': 'p02600', 'u_id': 'u791173062', 'date': '1595725323', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '1732', 'code_size': '94'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main()\n{\n\tint x,a;\n\tscanf(\"%d\",&x);\n\ta=(10-(x/200));\n\tprintf(\"%d\",a);\n}\nPredict its memory foo... |
CDSS_24743 | CDSS | #include<stdio.h>
int main(void){
int r[10],a=0,b=0,c=0,i;
for(i=0;i<10;i++){
scanf("%d",&r[i]);
if(a<r[i]){
c=b;
b=a;
a=r[i];
}
else if(b<r[i]){
c=b;
b=r[i];
}
else if(c<r[i]){
c=r[i];
... | 0 | memory_bytes | {'s_id': 's302164307', 'p_id': 'p00001', 'u_id': 'u485225329', 'date': '1340699683', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '380'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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[10],a=0,b=0,c=0,i;\n for(i=0;i<10;i++){\n scanf(\"%d\",&r[i]);\n if(a... |
CDSS_231563 | CDSS | #include <stdio.h>
#include <math.h>
#include <stdlib.h>
int main(){
int c1x, c1y, c1z;
int c2x, c2y, c2z;
int z1, z2;
double result;
scanf("%d %d %d", &c1x, &c1y, &c1z);
scanf("%d %d %d", &c2x, &c2y, &c2z);
result = sqrt((c1x - c2x) * (c1x - c2x) + (c1y - c2y... | 2,112 | memory_bytes | {'s_id': 's002218679', 'p_id': 'p02305', 'u_id': 'u666828443', 'date': '1586838663', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '881'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n#include <stdlib.h>\n\nint main(){\n int c1x, c1y, c1z;\n int c2x, c2y, c2z;\n ... |
CDSS_413267 | CDSS | #include<stdio.h>
#include<string.h>
int main(){
char s[200005];
scanf("%s",s);
int n = strlen(s);
if(s[n - 1] == '?')
s[n - 1] = 'D';
for(int i = n - 1; i > 0; i--){
if(s[i] == 'P' || s[i] == 'D')
continue;
if(s[i - 1] == 'P')
s[i] = 'D';
else... | 1,900 | memory_bytes | {'s_id': 's747658801', 'p_id': 'p02664', 'u_id': 'u188486233', 'date': '1590904955', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '9', 'memory': '1900', 'code_size': '571'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\nint main(){\n char s[200005];\n scanf(\"%s\",s);\n int n = strlen(s);\n if(s[n - 1]... |
CDSS_599393 | CDSS | #include <stdio.h>
void swap(int x[], int i, int j)
{
int tmp;
tmp = x[i];
x[i] = x[j];
x[j] = tmp;
}
void qsort(int a[], int b[], int c[], int left, int right)
{
int i, j;
int pivot;
i = left;
j = right;
pivot = c[(left + right) / 2];
while (1) {
while (c[i] < pivot)
... | 1,280 | memory_bytes | {'s_id': 's951789946', 'p_id': 'p03141', 'u_id': 'u318955153', 'date': '1548647904', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '31', 'memory': '1280', 'code_size': '1154'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nvoid swap(int x[], int i, int j)\n{\n int tmp;\n tmp = x[i];\n x[i] = x[j];\n x[j] = tmp;\n}\n\nvoid... |
CDSS_641748 | CDSS | #include <stdio.h>
#include <math.h>
int main()
{
int a,b;
int max;
int s1,s2,s3;
scanf("%d %d",&a,&b);
s1 = a+b;
s2 = a-b;
s3 = a*b;
max=s1;
if(s2 > max)max=s2;
if(s3 > max)max=s3;
printf("%d\n",max);
return 0;
}
| 128 | memory_bytes | {'s_id': 's183104450', 'p_id': 'p03337', 'u_id': 'u863370423', 'date': '1547433546', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '289'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n\nint main()\n{\n int a,b;\n int max;\n int s1,s2,s3;\n scanf(\"%d %d\",&a,&b);\n\n... |
CDSS_676294 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#define mod 1e9+7
#define ll long long int
#define epsilon 1e-7
int main(void){
int n;
scanf("%d", &n);
int a, b, c, d;
a = n/1000;
b = (n/100)%10;
c = (n/10)%10;
d = n%10;
if(a+b+c+d==7)printf("%d+%d+%d+%d=7\... | 128 | memory_bytes | {'s_id': 's612810066', 'p_id': 'p03545', 'u_id': 'u436045956', 'date': '1559265851', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '786'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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#define mod 1e9+7\n#define ll long long int\n#defin... |
CDSS_615511 | CDSS | #include<stdio.h>
int N,H;
int x[100],y[100],h[100];
int ab(int x){
if(x<0)return -x;
return x;
}
int main(){
scanf("%d",&N);
for(int i=0;i<N;i++)scanf("%d%d%d",&x[i],&y[i],&h[i]);
//sort
int r=N;
int swapped=0;
while(r>1 || swapped==1){
if(r>1)r=r*10/13;
swapped=0;
for(int i=0;i<N-r;i++){
if(h[i]... | 128 | memory_bytes | {'s_id': 's083470746', 'p_id': 'p03240', 'u_id': 'u573082373', 'date': '1542972186', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '847'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint N,H;\nint x[100],y[100],h[100];\n\nint ab(int x){\n\tif(x<0)return -x;\n\treturn x;\n}\n\nint main(){\n\tscan... |
CDSS_159838 | CDSS | #include <stdio.h>
int Prime_numbers(int);
int main(){
int N,n,i,j=0;
scanf("%d",&N);
for(i=0;i<N;i++){
scanf("%d",&n);
if(Prime_numbers(n)==1)j++;
}
printf("%d\n",j);
return 0;
}
int Prime_numbers(int n)
{
int i,flag=0;
if(n==2)return 1;
if(n==3)return 1;
for(i=2;i*i<=n;i++)
... | 2,144 | memory_bytes | {'s_id': 's772552504', 'p_id': 'p02257', 'u_id': 'u007998969', 'date': '1544070252', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2144', 'code_size': '375'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint Prime_numbers(int);\n\nint main(){\n int N,n,i,j=0;\n\n scanf(\"%d\",&N);\n\n for(i=0;i<N;i++){\n scan... |
CDSS_252831 | CDSS | #include <stdio.h>
int main(){
int n,m;
scanf("%d%d", &n,&m);
printf("%d %d\n", n*m, n * 2 + m * 2);
return 0;
} | 596 | memory_bytes | {'s_id': 's287094363', 'p_id': 'p02389', 'u_id': 'u409281567', 'date': '1469042760', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '120'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n\tint n,m;\n\n\tscanf(\"%d%d\", &n,&m);\n\n\tprintf(\"%d %d\\n\", n*m, n * 2 + m * 2);\n\n\treturn ... |
CDSS_370100 | CDSS | #include<stdio.h>
#include<string.h>
int main(void)
{
int a,b,i,j,k;
char x[200],y[400];
while(1){
scanf("%s",x);
if(x[0]=='-')break;
a=strlen(x);
scanf("%d",&b);
int c[b];
for(i=0;i<b;i++){
scanf("%d",&c[i]);
}
for(j=0;j<b;j++){
... | 600 | memory_bytes | {'s_id': 's425904497', 'p_id': 'p02420', 'u_id': 'u006795970', 'date': '1432785404', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '521'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\nint main(void)\n{\n int a,b,i,j,k;\n char x[200],y[400];\n while(1){\n scanf(\"... |
CDSS_326455 | CDSS | #include <stdio.h>
int main(void)
{
int n,a,i,max=-1000000,min=1000000;
long sum=0;
scanf("%d",&n);
for(i=0 ; i<n ; i++){
scanf("%d",&a);
sum+=a;
if(a<min)min=a;
if(a>max)max=a;
}
printf("%d %d %ld\n",min ,max ,sum);
return 0;
} | 1,852 | memory_bytes | {'s_id': 's684305914', 'p_id': 'p02402', 'u_id': 'u878885332', 'date': '1511227871', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1852', 'code_size': '244'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n\tint n,a,i,max=-1000000,min=1000000;\n\tlong sum=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0 ; i<n ; ... |
CDSS_50873 | CDSS | #include <stdio.h>
int main(){
int i, j, tmp, n[5];
for(i = 0; i < 5; i++) scanf("%d", &n[i]);
for(i = 0; i < 4; i++)
for(j = 0; j < 4; j++)
if(n[j] < n[j + 1]){
tmp = n[j];
n[j] = n[j + 1];
n[j + 1] = tmp;
}
... | 600 | memory_bytes | {'s_id': 's546070996', 'p_id': 'p00018', 'u_id': 'u834339402', 'date': '1419447658', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '445'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n \nint main(){\n int i, j, tmp, n[5];\n \n for(i = 0; i < 5; i++) scanf(\"%d\", &n[i]);\n \n for(i... |
CDSS_493577 | CDSS | #include <stdio.h>
int main()
{
int i=0,h,a,sum=0;
scanf("%d %d",&h,&a);
while(h>0)
{
h=h-a;
sum++;
}
printf("%d",sum);
return 0;
} | 128 | memory_bytes | {'s_id': 's277327686', 'p_id': 'p02783', 'u_id': 'u282054078', 'date': '1580070693', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '152'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 i=0,h,a,sum=0;\n scanf(\"%d %d\",&h,&a);\n while(h>0)\n{\n h=h-a;\n sum++;\n}\n... |
CDSS_512677 | CDSS | #include<stdio.h>
#include<string.h>
int main( void ){
char S[24];
scanf("%s", S);
if(strcmp(S ,"SUN")==0){
printf("7\n");
} else if(strcmp(S ,"MON")==0) {
printf("6\n");
} else if(strcmp(S ,"TUE")==0) {
printf("5\n");
} else if(strcmp(S ,"WED")==0) {
printf("4\n"... | 128 | memory_bytes | {'s_id': 's995853290', 'p_id': 'p02847', 'u_id': 'u760636024', 'date': '1574647969', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '500'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 char S[24];\n scanf(\"%s\", S);\n if(strcmp(S ,\"SUN\")==0){\n ... |
CDSS_588413 | CDSS | #include <stdio.h>
#include <string.h>
int main(void){
int n;
scanf("%d", &n);
int m;//辺の数
int a;//中心に考える頂点
int b;//a以外のある頂点
int s;//ペアの和
int i;
if(n==3){//n=3の時
printf("2\n");
printf("1 3\n");
printf("2 3\n");
}else if(n%2==0){//nが偶数の時
s=1+n;
m=((n*(n-2))/2);
printf("%d\n"... | 1,684 | memory_bytes | {'s_id': 's304183242', 'p_id': 'p03090', 'u_id': 'u419845534', 'date': '1594428952', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1684', 'code_size': '1010'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\nint main(void){\n int n;\n scanf(\"%d\", &n);\n \n int m;//辺の数\n int a;//中心に考える頂点\n i... |
CDSS_264574 | CDSS | #include <stdio.h>
int main(void)
{
int s;
scanf("%d", &s);
int m = s / 60;
s = s % 60;
int h = m / 60;
m = m % 60;
printf("%d:%d:%d\n", h, m, s);
return 0;
}
| 2,104 | memory_bytes | {'s_id': 's908312881', 'p_id': 'p02390', 'u_id': 'u183363727', 'date': '1561962463', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', '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>\nint main(void)\n{\n\tint s;\n\tscanf(\"%d\", &s);\n\tint m = s / 60;\n\ts = s % 60;\n\tint h = m / 60;\n\tm = m % ... |
CDSS_633632 | CDSS | #include <stdio.h>
#include <string.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#include <limits.h>
#include <math.h>
int acs(const void *a, const void *b){return *(int*)a - *(int*)b;} /* 1,2,3,4.. */
int des(const void *a, const void *b){return *(int*)b - *(int*)a;} /* 8,7,6,5.. */
int cmp_char(con... | 128 | memory_bytes | {'s_id': 's687073758', 'p_id': 'p03308', 'u_id': 'u391667116', 'date': '1576893418', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '901'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n#include <stdbool.h>\n#include <stdint.h>\n#include <stdlib.h>\n#include <limits.h>\n#include... |
CDSS_207342 | CDSS | #include<stdio.h>
int main(){
int A[10000];
int n,i,x,j,cnt=0;//cutはカウント用
scanf("%d",&n);
for(i=0;i<10000;i++){
A[i]=0;
}
for(i=0;i<n;i++){
scanf("%d",&x);
A[x]++;
}
for(i=0;i<10000;i++){
for(j=0;j<A[i];j++){
printf("%d",i);
if(cnt<... | 2,052 | memory_bytes | {'s_id': 's134901701', 'p_id': 'p02275', 'u_id': 'u041398010', 'date': '1545922487', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '210', 'memory': '2052', 'code_size': '454'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int A[10000];\n int n,i,x,j,cnt=0;//cutはカウント用\n scanf(\"%d\",&n);\n for(i=0;i<10000;i++){... |
CDSS_664718 | CDSS | #include<stdio.h>
int main(){
char s[11];
scanf("%s",s);
printf("2018%s",&(s[4]));
return 0;} | 128 | memory_bytes | {'s_id': 's137251195', 'p_id': 'p03469', 'u_id': 'u071680334', 'date': '1576507261', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '101'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n char s[11];\n scanf(\"%s\",s);\n printf(\"2018%s\",&(s[4]));\n return 0;}\nPredict its memory foo... |
CDSS_217568 | CDSS | #include<stdio.h>
#define MAX 10000
#define NIL -1
struct Node{
int parent, left, right;
};
struct Node T[MAX];
int n, D[MAX],H[MAX];
void depth( int s, int d ){
if( s == NIL )return;
D[s] = d;
depth( T[s].left, d + 1 );
depth( T[s].right, d + 1 );
}
int height( int s ){
int h1 = 0, h2 = 0;
if( T[s].l... | 624 | memory_bytes | {'s_id': 's569908489', 'p_id': 'p02280', 'u_id': 'u870980810', 'date': '1432964153', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '624', 'code_size': '1717'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#define MAX 10000\n#define NIL -1\n\nstruct Node{\n int parent, left, right;\n};\n\nstruct Node T[MAX];\nint n, D[... |
CDSS_251567 | CDSS | #include<stdio.h>
int main(){
int a,b;
scanf("%d%d",&a,&b);
int s = a*b;
int y = a*2+b*2;
printf("%d %d\n",s,y);
return 0;
} | 596 | memory_bytes | {'s_id': 's361710132', 'p_id': 'p02389', 'u_id': 'u212664316', 'date': '1460686034', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', '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(){\n int a,b;\n scanf(\"%d%d\",&a,&b);\n\n int s = a*b;\n int y = a*2+b*2;\n\n printf(\"%d %d\\n\",s,... |
CDSS_721862 | CDSS | #include <stdio.h>
int A[112345];
int main(void){
int N;
scanf("%d", &N);
int i;
for( i = 0; i < 100001; i++ ){
A[i] = 0;
}
int cnt = 0;
int num;
for( i = 0; i < N; i++ ){
scanf("%d", &num);
A[num]++;
if( A[num] > 1 ) cnt++;
}
int ans;
if( cnt % 2 ) ans = N-cnt-... | 640 | memory_bytes | {'s_id': 's021915901', 'p_id': 'p03816', 'u_id': 'u701131323', 'date': '1485656930', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '12', 'memory': '640', 'code_size': '395'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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[112345];\n\nint main(void){\n \n int N;\n scanf(\"%d\", &N);\n \n int i;\n for( i = 0; i < 100001; i... |
CDSS_403375 | CDSS | #include<stdio.h>
int main()
{
int X,Y;
scanf("%d %d",&X,&Y);
int a,b,flag=0;
for(a=0;a<100;a++){
for(b=0;b<100;b++){
if(a+b==X && 2*a+4*b==Y){flag = 1;}
}
}
if(flag==1){
printf("Yes");
}else{
printf("No");
}
} | 1,732 | memory_bytes | {'s_id': 's702692596', 'p_id': 'p02640', 'u_id': 'u041213561', 'date': '1592183538', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '1732', 'code_size': '248'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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,Y;\n scanf(\"%d %d\",&X,&Y);\n int a,b,flag=0;\n for(a=0;a<100;a++){\n for(b=0;b<100;b... |
CDSS_393038 | CDSS | #include <stdio.h>
int main(){
int i = 0;
int N;
char S[100005][4];
scanf("%d", &N);
for (i = 0; i < N;i++){
scanf("%s", S[i]);
}
int ac = 0, wa = 0, tle = 0, re = 0;
for (i = 0; i < N;i++){
if(S[i][0]=='A'){
ac++;
}else if(S[i][0]=='W'){
... | 2,092 | memory_bytes | {'s_id': 's299655346', 'p_id': 'p02613', 'u_id': 'u897135531', 'date': '1593999214', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '17', 'memory': '2092', 'code_size': '577'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 = 0;\n int N;\n char S[100005][4];\n scanf(\"%d\", &N);\n for (i = 0; i < N;i... |
CDSS_164648 | CDSS |
#include<stdio.h>
int main(){
int n, a, i, s;
int min=1000*1000*1000;
scanf("%d", &n);
for(i=0;i<n;i++){
scanf("%d", &a);
if(i==0) min=a;
if(i==1) s=a-min;
if(a-min>s) s=a-min;
if(min>a) min=a;
}
printf("%d\n", s);
return 0;
}
| 2,096 | memory_bytes | {'s_id': 's379007218', 'p_id': 'p02258', 'u_id': 'u103567926', 'date': '1533819736', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2096', 'code_size': '273'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n\n#include<stdio.h>\n\nint main(){\n int n, a, i, s;\n int min=1000*1000*1000;\n \n scanf(\"%d\", &n);\n for(i=0;i<n;i++){\n s... |
CDSS_252036 | CDSS | #include <stdio.h>
int main(){
int a, b;
scanf("%d %d", &a, &b);
printf("%d %d\n", a*b, 2*a+2*b);
return 0;
} | 596 | memory_bytes | {'s_id': 's919898365', 'p_id': 'p02389', 'u_id': 'u565812827', 'date': '1461245988', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '141'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 int main(){ \n int a, b; \n scanf(\"%d %d\", &a, &b); \n printf(\"%d %d\\n\", a*b, 2*a+2*b); \... |
CDSS_567041 | CDSS | #include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <inttypes.h>
#include <ctype.h>
#include <stdint.h>
#include <string.h>
#include <wchar.h>
#include <math.h>
#define N_MAX (100)
#define P_MAX (100)
#define DP_ARRAY_SIZE (N_MAX * P_MAX / 32 + 1)
#define MIN(a, b) ((a) < (b) ? (a) : (b))
#define MAX... | 128 | memory_bytes | {'s_id': 's573528170', 'p_id': 'p03029', 'u_id': 'u615782628', 'date': '1558918856', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '1611'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdbool.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <inttypes.h>\n#include <ctype.h>\n#include <stdint.h>\n#includ... |
CDSS_644987 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <time.h>
int max(int a, int b){
if(a > b){
return a;
}else{
return b;
}
}
int main(){
int X;
scanf("%d", &X);
int i, j;
int kazu = 0;
int ans = 1;
for(i=2;i<(sqrt(X));i++){
kazu = i;
... | 128 | memory_bytes | {'s_id': 's855974221', 'p_id': 'p03352', 'u_id': 'u652071824', 'date': '1526174783', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '500'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 <time.h>\n\nint max(int a, int b){\n if(a > b){\n retur... |
CDSS_721804 | CDSS | #include <stdio.h>
int main(){
int a[100010]={0};
int n,i,num,ans=0;
scanf("%d",&n);
for(i = 0; i < n; i++){
scanf("%d",&num);
a[num] = 1;
}
for(i = 0; i < 100010; i++){
ans += a[i];
}
if(ans%2 ==0) ans -= 1;
printf("%d\n",ans);
return 0;
} | 640 | memory_bytes | {'s_id': 's783675933', 'p_id': 'p03816', 'u_id': 'u127194462', 'date': '1486157690', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '12', 'memory': '640', 'code_size': '277'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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[100010]={0};\n int n,i,num,ans=0;\n\n scanf(\"%d\",&n);\n\n for(i = 0; i < n; i++){\n ... |
CDSS_283463 | CDSS | #include <stdio.h>
int main()
{
int a[3],tmp;
scanf("%d %d %d",&a[0],&a[1],&a[2]);
if(a[0]>a[1]){
tmp = a[0];
a[0] = a[1];
a[1] = tmp;
}
if(a[0]>a[2]){
tmp = a[0];
a[0] = a[2];
a[2] = tmp;
}
if(a[1]>a[2]){
tmp = a[1];
a[1... | 596 | memory_bytes | {'s_id': 's290905833', 'p_id': 'p02393', 'u_id': 'u226263086', 'date': '1465576050', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '414'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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[3],tmp;\n\n scanf(\"%d %d %d\",&a[0],&a[1],&a[2]);\n \n if(a[0]>a[1]){\n ... |
CDSS_401279 | CDSS | #include <stdio.h>
#define gc getchar_unlocked
#define pc putchar_unlocked
int ini() {
int v = 0;
for (char c = gc(); '0' <= c && c <= '9'; c = gc())
v = v * 10 + (c - '0');
return v;
}
void puti(int v) {
char b[10]; int n = 0;
while (v)b[n++] = '0' + v % 10, v /= 10;
if (!n)b[n++] = '0';
while (n--... | 1,480 | memory_bytes | {'s_id': 's724435692', 'p_id': 'p02633', 'u_id': 'u172873334', 'date': '1592747120', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1480', 'code_size': '465'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 gc getchar_unlocked\n#define pc putchar_unlocked\n\nint ini() {\n int v = 0;\n for (char c = gc(); '0' <... |
CDSS_64873 | CDSS | #include<stdio.h>
main(){double w;while(scanf("%lf",&w)!=EOF){puts(w<=48?"light fly":w<=51?"fly":w<=54?"bantam":w<=57?"feather":w<=60?"light":w<=64?"light welter":w<=69?"welter":w<=75?"light middle":w<=81?"middle":w<=91?"light heavy":"heavy");}return 0;} | 0 | memory_bytes | {'s_id': 's101940717', 'p_id': 'p00048', 'u_id': 'u226079266', 'date': '1320768927', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '254'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nmain(){double w;while(scanf(\"%lf\",&w)!=EOF){puts(w<=48?\"light fly\":w<=51?\"fly\":w<=54?\"bantam\":w<=57?\"feath... |
CDSS_299483 | CDSS | #include "stdio.h"
int main(void)
{
int num[10000],tmp,i;
for(i=0;;i++){
scanf("%d",&num[i]);
if(num[i]==0){
tmp=i;
break;
}
}
for(i=0;i<tmp;i++){
printf("Case %d: %d\n",i+1,num[i] );
}
return 0;
}
| 640 | memory_bytes | {'s_id': 's785379819', 'p_id': 'p02396', 'u_id': 'u822200871', 'date': '1434535922', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '640', 'code_size': '220'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include \"stdio.h\"\nint main(void)\n{\n\tint num[10000],tmp,i;\n\tfor(i=0;;i++){\n\t\tscanf(\"%d\",&num[i]);\n\t\tif(num[i]==0){\n\t... |
CDSS_605144 | CDSS | struct T{int a,b;}A[3333];
comp(a,b)struct T*a,*b;{return a->a-b->a?:a->b-b->b;}
long h,w,dp[3333],mod=1e9+7,fac[2<<17],inv[2<<17];
long p(long a,long b){return b?p(a*a%mod,b/2)*(b%2?a:1)%mod:1;}
long f(long a,long b){return fac[a+b]*inv[a]%mod*inv[b]%mod;}
i;
main()
{
fac[0]=inv[0]=1;
for(int i=1;i<2<<17;i++)fac[i]=... | 4,476 | memory_bytes | {'s_id': 's573046012', 'p_id': 'p03184', 'u_id': 'u657913472', 'date': '1547310767', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '510', 'memory': '4476', 'code_size': '681'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nstruct T{int a,b;}A[3333];\ncomp(a,b)struct T*a,*b;{return a->a-b->a?:a->b-b->b;}\nlong h,w,dp[3333],mod=1e9+7,fac[2<<17],inv[2<<17];\... |
CDSS_624056 | CDSS | /* ex5_3
moka223711 */
#include <stdio.h>
#define ROW 101
#define COL 101
int main(void){
int row, col, i, j, br[ROW]={0}, bc[COL]={0};
char sq[ROW][COL];
scanf("%d %d", &row, &col);
for(i = 0; i < row; i++){
for(j = 0; j < col; j++){
scanf(" %c", &sq[i][j]);
if(sq[i... | 128 | memory_bytes | {'s_id': 's004456525', 'p_id': 'p03273', 'u_id': 'u242706056', 'date': '1591250485', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '667'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n/* ex5_3\n moka223711 */\n\n#include <stdio.h>\n#define ROW 101\n#define COL 101\n\nint main(void){\n int row, col, i, j, br[ROW]... |
CDSS_205532 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
typedef struct{
double x;
double y;
}point;
void kock(int d,point p1,point p2)
{
if(d==0) return;
point s,t,u;
s.x = (2 * p1.x + 1 * p2.x) / 3;
s.y = (2 * p1.y + 1 * p2.y) / 3;
t.x = (1 * p1.x + 2 * p2.x) / 3;
t.y = (1 * p1.y + 2 *... | 2,092 | memory_bytes | {'s_id': 's557466474', 'p_id': 'p02273', 'u_id': 'u111521866', 'date': '1572693420', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2092', 'code_size': '836'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <math.h>\n\ntypedef struct{\n\tdouble x;\n\tdouble y;\n}point;\... |
CDSS_254519 | CDSS | #include<stdio.h>
int main(){
int tate;
int yoko;
scanf("%d%d",&tate,&yoko);
printf("%d %d\n",tate*yoko,(tate+yoko)*2);
return 0;
} | 596 | memory_bytes | {'s_id': 's363558589', 'p_id': 'p02389', 'u_id': 'u067648637', 'date': '1495500439', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '141'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 tate;\n int yoko;\n scanf(\"%d%d\",&tate,&yoko);\n printf(\"%d %d\\n\",tate*yoko,(tate+yoko)*... |
CDSS_722002 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<stdint.h>
#include<inttypes.h>
#include<string.h>
typedef int32_t i32;
typedef int64_t i64;
static void print_int(i64 n){if(n<0){putchar('-');n=-n;}if(n==0){putchar('0');return;}int s[20],len=0;while(n>0){s[len++]=n%10+'0';n/=10;}while(len>0){putchar(s[--len]);}}
static i... | 3,968 | memory_bytes | {'s_id': 's455394630', 'p_id': 'p03819', 'u_id': 'u425248533', 'date': '1557965840', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '65', 'memory': '3968', 'code_size': '1606'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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<stdint.h>\n#include<inttypes.h>\n#include<string.h>\n\ntypedef int32_t i32;\ntypedef i... |
CDSS_302388 | CDSS | #include <stdio.h>
int main(){
int i=0,x=0,y=0,k;
int data1[3000];
int data2[3000];
int data3[3000];
int data4[3000];
while(1){
x++;
y++;
scanf("%d %d",&data1[x],&data2[y]);
if(data1[x]>=data2[y]){
data3[... | 1,756 | memory_bytes | {'s_id': 's387794860', 'p_id': 'p02397', 'u_id': 'u573626548', 'date': '1511680767', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1756', 'code_size': '667'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 int i=0,x=0,y=0,k;\n int data1[3000];\n int data2[3000];\n int data3... |
CDSS_167309 | CDSS | #include <stdio.h>
#include <stdlib.h>
int bubbleSort(int* A, int N);
int main(void){
int n;
scanf("%d",&n);
int *num;
num = (int *)malloc(sizeof(int)*n);
if(num == NULL){
printf("failure\n");
exit(1);
}
//int num[100];
int i,chnum;
for(i=0;i<n;i++){
scanf("%d",&num[i]);
}
chnum=bubbleSort(num,... | 1,832 | memory_bytes | {'s_id': 's634863111', 'p_id': 'p02259', 'u_id': 'u980846595', 'date': '1512368389', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1832', 'code_size': '786'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 bubbleSort(int* A, int N);\n\nint main(void){\n\tint n;\n\tscanf(\"%d\",&n);\n\t\n\tint... |
CDSS_227496 | CDSS | #include<stdio.h>
#define MAX 1000000
int parent(int i){ return i/2; }
int left(int i){ return 2*i; }
int right(int i){ return 2*i+1; }
int main(){
int H, i, A[MAX+1];
scanf("%d",&H);
for ( i = 1; i <= H; i++ )scanf("%d",&A[i]);
for ( i = 1; i <= H; i++ ){
printf("node %d: key = %d, ",i,A[i]);
if(p... | 2,044 | memory_bytes | {'s_id': 's186557783', 'p_id': 'p02287', 'u_id': 'u984715534', 'date': '1579160934', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2044', 'code_size': '535'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 1000000\n\nint parent(int i){ return i/2; }\nint left(int i){ return 2*i; }\nint right(int i){ return... |
CDSS_382938 | CDSS | #include <stdio.h>
#include <stdlib.h>
#define N (3*100000)
int main() {
int H, W, M, h[N], w[N], rsum[N] = {0}, csum[N] = {0}, rsummax = 0, csummax = 0, ncsummaxarg = 0, nrsummaxarg = 0, nbomb = 0;
scanf("%d%d%d", &H, &W, &M);
for (int i = 0; i < M; i++) {
scanf("%d%d", &h[i], &w[i]);
h[i]--;
w[i]-... | 6,844 | memory_bytes | {'s_id': 's270348654', 'p_id': 'p02580', 'u_id': 'u014272610', 'date': '1598334166', 'language': 'C', 'original_language': 'C (Clang 10.0.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '71', 'memory': '6844', 'code_size': '943'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\n#define N (3*100000)\n\nint main() {\n int H, W, M, h[N], w[N], rsum[N] = {0}, csum[N] = {... |
CDSS_530100 | CDSS | #include <stdio.h>
int main(){
int a,b;
scanf("%d",&a);
if(a>=1 && a<=9){
b=a*a*a;
printf("%d",b);
}
} | 128 | memory_bytes | {'s_id': 's282846789', 'p_id': 'p02915', 'u_id': 'u388117813', 'date': '1575596736', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '118'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(){\n int a,b;\n scanf(\"%d\",&a);\n if(a>=1 && a<=9){\n b=a*a*a;\n printf(\"%d\",b);\n }\n}\nPr... |
CDSS_260012 | CDSS | #include <stdio.h>
int main(int argc, char **argv)
{
int s,h,m;
scanf("%d",&s);
h = s / 3600;
s = s % 3600;
m = s / 60;
s = s % 60;
printf("%d:%d:%d\n",h,m,s);
return 0;
} | 592 | memory_bytes | {'s_id': 's727015818', 'p_id': 'p02390', 'u_id': 'u258004539', 'date': '1447374758', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', 'code_size': '180'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(int argc, char **argv)\n{\n\tint s,h,m;\n\tscanf(\"%d\",&s);\n\th = s / 3600;\n\ts = s % 3600;\n\tm = s... |
CDSS_234608 | CDSS | #include <stdio.h>
#include <math.h>
int main(){
double a,b,c;
double PI=acos(-1);
scanf("%lf %lf %lf",&a,&b,&c);
c/=180.0;
c*=PI;
printf("%lf\n%lf\n%lf\n",a*b*0.5*sin(c),a+b+sqrt(a*a+b*b-2.0*a*b*cos(c)),a*b*sin(c)/a);
return 0;
}
| 2,088 | memory_bytes | {'s_id': 's203613571', 'p_id': 'p02380', 'u_id': 'u417937981', 'date': '1545660319', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2088', '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 <math.h>\nint main(){\n\tdouble a,b,c;\n\tdouble PI=acos(-1);\n\tscanf(\"%lf %lf %lf\",&a,&b,&c);\n\tc/=1... |
CDSS_344064 | CDSS | #include<stdio.h>
int main(void)
{
int a, d, i;
int b[10000];
scanf("%d", &a);
for (i = 0; i < a; i++)
{
scanf("%d", &b[i]);
}
d = a - 1;
for (i = d; i >= 0; i--)
{
if (i > 0)
{
printf("%d ", b[i]);
}
else
{
printf("%d", b[i]);
}
}
printf("\n");
return 0;
}
| 2,112 | memory_bytes | {'s_id': 's928137676', 'p_id': 'p02407', 'u_id': 'u969327169', 'date': '1563094024', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '290'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\n\tint a, d, i;\n\tint b[10000];\n\tscanf(\"%d\", &a);\n\tfor (i = 0; i < a; i++)\n\t{\n\t\tscanf... |
CDSS_364952 | CDSS | #include <stdio.h>
int main(){
char x[1001];
int i, temp, now;
for(i=0;i<1001;i++)
x[i]='\0';
while(1){
scanf("%s",x);
if(x[0]=='0')return 0;
temp=now=0;
while(x[now]!='\0'){
temp+=x[now]-'0';
now++;
}
for(i=0;i<now;i++)
... | 2,104 | memory_bytes | {'s_id': 's695058798', 'p_id': 'p02416', 'u_id': 'u929447360', 'date': '1533210009', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '377'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 x[1001];\n int i, temp, now;\n for(i=0;i<1001;i++)\n x[i]='\\0';\n while(1){... |
CDSS_60734 | CDSS | #include<stdio.h>
int main(void)
{
int ball[10];
int i,j,n,N,b,c,flag;
scanf("%d",&N);
for(n=0;n<N;n++){
flag=0;
b=11;
c=11;
for(i=0;i<10;i++){
scanf("%d",&ball[i]);
}
for(i=9;i>=0;i--){
if(b>ball[i]){
b=ball[i]... | 580 | memory_bytes | {'s_id': 's273651335', 'p_id': 'p00033', 'u_id': 'u221679506', 'date': '1434647488', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', 'code_size': '582'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void)\n{\n int ball[10];\n int i,j,n,N,b,c,flag;\n\n scanf(\"%d\",&N);\n for(n=0;n<N;n++){\n... |
CDSS_152053 | CDSS | /*
* Author: Khan
* Date: 10th October, 2017
*/
#include <stdio.h>
int gcd(int a, int b)
{
if (a % b == 0)
{
return b;
}
return gcd(b, a % b);
}
int main(int argc, char const *argv[])
{
//freopen("sample.txt", "r", stdin);
int a, b;
scanf("%d %d", &a, &b);
printf("%d\n", gcd... | 1,776 | memory_bytes | {'s_id': 's253771305', 'p_id': 'p02256', 'u_id': 'u701472721', 'date': '1507639792', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1776', 'code_size': '344'} | [
{
"content": "Your task is to predict the memory 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 * Author: Khan\n * Date: 10th October, 2017\n */\n#include <stdio.h>\n\nint gcd(int a, int b)\n{\n if (a % b == 0)\n {\n ... |
CDSS_57208 | CDSS | #include <stdio.h>
#include <math.h>
int main(void) {
double w;
double t, y;
while(scanf("%lf\n", &w)==1) {
t = w / 9.8;
y = 4.9 * t * t;
printf("%.0lf\n", ceil(y / 5) + 1);
}
return 0;
} | 656 | memory_bytes | {'s_id': 's832809246', 'p_id': 'p00024', 'u_id': 'u703161091', 'date': '1400159086', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '656', 'code_size': '202'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n\nint main(void) {\n\tdouble w;\n\tdouble t, y;\n\n\twhile(scanf(\"%lf\\n\", &w)==1) {\n\t\tt =... |
CDSS_249665 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(void){
int a, b;
scanf("%d %d", &a, &b);
printf("%d %d\n", a * b, 2 * (a + b));
return 0;
}
| 2,060 | memory_bytes | {'s_id': 's940325210', 'p_id': 'p02389', 'u_id': 'u452577928', 'date': '1540466778', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2060', 'code_size': '177'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\nint main(void){\n\n int a, b;\n\n scanf(\"%d %d\", &a, &b);\n\n pri... |
CDSS_502277 | CDSS | #include<stdio.h>
#include<string.h>
int main() {
long K;
long X;
scanf("%ld %ld", &K, &X);
if (500 * K >= X) {
printf("Yes");
}
else {
printf("No");
}
return 0;
}
| 128 | memory_bytes | {'s_id': 's754292540', 'p_id': 'p02811', 'u_id': 'u225510395', 'date': '1578708449', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '183'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\t\n\tlong K;\n\tlong X;\n\n\tscanf(\"%ld %ld\", &K, &X);\n\n\tif (500 * K >= X... |
CDSS_264396 | CDSS | #include <stdio.h>
int main() {
int HOUR = 60 * 60;
int MINUTE = 60;
int s, hour, minute, second;;
scanf("%d", &s);
hour = s / HOUR;
s -= hour * HOUR;
minute = s / MINUTE;
s -= minute * MINUTE;
second = s;
printf("%d:%d:%d\n", hour, minute, second);
return 0;
}
| 2,144 | memory_bytes | {'s_id': 's423229111', 'p_id': 'p02390', 'u_id': 'u445993369', 'date': '1574776431', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2144', 'code_size': '311'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 HOUR = 60 * 60;\n int MINUTE = 60;\n\n int s, hour, minute, second;;\n scanf(\"%d... |
CDSS_484545 | CDSS | #include<stdio.h>
int main()
{
int a,b;
scanf("%d %d",&a,&b);
if(a>=10) printf("%d\n",b);
else
printf("%d",b+100*(10-a));
return 0;
} | 128 | memory_bytes | {'s_id': 's715829426', 'p_id': 'p02765', 'u_id': 'u959492259', 'date': '1582426788', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '157'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n int a,b;\n scanf(\"%d %d\",&a,&b);\n if(a>=10) printf(\"%d\\n\",b);\n else\n printf(... |
CDSS_695727 | CDSS | #include<stdio.h>
int main(){
int A,B;
scanf("%d %d",&A,&B);
if((A%3==0)||(B%3==0)||((A+B)%3==0)){
printf("Possible");
}
else{
printf("Impossible");
}
return 0;
} | 128 | memory_bytes | {'s_id': 's522173246', 'p_id': 'p03657', 'u_id': 'u409361714', 'date': '1500169520', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '128', '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:\n#include<stdio.h>\nint main(){\n int A,B;\n scanf(\"%d %d\",&A,&B);\n if((A%3==0)||(B%3==0)||((A+B)%3==0)){\n printf(\"Possible\... |
CDSS_691734 | CDSS | #include<stdio.h>
int main(){
int a,b;
scanf("%d %d",&a,&b);
printf("%d\n",(a-1)*(b-1));
} | 128 | memory_bytes | {'s_id': 's924476433', 'p_id': 'p03635', 'u_id': 'u751806526', 'date': '1502067986', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '98'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n \nint main(){\n \nint a,b;\nscanf(\"%d %d\",&a,&b);\n\nprintf(\"%d\\n\",(a-1)*(b-1)); \n \n}\nPredict its memory f... |
CDSS_576648 | CDSS | #include <stdio.h>
int gcd(int x, int y)
{
if (y == 0) return x;
return gcd(y, x % y);
}
int main()
{
int n, a[100010];
scanf("%d", &n);
for (int i = 0; i < n; i++)
{
scanf("%d", &a[i]);
}
int left[100010], right[100010];
left[0] ... | 1,280 | memory_bytes | {'s_id': 's883495864', 'p_id': 'p03061', 'u_id': 'u475007080', 'date': '1556418684', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '16', 'memory': '1280', 'code_size': '938'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 gcd(int x, int y)\n{\n if (y == 0) return x;\n return gcd(y, x % y);\n}\n\nint main()\n{\n ... |
CDSS_386269 | CDSS | #include<stdio.h>
#include<math.h>
int main()
{
long long int n,d;
scanf("%lld%lld",&n,&d);
long long int x,y,ans=0;
while(n--)
{
scanf("%lld%lld",&x,&y);
long long int m;
m=(x*x)+(y*y);
double n;
n=(double) (sqrt(m));
... | 2,152 | memory_bytes | {'s_id': 's616682100', 'p_id': 'p02595', 'u_id': 'u018679195', 'date': '1597976045', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '51', 'memory': '2152', '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>\n#include<math.h>\nint main()\n{\n long long int n,d;\n scanf(\"%lld%lld\",&n,&d);\n long long int x,... |
CDSS_369896 | CDSS | #include<stdio.h>
#include<ctype.h>
#include<stdlib.h>
int main(){
int i,sum=0,j;
char W[11];
char T[1001];
scanf("%s",&W);
for(i=0;;i++){
scanf("%s",&T);
if(strcmp(T,"END_OF_TEXT")==0)break;
for(j=0;j<strlen(W);j++){
T[j]=tolower(T[j]);
... | 2,096 | memory_bytes | {'s_id': 's139353290', 'p_id': 'p02419', 'u_id': 'u542576355', 'date': '1536371301', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2096', 'code_size': '426'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\n int main(){\n int i,sum=0,j;\n char W[11];\n char T[1001];\n ... |
CDSS_421884 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<stdint.h>
#include<stdbool.h>
#include<tgmath.h>
#include<sys/queue.h>
#include<time.h>
#define ll long long
#define min(a, b) ((a) > (b) ? (b) : (a))
#define max(a, b) ((a) > (b) ? (a) : (b))
#define miin(a, b, c) min((a), min((b), (c)))
#define maax(a, ... | 16,032 | memory_bytes | {'s_id': 's874207168', 'p_id': 'p02686', 'u_id': 'u244203620', 'date': '1589338801', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '128', 'memory': '16032', 'code_size': '1689'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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<stdint.h>\n#include<stdbool.h>\n#include<tgmath.h>\n#include<sys/q... |
CDSS_89410 | CDSS | #include <stdio.h>
int signal[10][7] = {
{0, 1, 1, 1, 1, 1, 1},
{0, 0, 0, 0, 1, 1, 0},
{1, 0, 1, 1, 0, 1, 1},
{1, 0, 0, 1, 1, 1, 1},
{1, 1, 0, 0, 1, 1, 0},
{1, 1, 0, 1, 1, 0, 1},
{1, 1, 1, 1, 1, 0, 1},
{0, 1, 0, 0, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1},
{1, 1, 0, 1, 1, 1, 1},
};
int main(void)
{
int n;
while ... | 612 | memory_bytes | {'s_id': 's662795775', 'p_id': 'p00228', 'u_id': 'u376883550', 'date': '1408711225', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '612', 'code_size': '673'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 signal[10][7] = {\n\t{0, 1, 1, 1, 1, 1, 1},\n\t{0, 0, 0, 0, 1, 1, 0},\n\t{1, 0, 1, 1, 0, 1, 1},\n\t{1, 0, 0,... |
CDSS_585357 | CDSS | #include <stdio.h>
#include <stdlib.h>
typedef char SINT8;
typedef unsigned char UINT8;
typedef short SINT16;
typedef unsigned short UINT16;
typedef int SINT32;
typedef unsigned int UINT32;
typedef long long SINT64;
typedef unsigned long long UI... | 384 | memory_bytes | {'s_id': 's615165705', 'p_id': 'p03080', 'u_id': 'u824905100', 'date': '1553976415', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '384', 'code_size': '790'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\ntypedef char SINT8;\ntypedef unsigned char UINT8;\ntypedef short ... |
CDSS_685424 | 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': 's698778064', 'p_id': 'p03606', 'u_id': 'u004279520', 'date': '1587641488', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '2137'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.