identifier string | space string | input string | target float64 | metric_type string | metadata string | messages list |
|---|---|---|---|---|---|---|
CDSS_80910 | CDSS | #include <stdio.h>
int main(void)
{
int j, N, n, i;
scanf("%d", &N);
j = 1;
while (j <= N){
scanf("%d", &n);
printf("Case %d:\n", j);
for (i = 0; i < 10; i++){
n = ((n * n) % 1000000) / 100;
printf("%d\n", n);
}
j++;
}
return (0);
} | 592 | memory_bytes | {'s_id': 's093589688', 'p_id': 'p00137', 'u_id': 'u145563629', 'date': '1431340200', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', 'code_size': '262'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n\tint j, N, n, i;\n\t\n\tscanf(\"%d\", &N);\n\tj = 1;\n\twhile (j <= N){\n\t\tscanf(\"%d\",... |
CDSS_372618 | CDSS | /*
* ID: ITP2_10_B
* Problem: Bit Operation II
*/
#include <stdio.h>
void print_bits(unsigned int a)
{
int i;
for (i = 0; i < 32; i++) {
printf("%c", (a & 0x80000000) == 0 ? '0' : '1');
a <<= 1;
}
printf("\n");
}
int main(void)
{
unsigned int a, b;
scanf("%d %d", &a, &b);
... | 2,052 | memory_bytes | {'s_id': 's993747835', 'p_id': 'p02424', 'u_id': 'u428405749', 'date': '1544960916', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2052', 'code_size': '408'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n/*\n * ID: ITP2_10_B\n * Problem: Bit Operation II\n */\n\n#include <stdio.h>\n\nvoid print_bits(unsigned int a)\n{\n int i;\n ... |
CDSS_30512 | CDSS | #include <stdio.h>
int main(){
int count;
int a[3];
int max, maxidx;
int i, j;
scanf("%d", &count);
for(i=0; i<count; i++){
scanf("%d %d %d", &a[0], &a[1], &a[2]);
max=0;
for(j=0; j<3; j++){
if(max<a[j]){
max=a[j];
maxidx=j;
}
}
max=max*max;
a[maxidx]=... | 0 | memory_bytes | {'s_id': 's722123561', 'p_id': 'p00003', 'u_id': 'u641440787', 'date': '1305092750', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '450'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n int count;\n int a[3];\n int max, maxidx;\n int i, j;\n\n scanf(\"%d\", &count);\n for(i=0... |
CDSS_739680 | CDSS | i;main(j){for(;(j=getchar())>96;i^=j);puts("No\0Yes"+!i*3);} | 128 | memory_bytes | {'s_id': 's497098920', 'p_id': 'p04012', 'u_id': 'u653187094', 'date': '1579358666', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '60'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\ni;main(j){for(;(j=getchar())>96;i^=j);puts(\"No\\0Yes\"+!i*3);}\nPredict its memory footprint.",
"role": "user"
},
{
"co... |
CDSS_741756 | CDSS | #include<stdio.h>
int main(void)
{
int N, i;
int sum = 0;
scanf("%d", &N);
for(i = 0; i <= N; i++){
sum = sum + i;
}
printf("%d", sum);
return 0;
}
| 128 | memory_bytes | {'s_id': 's854437623', 'p_id': 'p04029', 'u_id': 'u200729311', 'date': '1492402546', '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 should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\nint N, i;\nint sum = 0;\nscanf(\"%d\", &N);\nfor(i = 0; i <= N; i++){\n sum = sum + i;\n}\npri... |
CDSS_19014 | CDSS | #include <stdio.h>
int main(void){
int i,j;
for(j=1;j<=9;j++){
for(i=1;i<=9;i++){
printf("%dx%d=%d\n",j,i,j*i);
}
}
return 0;
} | 520 | memory_bytes | {'s_id': 's419987536', 'p_id': 'p00000', 'u_id': 'u897599699', 'date': '1474078006', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '520', 'code_size': '138'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\n\tint i,j;\n\tfor(j=1;j<=9;j++){\n\t\tfor(i=1;i<=9;i++){\n\t\t\tprintf(\"%dx%d=%d\\n\",j,i,j*i)... |
CDSS_732693 | CDSS | #include <stdio.h>
int main()
{
char square[100][100] = { 0 };
int w, h, n, x, y, a, num;
int i, j, k;
int count = 0;
scanf("%d %d %d", &w, &h, &n);
for(i = 0; i < n; i++) {
scanf("%d %d %d", &x, &y, &a);
if (a == 1) {
for (j = 0; j < x; j++) {
for (k = 0; k < h; k++) {
if (square[j][k] == 0 ) ... | 128 | memory_bytes | {'s_id': 's734954126', 'p_id': 'p03944', 'u_id': 'u312541284', 'date': '1504552383', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '947'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main()\n{\n\tchar square[100][100] = { 0 };\n\tint w, h, n, x, y, a, num;\n\tint i, j, k;\n\tint count = 0... |
CDSS_689643 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<string.h>
/*
各要素は親の値を持っておけばいい
*/
int main(void){
char s[4];
scanf("%s",s);
if(s[0] == s[2]){
printf("Yes\n");
}else{
printf("No\n");
}
return 0;
} | 128 | memory_bytes | {'s_id': 's003001077', 'p_id': 'p03631', 'u_id': 'u344618311', 'date': '1537301312', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '284'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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/*\n各要素は親の値を持っておけばいい\n\n*/\n\nint main(void){\n ch... |
CDSS_640736 | CDSS | #include <stdio.h>
#include <limits.h>
#define min(X, Y) ((X) < (Y) ? (X) : (Y))
int dp[100005];
int coin[100];
const int inf = INT_MAX / 2;
int main()
{
int n;
scanf("%d", &n);
int coin_num = 0;
coin[0] = 9;
while (coin[coin_num] < n) {
coin_num++;
coin[coin_num] = coin[coin_num - 1] * 9;
}
coin_num++... | 512 | memory_bytes | {'s_id': 's454941596', 'p_id': 'p03329', 'u_id': 'u683588090', 'date': '1554071198', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '512', 'code_size': '702'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <limits.h>\n\n#define min(X, Y) ((X) < (Y) ? (X) : (Y))\n\nint dp[100005];\nint coin[100];\nconst int i... |
CDSS_581123 | CDSS | #include<stdio.h>
int main(){
int n,a,now = -1,count = 0;
scanf("%d",&n);
for(;n > 0;n--){
scanf("%d",&a);
if(now <= a){count++;now = a;}
}
printf("%d\n",count);
return 0;
}
| 128 | memory_bytes | {'s_id': 's584184551', 'p_id': 'p03072', 'u_id': 'u209927535', 'date': '1555182429', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '195'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n int n,a,now = -1,count = 0;\n scanf(\"%d\",&n);\n for(;n > 0;n--){\n scanf(\"%d\",&a);\n ... |
CDSS_165561 | CDSS |
#include<stdio.h>
void bubbleSort(int A[],int N);
int count=0;
int main()
{
int i;
int A[100],N;
scanf("%d",&N);
for(i=0;i<N;++i){
scanf("%d",&A[i]);
}
bubbleSort(A,N);
for(i=0;i<N;i++){
printf("%d",A[i]);
if(i!=N-1)printf(" ");
}
printf("\n");
printf("%d\n",count);
return 0... | 604 | memory_bytes | {'s_id': 's739436980', 'p_id': 'p02259', 'u_id': 'u092025520', 'date': '1461126413', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '604', 'code_size': '515'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n\n#include<stdio.h>\n\nvoid bubbleSort(int A[],int N);\n\nint count=0;\n\nint main()\n{\n\n int i;\n int A[100],N;\n\n scanf(\"... |
CDSS_199839 | CDSS | #include<stdio.h>
#define N 2000
int i, n,q,A[N],mi[N];
int solve(int i, int m){
if(m == 0) return 1;
if(i >= n) return 0;
int res=solve(i+1,m)||solve(i+1,m-A[i]);
return res;
}
int main(){
scanf("%d", &n);
for(i = 0; i < n; i++){
scanf("%d", &A[i]);
}
scanf("%d", &q);
for(i = 0; i < q; i++)... | 584 | memory_bytes | {'s_id': 's150388132', 'p_id': 'p02271', 'u_id': 'u736567965', 'date': '1495076683', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1310', 'memory': '584', 'code_size': '479'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#define N 2000\nint i, n,q,A[N],mi[N];\nint solve(int i, int m){\n if(m == 0) return 1;\n if(i >= n) return 0;\... |
CDSS_512842 | CDSS | #include <stdio.h>
int main()
{
int n;
scanf("%d",&n);
char s[10000 + 1];
scanf("%s",&s);
int i;
i = 0;
while (s[i])
{
s[i] += n;
if (s[i] > 'Z')
{
s[i] = s[i] - 'Z' + 'A' - 1;
}
i++;
}
printf("%s",s);
} | 128 | memory_bytes | {'s_id': 's997637326', 'p_id': 'p02848', 'u_id': 'u827935538', 'date': '1588390655', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '250'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main()\n{\n int n;\n scanf(\"%d\",&n);\n char s[10000 + 1];\n scanf(\"%s\",&s);\n int i;\n i = 0;\n ... |
CDSS_190801 | CDSS | #include <stdio.h>
int main(){
int i,j,S[10000],T[500],n,q,C=0;
scanf("%d",&n);
for(j=0;j<n;j++){
scanf("%d",&S[j]);
}
scanf("%d",&q);
for(j=0;j<q;j++){
scanf("%d",&T[j]);
}
for(j=0;j<q;j++){
i = 0;
S[n] = T[j];
while(T[j] != S[i]){
i++;
}
if(i < n) C++;
}
... | 2,104 | memory_bytes | {'s_id': 's411072661', 'p_id': 'p02267', 'u_id': 'u087575580', 'date': '1576749597', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '357'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n int i,j,S[10000],T[500],n,q,C=0;\n \n scanf(\"%d\",&n);\n for(j=0;j<n;j++){\n scanf(\"%d\... |
CDSS_317062 | CDSS | /*
* main.c
*
* Created on: 2020/07/27
* Author: 113896
*/
#include <stdio.h>
#define PI 3.14159265358979
int main() {
double r;
scanf("%lf", &r);
printf("%.6lf %.6lf", r*r*PI, r*2.0*PI);
return 0;
}
| 2,072 | memory_bytes | {'s_id': 's957446589', 'p_id': 'p02400', 'u_id': 'u035401074', 'date': '1595817296', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2072', 'code_size': '222'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n/*\n * main.c\n *\n * Created on: 2020/07/27\n * Author: 113896\n */\n#include <stdio.h>\n\n#define PI 3.14159265358979\n\nint... |
CDSS_406380 | CDSS | #include <stdio.h>
int main(void){
int A,B;
scanf("%d %d", &A, &B);
printf("%d", A*B);
return 0;
}
| 1,700 | memory_bytes | {'s_id': 's749459611', 'p_id': 'p02657', 'u_id': 'u210041761', 'date': '1597032255', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1700', 'code_size': '115'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n int A,B;\n scanf(\"%d %d\", &A, &B);\n \n printf(\"%d\", A*B);\n \n\n return 0;\n}\n\n... |
CDSS_454768 | CDSS | #include <stdio.h>
int main(void)
{
int num, i;
long long int sum=0;
scanf("%d", &num);
for(i=1;i<=num;i++) {
if(i%3!=0&&i%5!=0)
sum+=i;
}
printf("%lld\n", sum);
return 0;
} | 1,732 | memory_bytes | {'s_id': 's663612770', 'p_id': 'p02712', 'u_id': 'u221135975', 'date': '1591035111', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1732', 'code_size': '197'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void)\n{\n int num, i;\n long long int sum=0;\n scanf(\"%d\", &num);\n for(i=1;i<=num;i++) {\n i... |
CDSS_137782 | CDSS | #include <stdio.h>
#include <stdlib.h>
#define INF -1
typedef struct{
int d;
int f;
}timestamp;
typedef struct{
int u;
int k;
int *v;
}graph;
graph g[110];
timestamp t[110];
int mytime = 0;
int q[110];
void bfs(void);
int main(void){
int i,j,n;
scanf("%d", &n);
for(i = 0; i <= n; i++){
q[i]... | 600 | memory_bytes | {'s_id': 's893633971', 'p_id': 'p02239', 'u_id': 'u655231957', 'date': '1468389874', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '1030'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\n#define INF -1\n\ntypedef struct{\n int d;\n int f;\n}timestamp;\n\ntypedef struct{\n ... |
CDSS_518005 | CDSS | #include <stdio.h>
int main(){
int a,b;
scanf("%d %d",&a,&b);
if(a>9 || b>9) puts("-1");
else printf("%d\n",a*b);
return 0;
} | 128 | memory_bytes | {'s_id': 's242623591', 'p_id': 'p02879', 'u_id': 'u201829141', 'date': '1572225028', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '166'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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>9 || b>9) puts(\"-1\");\n ... |
CDSS_611687 | CDSS | #define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main(void) {
int n, t, a, h[1001], index=0, i, poor[1001], min;
scanf("%d%d%d", &n, &t, &a);
scanf("%d", h);
poor[0] = 1000*a-1000*t+h[0]*6;
if (poor[0] < 0) {
poor[0] *= -1;
}
min = poor[0];
for (i = 1; i < n; i++) {
scanf("%d", h + i);
po... | 128 | memory_bytes | {'s_id': 's833803317', 'p_id': 'p03220', 'u_id': 'u335971372', 'date': '1588707535', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '504'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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\n\tint n, t, a, h[1001], index=0, i, poor[1001], min;\n\n\... |
CDSS_291276 | CDSS | #include <stdio.h>
int main (){
int x,y,w,h,r;
scanf("%d %d %d %d %d",&w,&h,&x,&y,&r);
if(((x-r)<0)||((y-r)<0)||((x+r)>w)||((y+r)>h)) printf("No\n");
else printf("Yes\n");
return 0;
} | 584 | memory_bytes | {'s_id': 's317627935', 'p_id': 'p02394', 'u_id': 'u924810243', 'date': '1492402967', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '584', 'code_size': '200'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n \nint main (){\n int x,y,w,h,r;\n \n scanf(\"%d %d %d %d %d\",&w,&h,&x,&y,&r);\n if(((x-r)<0)||((y-r)<0)||((... |
CDSS_86243 | CDSS | #include<stdio.h>
#include<stdlib.h>
typedef struct team{
char n[9];
int p[5];
}TEAM;
TEAM a[15];
int comp(const void *_p,const void *_q){
TEAM *x=(TEAM *)_p,*y=(TEAM *)_q;
if(x->p[0] != y->p[0]){
return y->p[0] - x->p[0];
}else{
return x->p[1] - y->p[1];
}
}
int main(){
int n,i,j,d;
while(scanf("%d",&n)!=E... | 0 | memory_bytes | {'s_id': 's880748926', 'p_id': 'p00196', 'u_id': 'u500961378', 'date': '1314957529', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '578'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\ntypedef struct team{\n\tchar n[9];\n\tint p[5];\n}TEAM;\nTEAM a[15];\nint comp(const void *_p... |
CDSS_711929 | CDSS | #include<stdio.h>
int main(){
int a,b,c;
scanf("%d%d%d",&a,&b,&c);
if(a+c==2*b)
puts("YES");
else
puts("NO");
return 0;
} | 1,604 | memory_bytes | {'s_id': 's206662237', 'p_id': 'p03759', 'u_id': 'u917851778', 'date': '1594087463', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1604', 'code_size': '139'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int a,b,c;\n scanf(\"%d%d%d\",&a,&b,&c);\n if(a+c==2*b)\n puts(\"YES\");\n else\n puts(\"... |
CDSS_482437 | CDSS | #include <stdio.h>
int main(void){
int N;
int i,j,k;
int bingo[3][3];
for(i=0 ;i<3 ;i++){
for(j=0 ; j<3 ; j++){
bingo[i][j]=0;
}
}
int Aar[3][3];
for(i=0 ;i<3 ;i++){
for(j=0 ; j<3 ; j++){
scanf("%d",&Aar[i][j]);
}
}
scanf("%d",... | 128 | memory_bytes | {'s_id': 's935459771', 'p_id': 'p02760', 'u_id': 'u245847722', 'date': '1583358642', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '929'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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 i,j,k;\n int bingo[3][3];\n for(i=0 ;i<3 ;i++){\n for(j=0 ; ... |
CDSS_303904 | CDSS | #include<stdio.h>
int main()
{
int x,y;
while(1){
scanf("%d %d",&x,&y);
if(x == 0 && y == 0)
break;
if(x < y)
printf("%d %d\n",x,y);
else
printf("%d %d\n",y,x);
}
return 0;
}
| 2,040 | memory_bytes | {'s_id': 's441916780', 'p_id': 'p02397', 'u_id': 'u087630821', 'date': '1532575940', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2040', 'code_size': '259'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main()\n{\n int x,y;\n while(1){\n scanf(\"%d %d\",&x,&y);\n if(x == 0 && y == 0)\n ... |
CDSS_624116 | CDSS | #include <stdio.h>
#include <stdbool.h>
char f[100][100];
bool isBrackW[100];
bool isBrackH[100];
int main() {
int h, w;
bool isErase;
scanf("%d%d", &h, &w);
for (int i = 0; i < h; i++) {
scanf("%s", f[i]);
}
for (int i = 0; i < h; i++) {
for (int j = 0; j < w; j++) {
if (f[i][j] == '#')
isBrackH[i] = ... | 128 | memory_bytes | {'s_id': 's189318218', 'p_id': 'p03273', 'u_id': 'u030504180', 'date': '1585690766', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '630'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdbool.h>\nchar f[100][100];\nbool isBrackW[100];\nbool isBrackH[100];\nint main() {\n\tint h, w;\n\t... |
CDSS_244642 | CDSS | #include<stdio.h>
int main(int argc){
int x;
scanf("%d", &x);
x=x*x*x;
printf("%d\n", x);
return 0;
} | 596 | memory_bytes | {'s_id': 's534415156', 'p_id': 'p02388', 'u_id': 'u567788288', 'date': '1491545005', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '113'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n \nint main(int argc){\n \nint x;\n \nscanf(\"%d\", &x);\n \nx=x*x*x;\n \nprintf(\"%d\\n\", x);\n \nreturn 0;\n}\... |
CDSS_94290 | CDSS | #include <stdio.h>
int main(void){
int D,L,N,sum;
scanf ("%d",&D);
scanf ("%d",&L);
printf ("%d\n",(D/L) + (D%L));
return 0;
} | 596 | memory_bytes | {'s_id': 's034115279', 'p_id': 'p00312', 'u_id': 'u725100494', 'date': '1502237504', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '154'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\n\n int D,L,N,sum;\n \n scanf (\"%d\",&D);\n scanf (\"%d\",&L);\n\n printf (\"%d\... |
CDSS_496608 | CDSS | #include <stdio.h>
int main(void){
int N, M;
scanf("%d %d",&N,&M);
if(M==N){
printf("Yes");
}
else{
printf("No");
}
return 0;
}
| 128 | memory_bytes | {'s_id': 's345017588', 'p_id': 'p02789', 'u_id': 'u776439373', 'date': '1582482815', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '153'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n\n int N, M;\n scanf(\"%d %d\",&N,&M);\n if(M==N){\n printf(\"Yes\");\n }\n else{\n ... |
CDSS_258548 | CDSS | #include<stdio.h>
int main(void)
{
int a,b,L,S;
scanf("%d %d",&a,&b);
L=2*(a+b);
S=a*b;
printf("%d %d\n",S,L);
return 0;
}
| 2,040 | memory_bytes | {'s_id': 's948648897', 'p_id': 'p02389', 'u_id': 'u633469782', 'date': '1534384246', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2040', 'code_size': '138'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void)\n{\n\tint a,b,L,S;\n\t\n\tscanf(\"%d %d\",&a,&b);\n\t\n\tL=2*(a+b);\n\tS=a*b;\n\t\n\tprintf(\"%d... |
CDSS_144999 | CDSS | // 1_1_A
#include<stdio.h>
void OutPut(int numbers[], int length){
int i;
for(i = 0; i < length - 1; i++){
printf("%d ", numbers[i]);
}
printf("%d\n", numbers[length - 1]);
return;
}
void InsertionSort(int numbers[], int length){
int i, j, v;
for(i = 1; i < length; i++){
v... | 596 | memory_bytes | {'s_id': 's654465824', 'p_id': 'p02255', 'u_id': 'u949338836', 'date': '1471180674', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '782'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n// 1_1_A\n#include<stdio.h>\n\nvoid OutPut(int numbers[], int length){\n int i;\n for(i = 0; i < length - 1; i++){\n pr... |
CDSS_335862 | CDSS | #include <stdio.h>
int main(void){
int H,W,h,w;
while(1){
scanf("%d %d",&H,&W);
if(H==0 && W==0)
break;
for(h=1; h<=H; h++){
for(w=1; w<=W; w++){
if((w+h)%2==0 )
putchar('#');
else
putchar('.');
}
putchar('\n');
}
putchar('\n');
}
return 0;
} | 572 | memory_bytes | {'s_id': 's016661160', 'p_id': 'p02405', 'u_id': 'u268789461', 'date': '1470935101', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '572', 'code_size': '300'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\n int H,W,h,w;\n while(1){\n scanf(\"%d %d\",&H,&W);\n if(H==0 && W==0)\n\tbreak;\n ... |
CDSS_288495 | CDSS | #include <stdio.h>
int main(){
int a, b, c;
scanf("%d %d %d", &a, &b, &c);
if( a < b ){
if( b < c ){
printf("%d %d %d\n", a, b, c);
}else{
if( c < a ){
printf("%d %d %d\n", c, a, b);
}else{
printf("%d %d %d\n", a, c, b);
}
}
}els... | 2,140 | memory_bytes | {'s_id': 's818651320', 'p_id': 'p02393', 'u_id': 'u502612806', 'date': '1539874123', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2140', 'code_size': '561'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n int a, b, c;\n scanf(\"%d %d %d\", &a, &b, &c);\n if( a < b ){\n if( b < c ){\n ... |
CDSS_258087 | CDSS | #include<stdio.h>
int main(void)
{
int a, b;
int s,f;
scanf("%d %d", &a, &b);
f = 2*a +2*b;
s = a*b;
printf("%d %d\n",s, f);
return 0;
}
| 2,084 | memory_bytes | {'s_id': 's179949697', 'p_id': 'p02389', 'u_id': 'u397063908', 'date': '1568962289', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2084', 'code_size': '147'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\n\tint a, b;\n\tint s,f;\n\tscanf(\"%d %d\", &a, &b);\n\tf = 2*a +2*b;\n\ts = a*b;\n\tprintf(\"... |
CDSS_680370 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <ctype.h>
int main(){
int n,k,soma=1;
scanf("%d %d",&n,&k);
for(int i=0;i<n;i++){
if(soma*2<=soma+k){
soma=soma*2;
}else if(soma+k<=soma*2){
soma=soma+k;
}
}
printf("%d\n",soma);
... | 128 | memory_bytes | {'s_id': 's950119308', 'p_id': 'p03564', 'u_id': 'u109867600', 'date': '1575694682', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '335'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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 <ctype.h>\n\nint main(){\n\n\n int n,k,soma=1;\n\n scanf(... |
CDSS_378618 | CDSS | #include <stdio.h>
int main(){
int d,t,s;
scanf("%d %d %d", &d, &t, &s);
t=s*t;
if(t>=d){
printf("Yes\n");
}
else{
printf("No\n");
}
return 0;
} | 1,660 | memory_bytes | {'s_id': 's931319708', 'p_id': 'p02570', 'u_id': 'u634350349', 'date': '1598727966', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '7', 'memory': '1660', 'code_size': '196'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n int d,t,s;\n\n scanf(\"%d %d %d\", &d, &t, &s);\n\n t=s*t;\n\n if(t>=d){\n pr... |
CDSS_211485 | CDSS | #include <stdio.h>
#include <stdlib.h>
#define N 100001
#define MAX 100001
int A[MAX];
int partition(int p, int r){
int x,i,j,kari;
x = A[r];
i = p - 1;
for(j=p; j<r; j++){
if(A[j] <= x){
i++;
kari = A[i];
A[i] = A[j];
A[j] = kari;
}
}
kari = A[i+1];
A[i+1] = A[r];
... | 992 | memory_bytes | {'s_id': 's436548330', 'p_id': 'p02276', 'u_id': 'u710741012', 'date': '1501771575', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '992', 'code_size': '658'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#define N 100001\n#define MAX 100001\n \nint A[MAX];\n \nint partition(int p, int r){\n in... |
CDSS_65519 | CDSS | #include<stdio.h>
#include<string.h>
int main(){
int i,slen;
char str[1002],b;
fgets(str,1000,stdin);
slen=strlen(str);
for(i=0;i<slen;i++){
if(str[i]=='a'&&i+4<slen){
if(!strncmp(str+i+1,"pple",4)){
b=str[i+5];
strcpy(str+i,"peach");
str[i+5]=b;
}
}else if(str[i]=='p'&&i+4<slen){
... | 0 | memory_bytes | {'s_id': 's680922731', 'p_id': 'p00050', 'u_id': 'u540597234', 'date': '1309300773', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '455'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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 int i,slen;\n char str[1002],b;\n fgets(str,1000,stdin);\n slen=strlen(st... |
CDSS_233520 | CDSS | #include <stdio.h>
#include <math.h>
int main() {
double x1,x2,y1,y2;
double x,y,z;
scanf("%lf %lf %lf %lf",&x1,&y1,&x2,&y2);
x = (x2-x1) * (x2-x1);
y = (y2-y1) * (y2-y1);
printf("%.11lf",sqrt(x+y));
return 0;
}
| 2,096 | memory_bytes | {'s_id': 's768073346', 'p_id': 'p02379', 'u_id': 'u472996874', 'date': '1531182040', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2096', 'code_size': '220'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n\nint main() {\n\ndouble x1,x2,y1,y2;\ndouble x,y,z;\nscanf(\"%lf %lf %lf %lf\",&x1,&y1,&x2,&... |
CDSS_592692 | CDSS | #include <stdio.h>
#include <math.h>
int main(void)
{
char s[100000];
int i,cnt[2]={0},n;
scanf("%s",s);
n=strlen(s);
for(i=0;i<n;i++){
cnt[s[i] - '0']++;
}
printf("%d\n",(int)fmin(cnt[0],cnt[1])*2);
return 0;
}
| 256 | memory_bytes | {'s_id': 's450342329', 'p_id': 'p03107', 'u_id': 'u573564324', 'date': '1551687391', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '256', 'code_size': '223'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n\nint main(void)\n{\n\tchar s[100000];\n\tint i,cnt[2]={0},n;\n\tscanf(\"%s\",s);\n\tn=strlen... |
CDSS_165326 | CDSS | #include<stdio.h>
#define N 100
void swap(int*, int*);
void pr(int*, int);
int main(){
int n, i, j, k;
int t=0; // times
int a[N];
scanf("%d", &n);
for ( i = 0; i < n; i++ ) scanf("%d", &a[i]);
for( i = 0 ; i < n ; i++){
for(j = n-1 ; j > i ; j--){
if( a[j] < a[j-1] ){
swap(&a[j] ,&a[j-1]);
... | 604 | memory_bytes | {'s_id': 's551288890', 'p_id': 'p02259', 'u_id': 'u789419412', 'date': '1460602045', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '604', 'code_size': '618'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#define N 100\n\nvoid swap(int*, int*);\nvoid pr(int*, int);\n\nint main(){\n int n, i, j, k;\n int t=0; // tim... |
CDSS_402932 | CDSS | #include<stdio.h>
int main(void){
int a,b,c=0,i,x,y;
scanf("%d %d",&x,&y);
for(i=0;i<=x;i++){
a=i;
b=x-i;
if(2*a+4*b==y){
c=1;
break;
}
}
if(c==1){
printf("Yes\n");
}
else{
printf("No");
}
return 0;
} | 1,684 | memory_bytes | {'s_id': 's296827569', 'p_id': 'p02640', 'u_id': 'u505326617', 'date': '1592195700', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '1684', 'code_size': '255'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void){\n int a,b,c=0,i,x,y;\n scanf(\"%d %d\",&x,&y);\n for(i=0;i<=x;i++){\n a=i;\n b=x-i;\n ... |
CDSS_512157 | CDSS | #include <stdio.h>
int main()
{
char str[3];
gets(str);
if(str[0] == 'M'){
printf("6\n");
}
else if(str[0] == 'T' && str[1] == 'U'){
printf("5\n");
}
else if(str[0] == 'W'){
printf("4\n");
}
else if(str[1] == 'H'){
printf("3\n");
}
else if(str... | 1,488 | memory_bytes | {'s_id': 's243673100', 'p_id': 'p02847', 'u_id': 'u816631826', 'date': '1595474251', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1488', 'code_size': '493'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main()\n{\n char str[3];\n gets(str);\n if(str[0] == 'M'){\n printf(\"6\\n\");\n }\n ... |
CDSS_344730 | CDSS | #include<stdio.h>
int main(void)
{
int i,n,a,num[52]={};
char b;
scanf("%d",&n);
for(i=0;i<n;i++)
{
scanf(" %c",&b);
scanf("%d",&a);
switch(b)
{
case 'S':
num[a-1]=a;
break;
case 'H':
num[a+12]=a;
break;
case 'C':
num[a+25]=a;
break;
case 'D':
... | 596 | memory_bytes | {'s_id': 's166780828', 'p_id': 'p02408', 'u_id': 'u873302699', 'date': '1425646724', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '608'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\n int i,n,a,num[52]={};\n char b;\n scanf(\"%d\",&n);\n for(i=0;i<n;i++)\n {\n scan... |
CDSS_709836 | CDSS | #include <stdio.h>
int main (){
int i,a[200002],t,n,sum;
scanf ("%d%d",&n,&t);
for (i=0;i<n;i++){
scanf ("%d",&a[i]);
}
for (i=0;i<n-1;i++){
if (a[i+1]-a[i]>t){
sum=sum+t;
}
else{
sum=sum+a[i+1]-a[i];
}
}
printf ("%d",sum+t);
return 0;
} | 896 | memory_bytes | {'s_id': 's860274311', 'p_id': 'p03731', 'u_id': 'u444555640', 'date': '1571947232', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '25', 'memory': '896', 'code_size': '271'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main (){\n int i,a[200002],t,n,sum;\n scanf (\"%d%d\",&n,&t);\n for (i=0;i<n;i++){\n scanf (\"%d\",&a[i]... |
CDSS_697626 | CDSS | #include <stdio.h>
int main()
{
int a,b,c,n;
scanf("%d%d%d",&a,&b,&c);
if(a>=b){
if(a>=c){n=b+c;}
if(a<c){n=a+b;}}
else {
if(b>=c){n=a+c;}
if(b<c){n=a+b;}}
printf("%d",n);
return 0;
} | 128 | memory_bytes | {'s_id': 's423509794', 'p_id': 'p03671', 'u_id': 'u018679195', 'date': '1509073507', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '235'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main()\n{\n int a,b,c,n;\n scanf(\"%d%d%d\",&a,&b,&c);\n if(a>=b){\n if(a>=c){n=b+c;}\n ... |
CDSS_296784 | CDSS | #include<stdio.h>
int main()
{
int x, i=0;
while(1){
scanf("%d", &x);
if(x == 0) break;
i++;
printf("Case %d: %d\n", i ,x);
}
return 0;
} | 600 | memory_bytes | {'s_id': 's338767065', 'p_id': 'p02396', 'u_id': 'u694718044', 'date': '1497066282', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '163'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n int x, i=0;\n\n while(1){\n scanf(\"%d\", &x);\n if(x == 0) break;\n \n i++;\n\n printf(\"... |
CDSS_90919 | CDSS | #include <stdio.h>
int main(void)
{
int b[4],cnt;
scanf("%d",&b[1]);
scanf("%d %d",&b[2],&b[3]);
if(((b[1]==1)&&(b[2]==1))||((b[3]==1)&&((b[1]==0)&&(b[2]==0))))
printf("Open\n");
else
printf("Close\n");
scanf("%d",&b[1]);
return 0;
} | 584 | memory_bytes | {'s_id': 's158466372', 'p_id': 'p00252', 'u_id': 'u620915080', 'date': '1471659858', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '584', 'code_size': '244'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void)\n{\n\tint b[4],cnt;\n\tscanf(\"%d\",&b[1]);\n\tscanf(\"%d %d\",&b[2],&b[3]);\n\tif(((b[1]==1)&&(b... |
CDSS_76517 | CDSS | #include<stdio.h>
#include<string.h>
int main(){
int i,n,j,s;
int m[11][11];
char buf[500],*prev,*ind;
do{
fgets(buf,500,stdin);
n=atoi(buf);
if(!n) break;
for(j=0,i=0;i<n;i++,j=0){
fgets(buf,500,stdin);
prev=ind=buf;
while((ind=strchr(ind,' '))!=NULL){
*ind='\0';
ind++;
m[... | 0 | memory_bytes | {'s_id': 's314907887', 'p_id': 'p00102', 'u_id': 'u540597234', 'date': '1311736162', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '690'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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 int i,n,j,s;\n int m[11][11];\n char buf[500],*prev,*ind;\n do{\n fget... |
CDSS_258091 | CDSS | #include<stdio.h>
int main( void){
int a , b;
int s , l;
scanf( "%d %d" , &a , &b );
s = a * b;
l = 2 * ( a + b );
printf( "%d %d\n" , s , l );
}
| 2,084 | memory_bytes | {'s_id': 's226805113', 'p_id': 'p02389', 'u_id': 'u839873872', 'date': '1568961987', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2084', 'code_size': '196'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main( void){\n \n int a , b;\n int s , l;\n \n scanf( \"%d %d\" , &a , &b );\n \n s = ... |
CDSS_167183 | CDSS | #include<stdio.h>
int main(void){
int n,flag,count,A;
int data[99];
count=0;
scanf("%d",&n);
int i,j;
for(i=0;i<n;i++){
scanf("%d",&data[i]);
}
flag=1;
while(flag){
flag=0;
for(j=n-1; j>=1;j--){
if(data[j]<data[j-1]){
A=data[j];
data[j]=data[j-1];
data[j-1]=A;
count++;
flag=1;
}
}
}
printf("%d",data[0]);
for(i=1; ... | 1,796 | memory_bytes | {'s_id': 's968482362', 'p_id': 'p02259', 'u_id': 'u648209196', 'date': '1510711344', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1796', 'code_size': '380'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n \nint main(void){\nint n,flag,count,A;\nint data[99];\ncount=0;\nscanf(\"%d\",&n);\nint i,j; \nfor(i=0;i<n;i++... |
CDSS_398823 | CDSS | #include<stdio.h>
main(){
char x;
scanf("%c",&x);
if(x>='a' && x<='z'){
printf("a");
}
else{
printf("A");
}
return 0;
}
| 1,600 | memory_bytes | {'s_id': 's591255559', 'p_id': 'p02627', 'u_id': 'u995267970', 'date': '1593058765', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1600', 'code_size': '123'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nmain(){\nchar x;\nscanf(\"%c\",&x);\n \nif(x>='a' && x<='z'){\nprintf(\"a\");\n}\nelse{\nprintf(\"A\");\n}\nretur... |
CDSS_675241 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define ll long long
#define rep(i,l,r)for(ll i=(l);i<(r);i++)
#define max(p,q)((p)>(q)?(p):(q))
#define min(p,q)((p)<(q)?(p):(q))
int main(){
ll a;
scanf("%lld",&a);
puts(a%1000%111==0||a/10%111==0?"Yes":"No");
} | 128 | memory_bytes | {'s_id': 's040980320', 'p_id': 'p03543', 'u_id': 'u382163500', 'date': '1546290088', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '276'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#define ll long long\n#define rep(i,l,r)for(ll i=(l);i<(r);i++)\n#defi... |
CDSS_651245 | CDSS | #include<stdio.h>
#include<math.h>
main(){
int A,B,K,i;
scanf("%d %d %d",&A,&B,&K);
if((B-A+1) < K*2){
for(i=A;i<=B;i++){
printf("%d\n",i);
}
}
else{
for(i=A;i<=A+K-1;i++){
print... | 128 | memory_bytes | {'s_id': 's395401095', 'p_id': 'p03386', 'u_id': 'u127414352', 'date': '1523494515', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '465'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<math.h>\n \nmain(){\n \n int A,B,K,i;\n scanf(\"%d %d %d\",&A,&B,&K);\n \n if((B-A+... |
CDSS_603099 | CDSS | #include <stdio.h>
int hap[100001][3];
int dp[100001][3];
int max1(int a, int b) {
if (a > b)
return a;
else
return b;
}
int main(void)
{
int N,i;
scanf("%d",&N);
for(i=0;i<N;i++){
scanf("%d%d%d",&hap[i][0],&hap[i][1],&hap[i][2]);
dp[i][0]=dp[i][1]=dp[i][2]=0;
}
for(i=1;i<=N;i++){
... | 2,560 | memory_bytes | {'s_id': 's161399614', 'p_id': 'p03162', 'u_id': 'u656797515', 'date': '1569498894', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '26', 'memory': '2560', 'code_size': '650'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint hap[100001][3];\nint dp[100001][3];\n\nint max1(int a, int b) {\n if (a > b)\n return a;\n el... |
CDSS_136305 | CDSS | #include<stdio.h>
#define BLACK -1
#define GRAY -2
#define WHITE -3
void DFSvisit(int);
int G[100][100],d[100],f[100],color[100];
int n,time;
void DFS(int n){
int i;
for(i=0;i<n;i++){
if(color[i]==WHITE){
DFSvisit(i);
}
}
}
void DFSvisit(int u){
int i;
color[u]=GRAY;
time++;
d[u]=tim... | 640 | memory_bytes | {'s_id': 's575103781', 'p_id': 'p02238', 'u_id': 'u653843304', 'date': '1405573925', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '640', 'code_size': '796'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\n#define BLACK -1\n#define GRAY -2\n#define WHITE -3\n\nvoid DFSvisit(int);\n\nint G[100][100],d[100],f[100],co... |
CDSS_573070 | CDSS | #include <stdio.h>
#include <string.h>
int main(void){
int x,y,a,count,count2;
count = count2 = 0;
scanf("%d %d\n",&x, &y);
x = x - y;
count2 = x + 1;
printf("%d",count2);
return 0;
} | 128 | memory_bytes | {'s_id': 's864619860', 'p_id': 'p03047', 'u_id': 'u776632505', 'date': '1557623939', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '216'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\nint main(void){\n int x,y,a,count,count2;\n count = count2 = 0;\n scanf(\"%d %d\\n... |
CDSS_129311 | CDSS | #include<stdio.h>
#include<stdlib.h>
#define N 45
int F[N];
int fibonacci(int n){
int i;
F[0]=F[1]=1;
for(i = 2;i <= n;i++){
F[i] = F[i- 2] + F[i -1];
}
return F[n];
}
int main(){
int n;
scanf("%d",&n);
printf("%d\n",fibonacci(n));
return 0;
}
| 2,108 | memory_bytes | {'s_id': 's359959300', 'p_id': 'p02233', 'u_id': 'u983188948', 'date': '1532181119', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '297'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n\n\n#define N 45\nint F[N];\n\nint fibonacci(int n){\n int i;\n F[0]=F[1]=1;\n for(i... |
CDSS_601905 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <math.h>
#define ll long long
//edpc_a
ll N,h[100010];
ll dp[100100];
ll min(ll a, ll b){
if(a<b)return a;
else return b;
}
int main(void){
scanf("%lld",&N);
for(ll i=0;i<N;i++){
scanf("%lld",&h[i]);
... | 3,252 | memory_bytes | {'s_id': 's633118131', 'p_id': 'p03160', 'u_id': 'u455586058', 'date': '1594572897', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '24', 'memory': '3252', 'code_size': '514'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <stdbool.h>\n#include <math.h>\n#define ll long long\n\n//edp... |
CDSS_231078 | CDSS | #include <stdio.h>
#include <math.h>
double get_radian(double x1, double y1, double x2, double y2) {
if(fabs(x1-x2) < 0.00000001) {
if(y1 >= y2) {
return 3 * M_PI / 2;
}
return M_PI / 2;
} else if(fabs(y1-y2) < 0.00000001) {
if(x1 >= x2) {
return M_PI;
}
return 0.0;
}
if(x2 >= x1) {
if(y2 >= ... | 780 | memory_bytes | {'s_id': 's219311026', 'p_id': 'p02290', 'u_id': 'u703161091', 'date': '1406271283', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '780', 'code_size': '1204'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n\ndouble get_radian(double x1, double y1, double x2, double y2) {\n\tif(fabs(x1-x2) < 0.00000... |
CDSS_122118 | CDSS | n,m,p,i,x,s,w;
main()
{
for(;scanf("%d%d%d",&n,&m,&p),n; printf("%d\n",w?(int)(s*((100-p)/100.0))/w:0))
for(s=i=0;i++<n;s+=x*100)
scanf("%d",&x),w=i-m?w:x;
exit(0);
} | 0 | memory_bytes | {'s_id': 's580441709', 'p_id': 'p01143', 'u_id': 'u752673456', 'date': '1324365560', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '184'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\nn,m,p,i,x,s,w;\nmain()\n{\n for(;scanf(\"%d%d%d\",&n,&m,&p),n; printf(\"%d\\n\",w?(int)(s*((100-p)/100.0))/w:0))\n for(s=i=0;i++... |
CDSS_99202 | CDSS | #include<stdio.h>
int main(void){
int seito[30]={0},i,no;
for(i=0;i<28;i++){
scanf("%d",&no);
seito[no-1]=1;
}
for(i=0;i<30;i++){
if(!seito[i]){
printf("%d\n",i+1);
}
}
return 0;
} | 596 | memory_bytes | {'s_id': 's935641134', 'p_id': 'p00434', 'u_id': 'u113556167', 'date': '1447079895', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '198'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n\tint seito[30]={0},i,no;\n\n\tfor(i=0;i<28;i++){\n\t\tscanf(\"%d\",&no);\n\t\tseito[no-1]=1;\n\... |
CDSS_454448 | CDSS | #include <stdio.h>
int main(){
long sum = 0;
int s;
scanf("%d", &s);
for(int i = 0; i <= s; i++){
if(i % 3 != 0 && i % 5 != 0){
sum += i;
}
}
printf("%lld",sum);
return 0;
} | 1,728 | memory_bytes | {'s_id': 's771517960', 'p_id': 'p02712', 'u_id': 'u816631826', 'date': '1596942613', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '7', 'memory': '1728', 'code_size': '237'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n \nint main(){\n long sum = 0;\n int s;\n scanf(\"%d\", &s);\n \n\tfor(int i = 0; i <= s; i++){\... |
CDSS_436397 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
int cmp(const void* x, const void* y) {
return strcmp(x, y);
}
int N;
char S[222222][12];
int main(void) {
int i;
int count = 1;
if (scanf("%d", &N) != 1) return 1;
for (i = 0; i < N; i++) {
if (scanf("%11s", S[i]) != 1) return 1;
}
qsort(S, N, size... | 6,264 | memory_bytes | {'s_id': 's577254552', 'p_id': 'p02701', 'u_id': 'u646118499', 'date': '1587949311', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '74', 'memory': '6264', 'code_size': '445'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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 cmp(const void* x, const void* y) {\n\treturn strcmp(x, y);\n}\n... |
CDSS_72506 | CDSS | #include <stdio.h>
#include <string.h>
// 32 -
const char *c2b[] = {
"101", "", "", "", "", "", "", "000000", "", "", "", "",
"000011", "10010001", "010001", "", "", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "000001", "", "100101",
"10011010", "0101", "0001", "110", "01001", "10011011"... | 524 | memory_bytes | {'s_id': 's937979384', 'p_id': 'p00088', 'u_id': 'u813270418', 'date': '1404796024', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', 'code_size': '2244'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\n// 32 - \nconst char *c2b[] = {\n \"101\", \"\", \"\", \"\", \"\", \"\", \"\", \"00000... |
CDSS_735005 | CDSS | #include<stdio.h>
int main(){
int n,k;
scanf("%d %d",&n,&k);
int answer=k;
for(int i=1;i<n;i++){
answer*=(k-1);
}
printf("%d",answer);
return 0;
} | 128 | memory_bytes | {'s_id': 's640266898', 'p_id': 'p03963', 'u_id': 'u060823879', 'date': '1476727176', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '146'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\nint n,k;\nscanf(\"%d %d\",&n,&k);\nint answer=k;\nfor(int i=1;i<n;i++){\nanswer*=(k-1);\n}\nprintf(\... |
CDSS_648451 | CDSS | #include<stdio.h>
int main(void) {
int a, b, c, x, y, ab = 0,h,t,i,d;
scanf("%d%d%d%d%d", &a, &b, &c, &x, &y);
h = (x > y) ? y:x;
t = (x > y) ? x - y : y - x;
if (a + b < c * 2) {
ab += ((a + b) * h);
}
else {
ab += ((c * 2)* h);
}
if (x > y) {
d = (a > c * 2) ? c * 2 : a;
ab += (d * t);
}
else {
d... | 128 | memory_bytes | {'s_id': 's471468130', 'p_id': 'p03371', 'u_id': 'u794921280', 'date': '1524362765', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '401'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void) {\n\tint a, b, c, x, y, ab = 0,h,t,i,d;\n\tscanf(\"%d%d%d%d%d\", &a, &b, &c, &x, &y);\n\th = (x > ... |
CDSS_577814 | CDSS | #include <stdio.h>
#include <stdlib.h>//random,NULL
#include <string.h>
#include <time.h>
#include <unistd.h>//sleep()
#include <math.h>
#include <stdbool.h>
#define rep(i,n) for(int i=0; i<((int)n); i++)
#define REP(i,n) for(int i=0; i<=((int)n); i++)
#define srep(i,a,n) for(int i=a; i<((int)n); i++)
#define SREP(i,a... | 256 | memory_bytes | {'s_id': 's914674570', 'p_id': 'p03067', 'u_id': 'u885352715', 'date': '1555808601', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '256', 'code_size': '692'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>//random,NULL\n#include <string.h>\n#include <time.h>\n#include <unistd.h>//sleep()\n#include... |
CDSS_279875 | CDSS | #include<stdio.h>
int main(void){
int a, b, c;
scanf("%d %d %d", &a, &b, &c);
if(a < b && b < c){
printf("Yes\n");
}else{
printf("No\n");
}
return 0;
}
| 2,104 | memory_bytes | {'s_id': 's216600507', 'p_id': 'p02392', 'u_id': 'u951499500', 'date': '1527768038', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '176'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void){\n int a, b, c;\n\n scanf(\"%d %d %d\", &a, &b, &c);\n if(a < b && b < c){\n printf(\"Yes\... |
CDSS_186442 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
struct node
{
unsigned int key;
struct node *next;
struct node *prev;
};
typedef struct node * NodePointer;
NodePointer nil;
NodePointer listSearch(int key){
NodePointer cur = nil->next;
while(cur!=nil && cur->key != key)
{
cur = cur->next;
... | 32,988 | memory_bytes | {'s_id': 's187829362', 'p_id': 'p02265', 'u_id': 'u569815091', 'date': '1549202841', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '220', 'memory': '32988', 'code_size': '1704'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\nstruct node\n{\n unsigned int key;\n struct node *next;\n struct ... |
CDSS_672863 | CDSS | #include <stdio.h>
int main(){
int i, j, k, N, A[201];
int count = 0;
int minimum = 30;
scanf("%d", &N);
for (k = 0; k <= N-1; k++){
scanf("%d", &A[k]);
}
for (j=0; j<=N-1; j++){
for (i=1; i<=30; i++){
if (A[j] % 2 == 0){
count += 1;
... | 128 | memory_bytes | {'s_id': 's168482799', 'p_id': 'p03494', 'u_id': 'u275934251', 'date': '1539615725', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '505'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n int i, j, k, N, A[201];\n int count = 0;\n int minimum = 30;\n scanf(\"%d\", &N);\n ... |
CDSS_59411 | CDSS | //2:14 start
//2:37 writing done
//2:44 passed test case
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
//#define DEBUG
#define MAX_LEN 32
#define MAX_N_WORDS 1000
void word_lower(char* word)
{
int i,len;
len=strlen(word);
for(i=0;i<len;i++){
word[i]=tolower(word[i]);
}
}
typede... | 0 | memory_bytes | {'s_id': 's592860663', 'p_id': 'p00029', 'u_id': 'u980371011', 'date': '1341683053', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '1593'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n//2:14 start\n//2:37 writing done\n//2:44 passed test case\n\n\n#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n\n//#d... |
CDSS_508821 | CDSS | #include <stdio.h>
int main(void) {
long long n, ans = 0, count = 5;
scanf("%lld", &n);
if (n % 2 == 1)
ans = 0;
else
while (count <= n) {
ans += n / count / 2;
count *= 5;
}
printf("%lld", ans);
return 0;
}
| 128 | memory_bytes | {'s_id': 's179140444', 'p_id': 'p02833', 'u_id': 'u579644164', 'date': '1577644746', '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 should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void) {\n\tlong long n, ans = 0, count = 5;\n\tscanf(\"%lld\", &n);\n\tif (n % 2 == 1)\n\t\tans = 0;\n\... |
CDSS_556441 | CDSS | #include <stdio.h>
int main() {
char str[5], prev = 0;
int i;
scanf("%s", str);
for (i = 0; i < 4; i++) {
if (prev == str[i]) {
printf("Bad\n");
return 0;
}
prev = str[i];
}
printf("Good\n");
return 0;
}
| 128 | memory_bytes | {'s_id': 's074968014', 'p_id': 'p02993', 'u_id': 'u311207249', 'date': '1565381482', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '243'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main() {\n char str[5], prev = 0;\n int i;\n scanf(\"%s\", str);\n for (i = 0; i < 4; i++) {\n if (... |
CDSS_369384 | CDSS | #include <stdio.h>
#include <string.h>
#include <ctype.h>
int main(){
char W[11], T[1001];
int i, cnt=0;
scanf("%s",W);
while(1){
scanf("%s",T);
if(strcmp(T,"END_OF_TEXT")==0) break;
for(i=0; i<strlen(T);i++){
if(isupper(T[i])){
T[i] = tolower(T[i]);
}
}
if(strcmp(W,T) == 0) {
cnt++... | 1,772 | memory_bytes | {'s_id': 's110534044', 'p_id': 'p02419', 'u_id': 'u364852384', 'date': '1512020282', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1772', 'code_size': '365'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n#include <ctype.h>\nint main(){\n\tchar W[11], T[1001];\n\tint i, cnt=0;\n\tscanf(\"%s\",W)... |
CDSS_362911 | CDSS | #include <stdio.h>
int main(void){
char str[1200];
int count=0;
int i;
while (1) {
scanf("%c", &str[i]);
if (str[i] == '\n')break;
count++;
i++;
}
for (i = 0; i<count; i++) {
if (65 <= str[i] && str[i] <= 90) {
printf("%c", str[i] + 32);
}
else if (96 <= str[i] && str... | 2,036 | memory_bytes | {'s_id': 's475480342', 'p_id': 'p02415', 'u_id': 'u886089506', 'date': '1561162672', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2036', 'code_size': '451'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n \n char str[1200];\n int count=0;\n int i;\n \n while (1) {\n\t\tscanf(\"%... |
CDSS_423376 | CDSS | #include<stdio.h>
int main(void)
{
int n, k, d[100], a[100][100], i, f, x[100]={0}, z=0;
scanf("%d%d",&n,&k);
for(i=0;i<k;i++){
scanf("%d",&d[i]);
for(f=0;f<d[i];f++){
scanf("%d",&a[i][f]);
if(x[a[i][f]-1]==0)
z++;
x[a[i][f]-1]=1;
}
}
printf("%d... | 1,772 | memory_bytes | {'s_id': 's119665849', 'p_id': 'p02688', 'u_id': 'u212857313', 'date': '1589323344', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1772', 'code_size': '346'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void)\n{\n int n, k, d[100], a[100][100], i, f, x[100]={0}, z=0;\n\n scanf(\"%d%d\",&n,&k);\n fo... |
CDSS_689421 | CDSS | //set many funcs template
//Ver.20180717
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<stdbool.h>
#include<time.h>
#define inf 1072114514
#define llinf 4154118101919364364
#define mod 1000000007
#define pi 3.1415926535897932384
int max(int a,int b){if(a>b){return a;}return b;}
int min(int a,int b){i... | 57,856 | memory_bytes | {'s_id': 's729302801', 'p_id': 'p03629', 'u_id': 'u721060623', 'date': '1533079983', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '57856', 'code_size': '4911'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n//set many funcs template\n//Ver.20180717\n#include<stdio.h>\n#include<string.h>\n#include<stdlib.h>\n#include<stdbool.h>\n#include<... |
CDSS_116232 | CDSS | #include <stdio.h>
int main()
{
int n, p;
while (scanf("%d %d", &n, &p) * n){
int stone[64] = {0};
int bowl = p;
int i;
for (i = 0; stone[i] != p; i = (i + 1) % n){
if (bowl > 0){
bowl--;
stone[i]++;
}
else {
... | 600 | memory_bytes | {'s_id': 's875205012', 'p_id': 'p00740', 'u_id': 'u376883550', 'date': '1455174772', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '60', 'memory': '600', 'code_size': '442'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main()\n{\n int n, p;\n\n while (scanf(\"%d %d\", &n, &p) * n){\n int stone[64] = {0};\n ... |
CDSS_421062 | CDSS | #include<stdio.h>
#define rep(i,n) for(int i=0; i<n; ++i)
int a[12][12];
int min(int a,int b){
int temp;
if(a>b)return b;
if(a<=b)return a;
}
int main(){
int n,m,x;
scanf("%d%d%d",&n,&m,&x);
int c[n];
rep(i,n){
scanf("%d",&c[i]);
rep(j,m) scanf("%d",&a[i][j]);
}
int result;
int ... | 1,708 | memory_bytes | {'s_id': 's964563392', 'p_id': 'p02683', 'u_id': 'u759675243', 'date': '1589333889', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '1708', 'code_size': '884'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#define rep(i,n) for(int i=0; i<n; ++i)\n \n\n int a[12][12];\n\nint min(int a,int b){\n int temp;\n if(a>b)r... |
CDSS_682408 | CDSS | #include <stdio.h>
#include <string.h>
int main() {
char s[55]; scanf("%s", s);
int len = strlen(s);
for (int i = len-1; i >= len-8; i--) s[i] = NULL;
printf("%s\n", s);
} | 128 | memory_bytes | {'s_id': 's092152370', 'p_id': 'p03577', 'u_id': 'u355780225', 'date': '1534646282', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '180'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\nint main() {\n char s[55]; scanf(\"%s\", s);\n int len = strlen(s);\n for (int i = len... |
CDSS_439849 | CDSS | #include <stdio.h>
#include<math.h>
int main(void){
int R;
float s;
scanf("%d" ,&R);
s=2*(float)R*M_PI;
printf("%5.3lf" ,s );
return 0;
}
| 1,748 | memory_bytes | {'s_id': 's172847094', 'p_id': 'p02705', 'u_id': 'u643678905', 'date': '1587345219', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '1748', 'code_size': '170'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include<math.h>\nint main(void){\n int R;\n float s;\n\n scanf(\"%d\" ,&R);\n s=2*(float)R*M_PI;\n\... |
CDSS_700127 | CDSS | #include<stdio.h>
#include<stdlib.h>
int main(){
int i,n,m;
long long count=1;
scanf("%d%d",&n,&m);
if(n==m){
for(i=1;i<=n;i++){
count*=(long long)i;
count%=1000000007;
if(count==0)
count=1000000007;
}
count*=count;
count*=2;
count%=1000000007;
}
else if(abs(n-... | 1,700 | memory_bytes | {'s_id': 's020055732', 'p_id': 'p03681', 'u_id': 'u917851778', 'date': '1593484395', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '7', 'memory': '1700', 'code_size': '642'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\nint main(){\n int i,n,m;\n long long count=1;\n scanf(\"%d%d\",&n,&m);\n if(n==m){\n ... |
CDSS_19382 | CDSS | #include<stdio.h>
int main(){
int i,j;
for(i=1;i<=9;i++)
{
for(j=1;j<=9;j++)
{
printf("%dx%d=%d\n",i,j,i*j);
}
}
return 0;
} | 524 | memory_bytes | {'s_id': 's806505817', 'p_id': 'p00000', 'u_id': 'u098423786', 'date': '1493180996', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', 'code_size': '144'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n\tint i,j;\n\t\n\tfor(i=1;i<=9;i++)\n\t{\n\t\tfor(j=1;j<=9;j++)\n\t\t{\n\tprintf(\"%dx%d=%d\\n\",i... |
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 should 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_639228 | CDSS | #include<stdio.h>
#define SIZE 100000
int main(){
int n,a[SIZE],i;
int counter=0;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d",&a[i]);
}
for(i=0;i<n;i++){
while(a[i]%2==0){
counter++;
a[i]=a[i]/2;
}
}
printf("%d\n",counter);
return 0;
}
| 256 | memory_bytes | {'s_id': 's886484787', 'p_id': 'p03325', 'u_id': 'u110996038', 'date': '1541280260', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '256', 'code_size': '279'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#define SIZE 100000\nint main(){\n int n,a[SIZE],i;\n int counter=0;\n scanf(\"%d\",&n);\n for(i=0;i<n;i++){\... |
CDSS_682467 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#define BIG 2000000007
#define MOD 1000000007
typedef unsigned long long ull;
typedef signed long long sll;
#define N_MAX 100000
#define M_MAX 100000
typedef struct {
int a;
int b;
} hw;
const hw vector8[8] = {
{-1, -1},
{-1, ... | 128 | memory_bytes | {'s_id': 's037322154', 'p_id': 'p03577', 'u_id': 'u238041222', 'date': '1507510911', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '3006'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <math.h>\n \n#define BIG 2000000007\n \n#define MOD 100000000... |
CDSS_547975 | CDSS | #include "stdio.h"
#include <stdlib.h>
int main (){
/* int a, b, c;
char x,y,z;
// scanf("%c%c%c", &x, &y, &z); ... | 128 | memory_bytes | {'s_id': 's721212828', 'p_id': 'p02970', 'u_id': 'u339419997', 'date': '1563672419', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '761'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include \"stdio.h\"\n#include <stdlib.h>\n\nint main (){\n /* int a, b, c; ... |
CDSS_353653 | CDSS | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* runtime_error.c :+: :+: :+: ... | 2,068 | memory_bytes | {'s_id': 's384588899', 'p_id': 'p02411', 'u_id': 'u445993369', 'date': '1580901167', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2068', 'code_size': '1841'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n/* ************************************************************************** */\n/* ... |
CDSS_585090 | CDSS | #include <stdio.h>
int main(void){
int A,B,C;
scanf("%d%d%d",&A,&B,&C);
if(A == B && B == C){
printf("Yes\n");
}
else {
printf("No\n");
}
return 0;
}
| 128 | memory_bytes | {'s_id': 's564012402', 'p_id': 'p03079', 'u_id': 'u686007983', 'date': '1553976391', '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 should 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;\n\n scanf(\"%d%d%d\",&A,&B,&C);\n\n if(A == B && B == C){\n printf(\"Yes\... |
CDSS_741037 | CDSS | #include <stdio.h>
int main(void){
int N, i, ans;
ans = 0;
scanf("%d", &N);
for(i = 0; i <= N; i++){
ans = ans + i;
}
printf("%d", ans);
}
| 1,692 | memory_bytes | {'s_id': 's936988312', 'p_id': 'p04029', 'u_id': 'u818573308', 'date': '1592855042', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1692', 'code_size': '191'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\n int N, i, ans;\n \n ans = 0;\n \n scanf(\"%d\", &N);\n \n for(i = 0; i <=... |
CDSS_603982 | CDSS | char s[3333],t[3333];p[3333][3333];i,j,l;A(a){i--*l--?(a=s[i])-t[l]?A(p[i+1][l+1]-p[i][l+1]?i++:l++):putchar(a,A()):0;}main(){gets(s);for(l=strlen(gets(t));j<l?:(j=0,++i<strlen(s));j++)p[i+1][j+1]=s[i]-t[j]?fmax(p[i+1][j],p[i][j+1]):p[i][j]+1;A();} | 41,216 | memory_bytes | {'s_id': 's966638446', 'p_id': 'p03165', 'u_id': 'u657913472', 'date': '1547022327', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '66', 'memory': '41216', 'code_size': '248'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\nchar s[3333],t[3333];p[3333][3333];i,j,l;A(a){i--*l--?(a=s[i])-t[l]?A(p[i+1][l+1]-p[i][l+1]?i++:l++):putchar(a,A()):0;}main(){gets(s... |
CDSS_95653 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#define max(a, b) (((a) > (b)) ? (a) : (b)) /* 2個の値の最大値 */
#define min(a, b) (((a) < (b)) ? (a) : (b)) /* 2個の値の最小値 */
#define ENTER printf("\n") /* 改行プリント */
int DBG = 1; /* デバッグプリント 提出時は0 */
/* main **************************... | 2,140 | memory_bytes | {'s_id': 's783514353', 'p_id': 'p00356', 'u_id': 'u157967111', 'date': '1562339412', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2140', 'code_size': '757'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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 <ctype.h>\n#define max(a, b)\t(((a) > (b)) ? (a) : (b))\t\t/*... |
CDSS_181282 | CDSS | #include<stdio.h>
#include<string.h>
#define L 100005
typedef struct kozo{
char name[100];
int t;
}P;
P Q[L+1];
int head, tail,n;
void enqueue(P x){
Q[tail]=x;
tail=(tail+1)%L;
}
P dequeue(){
P x=Q[head];
head =(head +1)%L;
return x;
}
int min(int a,int b){return a<b ? a:b;}
int main(){
int elaps... | 10,756 | memory_bytes | {'s_id': 's328513622', 'p_id': 'p02264', 'u_id': 'u648375209', 'date': '1461738423', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '10756', 'code_size': '664'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\n\n#define L 100005\n\ntypedef struct kozo{\n char name[100];\n int t;\n}P;\n\nP Q[L+1];\nin... |
CDSS_417934 | CDSS | #pragma region kyopuro_templates
#pragma GCC optimize("Ofast")
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<string.h>
#include<stdbool.h>
#include<assert.h>
#include<time.h>
#include<ctype.h>
typedef long long ll;
typedef long double ld;
#define rep(i,l,r)for(ll i=(l);i<(r);i++)
#define repp(i,l,r,k)f... | 28,476 | memory_bytes | {'s_id': 's712155098', 'p_id': 'p02678', 'u_id': 'u004279520', 'date': '1600895581', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '161', 'memory': '28476', 'code_size': '23609'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#pragma region kyopuro_templates\n#pragma GCC optimize(\"Ofast\")\n#include<stdio.h>\n#include<stdlib.h>\n#include<math.h>\n#include... |
CDSS_339434 | CDSS | #include <stdio.h>
int main(void)
{
int n, x, i;
scanf("%d", &n);
if (n >= 3 && n <= 10000) {
for (i = 1; i <= n; i++) {
if (i % 3 == 0) {
printf(" %d", i);
} else {
x = i;
while(x != 0) {
if (x % 10 == 3) {
printf(" %d", i);
break;
... | 600 | memory_bytes | {'s_id': 's797453360', 'p_id': 'p02406', 'u_id': 'u899287431', 'date': '1496041269', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '408'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n \nint main(void)\n{\n int n, x, i;\n scanf(\"%d\", &n);\n \n if (n >= 3 && n <= 10000) {\n for (i = 1; i ... |
CDSS_115225 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define ll long long
#define rep(i,l,r)for(ll i=l;i<r;i++)
int c(const void*x,const void*y){return strcmp((char*)x,(char*)y);}
char s[99];
char ss[600][99];
int main(){
ll cnt;
scanf("%lld",&cnt);
while(cnt--){
scanf(" %s",s);
ll n=strlen(s);
ll cnt=... | 2,040 | memory_bytes | {'s_id': 's580481809', 'p_id': 'p00723', 'u_id': 'u409832240', 'date': '1558587460', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2040', 'code_size': '1187'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#define ll long long\n#define rep(i,l,r)for(ll i=l;i<r;i++)\n\nint c(c... |
CDSS_600728 | CDSS | #include<stdio.h>
int main(){
int n,i;
int h[101];
int ans=0;
scanf("%d",&n);
for(i=0;i<n;i++)scanf("%d",&h[i]);
ans+=h[0];
for(i=1;i<n;i++){
if(h[i]>h[i-1])ans+=(h[i]-h[i-1]);
}
printf("%d\n",ans);
return 0;
} | 128 | memory_bytes | {'s_id': 's837362057', 'p_id': 'p03147', 'u_id': 'u690655661', 'date': '1556585371', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '258'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int n,i;\n int h[101];\n int ans=0;\n scanf(\"%d\",&n);\n for(i=0;i<n;i++)scanf(\"%d... |
CDSS_194927 | CDSS | #include<stdio.h>
int main(){
int n,S[100000],q,T[50000],i, cnt=0;
int r,l,m;
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++){
l=0;
r=n;
while(l<r){
m = (l+r)/2;
if(T[i]==S[m]){
cnt++;
bre... | 2,352 | memory_bytes | {'s_id': 's045804150', 'p_id': 'p02268', 'u_id': 'u068378820', 'date': '1544757510', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2352', 'code_size': '467'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int n,S[100000],q,T[50000],i, cnt=0;\n int r,l,m;\n scanf(\"%d\",&n);\n for(i=0;i<n;i++){\n ... |
CDSS_222248 | CDSS | #include <stdio.h>
#include <stdlib.h>
struct node
{
struct node *right;
struct node *left;
struct node *parent;
int key;
};
typedef struct node *Node;
#define NIL NULL
Node root;
Node treeMinimum(Node x)
{
while (x->left != NIL)
{
x = x->left;
}
return x;
}
Node treeMaximum(... | 25,192 | memory_bytes | {'s_id': 's886324231', 'p_id': 'p02283', 'u_id': 'u495619484', 'date': '1593092011', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '330', 'memory': '25192', 'code_size': '2555'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\nstruct node\n{\n struct node *right;\n struct node *left;\n struct node *parent;... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.