identifier string | space string | input string | target float64 | metric_type string | metadata string | messages list |
|---|---|---|---|---|---|---|
CDSS_137788 | CDSS | #include<stdio.h>
#define N 101
#define WHITE 0
#define GRAY 1
#define BRACK 2
void bfc(int);
void enqueue(int);
int dequeue(void);
int n,M[N][N],p[N],head,tail,color[N];
int d[N];
int main(){
int i,j,v,k,u;
scanf("%d",&n);
for(i = 0;i < n;i++){
for(j = 0;j < n;j++){
M[i][j] = 0;
}
}
for(i = 0;i < n;i... | 636 | memory_bytes | {'s_id': 's351320885', 'p_id': 'p02239', 'u_id': 'u751252207', 'date': '1468423247', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '636', 'code_size': '981'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\n#define N 101\n#define WHITE 0\n#define GRAY 1\n#define BRACK 2\n\nvoid bfc(int);\nvoid enqueue(int);\nint dequeu... |
CDSS_548727 | CDSS | #include <stdio.h>
#include <stdlib.h>
int main(void) {
// 入力
int n;
scanf("%d",&n);
int list[n];
for(int i=0;i<n;i++){
scanf("%d",&list[i]);
}
int max=0,maxIdx=0,secondMax=0;
for(int i=0;i<n;i++){
if(list[i]>max){
max=list[i];
maxIdx=i;
}
}
for(int i=0;i<n;... | 2,304 | memory_bytes | {'s_id': 's613499394', 'p_id': 'p02971', 'u_id': 'u509750017', 'date': '1563672886', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '39', 'memory': '2304', 'code_size': '534'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 // 入力\n int n;\n scanf(\"%d\",&n);\n int list[n];\n for(int i=0;... |
CDSS_117352 | CDSS | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
int max(int a,int b){
if(b>a)return b;
return a;
}
int p[10][10];
int cp[10][10];
int flag[10][10];
int h,w,c;
struct data{
int x,y;
};
struct data que[5000000];
int f,t;
void push(int xx,int yy){
que[t].x=xx;
que[t].y=yy;
t++;
}
struct data pop()... | 608 | memory_bytes | {'s_id': 's157140973', 'p_id': 'p00755', 'u_id': 'u726010093', 'date': '1504126866', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '290', 'memory': '608', 'code_size': '1443'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\nint max(int a,int b){\nif(b>a)return b;\n return a;\n}\n\nint p[10][10... |
CDSS_459953 | CDSS | #include <stdio.h>
int gcd(int a,int b){int r,tmp;if(a < b){tmp = a;a = b;b = tmp;}r = a % b;while(r != 0){a = b;b = r;r = a % b;}return b;}
int main()
{
int k;
scanf("%d",&k);
int a,b,c;
long long ans = 0;
for (a = 1; a <= k; a++)
{
for (b = 1; b <= k; b++)
{
for ... | 1,732 | memory_bytes | {'s_id': 's152719714', 'p_id': 'p02713', 'u_id': 'u494609869', 'date': '1586740176', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '126', 'memory': '1732', 'code_size': '451'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint gcd(int a,int b){int r,tmp;if(a < b){tmp = a;a = b;b = tmp;}r = a % b;while(r != 0){a = b;b = r;r = a % b;}r... |
CDSS_53308 | CDSS |
#include <stdio.h>
#include <math.h>
#include <string.h>
int main(){
int i;
char str[210];
gets(str);
for (i=0; i<strlen(str); i++) {
if(str[i]>='a' && str[i]<='z')
str[i] =str[i]-32;
}
printf("%s\n",str);
return 0;
} | 524 | memory_bytes | {'s_id': 's303394381', 'p_id': 'p00020', 'u_id': 'u626996572', 'date': '1501506641', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', '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\n#include <stdio.h>\n#include <math.h>\n#include <string.h>\n\n\nint main(){\n \n \n int i;\n char str[210];\n gets(st... |
CDSS_194280 | CDSS | #include<stdio.h>
void scan(int[],int);
int search(int,int);
int s[100000];
int t[50000];
int main(){
int n=0,q=0,c=0;
scanf("%d",&n);
scan(s,n);
scanf("%d",&q);
scan(t,q);
c=search(n,q);
printf("%d\n",c);
return 0;
}
void scan(int a[],int m){
int i;
for(i=0;i<m;i++){
scanf("%d",&a[... | 1,184 | memory_bytes | {'s_id': 's267131583', 'p_id': 'p02268', 'u_id': 'u122997890', 'date': '1399604525', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '1184', 'code_size': '673'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nvoid scan(int[],int);\nint search(int,int);\n\nint s[100000];\nint t[50000];\n\nint main(){\n\n int n=0,q=0,c=0;... |
CDSS_254299 | CDSS | #include<stdio.h>
int main(void){
int a,b;
scanf("%d %d",&a,&b);
printf("%d %d\n",a*b,a+a+b+b);
return 0;
} | 596 | memory_bytes | {'s_id': 's619065987', 'p_id': 'p02389', 'u_id': 'u061622362', 'date': '1493192106', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '123'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n int a,b;\n scanf(\"%d %d\",&a,&b);\n printf(\"%d %d\\n\",a*b,a+a+b+b);\n return 0;\n}... |
CDSS_229046 | CDSS | #include <stdio.h>
#define MAX 500000
void maxHeapify(int);
void swap(int *a,int *b);
int H,A[MAX+1];
int main(){
int i;
scanf("%d",&H);
for(i=1;i<=H;i++){
scanf("%d",&A[i]);
}
for(i=H/2;i>=1;i--){
maxHeapify(i);
}
for(i=1;i<=H;i++){
printf(" %d",A[i]);
}
printf("\n");
return 0;
}... | 2,552 | memory_bytes | {'s_id': 's116837996', 'p_id': 'p02288', 'u_id': 'u924145816', 'date': '1498704095', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '110', 'memory': '2552', 'code_size': '654'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 500000\n\nvoid maxHeapify(int);\nvoid swap(int *a,int *b);\n\nint H,A[MAX+1];\n\nint main(){\n int i;... |
CDSS_509650 | CDSS | #include<stdio.h>
int main()
{
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
if((a+b+c)>=22)
printf("bust\n");
else
printf("win\n");
return 0;}
| 128 | memory_bytes | {'s_id': 's243773354', 'p_id': 'p02835', 'u_id': 'u182439508', 'date': '1576475141', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '128', 'code_size': '144'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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\nint a,b,c;\nscanf(\"%d %d %d\",&a,&b,&c);\n\nif((a+b+c)>=22)\n\tprintf(\"bust\\n\");\nelse\n\tprin... |
CDSS_345116 | CDSS | #include <stdio.h>
int main(void)
{
int n, i, j, marknum, number, card[4][13] = {0};
char mark;
scanf("%d", &n);
for (i = 0; i < n; i++) {
scanf("%*c%c %d", &mark, &number);
switch (mark){
case 'S':
marknum = 0;
break;
case 'H':
marknum = 1;
break;
case 'C':
marknum = 2;
break;
ca... | 596 | memory_bytes | {'s_id': 's983400344', 'p_id': 'p02408', 'u_id': 'u634788849', 'date': '1457120285', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '728'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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, i, j, marknum, number, card[4][13] = {0};\n\tchar mark;\n\t\n\tscanf(\"%d\", &n);\n\... |
CDSS_194552 | CDSS | #include <stdio.h>
int main(){
int S[100000];
int T[50000];
int n, q, i, count = 0;
int low, high, mid;
//input
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]);
}
//excution
for... | 2,276 | memory_bytes | {'s_id': 's330302557', 'p_id': 'p02268', 'u_id': 'u890530158', 'date': '1576817749', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2276', 'code_size': '641'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 S[100000];\n int T[50000];\n int n, q, i, count = 0;\n int low, high, mid;\n\n ... |
CDSS_23603 | CDSS | #include <stdio.h>
int h[10];
void sort(void)
{
int i, j, temp;
for (i = 0; i < 10 - 1; i++) {
for (j = 10 - 1; j > i; j--) {
if (h[j - 1] > h[j]) {
temp = h[j];
h[j] = h[j - 1];
h[j - 1]= temp;
}
}
}
}
int main(void)
{
int i;
for (i = 0; i < 10; i++){
sc... | 600 | memory_bytes | {'s_id': 's016861562', 'p_id': 'p00001', 'u_id': 'u117317157', 'date': '1481845888', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '428'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint h[10];\n\nvoid sort(void)\n{\n int i, j, temp;\n\n for (i = 0; i < 10 - 1; i++) {\n for (j = 10 - 1; j ... |
CDSS_607995 | CDSS | #include<stdio.h>
int main(void){
int n;
int p[10];
int i;
int pos = -1;
int sum = 0;
scanf("%d", &n);
for ( i = 0; i < n; i++ ) {
scanf("%d", &p[i]);
if ( pos < 0 ) {
pos = 0;
}
else if ( p[pos] < p[i] ) {
pos = i;
}
}
for ( i = 0; i < n; i++ ) {
if ( i == pos ) {... | 128 | memory_bytes | {'s_id': 's080549304', 'p_id': 'p03207', 'u_id': 'u579508806', 'date': '1548441014', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '426'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void){\n int n;\n int p[10];\n int i;\n int pos = -1;\n int sum = 0;\n scanf(\"%d\", &n);\n for (... |
CDSS_136172 | CDSS | #include <stdio.h>
#define N 101
#define WHITE 0
#define GRAY 1
#define BLACK 2
void dfs();
void visit(int);
int A[N][N] = {0};
int color[N] = {0};
int d[N] = {0};
int f[N] = {0};
int num ,time;
int main(){
int inum, jnum, count, i, j;
scanf("%d", &num);
for(i = 1; i <= num; i++){
scanf("%d %d", &i... | 2,056 | memory_bytes | {'s_id': 's053311058', 'p_id': 'p02238', 'u_id': 'u406391617', 'date': '1532062288', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2056', 'code_size': '899'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\n#define N 101\n\n#define WHITE 0\n#define GRAY 1\n#define BLACK 2\n\nvoid dfs();\nvoid visit(int);\n\nint A[N][N... |
CDSS_31173 | CDSS | #include<stdio.h>
int main()
{
int n, a, b, c, i;
int d1, d2, d3;
scanf("%d", &n);
for(i=0;i<n;i++)
{
scanf("%d %d %d", &a, &b, &c);
d1 = a*a + b*b - c*c;
d2 = a*a + c*c - b*b;
d3 = c*c + b*b - a*a;
if(d1 * d2 * d3 ==0) printf("YES\n");
else printf("NO\n");
}
return 0;
} | 580 | memory_bytes | {'s_id': 's510497203', 'p_id': 'p00003', 'u_id': 'u773863568', 'date': '1372429208', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', 'code_size': '291'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 n, a, b, c, i;\n\tint d1, d2, d3;\n\tscanf(\"%d\", &n);\n\tfor(i=0;i<n;i++)\n\t{\n\t\tscanf(... |
CDSS_121152 | CDSS | h,l[26],t[26],r[26],b[26],x,y,c,s;char m[50][51];S(){s=1;for(y=t[c];y<=b[c];y++)for(x=l[c];x<=r[c];x++)if(m[y][x]&&m[y][x]-65-c)s=0;}main(n){for(scanf("%*d");~scanf("%d%*d",&h);puts(n?"SUSPICIOUS":"SAFE")){int e[26]={n=0};for(y=h;y--;)for(x=-scanf("%s",m[y]);c=m[y][++x];)c>64?e[c-=65]?x<l[c]?l[c]=x:0,x>r[c]?r[c]=x:0,y<... | 0 | memory_bytes | {'s_id': 's155313374', 'p_id': 'p01127', 'u_id': 'u399107199', 'date': '1301406013', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '501'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nh,l[26],t[26],r[26],b[26],x,y,c,s;char m[50][51];S(){s=1;for(y=t[c];y<=b[c];y++)for(x=l[c];x<=r[c];x++)if(m[y][x]&&m[y][x]-65-c)s=0;}m... |
CDSS_64781 | CDSS | #include <stdio.h>
int main(void)
{
float g;
while (scanf("%f", &g) != EOF){
if (g <= 48.00){
printf("light fly\n");
}
else if ((48.00 < g)&&(g <= 51.00)){
printf("fly\n");
}
else if ((51.00 < g)&&(g <= 54.00)){
printf("bantam\n");
}
else if ((54.00 < g)&&(g <= 57.00)){
printf("feather\n"... | 604 | memory_bytes | {'s_id': 's488954299', 'p_id': 'p00048', 'u_id': 'u192770095', 'date': '1457332888', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '604', 'code_size': '807'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\tfloat g;\n\t\n\twhile (scanf(\"%f\", &g) != EOF){\n\t\tif (g <= 48.00){\n\t\t\tprintf(\"lig... |
CDSS_281026 | CDSS | #include <stdio.h>
int main() {
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,040 | memory_bytes | {'s_id': 's782997368', 'p_id': 'p02392', 'u_id': 'u470487508', 'date': '1530756901', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2040', 'code_size': '168'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main() {\n\tint a, b, c;\n\n\tscanf(\"%d %d %d\", &a ,&b ,&c);\n\n\tif (a < b && b < c) {\n\t\tprintf(\"Yes\... |
CDSS_169347 | CDSS |
#include<stdio.h>
int main(void)
{
int i, n, num=0 ,a[100] ,v ,flag;
scanf("%d",&n);
for (i = 0; i < n; i++)
scanf("%d",&a[i]);
flag = 1;
while(flag == 1) {
flag=0;
for (i =n-2; i >=0;i--) {
if(a[i]>a[i+1]){
v = a[i+1];
a[i+1] = a[i];
a[i] = v;
num++;
... | 1,968 | memory_bytes | {'s_id': 's710841318', 'p_id': 'p02259', 'u_id': 'u619017212', 'date': '1542691758', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1968', '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\n#include<stdio.h>\n \nint main(void)\n{\n int i, n, num=0 ,a[100] ,v ,flag;\n\n\n scanf(\"%d\",&n);\n\n\n for (i = 0; i < n; i++)... |
CDSS_278321 | CDSS | #include<stdio.h>
int main(void) {
int a, b, c;
scanf("%d %d %d", &a, &b, &c);
if (a < b&&b < c)
printf("Yes\n");
else
printf("No\n");
return 0;
} | 580 | memory_bytes | {'s_id': 's620828917', 'p_id': 'p02392', 'u_id': 'u227363693', 'date': '1497935203', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', 'code_size': '157'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void) {\n\tint a, b, c;\n\tscanf(\"%d %d %d\", &a, &b, &c);\n\n\tif (a < b&&b < c)\n\t\tprintf(\"Yes\\n\... |
CDSS_640268 | CDSS | /* ABC099_B
Stuartyg */
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <stdbool.h>
int snowfall(int a, int b);
int main(void){
int west_height,east_height; /*a,bのこと*/
scanf("%d %d",&west_height,&east_height); /*標準入力から受け取る*/
printf("%d\n",snowfall(west_height,east_height... | 128 | memory_bytes | {'s_id': 's746440421', 'p_id': 'p03328', 'u_id': 'u811068179', 'date': '1590636517', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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/* ABC099_B\n Stuartyg */\n\n#include <stdio.h>\n#include <string.h>\n#include <math.h>\n#include <stdbool.h>\nint snowfall(int a, ... |
CDSS_24303 | CDSS | #include<stdio.h>
int main(){
int i,j,t;
int d[11];
for(i=0;i<10&&scanf("%d",&d[i]);i++);
for(i=0;i<10;i++){
for(j=i;j<10;j++){
if(d[i]<d[j]){
t=d[i];
d[i]=d[j];
d[j]=t;
}
}
}
printf("%d\n%d\n%d\n",d[0],d[1],d[2]);
return 0;
} | 0 | memory_bytes | {'s_id': 's304529814', 'p_id': 'p00001', 'u_id': 'u769144819', 'date': '1282644569', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '255'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n\tint i,j,t;\n\tint d[11];\n\tfor(i=0;i<10&&scanf(\"%d\",&d[i]);i++);\n\tfor(i=0;i<10;i++){\n\t\tfor(j... |
CDSS_400010 | CDSS | #include <stdio.h>
void bubblesor(int *arr, int n);
int main(){
int n,k,i,ans=0;
scanf("%d %d", &n, &k);
int arr[n];
for(int z=0;z<n;z++){
scanf("%d", &arr[z]);
}
bubblesort(arr, n);
for(i=0;i<k;i++){
ans = ans+ arr[i];
}
printf("%d\n", ans);
}
void bubblesort(int *arr, int n){
int i,j,temp;
fo... | 1,696 | memory_bytes | {'s_id': 's023544537', 'p_id': 'p02628', 'u_id': 'u057282013', 'date': '1592788335', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1696', 'code_size': '462'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nvoid bubblesor(int *arr, int n);\n\nint main(){\n\tint n,k,i,ans=0;\n\tscanf(\"%d %d\", &n, &k);\n\tint arr[n];\... |
CDSS_213678 | CDSS | #include<stdio.h>
#include<stdlib.h>
#define INF 2000000000
typedef struct {
char m;
int n;
} Card;
int c=0;
Card L[50000],R[50000];
void swap(Card *a,Card *b){
Card tmp;
tmp=*a;
*a=*b;
*b=tmp;
}
void merge(Card *A,int left,int mid,int right){
int n1,n2,i,j,k;
n1=mid-left;
n2=right-mid;
for(i=0;i<n1... | 4,068 | memory_bytes | {'s_id': 's934713050', 'p_id': 'p02277', 'u_id': 'u673629896', 'date': '1549909320', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '4068', 'code_size': '1483'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#define INF 2000000000\ntypedef struct {\n char m;\n int n;\n} Card;\nint c=0;\nCard L[50000]... |
CDSS_368977 | CDSS | #include <stdio.h>
#include <string.h>
int main()
{
int i,num_p,num_s,count = 0;
char s[1000],p[11],stop[] = "END_OF_TEXT";
scanf("%s",&p);
num_p = strlen(p);
for(i=0;i<num_p;i++){
if(p[i] > 64 && p[i] < 91){
p[i] += 32;
}
}
while(1){
scanf("%s",&s);
num_s = strlen(s);
for(i=0;i<num_s;i++){... | 548 | memory_bytes | {'s_id': 's602937112', 'p_id': 'p02419', 'u_id': 'u261444710', 'date': '1468215924', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '548', 'code_size': '540'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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{\n\tint i,num_p,num_s,count = 0;\n\tchar s[1000],p[11],stop[] = \"END_OF_TEXT\... |
CDSS_45591 | CDSS | #include<stdio.h>
int main (void)
{
int w,n,a,b,i,tate[31]={0},box;
scanf("%d%d",&w,&n);
for(i=0;i<=w;i++){
tate[i]=i;
}
for(i=0;i<n;i++){
scanf("%d,%d",&a,&b);
box=tate[a];
tate[a]=tate[b];
tate[b]=box;
}
for(i=1;i<=w;i++){
printf("%d\n",tate[... | 596 | memory_bytes | {'s_id': 's575294671', 'p_id': 'p00011', 'u_id': 'u810660681', 'date': '1424849923', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '346'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main (void)\n{\n int w,n,a,b,i,tate[31]={0},box;\n scanf(\"%d%d\",&w,&n);\n for(i=0;i<=w;i++){\n ... |
CDSS_354495 | CDSS | #include<stdio.h>
int main()
{
while (1)
{
int n, x;
scanf("%d %d", &n, &x);
if (n == 0 && x == 0){
break;
}
int i, j, k, total, sum=0;
for (i = 1; i <= n - 2; i++)
{
for (j = i + 1; j <= n - 1; j++)
{
for (k = j + 1; k <= n; k++)
{
total = i + j + k;
if (total == x){
... | 600 | memory_bytes | {'s_id': 's022268479', 'p_id': 'p02412', 'u_id': 'u494138252', 'date': '1440379680', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '390'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\twhile (1)\n\t{\n\t\tint n, x;\n\t\tscanf(\"%d %d\", &n, &x);\n\t\tif (n == 0 && x == 0){ \n\t\t\... |
CDSS_675264 | CDSS | #include<stdio.h>
int main(){
char c[5];
scanf("%s",c);
if((c[0]==c[1]&&c[1]==c[2])||(c[1]==c[2]&&c[2]==c[3]))puts("Yes");
else puts("No");
return 0;
} | 128 | memory_bytes | {'s_id': 's664622015', 'p_id': 'p03543', 'u_id': 'u946810083', 'date': '1540411878', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '152'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\nchar c[5];\nscanf(\"%s\",c);\nif((c[0]==c[1]&&c[1]==c[2])||(c[1]==c[2]&&c[2]==c[3]))puts(\"Yes\");\n... |
CDSS_708688 | CDSS | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdbool.h>
#include <math.h>
int main(void){
char A[16], B[16], C[16];
scanf("%s%s%s", A, B, C);
if(A[strlen(A)-1] == B[0] && B[strlen(B)-1] == C[0]){
printf("YES\n");
}else{
printf("NO\n");
}
return 0;
} | 1,644 | memory_bytes | {'s_id': 's811150643', 'p_id': 'p03729', 'u_id': 'u746385710', 'date': '1600265042', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1644', 'code_size': '318'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n#include <stdbool.h>\n#include <math.h>\n\nint main(void){\n\n char A... |
CDSS_388299 | CDSS | #include <stdio.h>
int main(void) {
int a,b,c,k;
int count = 0;
scanf("%d%d%d%d%d",&a,&b,&c,&k);
//printf("%d,%d,%d,%d\n",a,b,c,k);
while(1){
if(b>a){
break;
}
else{
b = b*2;
count++;
//printf("!");
}
}
//printf("%d\n",count);
while(1){
if(c>b){
break;
}
else{
c = c*2;
... | 1,724 | memory_bytes | {'s_id': 's683364355', 'p_id': 'p02601', 'u_id': 'u807379399', 'date': '1595726505', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1724', 'code_size': '460'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\n\tint a,b,c,k;\n\tint count = 0;\n\t\n\tscanf(\"%d%d%d%d%d\",&a,&b,&c,&k);\n\t//printf(\"%d,%d... |
CDSS_361887 | CDSS | #include <stdio.h>
#include <ctype.h>
int main() {
char str[1200];
int i;
gets(str);
for (i = 0; str[i]; i++) {
if (islower(str[i])) {
printf("%c", toupper(str[i]));
} else if (isupper(str[i])) {
printf("%c", tolower(str[i]));
} else {
printf(... | 524 | memory_bytes | {'s_id': 's870617163', 'p_id': 'p02415', 'u_id': 'u440180827', 'date': '1484991458', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', 'code_size': '384'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 char str[1200];\n int i;\n gets(str);\n for (i = 0; str[i]; i++) ... |
CDSS_369280 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<stdbool.h>
#include<ctype.h>
#define PI 3.141592653589
#define N_MAX 1000
#define NUM 26
int main()
{
char buf[N_MAX], W[N_MAX];
int count = 0,len, j;
scanf("%s",W);
len = strlen(W);
for(j = 0; j < len; j++)
{
W[j] = tolower(W[j]);
... | 552 | memory_bytes | {'s_id': 's061387745', 'p_id': 'p02419', 'u_id': 'u924810243', 'date': '1498447044', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '552', 'code_size': '615'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#include<string.h>\n#include<stdbool.h>\n#include<ctype.h>\n#define PI 3.141592653589\n#define ... |
CDSS_579843 | CDSS | #include <stdio.h>
int main(void){
int a,b,c,d,e;
scanf("%d %d",&a,&b);
c=a+a-1;
d=a+b;
e=b+b-1;
printf("%d\n",max(c,d,e));
return 0;
}
max(int c,int d,int e){
if(c>=d&&c>=e) return c;
if(d>c&&d>=e) return d;
if(e>d&&e>c) return e;
}
| 128 | memory_bytes | {'s_id': 's475037248', 'p_id': 'p03071', 'u_id': 'u825753732', 'date': '1555272770', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '256'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n int a,b,c,d,e;\n scanf(\"%d %d\",&a,&b);\n c=a+a-1;\n d=a+b;\n e=b+b-1;\n printf(\"%d\\n... |
CDSS_595209 | CDSS | #include<stdio.h>
int main(){
int N,M,K,A;
scanf("%d%d",&N,&M);
int cnt[M];
for(int p=0;p<M;p++){
cnt[p]=0;
}
int ans=0;
for(int i=0;i<N;i++){
scanf("%d",&K);
for(int m=0;m<K;m++){
scanf("%d",&A);
cnt[A-1]++;
}
}
for(int l=0;l<M... | 128 | memory_bytes | {'s_id': 's557973263', 'p_id': 'p03126', 'u_id': 'u303722032', 'date': '1556126665', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '408'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int N,M,K,A;\n scanf(\"%d%d\",&N,&M);\n int cnt[M];\n for(int p=0;p<M;p++){\n cnt[... |
CDSS_530533 | CDSS | #include<stdio.h>
int main(){
int n;
scanf("%d",&n);
printf("%d\n",n*n*n);
return 0;
}
| 128 | memory_bytes | {'s_id': 's808642704', 'p_id': 'p02915', 'u_id': 'u121922047', 'date': '1567904479', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '95'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 printf(\"%d\\n\",n*n*n);\n return 0;\n}\n\nPredict its memory footpr... |
CDSS_316814 | CDSS | #include<stdio.h>
int main(){
double r,m,e;
scanf("%lf", &r);
m=r*r*3.141592653589;
e=2*r*3.141592653589;
printf("%f %f\n", m, e);
return 0;
}
| 2,144 | memory_bytes | {'s_id': 's021327367', 'p_id': 'p02400', 'u_id': 'u587288800', 'date': '1529475531', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2144', 'code_size': '156'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n double r,m,e;\n scanf(\"%lf\", &r);\n m=r*r*3.141592653589;\n e=2*r*3.141592653589;\n printf(\"%... |
CDSS_731210 | CDSS | #include<stdio.h>
int MIN(int a,int b){return a<b?a:b;}
//添字ヒープを使うための関数達!
int R=1,C=1,H[2000010],N[2000010];
//評価関数(いまはMAX)
int hyouka(int a,int b){
if(C<b)return 1;
if(C<a||b==0)return 0;
return N[H[a]]>N[H[b]]?1:0;
}
//挿入関数
void hin(int a){
int i=C++;
for(N[H[0]=R]=a;hyouka(0,i/2);i/=2)H[i]=H[i/2];
H[i]=R... | 1,792 | memory_bytes | {'s_id': 's063157733', 'p_id': 'p03912', 'u_id': 'u347270828', 'date': '1480185246', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '36', 'memory': '1792', 'code_size': '1240'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 MIN(int a,int b){return a<b?a:b;}\n//添字ヒープを使うための関数達!\nint R=1,C=1,H[2000010],N[2000010];\n//評価関数(いまはMAX)\nint h... |
CDSS_108304 | CDSS | #include<stdio.h>
int main(){
int a,b,c,d,e,ave;
scanf("%d",&a);
scanf("%d",&b);
scanf("%d",&c);
scanf("%d",&d);
scanf("%d",&e);
if(a<40){
a=40;
}
if(b<40){
b=40;
}
if(c<40){
c=40;
}
if(d<40){
d=40;
}
if(e<40){
e=40;
}
ave=(a+b+c+d+e)/5;
printf("%d\n",ave);
return 0;
} | 600 | memory_bytes | {'s_id': 's621751380', 'p_id': 'p00515', 'u_id': 'u600584317', 'date': '1447380106', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '305'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n\tint a,b,c,d,e,ave;\n\tscanf(\"%d\",&a);\n\tscanf(\"%d\",&b);\n\tscanf(\"%d\",&c);\n\tscanf(\"%d\",&d... |
CDSS_243427 | CDSS |
#include<stdio.h>
int main(void)
{
int x,y;
scanf("%d",&x);
y=x*x*x;
printf("%d\n",y);
return 0;
}
| 596 | memory_bytes | {'s_id': 's715896398', 'p_id': 'p02388', 'u_id': 'u740719330', 'date': '1471315346', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '121'} | [
{
"content": "Your task is to predict the memory 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\n\n\n\n#include<stdio.h>\n \nint main(void)\n \n{\n \nint x,y;\n \nscanf(\"%d\",&x);\n \ny=x*x*x;\n \nprintf(\"%d\\n\",y);\n \nretu... |
CDSS_376476 | CDSS | #include <stdio.h>
int main(void){
long long a,b,c,d,max;
scanf("%lld%lld%lld%lld",&a,&b,&c,&d);
max=a*c;
if(max<b*d) max=b*d;
if(max<a*d) max=a*d;
if(max<c*b) max=c*b;
printf("%lld\n",max);
return 0;
} | 1,732 | memory_bytes | {'s_id': 's083470989', 'p_id': 'p02553', 'u_id': 'u372136950', 'date': '1600029949', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1732', 'code_size': '227'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 a,b,c,d,max;\n scanf(\"%lld%lld%lld%lld\",&a,&b,&c,&d);\n max=a*c;\n if(max<b*... |
CDSS_131833 | CDSS | #include<stdio.h>
#define INF 1000000000
int matrixChainOrder(int*,int);
int min(int,int);
int main(){
int n,r[101],c[101],p[102],i,answer;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d%d",&r[i],&c[i]);
}
for(i=0;i<=n;i++){
if(i==n)p[i]=c[n-1];
else p[i]=r[i];
}
/* for(i=0;i<=n... | 636 | memory_bytes | {'s_id': 's882337444', 'p_id': 'p02234', 'u_id': 'u017523606', 'date': '1499231904', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '636', 'code_size': '1165'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\n#define INF 1000000000\n\nint matrixChainOrder(int*,int);\nint min(int,int);\n\nint main(){\n\n int n,r[101],c[1... |
CDSS_549699 | CDSS | #define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <math.h>
/* define */
#define Yes(X) puts ( X ? "Yes" : "No")
#define YES(X) puts ( X ? "YES" : "NO")
#define FOR(i, a, b) for ( int i = a; i < b ; i++)
#define REP(i, n) for ( int i = 0; i < n ; i++)
#define max(a, b)... | 892 | memory_bytes | {'s_id': 's116671577', 'p_id': 'p02975', 'u_id': 'u855016901', 'date': '1563161447', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '19', 'memory': '892', 'code_size': '1483'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#define _CRT_SECURE_NO_WARNINGS\n\n#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n#include <math.h>\n\n/* define */\n#d... |
CDSS_667223 | CDSS | #include <stdio.h>
int main(void)
{
int a, b;
scanf("%d %d", &a, &b);
char s[12];
scanf("%s", &s);
if (s[a] != '-') {printf("No"); return 0;}
for (int i = 0; i < a + b; i++) {
if (i != a && s[i] == '-') {printf("No"); return 0;}
}
printf("Yes");
return 0;
} | 128 | memory_bytes | {'s_id': 's178541981', 'p_id': 'p03474', 'u_id': 'u181431922', 'date': '1558583242', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '272'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n\tint a, b;\n\tscanf(\"%d %d\", &a, &b);\n\tchar s[12];\n\tscanf(\"%s\", &s);\n\n\tif (s[a] !... |
CDSS_706698 | CDSS | #include <stdio.h>
int main(int argc, char **argv)
{
int a, b, c;
scanf("%d %d %d", &a, &b, &c);
if (a <= c && c <= b) {
puts("Yes");
} else {
puts("No");
}
return 0;
} | 128 | memory_bytes | {'s_id': 's453464900', 'p_id': 'p03719', 'u_id': 'u573784997', 'date': '1501264834', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '128', '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(int argc, char **argv)\n{\n int a, b, c;\n scanf(\"%d %d %d\", &a, &b, &c);\n\n if (a <= c && ... |
CDSS_640438 | CDSS | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdbool.h>
#include <math.h>
int main()
{
int a, b;
scanf("%d%d", &a, &b);
int hl, hr = 1;
int i;
int ans = 0;
for (i=2; i<=999; i++)
{
hl = hr;
hr += i;
if (hr - hl == b - a) ans = hl - a;
}
... | 128 | memory_bytes | {'s_id': 's104893657', 'p_id': 'p03328', 'u_id': 'u214304095', 'date': '1541261864', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '128', 'code_size': '359'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n#include <stdbool.h>\n#include <math.h>\n\nint main()\n{\n int a, b;\... |
CDSS_55444 | CDSS | #include <stdio.h>
#include <string.h>
#include <limits.h>
int sum[5001];
int main(void)
{
int n, i, j, max;
while(1){
/* 配列データの初期化 */
memset(sum, 0, sizeof(sum));
/* 入力データの読み込み */
scanf("%d", &n);
if(n == 0) break; /* nが0だったら終了 */
for(i=1; i<=n; i++){
int k;
scanf("%d", &k);
sum[i] = k + sum[i-1... | 628 | memory_bytes | {'s_id': 's375999412', 'p_id': 'p00022', 'u_id': 'u324171823', 'date': '1423462945', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '628', 'code_size': '647'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 <limits.h>\n\nint sum[5001];\n\nint main(void)\n{\n int n, i, j, max;\n\n while(1)... |
CDSS_260581 | CDSS | #include<stdio.h>
int main(void){
int a=0,b=0,c,i;
scanf("%d",&c);
for(i=0;i<24;i++){
if(c>=3600){
c-=3600;
a+=1;
}
}
for(i=0;i<60;i++){
if(c>=60){
c-=60;
b+=1;
}
}
printf("%d:%d:%d\n",a,b,c);
return 0;
} | 592 | memory_bytes | {'s_id': 's709262626', 'p_id': 'p02390', 'u_id': 'u988309310', 'date': '1463878319', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', 'code_size': '204'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\nint a=0,b=0,c,i;\nscanf(\"%d\",&c);\nfor(i=0;i<24;i++){\nif(c>=3600){\nc-=3600;\na+=1;\n}\n}\nfor(... |
CDSS_390449 | CDSS | #include <stdio.h>
typedef long long ll;
int main() {
int n;
scanf("%d", &n);
ll ans[10000] = {0};
for (int x = 1; x <= n; x++) {
for (int y = 1; y <= n; y++) {
for (int z = 1; z <= n; z++) {
int t = x * x + y * y + z * z + x * y + y * z + z * x;
if (t <= n) {
ans[t - 1]++;
} else {
break... | 1,724 | memory_bytes | {'s_id': 's328931712', 'p_id': 'p02608', 'u_id': 'u030504180', 'date': '1594517214', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '163', 'memory': '1724', '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>\ntypedef long long ll;\nint main() {\n\tint n;\n\tscanf(\"%d\", &n);\n\tll ans[10000] = {0};\n\tfor (int x = 1; x <... |
CDSS_51235 | CDSS | a[9],m;main(){while(~scanf("%d",a+m++));for(qsort(a,--m,4,"YXZQQQ\x8b\0+\x2\xc3");m;printf("%d%c",a[m],--m?32:10));} | 0 | memory_bytes | {'s_id': 's795915030', 'p_id': 'p00018', 'u_id': 'u999854911', 'date': '1298138116', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', '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:\na[9],m;main(){while(~scanf(\"%d\",a+m++));for(qsort(a,--m,4,\"YXZQQQ\\x8b\\0+\\x2\\xc3\");m;printf(\"%d%c\",a[m],--m?32:10));}\nPredic... |
CDSS_142224 | CDSS | #include<stdio.h>
#include<stdlib.h>
void putQueen(int**,int*,int*,int*,int*,int*,int,int);
void print(int**);
int main(){
int **G,*row,*col,*dpos,*dneg,*a,i,j,n,x,y;
G = malloc(8 * sizeof(int *));
row = malloc(8 * sizeof(int *));
col = malloc(8 * sizeof(int *));
dpos = malloc(15 * sizeof(int *));
dneg = ... | 2,108 | memory_bytes | {'s_id': 's383012517', 'p_id': 'p02244', 'u_id': 'u939288792', 'date': '1549334408', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '1592'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\nvoid putQueen(int**,int*,int*,int*,int*,int*,int,int);\nvoid print(int**);\nint main(){\n in... |
CDSS_504019 | CDSS | #include<stdio.h>
#include<string.h>
int main ()
{
char s[101],t[201];
scanf("%s%s",s,t);
strcat(t,s);
puts(t);
return 0;
} | 128 | memory_bytes | {'s_id': 's490695411', 'p_id': 'p02817', 'u_id': 'u160009340', 'date': '1577669201', '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>\n#include<string.h>\nint main ()\n{\n char s[101],t[201];\n scanf(\"%s%s\",s,t);\n strcat(t,s);\n puts(t);\n re... |
CDSS_303416 | CDSS | /*
* main.c
*
* Created on: 2020/07/27
* Author: 113896
*/
#include <stdio.h>
void swap(int *x, int *y) {
int tmp = *x;
*x = *y;
*y = tmp;
}
int main() {
int a, b;
while (1) {
scanf("%d%d", &a, &b);
if (a == 0 && b == 0) break;
if (a > b) swap(&a, &b);
printf("%d %d\n", a, b);
}
return 0;... | 2,068 | memory_bytes | {'s_id': 's920983996', 'p_id': 'p02397', 'u_id': 'u035401074', 'date': '1595816576', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2068', 'code_size': '324'} | [
{
"content": "Your task is to predict the memory 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 * main.c\n *\n * Created on: 2020/07/27\n * Author: 113896\n */\n#include <stdio.h>\n\n\nvoid swap(int *x, int *y) {\n\tint... |
CDSS_240592 | CDSS | #include <stdio.h>
int main(void)
{
int x ;
scanf("%d",&x) ;
printf("%d\n", x*x*x) ;
return 0 ;
} | 596 | memory_bytes | {'s_id': 's998860659', 'p_id': 'p02388', 'u_id': 'u436467804', 'date': '1432096505', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '107'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n\n int x ;\n\n scanf(\"%d\",&x) ;\n\n printf(\"%d\\n\", x*x*x) ;\n\n return 0 ;\n\n}\nPredict... |
CDSS_701227 | CDSS | #include <stdio.h>
#include<math.h>
int main(void){
// Here your code !
int r,g,b,a;
scanf("%d %d %d",&r,&g,&b);
a=100*r+10*g+b;
if(a%4==0){
printf("YES\n");
}
else printf("NO\n");
return 0;
}
| 128 | memory_bytes | {'s_id': 's518881577', 'p_id': 'p03693', 'u_id': 'u418810472', 'date': '1497143736', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '242'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include<math.h>\nint main(void){\n // Here your code !\n int r,g,b,a;\n scanf(\"%d %d %d\",&r,&g,&b);\n ... |
CDSS_621981 | CDSS | #include<stdio.h>
int main(void){
int K,out,x;
scanf("%d",&K);
x=K/2;
out=x*x+x*(K%2);
printf("%d\n",out);
return 0;
} | 128 | memory_bytes | {'s_id': 's945024890', 'p_id': 'p03264', 'u_id': 'u594649885', 'date': '1536267686', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '135'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 K,out,x;\n\n scanf(\"%d\",&K);\n\n x=K/2;\n out=x*x+x*(K%2);\n\n printf(\"%d\\n\",out)... |
CDSS_673991 | CDSS | #include<stdio.h>
int main(void){
int N,n,r=0;
scanf("%d",&N);
n=N;
while(n){r+=n%10;n/=10;}
printf(N%r==0?"Yes":"No");
return 0;
} | 128 | memory_bytes | {'s_id': 's645705559', 'p_id': 'p03502', 'u_id': 'u295811701', 'date': '1589082000', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '137'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n\tint N,n,r=0;\n\tscanf(\"%d\",&N);\n\tn=N;\n\twhile(n){r+=n%10;n/=10;}\n\tprintf(N%r==0?\"Yes\":\... |
CDSS_190110 | CDSS | #include<stdio.h>
int main(){
int i,j,n,q,c=0;
int S[10000];
int T[500];
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++){
for(j=0;j<n;j++){
if(S[j]==T[i]){
c++;
break;
}
}
}
printf... | 2,108 | memory_bytes | {'s_id': 's597063298', 'p_id': 'p02267', 'u_id': 'u889908059', 'date': '1530583513', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '348'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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,q,c=0;\n int S[10000];\n int T[500];\n\n scanf(\"%d\",&n);\n\n for(i=0;i<n;i++){\n ... |
CDSS_531895 | CDSS | #include<stdio.h>
int main()
{
int i,j=0;
char s1[10],s2[10];
scanf("%s%s",s1,s2);
for(i=0;i<3;i++)
{
if(s1[i]==s2[i])
{
j++;
}
}
printf("%d\n",j);
return 0;
} | 128 | memory_bytes | {'s_id': 's836650936', 'p_id': 'p02921', 'u_id': 'u863370423', 'date': '1579224153', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '227'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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,j=0;\n char s1[10],s2[10];\n scanf(\"%s%s\",s1,s2);\n for(i=0;i<3;i++)\n {\n ... |
CDSS_32431 | CDSS | #include <stdio.h>
#include <math.h>
int main()
{
double a,b,c,d,e,f;
double x,y;
while(scanf("%lf %lf %lf %lf %lf %lf",&a,&b,&c,&d,&e,&f)!=EOF){
y = (((f)*(a)-(d)*(c))/((e)*(a)-(d)*(b)));
x = (((c)-(b)*(y))/(a));
printf("%0.3lf %0.3lf\n",x,y);
}
return 0;
} | 652 | memory_bytes | {'s_id': 's257254881', 'p_id': 'p00004', 'u_id': 'u011621222', 'date': '1463702980', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '652', 'code_size': '288'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n\nint main()\n{\n double a,b,c,d,e,f;\n double x,y;\n while(scanf(\"%lf %lf %lf %lf %l... |
CDSS_414104 | CDSS | #include<stdio.h>
int main(){
int N;
scanf("%d",&N);
if(N%10==2 ||N%10==4 ||N%10==5 ||N%10==7 ||N%10==9){
printf("%s\n","hon");
}else if(N%10==0 || N%10==1 ||N%10==6 ||N%10==8){
printf("%s\n","pon");
}else if(N%10==3){
printf("%s\n","bon");
}
return 0;
}
| 1,636 | memory_bytes | {'s_id': 's683144173', 'p_id': 'p02675', 'u_id': 'u794976331', 'date': '1595101955', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1636', 'code_size': '299'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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\n if(N%10==2 ||N%10==4 ||N%10==5 ||N%10==7 ||N%10==9){\n prin... |
CDSS_281172 | CDSS | #include <stdio.h>
int main(void) {
int l,m,n;
scanf("%d %d %d",&l,&m,&n);
if(l > m)
{
int temp;
temp =l;
l=m;
m=temp;
}
if (m>n)
{
int temp1;
temp1 =m;
m=n;
n=temp1;
}
if (l>m)
{
int temp2;
temp2=l;
l=m;
m=temp2;
}
printf("%d %d %d\n",l,m,n);
... | 2,080 | memory_bytes | {'s_id': 's035090165', 'p_id': 'p02393', 'u_id': 'u277871505', 'date': '1540222198', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2080', 'code_size': '364'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\n\t\n\tint l,m,n;\n\t\n\tscanf(\"%d %d %d\",&l,&m,&n);\n\t\n\tif(l > m)\n\t{\n\t\tint temp;\n\t... |
CDSS_123511 | CDSS | #include <stdio.h>
#define ll long long
#define rep(i,l,r)for(ll i=(l);i<(r);i++)
int main(){
ll n;
while(scanf("%lld",&n),n){
n*=2;
ll ans=0;
rep(i,1,n+1)if(i*i<n&&n%i==0&&i%2!=n/i%2)ans++;
printf("%lld\n",ans-1);
}
}
| 2,104 | memory_bytes | {'s_id': 's952293767', 'p_id': 'p01314', 'u_id': 'u409832240', 'date': '1559022596', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '231'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\nint main(){\n\tll n;\n\twhile(scanf(\"%lld\",&n... |
CDSS_212135 | CDSS | #include <stdio.h>
#define MAX 100000
int partition(int *,int,int);
int main()
{
int i, n, kijun;
int A[MAX];
scanf("%d",&n);
for(i = 0; i < n; i++) {
scanf("%d",&A[i]);
}
kijun = partition(A, 0, n - 1);
for(i = 0; i < n; i++) {
if(i) printf(" ");
if(i == kijun) printf("[%d]", A[i]);
... | 2,108 | memory_bytes | {'s_id': 's147271214', 'p_id': 'p02276', 'u_id': 'u868425387', 'date': '1577085184', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2108', 'code_size': '660'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\n#define MAX 100000\n\nint partition(int *,int,int);\n\nint main()\n{\n int i, n, kijun;\n int A[MAX];\n\n sca... |
CDSS_525187 | CDSS | /*
submission # - User: herp_sy
https://atcoder.jp/contests/
coding: utf-8
lang: C (GCC 5.4.1)
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <stdbool.h>
#define _CRT_SECURE_NO_WARNINGS
#define TLong long long
#define TBMod 1000000007
int main(int argc, char const *argv... | 512 | memory_bytes | {'s_id': 's235290670', 'p_id': 'p02898', 'u_id': 'u185464141', 'date': '1569966369', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '512', '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/*\n\tsubmission # - User: herp_sy\n\thttps://atcoder.jp/contests/\n\n\tcoding: utf-8\n\tlang: C (GCC 5.4.1)\n*/\n\n#include <stdio.h>... |
CDSS_519977 | CDSS | #include <stdio.h>
#include <math.h>
int main(void) {
long long int n;
scanf("%lld", &n);
long long int res = n - 1;
for (long long int i = 1; i <= sqrt(n); i++) {
if (n % i == 0) {
long long int j = n / i - 1;
if (i+j-1 < res) res = i+j-1;
}
}
printf("%lld\n", res);
return 0;
}
| 128 | memory_bytes | {'s_id': 's231067282', 'p_id': 'p02881', 'u_id': 'u330690418', 'date': '1572228847', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '12', 'memory': '128', 'code_size': '318'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 long long int n;\n scanf(\"%lld\", &n);\n long long int res = n - 1;\n\... |
CDSS_647888 | CDSS | #include <stdio.h>
int main()
{
int x,n,i,a[105];
int sum=0,j=0;
scanf("%d%d",&n,&x);
for(i=0;i<n;i++)
{
scanf("%d",&a[i]);
sum+=a[i];
}
int min=a[0];
for(i=1;i<n;i++)
{
if(a[i]<min)
min=a[i];
}
if((x-sum)>=min)
{
j=(x-sum)/min;... | 128 | memory_bytes | {'s_id': 's311574273', 'p_id': 'p03370', 'u_id': 'u685807275', 'date': '1537113717', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '364'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main()\n{\n int x,n,i,a[105];\n int sum=0,j=0;\n scanf(\"%d%d\",&n,&x);\n for(i=0;i<n;i++)\n {\... |
CDSS_69793 | CDSS | #include<stdio.h>
#include<limits.h>
int main(){
int n, m;
int i, j;
while(scanf("%d%d", &n, &m), n) {
int cost[100][100] = {0};
int determined[100] = {0}, undeterminednodes = n;
int mincost[100] = {0};
int costsum = 0;
int minnode, minnodecost;
// initialize cost table
for(i = 0; i < n; i ++) {
fo... | 0 | memory_bytes | {'s_id': 's495617988', 'p_id': 'p00072', 'u_id': 'u399107199', 'date': '1287306095', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '1230'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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<limits.h>\nint main(){\n\tint n, m;\n\tint i, j;\n\twhile(scanf(\"%d%d\", &n, &m), n) {\n\t\tint cost[100]... |
CDSS_746122 | CDSS | #define q(x,y)(f[x]*h[y]%m*h[(x)-(y)]%m)
const z=1<<18,m=1000000007;long long H,W,A,B,i=1,f[1<<18],g[1<<18],h[1<<18],r;
main(){
for(f[0]=1;i<z;i++)f[i]=f[i-1]*i%m;
for(g[1]=1,i=2;i<z;i++)g[i]=g[m%i]*(m-m/i)%m;
for(h[0]=i=1;i<z;i++)h[i]=h[i-1]*g[i]%m;
for(scanf("%d%d%d%d",&H,&W,&A,&B),i=0;i<W-B;i++)r=(r+q(A+i-1,i)*q(W-i... | 6,272 | memory_bytes | {'s_id': 's627469377', 'p_id': 'p04046', 'u_id': 'u837745858', 'date': '1469325813', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '29', 'memory': '6272', 'code_size': '360'} | [
{
"content": "Your task is to predict the memory 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 q(x,y)(f[x]*h[y]%m*h[(x)-(y)]%m)\nconst z=1<<18,m=1000000007;long long H,W,A,B,i=1,f[1<<18],g[1<<18],h[1<<18],r;\nmain(){\nfor... |
CDSS_126620 | CDSS | // AOJ 2509: Sim Forest 2013
// 2018.1.3 bal4u@uu
#include <stdio.h>
#include <math.h>
char *s_time[3] = {"Day", "Night", "All"};
int id_time[3] = {0,1,2}, len_time[3] = {4,6,4};
int tr_time['Z'];
int tbl[3][2][20160]; // day/night/all, weekday/all, 20160 = 2*7*24*60
char buf[50], *bp;
int in()
{
int n = 0;
wh... | 2,044 | memory_bytes | {'s_id': 's204527463', 'p_id': 'p01621', 'u_id': 'u847467233', 'date': '1514949559', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '2044', 'code_size': '1648'} | [
{
"content": "Your task is to predict the memory 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 \t2509: Sim Forest 2013\n// 2018.1.3 bal4u@uu\n\n#include <stdio.h>\n#include <math.h>\n\nchar *s_time[3] = {\"Day\", \"Night\"... |
CDSS_122049 | CDSS | #include <stdio.h>
int main(void) {
int sum, N, M, P, ply[100], i;
int gold;
while(scanf("%d%d%d",&N,&M,&P) , M+N+P) {
sum = 0;
for(i = 0; i < N; i++ ) {
scanf("%d",&ply[i]);
sum += ply[i];
}
if(ply[M-1]) {
gold = sum * (100 - P) / ply[M-1];
} else {
gold = 0;
}
... | 600 | memory_bytes | {'s_id': 's686282234', 'p_id': 'p01143', 'u_id': 'u648717067', 'date': '1434849123', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '360'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 sum, N, M, P, ply[100], i;\n int gold;\n while(scanf(\"%d%d%d\",&N,&M,&P) , M+N+P) {\n ... |
CDSS_569829 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <limits.h>
typedef struct {
int b;
int c;
}pair_t;
int cmp(const void* p, const void* q) {
return *(int*)p - *(int*)q;
}
int cmp2(const void* p, const void* q) {
return ((pair_t*)q)->c - ((pair_t*)p)->c;
}
int main(void) {
int n, m;
int a[100... | 2,168 | memory_bytes | {'s_id': 's325387035', 'p_id': 'p03038', 'u_id': 'u105100688', 'date': '1583000892', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '56', 'memory': '2168', 'code_size': '1036'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 <limits.h>\n\ntypedef struct {\n\tint b;\n\tint c;\n}pair_t;\n\... |
CDSS_146953 | CDSS | #include <stdio.h>
int main()
{
int i,j,k,memo,n,A[100];
scanf("%d",&n);
for(i = 0; i < n; ++i)
{
scanf("%d",&A[i]);
}
for (i = 0; i < n-1; ++i)
{
printf("%d ", A[i]);
}
printf("%d\n", A[n-1]);
for (i = 1; i < n; ++i)
{
memo = A[i];
j = i-1;
while(j >= 0 && A[j] > memo)
{
... | 1,744 | memory_bytes | {'s_id': 's015762258', 'p_id': 'p02255', 'u_id': 'u983310902', 'date': '1514372753', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1744', 'code_size': '468'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 i,j,k,memo,n,A[100];\n\tscanf(\"%d\",&n);\n\tfor(i = 0; i < n; ++i)\n\t{\n\t\tscanf(\"%d\",... |
CDSS_676487 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
int main()
{
int a,b,c,d,m;
while(scanf("%d",&m)!=EOF)
{ a=m/1000;
b=(m-1000*a)/100;
c=m%100/10;
d=m%10;
if(a+b+c+d==7)printf("%d+%d+%d+%d=7\n",a,b,c,d);
else if(a+b+c-d==7)printf("%d+%d+%d... | 128 | memory_bytes | {'s_id': 's564052542', 'p_id': 'p03545', 'u_id': 'u089230684', 'date': '1520816674', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '670'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 main()\n{\n int a,b,c,d,m;\n while(scanf(\"... |
CDSS_607252 | CDSS | //a.c A-Chrisitmas Eve Eve Eve
#include<stdio.h>
int main(void){
int d;
scanf("%d",&d);
if(d==25){
printf("Christmas\n");
}else if(d==24){
printf("Christmas Eve\n");
}else if(d==23){
printf("Christmas Eve Eve\n");
}else if(d==22){
printf("Christmas Eve Eve Eve\n"... | 128 | memory_bytes | {'s_id': 's434480768', 'p_id': 'p03206', 'u_id': 'u043363214', 'date': '1585764113', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '344'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n//a.c A-Chrisitmas Eve Eve Eve\n#include<stdio.h>\n\nint main(void){\n int d;\n scanf(\"%d\",&d);\n if(d==25){\n print... |
CDSS_102529 | CDSS | #include<stdio.h>
int main(void)
{
int a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,V,w,x,y,z,A,B,C,D,E,F,G,H,I,J;
scanf("%d %d %d %d %d %d\n%d %d %d %d %d %d\n%d %d %d %d %d %d",&a,&b,&c,&d,&e,&f,&g,&h,&i,&j,&k,&l,&m,&n,&o,&p,&q,&r);
s=3600*a+60*b+c;
t=3600*d+60*e+f;
u=3600*g+60*h+i;
V=3600*j+60*k... | 600 | memory_bytes | {'s_id': 's604477565', 'p_id': 'p00455', 'u_id': 'u950683603', 'date': '1402930118', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '594'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,V,w,x,y,z,A,B,C,D,E,F,G,H,I,J;\n scanf(\"%d... |
CDSS_575867 | CDSS | #include <stdio.h>
int main(){
int n ;
scanf("%d",&n);
int v[n],c[n];
for (int i = 0;i < n;i++){
scanf("%d",&v[i]);
}
for (int i = 0;i < n;i++){
scanf("%d",&c[i]);
}
int vt = 0;
int ct = 0;
for (int i = 0;i < n;i++){
if(v[i]-c[i] > 0){
vt += v[i];
ct += c[i];
}
}
int ans = vt -ct;
printf("%d... | 128 | memory_bytes | {'s_id': 's327166307', 'p_id': 'p03060', 'u_id': 'u239316561', 'date': '1557431632', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '331'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 ;\n\tscanf(\"%d\",&n);\n\tint v[n],c[n];\n\tfor (int i = 0;i < n;i++){\n\t\tscanf(\"%d\",&v... |
CDSS_227728 | CDSS | #include<stdio.h>
#define MAX 100000
int main(){
int H,i,A[MAX+1];
scanf("%d",&H);
for(i=1;i<=H;i++){
scanf("%d",&A[i]);
}
for(i=1;i<=H;i++){
printf("node %d: ",i);
printf("key = %d, ",A[i]);
if(parent(i)>=1)printf("parent key = %d, ",A[parent(i)]);
if(left(i)<=H)printf("left key = %d, ",... | 2,048 | memory_bytes | {'s_id': 's979244267', 'p_id': 'p02287', 'u_id': 'u161614866', 'date': '1547522525', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2048', 'code_size': '534'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\nint main(){\n int H,i,A[MAX+1];\n scanf(\"%d\",&H);\n for(i=1;i<=H;i++){\n scanf(\"%d\"... |
CDSS_343927 | CDSS | #include<stdio.h>
int main(){
int n;
scanf("%d",&n);
int num[n];
for( int i=0 ; i<n ; i++ ){
scanf("%d",&num[i]);
}
int ans[n];
for( int i=n-1 ; i>=0 ; i-- ){
if( i < n-1 )printf(" ");
printf("%d",num[i]);
}
printf("\n");
}
| 2,040 | memory_bytes | {'s_id': 's150482284', 'p_id': 'p02407', 'u_id': 'u132677601', 'date': '1587983181', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2040', 'code_size': '256'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n int n;\n scanf(\"%d\",&n);\n int num[n];\n for( int i=0 ; i<n ; i++ ){\n scanf(\"%d\",&num[i... |
CDSS_332882 | CDSS | #include<stdio.h>
int main(){
int h,w,i,j;
while(scanf("%d %d",&h,&w),h!=0 && w!=0){
for(i=0;i<h;i++){
for(j=0;j<w;j++){
if(i==0 || i==h-1 || j==0 || j==w-1)
printf("#");
else printf(".");
}
printf("\n");
}
printf("\n");
}
return 0;
}
| 1,924 | memory_bytes | {'s_id': 's383068547', 'p_id': 'p02404', 'u_id': 'u964212895', 'date': '1556180559', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1924', 'code_size': '267'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 h,w,i,j;\n\twhile(scanf(\"%d %d\",&h,&w),h!=0 && w!=0){\n\t\tfor(i=0;i<h;i++){\n\t\t\tfor(j=0;... |
CDSS_486387 | CDSS | #include <stdio.h>
int main()
{
int A, B, C;
scanf("%d %d %d", &A, &B, &C);
(A==B && A==C && B==C) ? puts("No") : puts("");
(A!=B && A!=C && B!=C) ? puts("No") : puts("");
(A==B && A==C && B!=C) ? puts("Yes") : puts("");
(A==B && A!=C && B==C) ? puts("Yes") : puts("");
(A!=B && A==C && B==C) ? puts("Yes") : ... | 1,664 | memory_bytes | {'s_id': 's681942383', 'p_id': 'p02771', 'u_id': 'u089230684', 'date': '1600311440', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1664', 'code_size': '496'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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()\n{\n\tint A, B, C;\n\t\n\tscanf(\"%d %d %d\", &A, &B, &C);\n\t(A==B && A==C && B==C) ? puts(\"No\")... |
CDSS_651652 | CDSS | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdint.h> // int64_t
#include <math.h>
#define max(a,b) ((a) > (b) ? (a) : (b))
#define min(a,b) ((a) > (b) ? (b) : (a))
int get_int(void) {
int num;
scanf("%d", &num);
return num;
}
int get_int2(int64_t *a1, int64_t *a2) {
scanf("%lld %lld... | 128 | memory_bytes | {'s_id': 's326294495', 'p_id': 'p03388', 'u_id': 'u866370648', 'date': '1591233437', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '1089'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n#include <stdint.h> // int64_t\n#include <math.h>\n\n#define max(a,b) ((... |
CDSS_39507 | CDSS | #include <stdio.h>
int main(void){
int n,lmoney=100000;
int i;
scanf("%d",&n);
for(i = 0;i < n;i++){
lmoney+=lmoney*(0.05);
if(lmoney%1000>0){
lmoney += 1000 - (lmoney%1000);
}
}
printf("%d\n",lmoney);
return 0;
} | 592 | memory_bytes | {'s_id': 's430438439', 'p_id': 'p00007', 'u_id': 'u990607769', 'date': '1435039145', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', 'code_size': '235'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n\tint n,lmoney=100000;\n\tint i;\n\n\tscanf(\"%d\",&n);\n\n\tfor(i = 0;i < n;i++){\n\t\tlmoney+... |
CDSS_109320 | CDSS | #include<stdio.h>
int main(){
char c;
int w,h,k,i;
scanf("%d %d",&h,&w);
while(h--){
k=-1;
for(i=0;i<w;i++){
scanf(" %c",&c);
if(c=='c')k=0;
else if(k+1)k++;
if(i)printf(" ");
printf("%d",k);
}
printf("\n");
}
return 0;
} | 600 | memory_bytes | {'s_id': 's626522798', 'p_id': 'p00533', 'u_id': 'u731027244', 'date': '1437120885', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', '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>\nint main(){\n char c;\n int w,h,k,i;\n scanf(\"%d %d\",&h,&w);\n while(h--){\n k=-1;\n for(i=0;i<w;i++){\... |
CDSS_210767 | CDSS | #include <stdio.h>
#define MAX 100000
int partition(int,int);
int A[MAX],n;
int main(){
int i,q;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d",&A[i]);
}
q=partition(0,n-1);
for(i=0;i<n;i++){
if(i>=0 && i!=q){
printf("%d",A[i]);
if(i!=n-1){
printf(" ");
}
}
if(i==... | 2,108 | memory_bytes | {'s_id': 's650159487', 'p_id': 'p02276', 'u_id': 'u181559000', 'date': '1545883737', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2108', 'code_size': '647'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\nint partition(int,int);\n\nint A[MAX],n;\n\nint main(){\n int i,q;\n\n scanf(\"%d\",&n);\n... |
CDSS_347784 | CDSS | #include <stdio.h>
int main()
{
int n, b, f, r, v;
scanf("%d\n",&n);
int a[4][3][10] = { 0 };
while(n--){
scanf("%d %d %d %d",&b, &f, &r, &v);
a[b-1][f-1][r-1]+=v;
}
for(b=0;b<4;b++){
for(f=0;f<3;f++){
for(r=0;r<10;r++){
printf(" %d",a[b][f][r]);
}
printf("\n");
}
if(b<3)printf("#... | 2,104 | memory_bytes | {'s_id': 's358370135', 'p_id': 'p02409', 'u_id': 'u426580053', 'date': '1559289419', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '361'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main()\n{\n\tint n, b, f, r, v;\n\t\n\tscanf(\"%d\\n\",&n);\n\t\n\tint a[4][3][10] = { 0 };\n\t\n\twhile(n--){... |
CDSS_495471 | CDSS | #include<stdio.h>
#include<stdlib.h>
int compare_long_long_int(const void *a, const void *b)
{
return *(int*)b - *(int*)a;
}
int main(){
int N;
int K;
int i;
long long int A[200000];
long long int ans=0;
scanf("%d",&N);
scanf("%d",&K);
for(i=0;i<N;i++){
scanf("%lld",&A[i... | 3,324 | memory_bytes | {'s_id': 's437346620', 'p_id': 'p02785', 'u_id': 'u077643536', 'date': '1580071953', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '51', 'memory': '3324', 'code_size': '549'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n\nint compare_long_long_int(const void *a, const void *b)\n{\n return *(int*)b - *(int*)a;\n... |
CDSS_329582 | CDSS | #include <stdio.h>
int main(){
int H,W;
int i,j;
while(1){
scanf("%d %d",&H,&W);
if(H==0 && W==0)
break;
for(i=0;i<H;i++){
for(j=0;j<W;j++){
printf("#");
}
printf("\n");
}
printf("\n");
}
return 0;
} | 572 | memory_bytes | {'s_id': 's688075734', 'p_id': 'p02403', 'u_id': 'u171494543', 'date': '1463361813', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '572', 'code_size': '233'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 H,W;\n\tint i,j;\n\t\n\twhile(1){\n\t\tscanf(\"%d %d\",&H,&W);\n\t\tif(H==0 && W==0)\n\t\t\tb... |
CDSS_387585 | CDSS | #include <stdio.h>
#include <stdlib.h>
int main (void) {
int N, w_c = -1, r_c = -1, count = 0, j = 0;
scanf("%d\n", &N);
char t;
int w[N], r[N];
for (int i = 0; i < N; i++) {
scanf("%c", &t);
if (t == 'R') {
r_c++;
r[r_c] = i;
} else if (t == 'W') {
... | 2,524 | memory_bytes | {'s_id': 's910015343', 'p_id': 'p02597', 'u_id': 'u630177233', 'date': '1596421461', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '22', 'memory': '2524', 'code_size': '525'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 N, w_c = -1, r_c = -1, count = 0, j = 0;\n scanf(\"%d\\n\", &... |
CDSS_447639 | CDSS | #include<stdio.h>
int main(void)
{
int n,i,s,t;
scanf("%d",&n);
for(i=0;i<3;i++){
s=n%10;
n=n/10;
if(s==7){
t++;
}
}
if(t>0)
puts("Yes");
else
puts("No");
return 0;
}
| 1,664 | memory_bytes | {'s_id': 's944437545', 'p_id': 'p02711', 'u_id': 'u625695424', 'date': '1595268697', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1664', 'code_size': '227'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void)\n{\n int n,i,s,t;\n \n scanf(\"%d\",&n);\n \n for(i=0;i<3;i++){\n s=n%10;\n n=n/10;\n ... |
CDSS_351370 | CDSS | #include <stdio.h>
int main(void){
// Your code here!
int vector[101][101];
int product[101];
int a,b,i,j;
scanf("%d %d",&a,&b);
for(i=1;i<=a;i++){
for(j=1;j<=b;j++){
scanf("%d",&vector[i][j]);
}
}
for(j=1;j<=b;j++){
... | 2,140 | memory_bytes | {'s_id': 's096446987', 'p_id': 'p02410', 'u_id': 'u376432033', 'date': '1529299405', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2140', 'code_size': '584'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\n // Your code here!\n \n int vector[101][101];\n int product[101];\n int a,b,i,j;\... |
CDSS_67822 | CDSS | #include<stdio.h>
double a[4],b[4];
main(){
int temp;
while(scanf("%lf %lf %lf %lf",&a[0],&a[1],&a[2],&a[3])!=EOF){
scanf("%lf %lf %lf %lf",&b[0],&b[1],&b[2],&b[3]);
if(a[0]>=a[2]){
temp=a[0];
a[0]=a[2];
a[2]=temp;
}
if(a[1]>=a[3]){
temp=a[1];
a[1]=a[3];
a[3]=temp... | 0 | memory_bytes | {'s_id': 's965666677', 'p_id': 'p00059', 'u_id': 'u183179710', 'date': '1317888083', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '740'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\ndouble a[4],b[4];\nmain(){\n int temp;\n while(scanf(\"%lf %lf %lf %lf\",&a[0],&a[1],&a[2],&a[3])!=EOF){\n sca... |
CDSS_640044 | CDSS | #include <stdio.h>
int main(void)
{
int N;
scanf("%d",&N);
if (N <=999){
printf("ABC\n");}
else {printf("ABD\n");}
return 0;
}
| 128 | memory_bytes | {'s_id': 's356910221', 'p_id': 'p03327', 'u_id': 'u238235808', 'date': '1528679555', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '156'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void)\n{\n int N;\n scanf(\"%d\",&N);\n if (N <=999){\n printf(\"ABC\\n\");}\n else {... |
CDSS_108911 | CDSS | // AOJ 0606: Tower of JOIOI
// 2018.1.10 bal4u@uu
#include <stdio.h>
#include <stdlib.h>
char s[1000005], *p;
int check(char *p, int m)
{
int i, si, oi, soi, n;
i = si = oi = soi = n = 0;
while (*p) {
if (*p == 'J') {
if (soi > oi) { oi++; if (++n == m) return 1; }
} else if (*p == 'O') {
if (si > i &&... | 2,736 | memory_bytes | {'s_id': 's203333208', 'p_id': 'p00529', 'u_id': 'u847467233', 'date': '1515593893', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '60', 'memory': '2736', 'code_size': '965'} | [
{
"content": "Your task is to predict the memory 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 0606: Tower of JOIOI\n// 2018.1.10 bal4u@uu\n\n#include <stdio.h>\n#include <stdlib.h>\n\nchar s[1000005], *p;\n\nint check(cha... |
CDSS_310712 | CDSS | #include <stdio.h>
int main(){
int a,b,d,r;
double f;
scanf("%d",&a);
scanf("%d",&b);
d=a/b;
r=a%b;
f=(double)a/(double)b;
printf("%d %d %.5f\n",d,r,f);
return 0;
} | 640 | memory_bytes | {'s_id': 's376941880', 'p_id': 'p02399', 'u_id': 'u239600616', 'date': '1499173763', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '640', 'code_size': '209'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n\n int a,b,d,r;\n double f;\n \n \t scanf(\"%d\",&a);\n\t scanf(\"%d\",&b); \n\n d... |
CDSS_401828 | CDSS | #include <stdio.h>
int main(void) {
int x[5];
for (int i=0;i<5;++i) {
scanf("%d\n",x+i);
if (x[i]==0) {
printf("%d\n",i+1);
break;
}
}
return 0;
}
| 1,724 | memory_bytes | {'s_id': 's128181838', 'p_id': 'p02639', 'u_id': 'u608040014', 'date': '1592611705', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1724', 'code_size': '180'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\n int x[5];\n for (int i=0;i<5;++i) {\n scanf(\"%d\\n\",x+i);\n if (x[i]==0) {\n p... |
CDSS_350805 | CDSS | #include<stdio.h>
int main(void){
int a[100][100],b[100],c[100]={0},n,m,i,j,k;
scanf("%d %d",&n,&m);
for(i=0;i<n;i++){
for(j=0;j<m;j++){
scanf("%d",&a[i][j]);
}
}
for(k=0;k<m;k++){
scanf("%d",&b[k]);
}
for(i=0;i<n;i++){
for(j=0;j<m;j++){
c[i]+=a[i][j]*b[j];
}
}
for(k=0;k<n;k++){
printf("%d\n"... | 636 | memory_bytes | {'s_id': 's510472381', 'p_id': 'p02410', 'u_id': 'u606893172', 'date': '1471172495', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '636', 'code_size': '342'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n\tint a[100][100],b[100],c[100]={0},n,m,i,j,k;\n\tscanf(\"%d %d\",&n,&m);\n\tfor(i=0;i<n;i++){\n\t... |
CDSS_274377 | CDSS | #include <stdio.h>
int main(){
int a,b;
scanf("%d %d", &a, &b);
if(a > b)printf("a > b\n");
else if(a < b)printf("a < b\n");
else if(a == b)printf("a == b\n");
}
| 2,104 | memory_bytes | {'s_id': 's062201861', 'p_id': 'p02391', 'u_id': 'u672641807', 'date': '1549763684', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '184'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n int a,b;\n scanf(\"%d %d\", &a, &b);\n if(a > b)printf(\"a > b\\n\");\n else if(a < b)... |
CDSS_610817 | CDSS | #include<stdio.h>
#include<stdlib.h>
int main(){
int n,a[1000],i,sum=0;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d",&a[i]);
sum+=a[i];
}
int closer[2]={0,-1};
for(i=0;i<n;i++){
if(abs(a[i]*n-sum)<abs(closer[0]*n-sum)){
closer[0]=a[i];
closer[1]=i;
}
}
printf("%d\n",closer[1]);
return 0;
}
| 128 | memory_bytes | {'s_id': 's493991172', 'p_id': 'p03214', 'u_id': 'u946810083', 'date': '1543108129', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '315'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\tint n,a[1000],i,sum=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i<n;i++){\n\t\tscanf(\"... |
CDSS_83763 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
bool ishamming(int n) {
if(n == 1) return true;
if(n % 2 == 0) return ishamming(n / 2);
if(n % 3 == 0) return ishamming(n / 3);
if(n % 5 == 0) return ishamming(n / 5);
return false;
}
int main(void) {
#if 0
int n;
scanf("%d", &n);
printf("%d\n", isha... | 0 | memory_bytes | {'s_id': 's195093120', 'p_id': 'p00162', 'u_id': 'u434428594', 'date': '1336101863', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '70', 'memory': '0', 'code_size': '526'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <stdbool.h>\n\nbool ishamming(int n) {\n\tif(n == 1) return true;\n\tif(n % 2 == 0) ... |
CDSS_716698 | CDSS | #include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<stdbool.h>
#include<time.h>
#define inf 520000
int main(void){
int i,j,t,l,p,q,a,b;
int next[32][524288];
int doubling[32][524288];
char s[524288];
scanf("%s",s);
l=strlen(s);
for(i=0;i<=26;i++){
next[i][inf]=inf;
next[i][l]=inf;
... | 123,904 | memory_bytes | {'s_id': 's489904880', 'p_id': 'p03793', 'u_id': 'u721060623', 'date': '1558726649', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '451', 'memory': '123904', 'code_size': '1217'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\n#include<stdlib.h>\n#include<stdbool.h>\n#include<time.h>\n#define inf 520000\n\nint main(void)... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.