identifier string | space string | input string | target float64 | metric_type string | metadata string | messages list |
|---|---|---|---|---|---|---|
CDSS_173337 | CDSS | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
typedef struct card{
char card_type;
int card_number;
} card_t;
void swap_operation( card_t *swap_card, int number1, int number2 )
{
card_t tmp_card;
tmp_card = swap_card[number1];
swap_card[number1] = swap_card[number2];
swap_card[number2] = tmp_card;... | 604 | memory_bytes | {'s_id': 's434086222', 'p_id': 'p02261', 'u_id': 'u952759940', 'date': '1468229568', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '604', 'code_size': '2152'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n\ntypedef struct card{\n\tchar card_type;\n\tint card_number;\n} card_t;... |
CDSS_304921 | CDSS | #include <stdio.h>
int main(void){
int a,b,c,d=0;
scanf("%d",&a);
scanf("%d",&b);
scanf("%d",&c);
while(a<=b){
if(c%a==0){
d++;
}
a++;
}
printf("%d\n",d);
return 0;
} | 596 | memory_bytes | {'s_id': 's589526589', 'p_id': 'p02398', 'u_id': 'u580449007', 'date': '1462868016', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', '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\nint main(void){\nint a,b,c,d=0;\n\n\nscanf(\"%d\",&a);\nscanf(\"%d\",&b);\nscanf(\"%d\",&c);\n\nwhile(a<=b){\nif... |
CDSS_585254 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <time.h>
#define _CRT_SECURE_NO_WARNINGS
#define TLong long long
int main(int argc, char const *argv[]){
int n,red = 0,blue = 0;
char str[107];
scanf("%d",&n);
scanf(" %s",str);
for (int i = 0; i < n; ++i)
{
if(str[i] == 'R... | 128 | memory_bytes | {'s_id': 's950867614', 'p_id': 'p03080', 'u_id': 'u185464141', 'date': '1553979238', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '404'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <math.h>\n#include <time.h>\n\n#define _CRT_SECURE_NO_WARNINGS\... |
CDSS_102494 | CDSS | #include <stdio.h>
int main(){
int ah, am, as;
int Ah, Am, As;
int bh, bm, bs;
int Bh, Bm, Bs;
int ch, cm, cs;
int Ch, Cm, Cs;
int AH, AM, AS;
int BH, BM, BS;
int CH, CM, CS;
scanf("%d%d%d%d%d%d", &ah, &am, &as, &Ah, &Am, &As);
scanf("%d%d%d%d%d%d", &bh, &bm, &bs, &Bh, &Bm, &Bs);
scanf("%d%d%d%d%d%d", &ch, ... | 596 | memory_bytes | {'s_id': 's315156294', 'p_id': 'p00455', 'u_id': 'u561607102', 'date': '1368887804', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '904'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(){\n\tint ah, am, as;\n\tint Ah, Am, As;\n\tint bh, bm, bs;\n\tint Bh, Bm, Bs;\n\tint ch, cm, cs;\n\tint ... |
CDSS_95795 | CDSS | #include <stdio.h>
int main(void)
{
int f;
scanf("%d",&f);
printf("%d\n",(f-30)/2);
return 0;
}
| 2,124 | memory_bytes | {'s_id': 's182033153', 'p_id': 'p00375', 'u_id': 'u280650954', 'date': '1581475550', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2124', 'code_size': '101'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n\tint f;\n\tscanf(\"%d\",&f);\n\tprintf(\"%d\\n\",(f-30)/2);\n\treturn 0;\n}\n\nPredict its m... |
CDSS_388390 | CDSS | #include<stdio.h>
int main(){
int N, K;
scanf("%d %d", &N, &K);
int A[N];
int i;
int x;
for(i=0; i<N; i++){
scanf("%d", &A[i]);
}
x = N - K;
for(int i=0; i<x; i++){
if(A[i]<A[i+K]){
puts("Yes");
}
else{
puts("No");
}
}
return 0;
}
| 2,844 | memory_bytes | {'s_id': 's575749805', 'p_id': 'p02602', 'u_id': 'u018679195', 'date': '1601429017', 'language': 'C', 'original_language': 'C (Clang 10.0.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '42', 'memory': '2844', 'code_size': '265'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n \nint main(){\n\tint N, K;\n\t\n\tscanf(\"%d %d\", &N, &K);\n\tint A[N];\n\t\n\tint i;\n\tint x;\n\tfor(i=0; i<N; ... |
CDSS_118442 | CDSS | #include<stdio.h>
#include<math.h>
#define inf 1e10
#define min(x,y) x<y?x:y
double cal_time(int r, int h, int x){
return h + r - sqrt(r*r-x*x);
}
int main(void){
int r, n, left, right, h;
while(1){
int x[40]={0};
scanf("%d%d",&r,&n);
if(r==0 && n==0) break;
for(int i=0; i<n;... | 2,072 | memory_bytes | {'s_id': 's035665333', 'p_id': 'p00775', 'u_id': 'u952081851', 'date': '1525180004', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2072', 'code_size': '711'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<math.h>\n#define inf 1e10\n#define min(x,y) x<y?x:y\ndouble cal_time(int r, int h, int x){\n return h +... |
CDSS_334477 | CDSS | #include <stdio.h>
int main(void){
int H, W;
while (1){
scanf ("%d %d", &H, &W);
if (H == 0 && W == 0)
break;
for (int i = 0; i < H; i++){
for (int j = 0; j < W; j++){
if (i == 0 || i == H - 1 || j == 0 || j == W - 1){
printf("... | 2,084 | memory_bytes | {'s_id': 's132669122', 'p_id': 'p02404', 'u_id': 'u180225791', 'date': '1526876735', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2084', 'code_size': '504'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n int H, W;\n while (1){\n scanf (\"%d %d\", &H, &W);\n if (H == 0 && W == 0... |
CDSS_119706 | CDSS | // AOJ 1389 Digits Are Not Just Characters
// 2019.2.28 bal4u
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#define BASE 1000000000 // >= 10^9
char s0_buf[12];
int s0[12], len;
char *bp;
// 文字列から数字部分を取り出し、バイナリに変換。文字列はグローバル変数bpで指す
int s2n()
{
int ans = 0;
while (isdigit(*bp)) {
an... | 2,064 | memory_bytes | {'s_id': 's210509398', 'p_id': 'p00968', 'u_id': 'u847467233', 'date': '1551305233', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2064', 'code_size': '1090'} | [
{
"content": "Your task is to predict the memory 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 1389 Digits Are Not Just Characters\n// 2019.2.28 bal4u\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#inclu... |
CDSS_191498 | CDSS | #include<stdio.h>
int numS,S[100000];
int bsearch(int T);
int main(void)
{
int i;
int numT,T;
int count=0;
scanf("%d",&numS);
for(i=0;i<numS;i++)
{
scanf("%d",&S[i]);
}
scanf("%d",&numT);
for(i=0;i<numT;i++)
{
scanf("%d",&T);
if(bsearch(T)==1)
{
count++;
... | 2,188 | memory_bytes | {'s_id': 's016085499', 'p_id': 'p02268', 'u_id': 'u630035341', 'date': '1545326553', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2188', 'code_size': '583'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 numS,S[100000];\n\nint bsearch(int T);\n\nint main(void)\n{\n int i;\n int numT,T;\n int count=0;\n\n sca... |
CDSS_570593 | CDSS | #include<stdio.h>
#include<string.h>
int main(){
int N,K;
char s[55];
scanf("%d %d",&N,&K);
scanf("%s",s);
K-=1;
s[K]+=32;
printf("%s\n",s);
}
| 128 | memory_bytes | {'s_id': 's903615616', 'p_id': 'p03041', 'u_id': 'u619535866', 'date': '1559845518', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '154'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\n\nint main(){\n\tint N,K;\n\tchar s[55];\n\tscanf(\"%d %d\",&N,&K);\n\tscanf(\"%s\",s);\n K-=1;... |
CDSS_344841 | CDSS | #include <stdio.h>
int main(){
int i,j,n;
char mark,c;
int num;
scanf("%d",&n);
int cards[4][13];
for(i=0;i<4;i++){
for(j=0;j<13;j++){
cards[i][j]=0;
}
}
for(i=0; i<n; i++){
scanf("%c",&c);
scanf("%c %d",&mark,&num);
if(mark=='S') j=0;
else if(mark=='H') j=1;
else... | 596 | memory_bytes | {'s_id': 's810266245', 'p_id': 'p02408', 'u_id': 'u215503617', 'date': '1432801783', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '544'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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,n;\n char mark,c;\n int num;\n\n scanf(\"%d\",&n);\n\n int cards[4][13];\n\n for(i=0... |
CDSS_335572 | CDSS | #include<stdio.h>
int main(){
int H[300],W[300],i=0,j,k;
while(1){
scanf("%d%d",&H[i],&W[i]);
if(H[i]==0&&W[i]==0){
break;
}
i++;
}
i=0;
while(H[i]!=0&&W[i]!=0||H[i]!=0&&W[i]==0||H[i]==0&&W[i]!=0){
for(j=0;j<H[i];j++){
for(k=0... | 572 | memory_bytes | {'s_id': 's685401787', 'p_id': 'p02405', 'u_id': 'u190037677', 'date': '1437372080', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '572', 'code_size': '601'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int H[300],W[300],i=0,j,k;\n\n while(1){\n scanf(\"%d%d\",&H[i],&W[i]);\n ... |
CDSS_520511 | CDSS | long long n, k, i, a[200000], f[200000], top, bottom, med;
int cmp (const void *a, const void *b) {
return *((long long*)a) - *((long long*)b);
}
int rcmp (const void *a, const void *b) {
return - (*((long long*)a) - *((long long*)b));
}
int test (long long targetTime) {
long long sum = 0, i, tmp;
fo... | 4,860 | memory_bytes | {'s_id': 's597416204', 'p_id': 'p02883', 'u_id': 'u013469585', 'date': '1576822256', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '172', 'memory': '4860', 'code_size': '995'} | [
{
"content": "Your task is to predict the 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, k, i, a[200000], f[200000], top, bottom, med;\n\nint cmp (const void *a, const void *b) {\n return *((long long*)a) - ... |
CDSS_559852 | CDSS | #include <stdio.h>
#include <stdlib.h>
int main(void)
{
int n, x;
scanf("%d %d",&n,&x);
int *l;
l = (int*)malloc(sizeof(int)*(n+2));
int i =0;
while (i < n)
{
scanf("%d",&(l[i]));
i++;
}
i = 0;
int *d;
int sum = 1;
d = (int*)malloc(sizeof(int)*(n+3));
d[0] = 0;
d[1] = 0;
i = 2;
while (i < n+2)
{
... | 128 | memory_bytes | {'s_id': 's979303343', 'p_id': 'p03000', 'u_id': 'u954382202', 'date': '1590160375', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '421'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\nint main(void)\n{\n\tint n, x;\n\tscanf(\"%d %d\",&n,&x);\n\tint *l;\n\tl = (int*)malloc(si... |
CDSS_633147 | CDSS | #include<stdio.h>
int main(){
int N;
scanf("%d",&N);
if(N % 2 == 0){
N /= 2;
}
printf("%d\n",N * 2);
return 0;
} | 128 | memory_bytes | {'s_id': 's077917465', 'p_id': 'p03307', 'u_id': 'u008829811', 'date': '1550455529', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '128'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int N;\n scanf(\"%d\",&N);\n if(N % 2 == 0){\n N /= 2;\n }\n printf(\"%d\\n\",N * 2);\n retu... |
CDSS_487927 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.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(const void *a, const void *b) {
return *(char*)a -... | 128 | memory_bytes | {'s_id': 's714098852', 'p_id': 'p02771', 'u_id': 'u391667116', 'date': '1581883400', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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 <stdlib.h>\n#include <string.h>\n#include <math.h>\nint acs(const void *a, const void *b) { \n return *(... |
CDSS_586274 | CDSS | #include<stdio.h>
int main(){
char b;
scanf("%c", &b);
if(b=='A'){
printf("T\n");
}else if(b=='C'){
printf("G\n");
}else if(b=='G'){
printf("C\n");
}else if(b=='T'){
printf("A\n");
}
return 0;
}
| 256 | memory_bytes | {'s_id': 's174086236', 'p_id': 'p03085', 'u_id': 'u973418292', 'date': '1553466271', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '256', 'code_size': '229'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 b;\n\n scanf(\"%c\", &b);\n if(b=='A'){\n printf(\"T\\n\");\n }else if(b=='C'){\n pr... |
CDSS_435158 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
int main(void){
int n;
scanf("%d",&n);
char s[n][11];
for(int i=0;i<n;i++){
scanf("%s",s[i]);
}
qsort(s,n,sizeof(char)*11,strcmp);
int c=1;
for(int i=0;i<n-1;i++){
if(strcmp(s[i],s[i+1])!=0)c++;
}
printf("%d",c);
return 0;
} | 5,736 | memory_bytes | {'s_id': 's002733301', 'p_id': 'p02701', 'u_id': 'u073336549', 'date': '1590615000', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '66', 'memory': '5736', 'code_size': '304'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#include<string.h>\nint main(void){\n int n;\n scanf(\"%d\",&n);\n char s[n][11];\n for(int... |
CDSS_25724 | CDSS | #include<stdio.h>
#include<math.h>
int a;
int b;
double c;
int digits;
int main(){
while(scanf("%d %d", &a, &b)!=EOF) {
c = log10 (a + b);
if(ceil(c) == c){
digits = c+1;
printf("%d\n",digits);
}
else{
digits = ceil(c);
printf("%d\n",digits);
}
}
return 0;
}
| 2,124 | memory_bytes | {'s_id': 's710496197', 'p_id': 'p00002', 'u_id': 'u011621222', 'date': '1556562020', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2124', 'code_size': '279'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 a;\nint b;\ndouble c;\nint digits;\n\nint main(){\n\t\n\twhile(scanf(\"%d %d\", &a, &b)!=EO... |
CDSS_443631 | CDSS | #include<stdio.h>
#include<math.h>
int main()
{
long long i,n,m,sum,task[10010],result;
scanf("%lld %lld",&n,&m);
for(i=0; i<m; i++)
{
scanf("%lld",&task[i]);
}
sum=0;
for(i=0; i<m; i++)
{
sum=sum+task[i];
}
result=n-sum;
if(sum>n)
{
printf("-1... | 1,812 | memory_bytes | {'s_id': 's374353539', 'p_id': 'p02706', 'u_id': 'u714871303', 'date': '1587346088', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1812', 'code_size': '402'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 i,n,m,sum,task[10010],result;\n\n scanf(\"%lld %lld\",&n,&m);\n\n... |
CDSS_194882 | CDSS | #include <stdio.h>
int main(){
int S[100000], T[50000], n, q, i, j, left, right, mid, count = 0;
scanf("%d", &n);
for(i = 0; i < n; i++){
scanf("%d", &S[i]);
}
scanf("%d", &q);
for(i = 0; i < q; i++){
scanf("%d", &T[i]);
}
for(i = 0; i < q; i++){
left = 0;
right = n;
while(left... | 2,316 | memory_bytes | {'s_id': 's148060191', 'p_id': 'p02268', 'u_id': 'u749282054', 'date': '1545021582', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2316', 'code_size': '547'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n\n int S[100000], T[50000], n, q, i, j, left, right, mid, count = 0;\n\n scanf(\"%d\", &n);\n fo... |
CDSS_695957 | CDSS | #include <stdio.h>
#include <stdlib.h>
int dsc(const void *a, const void *b){
return *(int *)b - *(int *)a;
}
int main(){
int N, K, l[50], i, sum=0;
scanf("%d %d", &N, &K);
for(i=0; i<N; i++){
scanf("%d", &l[i]);
}
qsort(l, N, sizeof(int), dsc);
for(i=0; i<K; i++){
sum ... | 128 | memory_bytes | {'s_id': 's477985198', 'p_id': 'p03658', 'u_id': 'u097683098', 'date': '1562247641', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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>\n#include <stdlib.h>\n\nint dsc(const void *a, const void *b){\n return *(int *)b - *(int *)a;\n}\n\nint main(){... |
CDSS_560404 | CDSS | #include<stdio.h>
int main()
{
int N,X;
int L[100];
int S=0;
int num=0;
scanf("%d %d",&N,&X);
for(int i=0;i<N;i++)scanf("%d",&L[i]);
if(X==0)
{
printf("%d\n",1);
}else
{
for(int i=0;i<=1000;i++)
{
S += L[i];
if(S>X)printf("%d\n",i+1);
if(S>X)break;
if(S==X)printf("%d\n",i+2);
if(S==X)b... | 128 | memory_bytes | {'s_id': 's212675088', 'p_id': 'p03000', 'u_id': 'u364278719', 'date': '1560717258', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '346'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n int N,X;\n int L[100];\n\tint S=0;\n\tint num=0;\n scanf(\"%d %d\",&N,&X);\n\tfor(int i=0;i<N;i+... |
CDSS_397504 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
int main(void)
{
long long N, M, K, A, B = 0, i = 0, j = 0, suma = 0, max = 0, read = 0, readmax = 0;
long long deskA[200001], deskB[200001];
scanf("%lld %lld %lld", &N, &M, &K);
for (i = 0; i < N; i++)
{
scanf("%lld", &deskA[i... | 4,796 | memory_bytes | {'s_id': 's037881105', 'p_id': 'p02623', 'u_id': 'u531531196', 'date': '1593316592', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '58', 'memory': '4796', 'code_size': '1049'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 <ctype.h>\n#include <string.h>\n\nint main(void)\n{\n long long N, M, K, A, B = 0, ... |
CDSS_558613 | CDSS | #include<stdio.h>
#include<stdlib.h>
typedef struct {
int a;
int b;
}work;
int cmp(const void* p, const void* q) {
return ((work*)p)->b - ((work*)q)->b;
}
int main(void) {
int N;
scanf("%d", &N);
int i;
work data[N];
for (i = 0;i < N;i++) {
scanf("%d%d", &data[i].a, &data[i].b);
}
int n = sizeof data /... | 3,324 | memory_bytes | {'s_id': 's509006093', 'p_id': 'p02996', 'u_id': 'u177053419', 'date': '1561234704', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '64', 'memory': '3324', 'code_size': '554'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n\ntypedef struct {\n\tint a;\n\tint b;\n}work;\n\nint cmp(const void* p, const void* q) {\n\tre... |
CDSS_123018 | CDSS | /*
AizuOnline A2149
Title Luck Manipulator
*/
#include <stdio.h>
int N,A,B,C,X;
int Y[100];
//
main()
{
int i,cnt,hc,v,ret,yp;
while(scanf("%d %d %d %d %d",&N,&A,&B,&C,&X) && (N||A||B||C||X))
{
for(i=0;i<N;i++)
scanf("%d",&Y[i]);
v=X;hc=... | 600 | memory_bytes | {'s_id': 's141142180', 'p_id': 'p01267', 'u_id': 'u708993917', 'date': '1376702264', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '600', 'code_size': '948'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n/*\nAizuOnline A2149\nTitle Luck Manipulator\n*/\n#include <stdio.h>\nint N,A,B,C,X;\nint Y[100];\n//\n\nmain()\n{\n int i,cnt,... |
CDSS_102729 | CDSS | #include<stdio.h>
int main(){
int dataarray[20];
int i,j,answer1,answer2,temp;
for(i=0;i<20;i++){
scanf("%d",&dataarray[i]);
}
for(i=0;i<10;i++){
for(j=i;j<10;j++){
if(dataarray[j]>dataarray[i]){
temp=dataarray[j];
dataarray[j]=dataarray[i];
dataarray[i]=temp;
}
if(dataarray[j+10]>dataarray[i+10]){
temp=dataarray[j+10]... | 596 | memory_bytes | {'s_id': 's867863187', 'p_id': 'p00456', 'u_id': 'u870370075', 'date': '1390045607', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '528'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\nint dataarray[20];\nint i,j,answer1,answer2,temp;\nfor(i=0;i<20;i++){\nscanf(\"%d\",&dataarray[i]);\n}... |
CDSS_655189 | CDSS | #include<stdio.h>
int main()
{
long long n,m;
scanf("%lld%lld",&n,&m);
long long ans;
if(n>=2&&m>=2)
{
ans=(n-2)*(m-2);
}
else
{
if(n==1&&m!=1)
{
ans=m-2;
}
else if(m==1&&n!=1)
{
ans=n-2;
}
else if(n==1&&m==1)
{
ans=1;
}
}
printf("%... | 128 | memory_bytes | {'s_id': 's859566435', 'p_id': 'p03417', 'u_id': 'u530411589', 'date': '1586837431', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '349'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main()\n{\n long long n,m;\n \n scanf(\"%lld%lld\",&n,&m);\n \n long long ans;\n \n if(n>=2&&m>=2)\n ... |
CDSS_541454 | CDSS | #include<stdio.h>
int main(void)
{
int A,B,C,left;
scanf("%d",&A);
scanf("%d",&B);
scanf("%d",&C);
if(C>A-B){
left = C-(A-B);
}
else{
left = 0;
}
printf("%d",left);
return 0;
} | 128 | memory_bytes | {'s_id': 's271706858', 'p_id': 'p02951', 'u_id': 'u682814923', 'date': '1565014148', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '214'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\n int A,B,C,left;\n \n scanf(\"%d\",&A);\n scanf(\"%d\",&B);\n scanf(\"%d\",&C);\n \n if(C... |
CDSS_702666 | CDSS | #include <stdio.h>
int main(){
int A, B;
scanf("%d%d", &A, &B);
if(A + B < 10){
printf("%d\n", A + B);
}else{
printf("error\n");
}
return 0;
}
| 128 | memory_bytes | {'s_id': 's705747124', 'p_id': 'p03697', 'u_id': 'u889278665', 'date': '1544444293', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '164'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n int A, B;\n scanf(\"%d%d\", &A, &B);\n if(A + B < 10){\n printf(\"%d\\n\", A + B);\n }else{... |
CDSS_121463 | CDSS | a,b,c,d,n;main(z){for(;scanf("%d%d%d%d%d",&n,&a,&b,&c,&d),n/=10;d>0&&printf("500 %d\n",d))--z&&puts(""),n-=a+5*b+10*c+50*d,d+=n/50,c+=n%50/10,b+=n%10/5,a+=n%5,a>0&&printf("10 %d\n",a),b>0&&printf("50 %d\n",b),c>0&&printf("100 %d\n",c);} | 0 | memory_bytes | {'s_id': 's792054888', 'p_id': 'p01132', 'u_id': 'u479246559', 'date': '1329706421', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '236'} | [
{
"content": "Your task is to predict the 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,b,c,d,n;main(z){for(;scanf(\"%d%d%d%d%d\",&n,&a,&b,&c,&d),n/=10;d>0&&printf(\"500 %d\\n\",d))--z&&puts(\"\"),n-=a+5*b+10*c+50*d,d+=n... |
CDSS_569150 | CDSS | #include <stdio.h>
int main(void){
int i, n, m, min, max,l[100001], r[100001];
scanf("%d %d", &n, &m);
for( i = 0; i < m; i++ ){
scanf("%d %d", &l[i], &r[i]);
}
min = l[0];
max = r[0];
for( i = 0; i < m; i++ ){
if( min < l[i] ){
min = l[i];
... | 896 | memory_bytes | {'s_id': 's189207262', 'p_id': 'p03037', 'u_id': 'u904977303', 'date': '1587744299', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '18', 'memory': '896', 'code_size': '506'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\n int i, n, m, min, max,l[100001], r[100001];\n \n scanf(\"%d %d\", &n, &m);\n \n f... |
CDSS_373818 | CDSS | #include<stdio.h>
int gcm(int a,int b);
int lcm(int a,int b);
int main(void){
int n,a[10];
int l;
scanf("%d",&n);
for(int i=0;i<n;i++){
scanf("%d",&a[i]);
}
l=a[0];
for(int i=1;i<n;i++){
if(l>a[i]){ l=lcm(l,a[i]); }
else{ l=lcm(a[i],l); }
}
printf("%d\n",l);
return 0;
}
int gcm(in... | 2,120 | memory_bytes | {'s_id': 's616323922', 'p_id': 'p02469', 'u_id': 'u485626876', 'date': '1568109470', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2120', 'code_size': '461'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 gcm(int a,int b);\nint lcm(int a,int b);\n\nint main(void){\n int n,a[10];\n int l;\n\n scanf(\"%d\",&n);\... |
CDSS_591192 | CDSS | #include<stdio.h>
int main(void)
{
int a,b,c,s;
scanf("%d%d%d",&a,&b,&c);
s=b/a;
if(s>c) s=c;
else;
printf("%d\n",s);
return 0;
}
| 128 | memory_bytes | {'s_id': 's526192068', 'p_id': 'p03105', 'u_id': 'u822424420', 'date': '1554466725', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '160'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void)\n{\n int a,b,c,s;\n\n scanf(\"%d%d%d\",&a,&b,&c);\n s=b/a;\n if(s>c) s=c;\n else;\n... |
CDSS_604538 | CDSS | i,j,k;long s[444],p[444][444],S,P;main(a){for(scanf("%*d");~scanf("%d",&a);i=j)for(s[++j]=S+=a;k=i--;p[i][j]=P)for(P=9e18;k<j;)P=fmin(P,p[i][k]+p[k++][j]+S-s[i]);printf("%ld",P);} | 1,536 | memory_bytes | {'s_id': 's255523281', 'p_id': 'p03173', 'u_id': 'u657913472', 'date': '1546860590', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '48', 'memory': '1536', 'code_size': '179'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\ni,j,k;long s[444],p[444][444],S,P;main(a){for(scanf(\"%*d\");~scanf(\"%d\",&a);i=j)for(s[++j]=S+=a;k=i--;p[i][j]=P)for(P=9e18;k<j;)P=f... |
CDSS_660839 | CDSS | #include <stdio.h>
int main() {
int _500, _100, _50, x;
int sum = 0;
scanf("%d", &_500);
scanf("%d", &_100);
scanf("%d", &_50);
scanf("%d", &x);
while(1){
if(x%50!=0){
printf("unexpected number, please try again\n");
scanf("%d", &x);
}
el... | 128 | memory_bytes | {'s_id': 's310383093', 'p_id': 'p03448', 'u_id': 'u521973174', 'date': '1558131287', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '569'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 _500, _100, _50, x;\n int sum = 0;\n scanf(\"%d\", &_500);\n scanf(\"%d\", &_100)... |
CDSS_625200 | CDSS | #include <stdio.h>
int main(void)
{
int a, b; scanf("%d %d", &a, &b); printf("%d\n", (a-1)*(b-1));
return 0;
} | 128 | memory_bytes | {'s_id': 's024951514', 'p_id': 'p03280', 'u_id': 'u816645498', 'date': '1552237375', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '116'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) \n{\n int a, b; scanf(\"%d %d\", &a, &b); printf(\"%d\\n\", (a-1)*(b-1));\n return 0;\n}\nPredi... |
CDSS_264140 | CDSS | /* ファイル名:ITP1_1_D */
/* 内容:秒単位の時間 S が与えられるので、h:m:s の形式へ変換して出力 */
/* include */
#include <stdio.h>
/* 外部変数宣言 */
/* プロトタイプ宣言 */
/* 関数名:main */
/* 処理内容:秒単位の時間 S が与えられるので、h:m:s の形式へ変換して出力 */
int main( void )
{
/* 内部変数定義 */
int S; /* 入力される秒単位の時間 */
int h; /* 時間 */
int m; /* 分 */
int s; /* 秒 */
s... | 2,100 | memory_bytes | {'s_id': 's051866106', 'p_id': 'p02390', 'u_id': 'u880636225', 'date': '1594824209', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2100', 'code_size': '774'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n/* ファイル名:ITP1_1_D\t*/\n/* 内容:秒単位の時間 S が与えられるので、h:m:s の形式へ変換して出力\t*/\n\n/* include\t*/\n#include <stdio.h>\n\n/* 外部変数宣言\t*/\n\n/* プロトタイ... |
CDSS_297803 | CDSS | #include <stdio.h>
int main( void ){
int casenum = 1;
int input;
while( 1 ){
scanf( "%d", &input );
if( input == 0 )
break;
else
printf( "Case %d: %d\n", casenum, input );
casenum++;
}
return 0;
}
| 2,100 | memory_bytes | {'s_id': 's467827395', 'p_id': 'p02396', 'u_id': 'u803957603', 'date': '1519399385', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2100', 'code_size': '294'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 casenum = 1;\n int input;\n \n while( 1 ){\n \n scanf( \"%d\... |
CDSS_653691 | CDSS | #include <stdio.h>
int main(void){
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
if(a+b>=c){
printf("Yes\n");
}else{
printf("No\n");
}
return 0;
} | 128 | memory_bytes | {'s_id': 's448142384', 'p_id': 'p03407', 'u_id': 'u351521513', 'date': '1521335056', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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>\nint main(void){\n int a,b,c;\n scanf(\"%d %d %d\",&a,&b,&c);\n if(a+b>=c){\n \tprintf(\"Yes\\n\");\n ... |
CDSS_309577 | CDSS | #include <stdio.h>
int main(void)
{
int a, b;
scanf("%d %d", &a, &b);
printf("%d %d %f\n", a / b, a % b, (double)a / b);
return 0;
} | 636 | memory_bytes | {'s_id': 's630340016', 'p_id': 'p02399', 'u_id': 'u177522026', 'date': '1471590870', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '636', '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{\n int a, b;\n\n scanf(\"%d %d\", &a, &b);\n printf(\"%d %d %f\\n\", a / b, a % b, (doubl... |
CDSS_575186 | CDSS | #include<stdio.h>
int main(void)
{
int A,B,T;
int sum = 0;
int i;
scanf("%d",&A);
scanf("%d", &B);
scanf("%d", &T);
for (i = 1; A*i < T + 0.5; i++)
sum += B;
printf("%d",sum);
} | 128 | memory_bytes | {'s_id': 's542210943', 'p_id': 'p03059', 'u_id': 'u952394379', 'date': '1556743235', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '194'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\n\nint main(void)\n{\n\tint A,B,T;\n\tint sum = 0;\n\tint i;\n\tscanf(\"%d\",&A);\n\tscanf(\"%d\", &B);\n\tscanf(\... |
CDSS_22090 | CDSS | #include <stdio.h>
int main(void)
{
int i, j;
for (i = 1; i < 10; i++)
for (j = 1; j < 10; j++)
printf("%dx%d=%d\n", i, j, i*j);
return 0;
} | 524 | memory_bytes | {'s_id': 's406486061', 'p_id': 'p00000', 'u_id': 'u128589555', 'date': '1403107285', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', 'code_size': '158'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n int i, j;\n for (i = 1; i < 10; i++)\n for (j = 1; j < 10; j++)\n printf(\"%dx%d=%... |
CDSS_586199 | CDSS | #include <stdio.h>
int main(void){
// Your code here!
char b;
scanf("%c",&b);
switch(b)
{
case 'A':
printf("T\n");
break;
case 'C':
printf("G\n");
break;
case 'G':
printf("C\n");
... | 128 | memory_bytes | {'s_id': 's447083518', 'p_id': 'p03085', 'u_id': 'u966921103', 'date': '1553851065', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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>\nint main(void){\n // Your code here!\n char b;\n scanf(\"%c\",&b);\n \n switch(b)\n {\n c... |
CDSS_154678 | CDSS | #include <stdio.h>
#include<math.h>
#include <stdbool.h>
bool xprime(int x){
int j=3;
if(x==2){
return true;
}
if(x<2||x%2==0){
return false;
}
while(j<=sqrt(x)){
if(x%j==0){
return false;
}
j+=2;
}
return true;
}
int mai... | 2,060 | memory_bytes | {'s_id': 's663506376', 'p_id': 'p02257', 'u_id': 'u899602969', 'date': '1541143409', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2060', 'code_size': '608'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 <stdbool.h>\nbool xprime(int x){\n \n int j=3;\n if(x==2){\n return tru... |
CDSS_414254 | CDSS | #include<stdio.h>
#pragma warning(disable:4996)
int main() {
int N;
scanf("%d", &N);
N = N % 10;
switch (N)
{
case 3:
printf("bon");
break;
case 0:
case 1:
case 6:
case 8:
printf("pon");
break;
default:
printf("hon");
break;
}
return 0;
} | 1,728 | memory_bytes | {'s_id': 's229309525', 'p_id': 'p02675', 'u_id': 'u844616758', 'date': '1592007720', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '1728', 'code_size': '274'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#pragma warning(disable:4996)\n\nint main() {\n\tint N;\n\tscanf(\"%d\", &N); \n\tN = N % 10;\n\tswitch (N)\n\t{\n\... |
CDSS_426318 | CDSS | #include<stdio.h>
int main()
{
int k,a,b;
scanf("%i %i %i",&k,&a,&b);
if(!(a%k)||!(b%k)) {puts("OK");return 0;}
int di = a/k;
di = k*(++di);
if(di>=a && di<=b) puts("OK");
else puts("NG");
return 0;
}
| 1,660 | memory_bytes | {'s_id': 's342572867', 'p_id': 'p02693', 'u_id': 'u384921286', 'date': '1588472880', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '1660', 'code_size': '210'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 k,a,b;\n\tscanf(\"%i %i %i\",&k,&a,&b);\n\tif(!(a%k)||!(b%k)) {puts(\"OK\");return 0;}\n\tin... |
CDSS_491443 | CDSS | #include<stdio.h>
#include <stdlib.h>
void qsort(
void *base, size_t num, size_t size,
int (*compare)(const void *a, const void *b)
);
int asc(const void *a, const void *b) {
return *(int *)a - *(int *)b;
}
int main(void){
int n;
scanf("%d",&n);
int v[n];
for(int i=0;i<n;i++){
scanf("%d",&v[i]);
}
... | 1,788 | memory_bytes | {'s_id': 's955207953', 'p_id': 'p02779', 'u_id': 'u469953228', 'date': '1582383636', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '51', 'memory': '1788', '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>\nvoid qsort(\n void *base, size_t num, size_t size,\n int (*compare)(const void *a, const voi... |
CDSS_739668 | CDSS | #include<stdio.h>
#include<string.h>
int main()
{
char w[100];
char moji;
int con[100]={0},r=0,flag=0;
scanf("%s",w);
for(int i=0;i<strlen(w)-1;i++){
for(int j=i+1;j<strlen(w);j++){
if(w[i]>w[j]){
moji=w[i];
w[i]=w[j];
w[j]=moji;
}
}
}
for(int i=0;i<str... | 128 | memory_bytes | {'s_id': 's863741120', 'p_id': 'p04012', 'u_id': 'u363594351', 'date': '1583443402', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '564'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\nint main()\n{\n char w[100];\n char moji;\n int con[100]={0},r=0,flag=0;\n \n scanf(\"%s\"... |
CDSS_602694 | CDSS | #include <stdio.h>
#include <stdlib.h>
struct Node {
int nextNode;
int cost;
} typedef tNode;
int main() {
int N, K, aux, i, j;
scanf("%d", &N);
scanf("%d", &K);
int h[N];
tNode costs[N];
for (i = 0; i < N; i++) {
scanf("%d", &aux);
h[i] = aux;
}
for (i = 0; i < N; i++) {
costs[i].cost = -1;
cost... | 1,280 | memory_bytes | {'s_id': 's147927764', 'p_id': 'p03161', 'u_id': 'u816631826', 'date': '1574051802', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '31', 'memory': '1280', 'code_size': '743'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\tint nextNode;\n\tint cost;\n} typedef tNode;\n\nint main() {\n\tint N, K, ... |
CDSS_238356 | CDSS | /*
* ITP1_11_B: Rolling the dice II
*/
#include <stdio.h>
// rolling relations by index (N, S, E, W, clockwise, anti-clockwise)
int T[6][1 + 6] = {{0, 2, 6, 3, 4, 1, 5},
{0, 5, 1, 3, 4, 6, 2},
{0, 4, 2, 1, 6, 5, 3},
{0, 3, 2, 6, 1, 5, 4},
{... | 2,048 | memory_bytes | {'s_id': 's115343818', 'p_id': 'p02384', 'u_id': 'u428405749', 'date': '1544848852', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2048', 'code_size': '1623'} | [
{
"content": "Your task is to predict the memory 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 * ITP1_11_B: Rolling the dice II\n */\n\n#include <stdio.h>\n\n// rolling relations by index (N, S, E, W, clockwise, anti-clockwi... |
CDSS_530767 | CDSS | #include <stdio.h>
int main (void) {
int n;
int a[20];
int b[50];
int c[50];
int sum = 0;
scanf("%d", &n);
for (int k = 0; k < n; k++) {
scanf("%d", &a[k]);
}
for (int k = 0; k < n; k++) {
scanf("%d", &b[k]);
}
for (int k = 0; k < n-1; k++) {
scanf(... | 128 | memory_bytes | {'s_id': 's805903672', 'p_id': 'p02916', 'u_id': 'u240091689', 'date': '1570844274', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '510'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main (void) {\n int n;\n int a[20];\n int b[50];\n int c[50];\n int sum = 0;\n\n scanf(\"%... |
CDSS_640309 | CDSS | #include<stdio.h>
int main(void){
int a,b;
scanf("%d %d",&a,&b);
int ans=(b-a)*(b-a+1)/2-b;
printf("%d\n",ans);
return 0;
} | 128 | memory_bytes | {'s_id': 's609355092', 'p_id': 'p03328', 'u_id': 'u716903426', 'date': '1587918365', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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:\n#include<stdio.h>\nint main(void){\n int a,b;\n scanf(\"%d %d\",&a,&b);\n int ans=(b-a)*(b-a+1)/2-b;\n printf(\"%d\\n\",ans);\n r... |
CDSS_362854 | CDSS | #include<stdio.h>
#include<ctype.h>
int main(){
char c;
while(scanf("%c",&c)!=EOF){
if(islower(c)){
c=toupper(c);
}else if(isupper(c)){
c=tolower(c);
}
printf("%c",c);
}
}
| 2,092 | memory_bytes | {'s_id': 's915326058', 'p_id': 'p02415', 'u_id': 'u324964918', 'date': '1573452958', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2092', 'code_size': '190'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\nint main(){\n\tchar c;\n\twhile(scanf(\"%c\",&c)!=EOF){\n\t\tif(islower(c)){\n\t\t\tc=toupper(... |
CDSS_643978 | CDSS | #include <stdio.h>
#include <stdlib.h>
int main(void){
int a,b,c,d;
scanf("%d%d%d%d",&a,&b,&c,&d);
if(abs(a-c) <= d){
printf("Yes");
} else if (abs(a - b) <= d && abs(b - c) <= d){
printf("Yes");
} else {
printf("No");
}
} | 128 | memory_bytes | {'s_id': 's365482681', 'p_id': 'p03351', 'u_id': 'u312646928', 'date': '1565829183', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '276'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\nint main(void){\n int a,b,c,d;\n scanf(\"%d%d%d%d\",&a,&b,&c,&d);\n \n if(abs(a... |
CDSS_366451 | CDSS | #include <stdio.h>
#include <ctype.h>
int main(){
int count[26]={0};
char ch;
int i, num;
while(scanf("%c", &ch)!=EOF){
if(islower(ch)){
num=ch-'a';
}else if(isupper(ch)){
num=ch-'A';
}else{
continue;
}
... | 2,088 | memory_bytes | {'s_id': 's088871977', 'p_id': 'p02417', 'u_id': 'u445425884', 'date': '1529974855', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2088', 'code_size': '457'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h> \n #include <ctype.h> \n \n \n int main(){ \n int count[26]={0}; \n char ch; \n int i, num; \n\n wh... |
CDSS_484868 | CDSS | /* ABC156_B
Stuartyg */
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <stdbool.h>
int main(void){
int num,base_num;
double ans = 0;
scanf("%d %d",&num,&base_num);
ans = log(num)/log(base_num);
printf("%d",(int)ans+1); /*型キャスト*/
return 0;
}
| 128 | memory_bytes | {'s_id': 's662350503', 'p_id': 'p02766', 'u_id': 'u811068179', 'date': '1590084144', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '308'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n/* ABC156_B\n Stuartyg */\n\n#include <stdio.h>\n#include <string.h>\n#include <math.h>\n#include <stdbool.h>\n\n\nint main(void){\... |
CDSS_524219 | CDSS | #include <stdio.h>
int main()
{
int i,odd=0;
double ans,n;
scanf("%lf",&n);
for(i=1;i<=n;i++){
if(i%2==1){
odd++;
}
}
ans = odd/n;
printf("%.10lf\n",ans);
return 0;
} | 128 | memory_bytes | {'s_id': 's557341445', 'p_id': 'p02897', 'u_id': 'u089230684', 'date': '1571191386', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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 int i,odd=0;\n double ans,n;\n scanf(\"%lf\",&n);\n for(i=1;i<=n;i++){\n if(i%2... |
CDSS_96586 | CDSS | #include <stdio.h>
int main(void)
{
int n;
int i;
int a, b;
int sa, sb;
while (1) {
scanf("%d", &n);
if (n == 0) {
break;
}
sa = sb = 0;
for (i = 0; i < n; ++i) {
scanf("%d %d\n", &a, &b);
if (a < b) {
sb += (a + b);
} else if ( a > b) {
sa += (a + b);
} else {
sa += a;
sb... | 604 | memory_bytes | {'s_id': 's623229012', 'p_id': 'p00423', 'u_id': 'u897660790', 'date': '1479377329', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '604', '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{\n\tint n;\n\tint i;\n\tint a, b;\n\tint sa, sb;\n\twhile (1) {\n\t\tscanf(\"%d\", &n);\n\t\tif... |
CDSS_581944 | CDSS | #include <stdio.h>
#include <string.h>
int main(void)
{
char color_pattern[100001];
scanf("%s", color_pattern);
int length = strlen(color_pattern);
int hamming_distance_a = 0; // the hamming distance to 0 1 0 1...
int hamming_distance_b = 0; // the hamming distance to 1 0 1 0...
int i;
for(i = 0; i < length;... | 256 | memory_bytes | {'s_id': 's371498218', 'p_id': 'p03073', 'u_id': 'u300773907', 'date': '1555184257', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '256', 'code_size': '711'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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{\n\tchar color_pattern[100001];\n\tscanf(\"%s\", color_pattern);\n\n\tint ... |
CDSS_668799 | CDSS | #include <stdio.h>
int sum(int number) {
if(number < 10) {
return number;
} else {
return number % 10 + sum(number / 10);
}
}
int main() {
int number_n, sum_of_number, i, bottom, top;
long long int answer = 0;
scanf("%d %d %d", &number_n, &bottom, &top);
for(i = 1; i <= number_n; i++) {
sum_... | 128 | memory_bytes | {'s_id': 's162933173', 'p_id': 'p03478', 'u_id': 'u675751622', 'date': '1559486547', '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#include <stdio.h>\n\nint sum(int number) {\n if(number < 10) {\n return number;\n } else {\n return number % 10 + sum(number ... |
CDSS_520842 | CDSS | #include<stdio.h>
#include<memory.h>
#include<stdlib.h>
#include<string.h>
#include<math.h>
int main(void){
int a,b;
... | 128 | memory_bytes | {'s_id': 's263509489', 'p_id': 'p02885', 'u_id': 'u963493510', 'date': '1573855942', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '499'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h> ... |
CDSS_604453 | CDSS | long a[3000],dp[3001][3001];
i,j;
main(n)
{
for(scanf("%d",&n);~scanf("%d",a+j++););
for(;i++<n;)
{
for(j=i;j--;)
{
dp[j][i]=fmax(a[j]-dp[j+1][i],a[i-1]-dp[j][i-1]);
}
}
printf("%ld",dp[0][n]);
} | 70,016 | memory_bytes | {'s_id': 's275361824', 'p_id': 'p03171', 'u_id': 'u657913472', 'date': '1546850414', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '55', 'memory': '70016', '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:\nlong a[3000],dp[3001][3001];\ni,j;\nmain(n)\n{\n\tfor(scanf(\"%d\",&n);~scanf(\"%d\",a+j++););\n\tfor(;i++<n;)\n\t{\n\t\tfor(j=i;j--;)... |
CDSS_99689 | CDSS | #include <stdio.h>
#include <string.h>
int main(){
char u[1000];
int i,k;
scanf("%s",u);
k=strlen(u);
for(i=0;i<k;i++){
if(u[i]=='A'){u[i]=u[i]+23;}
else if(u[i]=='B')u[i]=u[i]+23;
else if(u[i]=='C')u[i]=u[i]+23;
else u[i]=u[i]-3;
printf("%c",u[i]);
if(i==k-1)printf("\n"... | 1,740 | memory_bytes | {'s_id': 's820956430', 'p_id': 'p00435', 'u_id': 'u529373084', 'date': '1510732118', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1740', '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#include <string.h>\nint main(){\nchar u[1000];\nint i,k;\n\n\n\n\nscanf(\"%s\",u);\n\nk=strlen(u);\n\n\nfor(i=0;i... |
CDSS_91058 | CDSS | a[];main(){gets(a);div(puts(15&*a&*a>>16|15&a[1]?"Open":"Close"));} | 524 | memory_bytes | {'s_id': 's540399331', 'p_id': 'p00252', 'u_id': 'u399045574', 'date': '1381456498', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', 'code_size': '67'} | [
{
"content": "Your task is to predict the 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[];main(){gets(a);div(puts(15&*a&*a>>16|15&a[1]?\"Open\":\"Close\"));}\nPredict its memory footprint.",
"role": "user"
},
{
... |
CDSS_392108 | CDSS | #include <stdio.h>
int main(void){
int N;
scanf("%d",&N);
N = -1 * N;
while(N<0){
N+=1000;
}
printf("%d\n",N);
return 0;
} | 1,728 | memory_bytes | {'s_id': 's923199920', 'p_id': 'p02612', 'u_id': 'u645618252', 'date': '1593997407', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1728', 'code_size': '159'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n int N;\n scanf(\"%d\",&N);\n N = -1 * N;\n while(N<0){\n N+=1000;\n }\n ... |
CDSS_719862 | CDSS | #include <stdio.h>
#include <string.h>
//#include <map>
//using namespace std;
//map<int> m;
#define BUF (100)
int N, M;
int a[BUF], b[BUF];
void input(void){
scanf("%d %d",&N,&M);
int i = 0;
for (i = 0; i < M; i++) {
scanf("%d %d", &a[i], &b[i]);
}
}
int f(int k, int n, int *d) {
d[n] = 1;
int i;
in... | 128 | memory_bytes | {'s_id': 's085253342', 'p_id': 'p03805', 'u_id': 'u376651567', 'date': '1488866302', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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 <string.h>\n//#include <map>\n\n//using namespace std;\n//map<int> m;\n\n#define BUF (100)\n\nint N, M;\n... |
CDSS_235725 | CDSS | #include <stdio.h>
#include <math.h>
int main(void){
int n,i;
double s[1001]={};
double ave,vari,sd,sum;
while(scanf("%d", &n) != EOF && n!=0){
for(i=0,sum=0;i<n;i++){
scanf("%lf",&s[i]);
sum += s[i];
}
ave = sum / n;
for(i=0,vari=0;i<n;i++) vari... | 664 | memory_bytes | {'s_id': 's108371379', 'p_id': 'p02381', 'u_id': 'u963402991', 'date': '1439533573', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '664', 'code_size': '435'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n\nint main(void){\n int n,i;\n double s[1001]={};\n double ave,vari,sd,sum;\n\n whi... |
CDSS_626624 | CDSS | /*
cat <<EOF >mistaken-paste
*/
#pragma GCC diagnostic ignored "-Wincompatible-pointer-types"
#define _USE_MATH_DEFINES
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <math.h>
#include <time.h>
#define BIG 2000000007
#define VERYBIG 2000000000000007LL
#d... | 2,176 | memory_bytes | {'s_id': 's374021185', 'p_id': 'p03282', 'u_id': 'u238041222', 'date': '1534641300', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '2176', 'code_size': '5968'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n/*\ncat <<EOF >mistaken-paste\n*/\n\n#pragma GCC diagnostic ignored \"-Wincompatible-pointer-types\"\n#define _USE_MATH_DEFINES\n\n#in... |
CDSS_558439 | CDSS | #include<stdio.h>
#include<string.h>
#include<math.h>
#include <stdlib.h>
typedef struct {
int a;
int b;
}job_t;
int cmp(const void* p, const void* q) {
return ((job_t*)p)->b - ((job_t*)q)->b;
}
int main(void) {
int n;
job_t job[200000] = { 0 };
int total = 0;
scanf("%d", &n);
for (int i = 0; i < n; i++) sc... | 3,324 | memory_bytes | {'s_id': 's660636514', 'p_id': 'p02996', 'u_id': 'u105100688', 'date': '1582215889', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '65', 'memory': '3324', 'code_size': '692'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\n#include<math.h>\n#include <stdlib.h>\n\ntypedef struct {\n\tint a;\n\tint b;\n}job_t;\n\nint c... |
CDSS_121823 | CDSS | #include<stdio.h>
#include<math.h>
#define min(a,b) (a) < (b) ? (a) : (b)
#define INF 9999999
int all(int e){
int x,y,p,q,minm=INF;
for(y=(int)sqrt(e);y>=0;y--){
p=y*y;
for(x=(int)pow(e,5.0/12.0);x>=0;x--){
q=x*x*x+p;
if(q>e)continue;
minm=min(minm,x+y+(e-q));
}
}
return minm;
}
int main(){
int e,... | 664 | memory_bytes | {'s_id': 's539377974', 'p_id': 'p01137', 'u_id': 'u510563501', 'date': '1400184818', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '800', 'memory': '664', '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#include<math.h>\n#define min(a,b) (a) < (b) ? (a) : (b)\n#define INF 9999999\n\nint all(int e){\n\tint x,y,p,q,min... |
CDSS_583020 | CDSS | #include<stdio.h>
int main(){
int a[5],k;
for(int i = 0;i < 5;i++){
scanf("%d",&a[i]);
}
scanf("%d",&k);
if(a[4] - a[0] > k){
printf(":(\n");
return 0;
}
printf("Yay!\n");
return 0;
} | 128 | memory_bytes | {'s_id': 's329200715', 'p_id': 'p03075', 'u_id': 'u008829811', 'date': '1554641092', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '211'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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[5],k;\n for(int i = 0;i < 5;i++){\n scanf(\"%d\",&a[i]);\n }\n scanf(\"%d\",&k);\n if(a... |
CDSS_69153 | CDSS | #include<stdio.h>
char area[13][13];
int dfs(int nx, int ny){
if(area[nx][ny] == '1'){
area[nx][ny] = '0';
if(area[nx-1][ny] == '1' && nx-1 >= 0){
dfs(nx-1, ny);
}
if(area[nx+1][ny] == '1' && nx+1 <= 12){
dfs(nx+1, ny);
}
if(area[nx][ny-1] == '1' && ny-1 >= 0){
dfs(nx, ny-1);
}
if(area[nx][ny... | 544 | memory_bytes | {'s_id': 's054029792', 'p_id': 'p00067', 'u_id': 'u902026216', 'date': '1355141545', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '544', 'code_size': '771'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nchar area[13][13];\n\nint dfs(int nx, int ny){\n\tif(area[nx][ny] == '1'){\n\t\tarea[nx][ny] = '0';\n\t\tif(area[nx... |
CDSS_120341 | CDSS | #include <stdio.h>
#define ll long long
#define rep(i,l,r)for(ll i=l;i<r;i++)
#define LIMIT 7400000
int prime[LIMIT+10];
void makep(ll n){prime[0]=prime[1]=1;for(int i=2;i*i<=n;i++)if(!prime[i])for(int j=i*i;j<=n;j+=i)prime[j]=1;}
int*p;
int pcnt;
int main(){
makep(LIMIT);
rep(i,2,LIMIT)if(!prime[i])prime[pcnt++]=i... | 30,668 | memory_bytes | {'s_id': 's181801221', 'p_id': 'p01095', 'u_id': 'u409832240', 'date': '1558928677', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '110', 'memory': '30668', 'code_size': '693'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#define ll long long\n#define rep(i,l,r)for(ll i=l;i<r;i++)\n\n#define LIMIT 7400000\nint prime[LIMIT+10];\nvoid m... |
CDSS_620476 | CDSS | #define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main(void) {
int a, b;
scanf("%d %d", &a, &b);
for(int c = 1; c <= 3; c++){
if ((a * b * c) % 2 == 1) {
printf("Yes\n");
return 0;
}
}
printf("No\n");
} | 128 | memory_bytes | {'s_id': 's543049185', 'p_id': 'p03260', 'u_id': 'u374974389', 'date': '1536455759', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '223'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#define _CRT_SECURE_NO_WARNINGS\n#include <stdio.h>\n\nint main(void) {\n\tint a, b;\n\tscanf(\"%d %d\", &a, &b);\n\tfor(int c = 1; c ... |
CDSS_101829 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define mem(x,y) (x*)malloc(sizeof(x)*(y));
int main()
{
int r,c,i,j,k;
int* list;
int** data;
int* count;
while(scanf("%d %d",&r,&c),r)
{
if(r == 1)
printf("%d\n",c);
else
{
list = mem(int,2 << (r-1));
count = mem(int,2 << (r-1));
dat... | 1,080 | memory_bytes | {'s_id': 's284243553', 'p_id': 'p00448', 'u_id': 'u301090561', 'date': '1329538755', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '50', 'memory': '1080', 'code_size': '1115'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 mem(x,y)\t\t(x*)malloc(sizeof(x)*(y));\n\nint main()\n{\n\tint r... |
CDSS_502296 | CDSS | #include<stdio.h>
int main(){
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': 's188405533', 'p_id': 'p02811', 'u_id': 'u481026841', 'date': '1578708380', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '151'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 k,x;\n scanf(\"%d%d\",&k,&x);\n if(500*k>=x){\n printf(\"Yes\\n\");\n }\n else{\n prin... |
CDSS_551132 | CDSS | #include<stdio.h>
int main() {
int n, a, b;
int ans = 0;
scanf("%d %d %d", &n,&a,&b);
ans = n * a;
if (ans > b) {
ans = b;
}
printf("%d",ans);
return 0;
} | 128 | memory_bytes | {'s_id': 's274647903', 'p_id': 'p02981', 'u_id': 'u512857550', 'date': '1562547791', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '169'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main() {\n\tint n, a, b;\n\tint ans = 0;\n\n\tscanf(\"%d %d %d\", &n,&a,&b);\n\tans = n * a;\n\tif (ans > b) ... |
CDSS_704015 | CDSS | #include<stdio.h>
int main(void){
long long int N,A,B,i,h[100000],K,left=0,right=1000000000,sum;
scanf("%lld %lld %lld",&N,&A,&B);
for(i=0;i<N;++i){
scanf("%lld",&h[i]);
}
while(left!=right){
K=(right+left)/2;
sum=0;
for(i=0;i<N;i++){
if(h[i]-K*B > 0){
// sum += (h[i]-K*B)%(A... | 896 | memory_bytes | {'s_id': 's253792303', 'p_id': 'p03700', 'u_id': 'u763534217', 'date': '1497073792', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '43', 'memory': '896', 'code_size': '621'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 long long int N,A,B,i,h[100000],K,left=0,right=1000000000,sum;\n\n scanf(\"%lld %lld %lld\",&... |
CDSS_416479 | CDSS | #include <stdio.h>
#include <string.h>
#define MAX 1000
int main()
{
char s[MAX];
int k;
int a;
int i;
scanf("%d", &k);
scanf("%s", s);
a = strlen(s);
if (a <= k)
printf("%s\n", s);
else {
for (i = 0; i < k; i++)
printf("%c", s[i]);
printf("...\n");
}
return 0;
} | 1,644 | memory_bytes | {'s_id': 's450685374', 'p_id': 'p02676', 'u_id': 'u500731720', 'date': '1589764148', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '1644', '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>\n#include <string.h>\n\n#define MAX 1000\n\nint main()\n{\n\tchar s[MAX];\n\tint k;\n\tint a;\n\tint i;\n\t\n\tscan... |
CDSS_641544 | CDSS | #include <stdio.h>
#include <stdlib.h>
int main()
{ int n,m,a,b,c;
while(~scanf("%d %d",&n,&m))
{ a=n+m;
b=n-m;
c=n*m;
if(a<b)
a=b;
if(a<c)
a=c;
printf("%d\n",a);
}
return 0;
}
| 128 | memory_bytes | {'s_id': 's723500360', 'p_id': 'p03337', 'u_id': 'u816631826', 'date': '1576103034', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '228'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\nint main()\n{ int n,m,a,b,c;\n while(~scanf(\"%d %d\",&n,&m))\n { a=n+m;\n b=n-m;\n ... |
CDSS_552393 | CDSS | #include <stdio.h>
int L = 0;
int R = 0;
int ans = 2018;
int c = 0;
int main(void){
if(scanf("%d%d",&L,&R) == 1);
if((R-L) >= 2019){
printf("0\n");
return 0;
}
for(int i = L;i < R;i++){
... | 128 | memory_bytes | {'s_id': 's328499775', 'p_id': 'p02983', 'u_id': 'u848129984', 'date': '1562787579', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '657'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 int L = 0;\n int R = 0;\n int ans = 2018;\n int c = 0;\n \n ... |
CDSS_303063 | CDSS | #include<stdio.h>
int main(void){
int x, y;
do{
scanf("%d %d", &x, &y);
if(x == 0 && y == 0){
break;
}else if(x > y){
printf("%d %d\n", y, x);
}else{
printf("%d %d\n", x, y);
}
}while(1);
return 0;
}
| 2,140 | memory_bytes | {'s_id': 's215599283', 'p_id': 'p02397', 'u_id': 'u436795153', 'date': '1528622573', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2140', 'code_size': '298'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void){\n int x, y;\n do{\n scanf(\"%d %d\", &x, &y);\n if(x == 0 && y == 0){\n ... |
CDSS_84036 | CDSS | #include <stdio.h>
int main(void) {
int n, data[100], j, tmp, i, count;
while(scanf("%d",&n),n) {
count = 0;
for(i = 0; i < n; i++ ) {
scanf("%d",&data[i]);
}
for(i = 0; i < n - 1; i++ ) {
for(j = 1; j < n - i; j++ ) {
if(data[j] < data[j-1]) {
tmp = data[j];
data[j] = data[j-1];
... | 600 | memory_bytes | {'s_id': 's003071027', 'p_id': 'p00167', 'u_id': 'u648717067', 'date': '1434891397', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '412'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void) {\n int n, data[100], j, tmp, i, count;\n while(scanf(\"%d\",&n),n) {\n count = 0;\n for(i ... |
CDSS_592353 | CDSS | /*ex9-2 C- Unification
ryo_1129*/
#include <stdio.h>
#include <stdlib.h>
#define SIZE 100000
//リストのノード(スタック内の各データ)の定義
typedef struct node{
char elem;
struct node *next;
} node;
void pop(node **first);
void push(node **first, char elem);
int main(void){
int counter=0;
char cube[SIZE+1];
scanf("%s"... | 4,900 | memory_bytes | {'s_id': 's236376823', 'p_id': 'p03107', 'u_id': 'u354198749', 'date': '1595206104', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '14', 'memory': '4900', 'code_size': '1296'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n/*ex9-2 C- Unification\nryo_1129*/\n\n#include <stdio.h>\n#include <stdlib.h>\n#define SIZE 100000\n//リストのノード(スタック内の各データ)の定義\ntypedef ... |
CDSS_680213 | CDSS | #include <stdio.h>
int main(void) {
int r, g;
scanf("%d%d", &r, &g);
// (r + x) / 2 = g
// (r + x) = 2 * g
// x = 2 * g - r
printf("%d\n", 2 * g - r);
return 0;
}
| 128 | memory_bytes | {'s_id': 's106884349', 'p_id': 'p03563', 'u_id': 'u643405868', 'date': '1509239234', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '192'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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, g;\n scanf(\"%d%d\", &r, &g);\n // (r + x) / 2 = g\n // (r + x) = 2 * g\n ... |
CDSS_84143 | CDSS | #include <stdio.h>
int main(){
int i,j,n,a[100],tmp,counter;
while(1){
scanf("%d",&n);
if(n == 0){
break;
}
counter=0;
for(i=0;i<n;i++){
scanf("%d",&a[i]);
}
for(i=0;i<n-1;i++){
for(j=n-1;j>i;j--){
if(a[j... | 600 | memory_bytes | {'s_id': 's164822978', 'p_id': 'p00167', 'u_id': 'u284889485', 'date': '1373170945', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '556'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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,j,n,a[100],tmp,counter;\n while(1){\n scanf(\"%d\",&n);\n if(n == 0){\n ... |
CDSS_746531 | CDSS | #include <stdio.h>
#include <stdlib.h>
//#define DEBUG
long long dist(long long M, long long N) {
long long D;
if (M<N) {
D = M;
M = N;
N = D;
}
if (N==0) return 0;
D = (M/N)*2*N;
if (M%N==0) D -= N;
return D+dist(N,M%N);
}
int main() {
long long L, N, P, X;
scanf("%lld%lld", &N, &X);
if (2*X == N) L... | 128 | memory_bytes | {'s_id': 's131376118', 'p_id': 'p04048', 'u_id': 'u677149117', 'date': '1470360797', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '128', 'code_size': '552'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 DEBUG\n\nlong long dist(long long M, long long N) {\n\tlong long D;\n\tif (M<N) {... |
CDSS_490532 | CDSS | #include <stdio.h>
int main(void)
{
char s[101];
int i = 0;
scanf("%s", s);
while (s[i] != '\0')
{
s[i] = 'x';
i++;
}
printf("%s", s);
return 0;
} | 128 | memory_bytes | {'s_id': 's548101898', 'p_id': 'p02778', 'u_id': 'u632734596', 'date': '1590999953', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '163'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n\tchar s[101];\n\tint i = 0;\n\n\tscanf(\"%s\", s);\n\n\twhile (s[i] != '\\0')\n\t{\n\t\ts[i]... |
CDSS_360313 | CDSS | #include<stdio.h>
int main(int argc, char const *argv[]) {
int n,m,l,i,j,k;
int a[100][100]={0},b[100][100]={0};
long long int c[100][100]={0};
scanf("%d %d %d", &n, &m, &l);
for (i = 0; i < n; i++) {
for (j = 0; j < m; j++) {
scanf("%d", &a[i][j]);
}
}
//printf("\n");
for (i = 0; i < m;... | 768 | memory_bytes | {'s_id': 's874998837', 'p_id': 'p02414', 'u_id': 'u043944086', 'date': '1496898889', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '768', 'code_size': '739'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 const *argv[]) {\n int n,m,l,i,j,k;\n int a[100][100]={0},b[100][100]={0};\n long lon... |
CDSS_190242 | CDSS | #include <stdio.h>
#define T_MAX 10000
#define S_MAX 500
int main(void){
int n,q,i,j,cnt = 0;
int t_cnt = 0,s_cnt = 0;
int T[T_MAX] = {0};
int S[S_MAX] = {0};
scanf("%d", &n);
while(1){
if(t_cnt == n){
break;
}
scanf("%d" ,&T[t_cnt]);
t_cnt++;
}
scanf("%d", &q);
while(1){
if(s_cnt == q){
b... | 648 | memory_bytes | {'s_id': 's747180482', 'p_id': 'p02267', 'u_id': 'u910769350', 'date': '1369644776', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '648', 'code_size': '509'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 T_MAX 10000\n#define S_MAX 500\n\nint main(void){\n\tint n,q,i,j,cnt = 0;\n\tint t_cnt = 0,s_cnt = 0;\n\ti... |
CDSS_98046 | CDSS | #include<stdio.h>
#include<string.h>
int i,j,k,l[100],m,n;
int a[100];
int d;
int main(void){
while(scanf("%d%d",&m,&n),(m || n)){
for(i=0;i<n;i++)a[i]=i+1;
for(i=0;i<m*n;i++)if(scanf("%d",&j),j)l[i%n]++;
i=n;
while(i){
i--;
j=l[i];
m=a[i];
k=i;
//for(d=0;d<n;d++)printf("%d ",l[d]);
//putchar('\n');
//for(d=0;d<n;d++)p... | 608 | memory_bytes | {'s_id': 's798572622', 'p_id': 'p00428', 'u_id': 'u612181412', 'date': '1439864273', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '608', 'code_size': '774'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 i,j,k,l[100],m,n;\nint a[100];\nint d;\nint main(void){\nwhile(scanf(\"%d%d\",&m,&n),(m || ... |
CDSS_649477 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <math.h>
void change(int *x, int *y);
int a,b,x;
int main(void){
scanf("%d %d %d", &a, &b, &x);
if(x >= a && x <= a+b) printf("YES");
else printf("NO");
return 0;
}
void change(int *x, int *y){
int z;
z = *x;
*x = *y;
*y = z;
} | 128 | memory_bytes | {'s_id': 's359424613', 'p_id': 'p03377', 'u_id': 'u824196989', 'date': '1523754975', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', '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 <stdlib.h>\n#include <math.h>\n\nvoid change(int *x, int *y);\n\nint a,b,x;\n\nint main(void){\n\tscanf(\... |
CDSS_213684 | CDSS | #include<stdio.h>
#define MAX 100000
#define N 2000000000
typedef struct Card{
char suit;
int value;
}Card;
Card L[MAX / 2 + 2], R[MAX / 2 + 2];
void merge(Card A[], int left, int mid, int right) {
int i, j, k,n1,n2;
n1 = mid - left;
n2 = right - mid;
for (i=0;i<n1;i++){
L[i] = A[left + i];
}
f... | 4,188 | memory_bytes | {'s_id': 's079485783', 'p_id': 'p02277', 'u_id': 'u701335376', 'date': '1549853815', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '4188', 'code_size': '1696'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 100000\n#define N 2000000000\n\ntypedef struct Card{\n char suit;\n int value;\n}Card;\n\nCard L[MAX ... |
CDSS_614831 | CDSS | #include <math.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
void swap_int(int *x, int *y) {int temp;temp = *x;*x = *y;*y = temp;}
void swap_char(char *x, char *y) {char temp;temp = *x;*x = *y;*y = temp;}
int max(int x, int y) { return x > y ? x : y; }
int min(int x, int y) { return x > y ? y : x; }
in... | 128 | memory_bytes | {'s_id': 's219586719', 'p_id': 'p03239', 'u_id': 'u679951803', 'date': '1560623751', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '725'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <math.h>\n#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\nvoid swap_int(int *x, int *y) {int temp;temp = *x;*x ... |
CDSS_731167 | 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': 's132140474', 'p_id': 'p03910', 'u_id': 'u004279520', 'date': '1587814917', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '2322'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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_509448 | CDSS | #include <stdio.h>
int main()
{
int a,b,c,d;
scanf("%d%d%d",&a,&b,&c);
d=a+b+c;
if(d>=22)
{
printf("bust");
}
else
{
printf("win");
}
return 0;
}
| 128 | memory_bytes | {'s_id': 's952477614', 'p_id': 'p02835', 'u_id': 'u018679195', 'date': '1581037952', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '202'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main()\n{\n int a,b,c,d;\n scanf(\"%d%d%d\",&a,&b,&c);\n d=a+b+c;\n if(d>=22)\n {\n prin... |
CDSS_113279 | CDSS | // AOJ 1084: K Cards
// 2018.2.3 bal4u
#include <stdio.h>
//#define getchar_unlocked() getchar()
int in()
{
int n = 0;
int c = getchar_unlocked();
do n = (n<<3)+(n<<1) + (c & 0xf), c = getchar_unlocked();
while (c >= '0');
return n;
}
int n, k, m;
int c[101];
int check()
{
int i, j, t, max = 0;
for (i = 0;... | 2,040 | memory_bytes | {'s_id': 's124823669', 'p_id': 'p00669', 'u_id': 'u847467233', 'date': '1517658995', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '60', 'memory': '2040', 'code_size': '845'} | [
{
"content": "Your task is to predict the memory 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 1084: K Cards\n// 2018.2.3 bal4u\n\n#include <stdio.h>\n\n//#define getchar_unlocked() getchar()\nint in()\n{\n\tint n = 0;\n\... |
CDSS_623095 | CDSS | #include<stdio.h>
#include<stdlib.h>
typedef long long int int64;
const int mod=998244353;
int modPow(int r,int n){
int t=1;
int s=r;
while(n>0){
if(n&0x01) t=(int64)t*s%mod;
s=(int64)s*s%mod;
n>>=1;
}
return t;
}
int *fact=NULL;
int *iFact=NULL;
void init(int n){
fact=(int *)calloc(n+1,size... | 256 | memory_bytes | {'s_id': 's384460978', 'p_id': 'p03270', 'u_id': 'u425248533', 'date': '1540586789', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '42', 'memory': '256', 'code_size': '1071'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 long long int int64;\n\nconst int mod=998244353;\n\nint modPow(int r,int n){\n int t... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.