identifier string | space string | input string | target float64 | metric_type string | metadata string | messages list |
|---|---|---|---|---|---|---|
CDSS_471122 | CDSS | #include <stdio.h>
#include <stdlib.h>
int max(int a, int b)
{
if (a>b) return a;
else return b;
}
int min(int a, int b)
{
if (a<b) return a;
else return b;
}
int main()
{
int n, x, y;
scanf("%d %d %d", &n, &x, &y);
int d1[n+1][n+1], d2[n+1][n+1], d[n+1][n+1];
int c[n+1];
for(int i=0;i<n+1;i++){
... | 47,104 | memory_bytes | {'s_id': 's098620250', 'p_id': 'p02726', 'u_id': 'u301600230', 'date': '1585446988', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '34', 'memory': '47104', 'code_size': '977'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 max(int a, int b)\n{\n if (a>b) return a;\n else return b;\n}\nint min(int a, int b)\... |
CDSS_132973 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
#define N 1001
void count(char *A,char *B){
int i,j,x[N][N];
for(i=0; i<N; i++){
for(j=0; j<N; j++){
x[i][j]=0;
}
}
for(i=0; i<strlen(A); i++){
for(j=0; j<strlen(B); j++){
if(A[i]==B[j])x[i+1][j+1]=x[i][j]+1;
else if(x[i][... | 4,524 | memory_bytes | {'s_id': 's871758189', 'p_id': 'p02235', 'u_id': 'u721701846', 'date': '1437629492', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '450', 'memory': '4524', 'code_size': '606'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#include<string.h>\n#define N 1001\n \nvoid count(char *A,char *B){\n int i,j,x[N][N];\n \n f... |
CDSS_98872 | CDSS | #include<stdio.h>
int main(void)
{
int a,b,s=0,t=0,i;
for(i=0;i<4;i++)
{
scanf("%d",&a);
s+=a;
}
for(i=0;i<4;i++)
{
scanf("%d",&b);
t+=b;
}
if(s>t)
{
printf("%d\n",s);
}
else if(s<t)
{
printf("%d\n",t);
}
else{
printf("%d\n",s);
}
return 0;
} | 1,772 | memory_bytes | {'s_id': 's092137581', 'p_id': 'p00433', 'u_id': 'u721046976', 'date': '1509611424', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1772', 'code_size': '274'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\n\tint a,b,s=0,t=0,i;\n\tfor(i=0;i<4;i++)\n\t{\n\t\tscanf(\"%d\",&a);\n\t\ts+=a;\n\t}\n\tfor(i=0;... |
CDSS_138180 | CDSS | #include <stdio.h>
#define black 1
#define white 0
#define gray 2
#define INF -1
void bfs(void);
int dequeue(void);
void enqueue(int);
int num;
int a[110][110];
int di[110];
int color[110];
int data[110];
int total;
int head;
int main(){
int i,j;
int elem,in,sum;
scanf("%d",&num);
for(i=1;i<=num;i++){
... | 2,072 | memory_bytes | {'s_id': 's618986710', 'p_id': 'p02239', 'u_id': 'u731483540', 'date': '1579838620', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2072', 'code_size': '1018'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\n#define black 1\n#define white 0\n#define gray 2\n#define INF -1\n\nvoid bfs(void);\nint dequeue(void);\nvoid en... |
CDSS_581974 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<math.h>
int main(void){
char c[100024];
char hoge[2] = "01";
char piyo[2] = "10";
int ans1=0;
int ans2=0;
scanf("%s",c);
int i,j;
for(i=0;c[i]!='\0';i++){
if(c[i] != hoge[i%2]){
ans1++;
}
if(c[i] != piyo[i%2]){
ans2++;
}
}
pr... | 256 | memory_bytes | {'s_id': 's143301294', 'p_id': 'p03073', 'u_id': 'u408596602', 'date': '1555183408', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '256', 'code_size': '369'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#include<string.h>\n#include<math.h>\n\n\nint main(void){\n\tchar c[100024];\n\tchar hoge[2] = ... |
CDSS_36936 | CDSS | #include<stdio.h>
main(){
int a[2], b, c, tmp;
int pre, res;
int i;
int min_b, min_c;
int min, max;
while(1){
res = scanf("%d %d", &b, &c);
if(res == EOF){
break;
}
a[0] = b;
a[1] = c;
if(a[0] < a[1]){
tmp = a[0];
a[0] = a[1];
a[1] = tmp;
}
while... | 596 | memory_bytes | {'s_id': 's775174965', 'p_id': 'p00005', 'u_id': 'u085441951', 'date': '1396424431', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '785'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nmain(){\n int a[2], b, c, tmp;\n int pre, res;\n int i;\n int min_b, min_c;\n int min, max;\n\n while(1){\n... |
CDSS_229585 | CDSS | #include <stdio.h>
int H;
int parent(int i){
return i/2;
}
int left(int i){
return 2*i;
}
int right(int i){
return 2*i+1;
}
void maxH(int a[], int i){
int M;
int k, l, r;
l=left(i);
r=right(i);
if(l<=H && a[l]>a[i]){
M=l;
}
else{
M=i;
}
if(r<=H && a[r]>a[M]){
M=r;
}
if(M!=i){
... | 3,668 | memory_bytes | {'s_id': 's950704985', 'p_id': 'p02288', 'u_id': 'u906776083', 'date': '1579157857', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '60', 'memory': '3668', 'code_size': '618'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 H;\nint parent(int i){\n return i/2;\n}\nint left(int i){\n return 2*i;\n}\nint right(int i){\n return 2*i+... |
CDSS_108267 | CDSS | #include <stdio.h>
int main(void) {
int a, b, c, d, e, heikin;
scanf("%d %d %d %d %d",&a,&b,&c,&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;
heikin = (a + b + c + d + e) / 5;
printf("%d\n",heikin);
return 0;
} | 600 | memory_bytes | {'s_id': 's145329080', 'p_id': 'p00515', 'u_id': 'u231389096', 'date': '1442327742', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '290'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void) {\n\tint a, b, c, d, e, heikin;\n\tscanf(\"%d %d %d %d %d\",&a,&b,&c,&d,&e);\n\tif(a < 40)\n\t\ta =... |
CDSS_109529 | CDSS | #include<stdio.h>
#define int long long
int n;
int MAX(int a,int b){return a<b?b:a;}
int pr(int i){return (i+n-1)%n;}
int nx(int i){return (i +1)%n;}
int i,j,d[2010][2010]={0};
signed main(){
scanf("%lld",&n);
for(i=0;i<2010*2010;i++)d[i/2010][i%2010]=-1000000000;
for(i=0;i<n;i++)scanf("%lld",&d[1][i]);
for(i=... | 32,156 | memory_bytes | {'s_id': 's400661745', 'p_id': 'p00538', 'u_id': 'u731027244', 'date': '1467801935', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '80', 'memory': '32156', 'code_size': '682'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 int long long\nint n;\nint MAX(int a,int b){return a<b?b:a;}\nint pr(int i){return (i+n-1)%n;}\nint nx(int ... |
CDSS_741862 | CDSS | #include <stdio.h>
//0,1,/b
//jika 0 taro di kanan
//jika 1 taro di kanan
//jika /b kalo ksoog gpp,kalo ada remove
int main(){
char s[15]; // untuk cek
scanf("%s",s);
int idx = 0; //diset array ke 0 dulu
char s2[15]; //untuk nampung array baru
for(int i=0;s[i] != '\0';i++){
if(s[i] == '0'){
s2[idx] = '0'; //ta... | 2,132 | memory_bytes | {'s_id': 's926882741', 'p_id': 'p04030', 'u_id': 'u863370423', 'date': '1598055221', 'language': 'C', 'original_language': 'C (Clang 10.0.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '2132', 'code_size': '678'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n//0,1,/b\n//jika 0 taro di kanan\n//jika 1 taro di kanan\n//jika /b kalo ksoog gpp,kalo ada remove\n\n\nint main()... |
CDSS_340130 | CDSS | #include <stdio.h>
int main(int argc, const char * argv[]) {
int i,n, x;
scanf("%d",&n);
for(i=1; i<=n; i++) {
x = i;
if(x %3 == 0) {
printf(" %d", i);//先頭に空白を出力
}
else
if(x % 10 == 3) {
printf(" %d", i);
}
... | 2,096 | memory_bytes | {'s_id': 's729699519', 'p_id': 'p02406', 'u_id': 'u104444524', 'date': '1524787826', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2096', 'code_size': '592'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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, const char * argv[]) {\n int i,n, x;\n \n scanf(\"%d\",&n);\n for(i=1; i<=n; i++)... |
CDSS_176892 | CDSS | #include <stdio.h>
#include <stdlib.h>
int stack[10000];
int sp=0;
void push(int x){
stack[sp++]=x;
}
int pop(){
return stack[--sp];
}
int main(){
char s[15];
int i,j;
int x;
while(scanf("%s",s)!=EOF){
if(s[0]=='+'){
push(pop()+pop());
}
else if(s[0]=='-'){
x=pop();
push(pop()-... | 548 | memory_bytes | {'s_id': 's007047457', 'p_id': 'p02263', 'u_id': 'u544325767', 'date': '1458351226', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '548', 'code_size': '529'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\nint stack[10000];\nint sp=0;\nvoid push(int x){\n stack[sp++]=x;\n}\nint pop(){\n return st... |
CDSS_616347 | CDSS | #include <stdio.h>
int main(void){
char c;
int i;
for(i=0;i<3;i++){
scanf("%c",&c);
if(c=='1') printf("%d",9);
if(c=='9') printf("%d",1);
}
printf("\n");
return 0;
} | 128 | memory_bytes | {'s_id': 's417091464', 'p_id': 'p03242', 'u_id': 'u565219356', 'date': '1538313181', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '193'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 char c;\n int i;\n for(i=0;i<3;i++){\n scanf(\"%c\",&c);\n if(c=='1') printf(\"%d\",9... |
CDSS_497390 | CDSS | #include<stdio.h>
int main(void)
{
int a,b,i;
scanf("%d%d",&a,&b);
if(a<b)
for(i=0;i<b;i++)
printf("%d",a);
else
for(i=0;i<a;i++)
printf("%d",b);
printf("\n");
return 0;
} | 128 | memory_bytes | {'s_id': 's703043031', 'p_id': 'p02790', 'u_id': 'u803101149', 'date': '1588892476', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '204'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void)\n{\n int a,b,i;\n scanf(\"%d%d\",&a,&b);\n if(a<b)\n for(i=0;i<b;i++)\n printf(\"%d\",a... |
CDSS_161552 | CDSS | #include <stdio.h>
#include <limits.h>
#define Max INT_MAX
#define Min INT_MIN
int main(void)
{
int n;
int i,j;
int R[200000];
int max=Min;
int min=Max;
int maxi=0,mini=0;
int dif;
scanf("%d",&n);
for(i=0;i<n;i++)
{
scanf("%d",&R[i]);
dif = R[i] - min;
if(dif>max)max=dif;
if(R[i]<m... | 1,376 | memory_bytes | {'s_id': 's700793527', 'p_id': 'p02258', 'u_id': 'u275851438', 'date': '1479848072', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '30', 'memory': '1376', 'code_size': '548'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <limits.h>\n#define Max INT_MAX\n#define Min INT_MIN\n\nint main(void)\n{\n int n;\n int i,j;\n int R[... |
CDSS_26271 | CDSS | #include <stdio.h>
int main(){
int a,b,sum,counter,i;
while(scanf("%d %d",&a,&b) != -1){
sum = a + b;
for (i=0; sum!=0; i++)
sum = sum / 10;
printf("%d\n",i);
}
return 0;
} | 596 | memory_bytes | {'s_id': 's675983838', 'p_id': 'p00002', 'u_id': 'u765849500', 'date': '1441786013', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '194'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n \nint main(){\n int a,b,sum,counter,i;\n while(scanf(\"%d %d\",&a,&b) != -1){\n sum = a + b;\n for (i=0; su... |
CDSS_221240 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#define N 500001
typedef struct tree{
int key;
struct tree *parent;
struct tree *left;
struct tree *right;
} Tree;
Tree *createtree(int);
void insert(Tree *, int);
void inorderwalk(Tree *);
void preorderwalk(Tree *);
Tree *root = NULL;
int main(){
... | 29,412 | memory_bytes | {'s_id': 's451224986', 'p_id': 'p02283', 'u_id': 'u676729079', 'date': '1434077605', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '400', 'memory': '29412', 'code_size': '1495'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 <assert.h>\n#define N 500001\n\ntypedef struct tree{\n int key;\n struct tree *par... |
CDSS_86038 | CDSS | #include <stdio.h>
int main(void){
while(1){
int a[5], x, y, i, flag=0, max=0, p=-1;;
for(i=0; i<5; i++) {
scanf(" %d %d", &x, &y);
if(x==0 && y==0) {
flag=1;
break;
}
a[i] = x+y;
if(max < a[i]) {
max = a[i];
p=i;
}
}
if(flag==1) break;
printf("%c %d\n", 'A'+... | 600 | memory_bytes | {'s_id': 's243750036', 'p_id': 'p00195', 'u_id': 'u231562319', 'date': '1412693318', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '347'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\twhile(1){\n\t\tint a[5], x, y, i, flag=0, max=0, p=-1;;\n\t\t\n\t\tfor(i=0; i<5; i++) {\n\t\t... |
CDSS_688447 | CDSS | #include<stdio.h>
int main()
{
int a,b,x,c,d;
do{
scanf("%d",&x);
}while(x<1 || x>1000);
do{
scanf("%d",&a);
}while(a<1 || a>1000);
do{
scanf("%d",&b);
}while(b<1 && b>1000);
if(x<a) c=a-x;
else c=x-a;
if(x<b) d=b-x;
else d=x-b;
if(c<d) print... | 128 | memory_bytes | {'s_id': 's249392960', 'p_id': 'p03623', 'u_id': 'u816631826', 'date': '1517166098', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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()\n{\n int a,b,x,c,d;\n\n do{\n scanf(\"%d\",&x);\n }while(x<1 || x>1000);\n\n do{\n ... |
CDSS_237859 | CDSS | #define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
void dice_north(int d[], int b[]) //北側に回転
{
int i;
for (i = 0; i < 6; i++) {
b[i] = d[i];
}
d[0] = b[1];
d[1] = b[5];
d[2] = b[2];
d[3] = b[3];
d[4] = b[0];
d[5] = b[4];
}
void dice_south(int d[], int b[])
{
int i;
for (i = 0; i < 6; i++) {
b[i] = d... | 2,104 | memory_bytes | {'s_id': 's066408850', 'p_id': 'p02383', 'u_id': 'u617677485', 'date': '1546576595', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '1271'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#define _CRT_SECURE_NO_WARNINGS\n#include <stdio.h>\n\n\nvoid dice_north(int d[], int b[])\t//北側に回転\n{\n\tint i;\n\n\tfor (i = 0; i < ... |
CDSS_685587 | CDSS | #include <stdio.h>
int main(){
int n,l[100001],r[100001],i,sum=0;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d %d",&l[i],&r[i]);
sum=sum+r[i]-l[i]+1;
}
printf("%d\n",sum);
return 0;
}
| 128 | memory_bytes | {'s_id': 's341654089', 'p_id': 'p03606', 'u_id': 'u384161668', 'date': '1533503225', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '205'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\n\nint main(){\n\t\n\tint n,l[100001],r[100001],i,sum=0;\n\t\n\tscanf(\"%d\",&n);\n\t\n\tfor(i=0;i<n;i++){\n\t\ts... |
CDSS_242848 | CDSS | #include <stdio.h>
int main(){
int x;
scanf("%d",&x);
printf("%d\n",x * x * x);
return 0;
} | 596 | memory_bytes | {'s_id': 's563795332', 'p_id': 'p02388', 'u_id': 'u178313254', 'date': '1464494798', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '101'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n int x;\n scanf(\"%d\",&x);\n printf(\"%d\\n\",x * x * x);\n\n return 0;\n}\nPredict its memory... |
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 must 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_341725 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define MAX 10000
void rec(char *str)
{
int temp;
char *tok;
tok = strtok(NULL, " ");
if(tok == NULL) return;
temp = atoi(tok);
rec(str);
printf("%d ", temp);
return;
}
void first_rec(char *str)
{
int temp;
char *tok;... | 612 | memory_bytes | {'s_id': 's959212588', 'p_id': 'p02407', 'u_id': 'u818198177', 'date': '1458230994', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '612', 'code_size': '564'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\n#define MAX 10000\n\nvoid rec(char *str)\n{\n int temp;\n char *... |
CDSS_351433 | CDSS | #include <stdio.h>
int main(void){
int n,m,i,j,total;
scanf("%d %d\n",&n,&m);
int a[n][m];
int b[m];
for (i = 0;i<n;i++){
for (j = 0;j<m-1;j++){
scanf("%d",&a[i][j]);
}
scanf("%d\n",&a[i][j]);
}
for (i = 0;i<m;i++){
scanf("%d\n",&b[i]);
}
for (i = 0;i<n;i++){
total = 0;
for ... | 2,048 | memory_bytes | {'s_id': 's744371023', 'p_id': 'p02410', 'u_id': 'u636823961', 'date': '1597059832', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2048', 'code_size': '424'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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\nint n,m,i,j,total;\nscanf(\"%d %d\\n\",&n,&m);\nint a[n][m];\nint b[m];\n\nfor (i = 0;i<n;i++){... |
CDSS_568275 | CDSS | #include <stdio.h>
#include <string.h>
#include <math.h>
#include <stdlib.h>
#define MAX(a,b) (a>b?a:b)
#define MIN(a,b) (a<b?a:b)
#define VEC(kata, num) (kata*)malloc(num * sizeof(kata))
#define DB puts("ok")
#define SENTINEL 1000000007
typedef long long lli;
int main()
{
int a,b;
scanf("%d%d",&a,&b);
if... | 128 | memory_bytes | {'s_id': 's006059373', 'p_id': 'p03035', 'u_id': 'u543173665', 'date': '1558834155', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '461'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n#include <math.h>\n#include <stdlib.h>\n#define MAX(a,b) (a>b?a:b)\n#define MIN(a,b) (a<b?a:b... |
CDSS_392157 | CDSS | #include<stdio.h>
int main()
{
int n;
int a;
scanf("%d",&n);
a=1000-n%1000;
if(a==1000) a=0;
printf("%d",a);
return 0;
}
| 1,728 | memory_bytes | {'s_id': 's997812774', 'p_id': 'p02612', 'u_id': 'u287365470', 'date': '1593997347', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1728', 'code_size': '136'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main()\n{\n int n;\n int a;\n scanf(\"%d\",&n);\n a=1000-n%1000;\n if(a==1000) a=0;\n printf(\"%d\",a);... |
CDSS_660551 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<math.h>
#define rep(i,n) for(int i=0;i<n;i++)
int gcd(int a, int b){
int r=1;
while(r!=0){
r=a%b;
a=b;
b=r;
}
return a;
}
void revStr(char* str){
int size = strlen(str);
int i,j;
char tmp = {0};
for(... | 1,684 | memory_bytes | {'s_id': 's291092850', 'p_id': 'p03448', 'u_id': 'u122441571', 'date': '1592838827', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1684', 'code_size': '1213'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#include<string.h>\n#include<math.h>\n#define rep(i,n) for(int i=0;i<n;i++)\nint gcd(int a, int... |
CDSS_573829 | CDSS | #include<stdio.h>
int MIN(int a,int b){return a<b?a:b;}
int main(){
int n,i,j,c=0,d,b[4]={};
char s[100010];
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%s",s);
for(j=d=0;s[j+1];j++){
if(s[j]=='A'&&s[j+1]=='B')c++;
}
if(s[0]=='B')d+=1;
if(s[j]=='A')d+=2;
b[d]++;
}
if(b[3]&&b[1]+b[... | 128 | memory_bytes | {'s_id': 's724250244', 'p_id': 'p03049', 'u_id': 'u121922047', 'date': '1557624687', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '388'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint MIN(int a,int b){return a<b?a:b;}\nint main(){\n int n,i,j,c=0,d,b[4]={};\n char s[100010];\n scanf(\"%d\",&... |
CDSS_253894 | CDSS | #include <stdio.h>
int main(void) {
int x,y;
scanf("%d%d",&x, &y);
printf("%d %d\n", x*y, 2*(x+y));
return 0;
} | 596 | memory_bytes | {'s_id': 's943953927', 'p_id': 'p02389', 'u_id': 'u086245368', 'date': '1485324255', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '116'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\n\tint x,y;\n\tscanf(\"%d%d\",&x, &y);\n\tprintf(\"%d %d\\n\", x*y, 2*(x+y));\n\treturn 0;\n}\n... |
CDSS_93404 | CDSS | #include<stdio.h>
int main(void)
{
int a,b,c,d,e,f;
scanf("%d %d %d %d %d %d",&a,&b,&c,&d,&e,&f);
if(1*a+5*b+10*c+50*d+100*e+500*f>=1000){
printf("%d\n",1);
}
else{
printf("%d\n",0);
}
return 0;
}
| 2,044 | memory_bytes | {'s_id': 's127938106', 'p_id': 'p00291', 'u_id': 'u053467825', 'date': '1597122009', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2044', 'code_size': '208'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\n\tint a,b,c,d,e,f;\n\tscanf(\"%d %d %d %d %d %d\",&a,&b,&c,&d,&e,&f);\n\tif(1*a+5*b+10*c+50*d+10... |
CDSS_709188 | CDSS | #include<stdio.h>
#include<string.h>
int main()
{
char a[15],b[15],c[15];
int ln,x,y,z,j,k,l;
scanf("%s",a);
scanf("%s",b);
scanf("%s",c);
x=strlen(a);
y=strlen(b);
if((a[x-1]==b[0])&&(b[y-1]==c[0]))
printf("YES\n");
else
print... | 128 | memory_bytes | {'s_id': 's986906595', 'p_id': 'p03729', 'u_id': 'u353919145', 'date': '1502522620', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '128', 'code_size': '352'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 a[15],b[15],c[15];\n int ln,x,y,z,j,k,l;\n scanf(\"%s\",... |
CDSS_277731 | 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': 's156681384', 'p_id': 'p02392', 'u_id': 'u262208047', 'date': '1489319811', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', 'code_size': '142'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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,b,c;\n\tscanf(\"%d %d %d\",&a,&b,&c);\n\tif(a<b && b<c) printf(\"Yes\\n\");\n\telse printf... |
CDSS_469140 | CDSS | #include <stdio.h>
#include <string.h>
int main(void){
long int x;
long int hp=0;
int voo=0;
int v=0;
scanf("%ld",&x);
while(x>=500){
x=x-500;
hp=hp+1000;
}
while(x>=5){
x=x-5;
hp=hp+5;
}
printf("%d",hp);
return 0;
} | 1,704 | memory_bytes | {'s_id': 's472822575', 'p_id': 'p02724', 'u_id': 'u996704180', 'date': '1598471917', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '1704', 'code_size': '257'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\nint main(void){\n long int x;\n long int hp=0;\n int voo=0;\n int v=0;\n scanf(\"%ld\",&... |
CDSS_107231 | CDSS | #include<stdio.h>
int main(){
int a[201][3],d,n,k,i,j;
scanf("%d",&n);
for(i=0;i<n;i++)scanf("%d%d%d",&a[i][0],&a[i][1],&a[i][2]);
for(k=0;k<3;k++){
for(i=0;i<n;i++){
for(j=i;j<n;j++){
if(i==j)continue;
else if(a[i][k]%100==a[j][k]%100){
a[i][k]=a[i][k]+100;
a[j][k]=a[j][k]+100;
}
}
... | 2,052 | memory_bytes | {'s_id': 's768193536', 'p_id': 'p00500', 'u_id': 'u390505413', 'date': '1535702985', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2052', 'code_size': '448'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n\tint a[201][3],d,n,k,i,j;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i<n;i++)scanf(\"%d%d%d\",&a[i][0],&a[i][1],... |
CDSS_170623 | CDSS | #include<stdio.h>
#include<stdlib.h>
#define N 101
int selectionSort(int *, int);
int main() {
int i, n, c;
int A[N];
scanf("%d", &n);
if(n<0 || n>100) exit(1);
for(i=0;i<n;i++) scanf("%d", &A[i]);
c = selectionSort(A, n);
for(i=0;i<n-1;i++) printf("%d ", A[i]);
printf("%d\n%d\n", A[i], c);
... | 600 | memory_bytes | {'s_id': 's139938654', 'p_id': 'p02260', 'u_id': 'u237270455', 'date': '1492661952', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', '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>\n#include<stdlib.h>\n\n#define N 101\n\nint selectionSort(int *, int);\n\nint main() {\n int i, n, c;\n int A[N];\... |
CDSS_211606 | CDSS | #include<stdio.h>
#define MAX 100010
int A[MAX];
int Partition(int A[], int sp, int ep) { //A[sp] ~ A[ep]
int x = A[ep];
int i = sp - 1;
int buff;
for (int j = sp; j < ep; j++) {
if (A[j] <= x) {
i++;
buff = A[i];
A[i] = A[j];
A[j] = buff;
}
}
A[ep] = A[i + 1];
A[i + 1] = x;
return i + 1;
}
i... | 2,124 | memory_bytes | {'s_id': 's149196676', 'p_id': 'p02276', 'u_id': 'u331071112', 'date': '1527559129', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2124', 'code_size': '657'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#define MAX 100010\n\nint A[MAX];\n\nint Partition(int A[], int sp, int ep) {\t//A[sp] ~ A[ep]\n\tint x = A[ep];\n\... |
CDSS_737669 | CDSS | int main(void){
char sa[100]={'\0'};
char sb[100]={'\0'};
char sc[100]={'\0'};
int yoa=0,yob=0,yoc=0;
int la,lb,lc;
char key;
scanf("%s",sa);la=strlen(sa);sa[la]='A';
scanf("%s",sb);lb=strlen(sb);sb[lb]='B';
scanf("%s",sc);lc=strlen(sc);sc[lc]='C';
key=sa[yoa];
yoa++;
whi... | 1,636 | memory_bytes | {'s_id': 's545533775', 'p_id': 'p03998', 'u_id': 'u567963483', 'date': '1594579554', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '9', 'memory': '1636', 'code_size': '971'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nint main(void){\n char sa[100]={'\\0'};\n char sb[100]={'\\0'};\n char sc[100]={'\\0'};\n int yoa=0,yob=0,yoc=0;\n int ... |
CDSS_721608 | CDSS | #include <stdio.h>
#include <limits.h>
int main(void)
{
long x;
long y;
long i, j;
long tmp;
scanf("%ld", &x);
i = 0;
j = 0;
tmp = x%11;
if(tmp == 0) {
j = 0;
} else if(tmp < 7) {
j = 1;
} else {
j = 2;
}
i = (x/11)*2 +j;
printf("%ld\n", i);
return 0;
}
| 128 | memory_bytes | {'s_id': 's517040622', 'p_id': 'p03815', 'u_id': 'u179212305', 'date': '1486848238', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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>\n#include <limits.h>\n\nint main(void)\n{\n long x;\n long y;\n long i, j;\n long tmp;\n\n scanf(\"%ld\", &x);... |
CDSS_311489 | CDSS | #include <stdio.h>
int main(void)
{
int a, b, d, r;
double f;
char buf[256];
fgets(buf, 256, stdin);
sscanf(buf, "%d %d", &a, &b);
d = a / b;
r = a % b;
f = (.0 + a) / b;
printf("%d %d %.5lf\n", d, r, f);
return 0;
}
| 2,104 | memory_bytes | {'s_id': 's059573995', 'p_id': 'p02399', 'u_id': 'u283843878', 'date': '1526645007', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '259'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n int a, b, d, r;\n double f;\n char buf[256];\n fgets(buf, 256, stdin);\n ssca... |
CDSS_513992 | CDSS | #include<stdio.h>
#define PI 3.141592
int main()
{
int r, counting;
scanf("%d", &r);
counting = r*r;
printf("%d", counting);
return 0;
}
| 1,724 | memory_bytes | {'s_id': 's811654976', 'p_id': 'p02859', 'u_id': 'u089230684', 'date': '1598127806', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1724', '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#define PI 3.141592\nint main()\n{\n int r, counting;\n scanf(\"%d\", &r);\n counting = r*r;\n printf(\... |
CDSS_87890 | CDSS | #include <stdio.h>
int main(void)
{
int w;
while (scanf("%d", &w) + w != 0){
int money = 1150;
if (w > 30){
money += (w - 30) * 160;
w = 30;
}
if (w > 20){
money += (w - 20) * 140;
w = 20;
}
if (w > 10){
money += (w - 10) * 125;
}
printf("%d\n", 4280 - money);
}
return 0;
} | 600 | memory_bytes | {'s_id': 's240891626', 'p_id': 'p00216', 'u_id': 'u376883550', 'date': '1408589562', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '317'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 w;\n\t\n\twhile (scanf(\"%d\", &w) + w != 0){\n\t\tint money = 1150;\n\t\t\n\t\tif (w >... |
CDSS_175049 | CDSS | #include<stdio.h>
typedef struct{
char egara;
int value;
}C;
void BubbleSort(C[36], int);
void SelectionSort(C[36], int);
int isStable(C[36],C[36],int);
int main(){
int n,i;
C c1[36],c2[36];
scanf("%d",&n);
for(i = 0; i < n; i++) scanf(" %c%d",&c1[i].egara,&c1[i].value);
for(i = 0; i <n; i++) c2[i] ... | 2,108 | memory_bytes | {'s_id': 's380127838', 'p_id': 'p02261', 'u_id': 'u916257595', 'date': '1544938029', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '1402'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\ntypedef struct{\n char egara;\n int value;\n}C;\n\nvoid BubbleSort(C[36], int);\nvoid SelectionSort(C[36], int)... |
CDSS_100007 | CDSS | #include <stdio.h>
int main() {
int n,m,k;
scanf("%d",&n);
scanf("%d",&m);
int card1[2*n],card2[2*n],i,j,*p=card2,*q=card1;
for (i=0; i<2*n; i++) {
card2[i]=i+1;
}
for (i=0; i<m; i++) {
scanf("%d",&k);
int *t=p;
p=q;
q=t;
if (k==0) {
... | 600 | memory_bytes | {'s_id': 's941674032', 'p_id': 'p00436', 'u_id': 'u167460441', 'date': '1411869831', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '821'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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;\n scanf(\"%d\",&n);\n scanf(\"%d\",&m);\n int card1[2*n],card2[2*n],i,j,*p=c... |
CDSS_28365 | CDSS | #include<stdio.h>
int keta(int);
int main(){
int a,b;//aとbの入力用
while(scanf("%d %d",&a,&b)!=EOF){
printf("%d\n",keta(a+b));
}
return 0;
}
int keta(int n){
if(n<10){
return 1;
}else{
return keta(n/10)+1;
}
} | 596 | memory_bytes | {'s_id': 's733527107', 'p_id': 'p00002', 'u_id': 'u870572999', 'date': '1363154720', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '280'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint keta(int);\n\nint main(){\n int a,b;//aとbの入力用\n \n while(scanf(\"%d %d\",&a,&b)!=EOF){\n prin... |
CDSS_400481 | CDSS | #include <stdio.h>
int main(void)
{
long long int n;
long long int syou;
int a[1000];
int i,amari,count = 0,j;
scanf("%lld",&n);
while(n > 0)
{
n--;
syou = n / 26;
amari = n % 26;
count++;
a[count] = amari+97;
n = n / 26;
}
for(i=count;i>0;i--)
{
printf("%c",a[i]);
... | 1,628 | memory_bytes | {'s_id': 's709489547', 'p_id': 'p02629', 'u_id': 'u991012502', 'date': '1592791993', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1628', 'code_size': '337'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 long long int n;\n long long int syou;\n int a[1000];\n int i,amari,count = 0,j;\n\n scan... |
CDSS_340703 | CDSS | #include <stdio.h>
int main(void){
int n;
scanf("%d", &n);
int i =1;
for (; i <= n; i++){
if ( i%3 ==0){
printf(" %d",i);
continue;
}
int x = i;
for(; x >0;){
if( x % 10 == 3){
printf(" %d",i);
break;
}else{
x /=10;
... | 2,124 | memory_bytes | {'s_id': 's486827182', 'p_id': 'p02406', 'u_id': 'u622569400', 'date': '1581490614', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2124', 'code_size': '373'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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;\n scanf(\"%d\", &n);\n\n int i =1;\nfor (; i <= n; i++){\n if ( i%3 ==0){... |
CDSS_49848 | CDSS | #include <stdio.h>
#include <math.h>
main() {
int i, step, angle, theta=90;
double x=0, y=0;
while(1) {
scanf("%d,%d", &step, &angle);
if(step == 0 && angle == 0) break;
x += step * cos(theta*acos(-1)/180);
y += step * sin(theta*acos(-1)/180);
theta -= angle;
}
printf("%d\n%d\n", (int)x, ... | 604 | memory_bytes | {'s_id': 's700104902', 'p_id': 'p00016', 'u_id': 'u083998194', 'date': '1355748795', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '604', 'code_size': '343'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\nmain() {\n int i, step, angle, theta=90;\n double x=0, y=0;\n while(1) {\n scanf(\"%d,%... |
CDSS_48202 | CDSS | #include <stdio.h>
int main()
{
int i,d;
while (scanf("%d",&d)!=EOF){
int sum=0;
for (i=d;i<=600-d;i+=d){
sum+=i*i*d;
}
printf("%d\n",sum);
}
return 0;
} | 596 | memory_bytes | {'s_id': 's959883981', 'p_id': 'p00014', 'u_id': 'u290605490', 'date': '1354780948', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '186'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main()\n{\n int i,d;\n\n while (scanf(\"%d\",&d)!=EOF){\n int sum=0;\n for (i=d;i<=600-d;i+=d){\n ... |
CDSS_554843 | CDSS | #include <stdio.h>
int main(void){
int n,i,j;
int p[n];
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d",&p[i]);
}
j=0;
for(i=0;i<n-2;i++){
if(p[i]<=p[i+1] && p[i+1]<p[i+2]){
j=j+1;
}
else if(p[i]>p[i+1] && p[i+1]>=p[i+2]){
j=j+1;
}
}
printf("%d",j);
return 0;
}
| 128 | memory_bytes | {'s_id': 's905369025', 'p_id': 'p02988', 'u_id': 'u107519233', 'date': '1562468051', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '314'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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,i,j;\n int p[n];\n scanf(\"%d\",&n);\n for(i=0;i<n;i++){\n scanf(\"%d\",&p[i]);\n... |
CDSS_723997 | CDSS | #include <stdio.h>
int main(void){
int i;
char s[20];
scanf("%s",s);
for(i=0;i<=4;i++){
putchar(s[i]);
}
putchar(' ');
for(i=6;i<=12;i++){
putchar(s[i]);
}
putchar(' ');
for(i=14;i<=18;i++){
putchar(s[i]);
}
return 0;
} | 128 | memory_bytes | {'s_id': 's084866290', 'p_id': 'p03834', 'u_id': 'u461044076', 'date': '1539119375', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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(void){\n int i;\n char s[20];\n\n scanf(\"%s\",s);\n\n for(i=0;i<=4;i++){\n putchar(s[... |
CDSS_285391 | CDSS | #include<stdio.h>
int main()
{
int a,b,c,temp;
scanf("%d %d %d",&a,&b,&c);
if(a > b){
temp = a;
a = b;
b = temp;}
if(b > c){
temp = b;
b = c;
c = temp;}
if(a > b){
temp = a;
a = b;
b = temp;}
printf("%d %d %d\n",a,b,c);
... | 596 | memory_bytes | {'s_id': 's485789435', 'p_id': 'p02393', 'u_id': 'u770401549', 'date': '1495849271', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '333'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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,c,temp;\n scanf(\"%d %d %d\",&a,&b,&c);\n if(a > b){\n temp = a;\n ... |
CDSS_313062 | CDSS | #include <stdio.h>
int main(void)
{
double r,s,l,x;
scanf("%lf",&r);
x=3.141592653589;
s=x*r*r;
l=2*x*r;
printf("%.5f %.5f\n",s,l);
return 0;
} | 652 | memory_bytes | {'s_id': 's694673255', 'p_id': 'p02400', 'u_id': 'u188938853', 'date': '1430544637', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '652', 'code_size': '155'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n\tdouble r,s,l,x;\n\tscanf(\"%lf\",&r);\n\t\n\tx=3.141592653589;\n\ts=x*r*r;\n\tl=2*x*r;\n\t\... |
CDSS_31395 | CDSS | #include<stdio.h>
#include<string.h>
#include<stdlib.h>
int main(void)
{
int n,i,a,b,c;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d%d%d",&a,&b,&c);
if(a*a==b*b+c*c ||b*b==a*a+c*c || c*c==b*b+a*a)
printf("YES\n");
else
printf("NO\n");
}
return 0;
} | 580 | memory_bytes | {'s_id': 's128562852', 'p_id': 'p00003', 'u_id': 'u786794829', 'date': '1396797656', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', 'code_size': '286'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 main(void)\n{\n int n,i,a,b,c;\n\n scanf(\"%d\",&n);\n for(i=0;i<n... |
CDSS_703155 | CDSS | #include <stdio.h>
#include <string.h>
int main(void){
char s[26];
scanf("%s",s);
int i,j;
for(i=0;i<strlen(s);i++){
char c=s[i];
for(j=i+1;j<strlen(s);j++){
if(c==s[j]){printf("no");return 0;}
}
}
printf("yes");
} | 128 | memory_bytes | {'s_id': 's058687865', 'p_id': 'p03698', 'u_id': 'u075447091', 'date': '1583533320', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '229'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\nint main(void){\n\tchar s[26];\n\tscanf(\"%s\",s);\n\tint i,j;\n\tfor(i=0;i<strlen(s);i++){\n... |
CDSS_744275 | CDSS | #include<stdio.h>
int main(void)
{
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
if(a+b+c==17){
if(a+b==10 || a+b==12){
printf("YES\n");
}else{
printf("NO\n");
}
}else{
printf("NO\n");
}
return 0;
}
| 128 | memory_bytes | {'s_id': 's580734242', 'p_id': 'p04043', 'u_id': 'u782089816', 'date': '1576823963', '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\nint main(void)\n{\n int a,b,c;\n \n scanf(\"%d %d %d\",&a,&b,&c);\n \n if(a+b+c==17){\n if(a+b==10 || a+b... |
CDSS_636111 | CDSS | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdint.h> // uint64_t
#define max(a,b) ((a) > (b) ? (a) : (b))
#define min(a,b) ((a) > (b) ? (b) : (a))
int get_int2(int *a1, int *a2) {
scanf("%d %d", a1, a2);
return 0;
}
// <arr[0]> <arr[1]> .. <arr[size-1]>
int fget_array(int *arr, int size... | 512 | memory_bytes | {'s_id': 's554611937', 'p_id': 'p03317', 'u_id': 'u866370648', 'date': '1590966693', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '11', 'memory': '512', 'code_size': '725'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n#include <stdint.h> // uint64_t\n\n#define max(a,b) ((a) > (b) ? (a) : (... |
CDSS_123956 | CDSS | // AOJ 2206: Compile
// 2017.11.10 bal4u@uu
#include <stdio.h>
#include <string.h>
char m[12][7], t[12][7];
int same(char a, int r, int c)
{
int dr, dc;
int ans = 1;
for (dc = -1; dc <= 1; dc++) for (dr = -1; dr <= 1; dr++) {
if (dr == dc || dr && dc) continue;
if (c + dc < 0 || c + dc >= 6 || r + dr < 0 || ... | 1,804 | memory_bytes | {'s_id': 's647578406', 'p_id': 'p01323', 'u_id': 'u847467233', 'date': '1513478621', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1804', 'code_size': '1271'} | [
{
"content": "Your task is to predict the memory 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 2206: Compile\n// 2017.11.10 bal4u@uu\n\n#include <stdio.h>\n#include <string.h>\n\nchar m[12][7], t[12][7];\n\nint same(char a... |
CDSS_640085 | CDSS | #include <stdio.h>
int main(void){
int N;
scanf("%d",&N);
if(N<1000){
printf("ABC");
}else{
printf("ABD");
}
return 0;} | 128 | memory_bytes | {'s_id': 's506536939', 'p_id': 'p03327', 'u_id': 'u853477575', 'date': '1528679022', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '132'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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;\n\tscanf(\"%d\",&N);\n\tif(N<1000){\n\t\tprintf(\"ABC\");\n\t}else{\n\t\tprintf(\"ABD\... |
CDSS_591509 | CDSS | #include<stdio.h>
int main(void){
int A,B,C;
scanf("%d %d %d",&A,&B,&C);
if(B/A<C) printf("%d",B/A);
else printf("%d",C);
} | 128 | memory_bytes | {'s_id': 's404439872', 'p_id': 'p03105', 'u_id': 'u671687924', 'date': '1551643396', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '130'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\t\n\tif(B/A<C) printf(\"%d\",B/A);\n\telse print... |
CDSS_507493 | CDSS | #include<stdio.h>
#define BUFSIZE 10000
int main(void)
{
char S_hoge[BUFSIZE] = { 0 };
char T_hoge[BUFSIZE] = { 0 };
int N;
scanf("%d", &N);
for (int i = 0; i < N; i++) {
scanf(" %c", &S_hoge[i]);
}
for (int i = 0; i < N; i++) {
scanf(" %c", &T_hoge[i]);
}
for (int ... | 128 | memory_bytes | {'s_id': 's508247921', 'p_id': 'p02830', 'u_id': 'u926181697', 'date': '1577837842', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '409'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 BUFSIZE 10000\n\nint main(void)\n{\n char S_hoge[BUFSIZE] = { 0 };\n char T_hoge[BUFSIZE] = { 0 };\n ... |
CDSS_473192 | CDSS | #include<stdio.h>
int main (void)
{
double L,H;
scanf("%lf",&L);
H=L/3;
printf("%f",H*H*H);
return 0;
} | 128 | memory_bytes | {'s_id': 's350840682', 'p_id': 'p02731', 'u_id': 'u061194502', 'date': '1584988652', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '117'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\tdouble L,H;\n\t\n\tscanf(\"%lf\",&L);\n\t\n\tH=L/3;\n\t\n\tprintf(\"%f\",H*H*H);\n\t\n\tret... |
CDSS_560233 | CDSS | #include <stdio.h>
void main (void) {
int N,X,i,count=1,D=0;
scanf("%d %d",&N,&X);
int L[N];
for (i=0;i<N;i++) {
scanf("%d", &L[i]);
}
for (i=0;i<N;i++) {
D += L[i];
if (X < D) {
break;
... | 128 | memory_bytes | {'s_id': 's844131512', 'p_id': 'p03000', 'u_id': 'u226904940', 'date': '1561131764', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '430'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 main (void) {\n\n int N,X,i,count=1,D=0;\n scanf(\"%d %d\",&N,&X);\n\n int L[N];\n ... |
CDSS_93186 | CDSS | #include<stdio.h>
int main(void){
int c1,c5,c10,c50,c100,c500,sum;
scanf("%d",&c1);
scanf("%d",&c5);
scanf("%d",&c10);
scanf("%d",&c50);
scanf("%d",&c100);
scanf("%d",&c500);
sum=c1*1+c5*5+c10*10+c50*50+c100*100+c500*500;
if(sum>=1000)
printf("1\n");
else
printf("0\n");
return 0;
} | 584 | memory_bytes | {'s_id': 's087375803', 'p_id': 'p00291', 'u_id': 'u083853290', 'date': '1431943276', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '584', 'code_size': '316'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 c1,c5,c10,c50,c100,c500,sum;\n scanf(\"%d\",&c1);\n scanf(\"%d\",&c5);\n scanf(\"%d\",&c1... |
CDSS_315492 | CDSS | #include <stdio.h>
#include <math.h>
int main(void)
{
double r;
double men;
double shu;
scanf("%lf", &r);
if( r<0 || r>10000 )
{
return 1;
}
men = r * r * M_PI;
shu = ( r + r ) * M_PI;
printf("%lf %lf \n", men, shu);
return 0;
} | 648 | memory_bytes | {'s_id': 's951600205', 'p_id': 'p02400', 'u_id': 'u124543070', 'date': '1498195703', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '648', 'code_size': '248'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n\nint main(void)\n{\n\tdouble r;\n\tdouble men;\n\tdouble shu;\n\n\tscanf(\"%lf\", &r);\n\n\tif... |
CDSS_38772 | CDSS | #include<stdio.h>
#include<string.h>
int main(){
int i;
char str[21];
scanf("%s", str);
for(i = strlen(str) - 1;i >= 0;i--){
putchar(str[i]);
}
puts("");
return 0;
} | 524 | memory_bytes | {'s_id': 's367895869', 'p_id': 'p00006', 'u_id': 'u611853667', 'date': '1349713808', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', 'code_size': '185'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\n\n\nint main(){\n int i;\n char str[21];\n scanf(\"%s\", str);\n for(i = strlen(str) - 1;i ... |
CDSS_53071 | CDSS | #include<stdio.h>
#include<string.h>
int main(){
char s[1001];
int i;
fgets(s,1000,stdin);
for(i=0;s[i]!='\0';i++){
s[i]=toupper(s[i]);
}
printf("%s",s);
return 0;
} | 520 | memory_bytes | {'s_id': 's185776922', 'p_id': 'p00020', 'u_id': 'u731027244', 'date': '1406718134', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '520', 'code_size': '183'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\nint main(){\n char s[1001];\n int i;\n fgets(s,1000,stdin);\n for(i=0;s[i]!='\\0';i++){\n ... |
CDSS_489740 | CDSS | #include <stdio.h>
#include <string.h>
int main(void)
{
char a[15],b[15],c[15];
int x,y;
scanf("%s %s %d %d %s",&a,&b,&x,&y,&c);
if((strcmp(a,c)==0))
x--;
if((strcmp(b,c)==0))
y--;
printf("%d %d",x,y);
return... | 1,692 | memory_bytes | {'s_id': 's585929442', 'p_id': 'p02777', 'u_id': 'u018679195', 'date': '1600176712', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1692', 'code_size': '325'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\nint main(void)\n{\n char a[15],b[15],c[15];\n int x,y;\n \n scanf(\"%s %s %d %... |
CDSS_570761 | CDSS | #include <stdio.h>
int main(){
int a,b = 0;
scanf("%d",&a);
scanf("%d",&b);
char c[a+1];
for(int i=0;i<a;i++){
scanf("%s",&c[i]);
}
c[b-1] = c[b-1] + 0x20;
printf("%s",c);
return 0;
} | 128 | memory_bytes | {'s_id': 's463852719', 'p_id': 'p03041', 'u_id': 'u824365684', 'date': '1558318675', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '203'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(){\n int a,b = 0;\n scanf(\"%d\",&a);\n scanf(\"%d\",&b);\n char c[a+1];\n for(int i=0;i<a;i++){\n ... |
CDSS_198693 | CDSS | #include<stdio.h>
int check(int p, int n, int k, int w[])
{
int i=0;
for(int j =0; j<k; j++)
{
int sum = 0;
while(sum+w[i] <= p)
{
sum += w[i];
i++;
if(i==n)
{
return n;
}
}
}
return i;
}
int puton(int n, int k, int w[])
{
int left,right, mid, v;
left = 0;
right = 100000 * ... | 2,156 | memory_bytes | {'s_id': 's146745837', 'p_id': 'p02270', 'u_id': 'u580357767', 'date': '1575004024', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2156', 'code_size': '774'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint check(int p, int n, int k, int w[])\n{\n\tint i=0;\n\tfor(int j =0; j<k; j++)\n\t{\n\t\tint sum = 0;\n\t\t\n\... |
CDSS_147916 | CDSS | #include<stdio.h>
void print(int a[],int n){
int i,j;
for(i=0;i<n;i++){
if(i > 0){
printf(" ");
}
printf("%d",a[i]);
}
printf("\n");
}
void insertionSort(int a[],int n){
int i,e,j;
for(i=1;i<n;i++){
e=a[i];
j=i-1;//j is 0;
while(j>=0&&a[j]>e){
a... | 2,084 | memory_bytes | {'s_id': 's143656370', 'p_id': 'p02255', 'u_id': 'u310583084', 'date': '1529040399', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2084', 'code_size': '593'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nvoid print(int a[],int n){\n int i,j;\n for(i=0;i<n;i++){\n if(i > 0){\n \n printf(\" \");\n\n ... |
CDSS_260580 | 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': 's716571584', 'p_id': 'p02390', 'u_id': 'u988309310', 'date': '1463878266', '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_230498 | CDSS | #include<stdio.h>
#include<stdlib.h>
#define INF 100000000;
int heapExtractMax();
void maxHeapify(int);
void buildMaxHeap();
void heapIncreaseKey(int, int);
void maxHeapInsert(int);
int length = 1;
int A[2000001];
int main()
{
char order[8];
int data, i = 1;
while(order[0] != 'e' || order[1] != 'n')
{
... | 4,696 | memory_bytes | {'s_id': 's754370352', 'p_id': 'p02289', 'u_id': 'u077591788', 'date': '1502279142', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '460', 'memory': '4696', 'code_size': '1325'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 100000000;\n\nint heapExtractMax();\nvoid maxHeapify(int);\nvoid buildMaxHeap();\nv... |
CDSS_205407 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<math.h>
struct P{
double s,t;
};
void kc(int n,struct P a,struct P b){
if(n == 0)return;
struct P x,y,z;
double th = M_PI *60.0/180.0;
x.s = (2.0*a.s+1.0*b.s) / 3.0;
x.t = (2.0*a.t+1.0*b.t) / 3.0;
y.s = (1.0*a.s+2.0*b.s) / 3.0;
y.t = (1.0*a.t+2.0*b.t) /... | 2,000 | memory_bytes | {'s_id': 's674905662', 'p_id': 'p02273', 'u_id': 'u918248558', 'date': '1580659056', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2000', 'code_size': '804'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#include<math.h> \n\n\nstruct P{\n double s,t;\n};\n\nvoid kc(int n,struct P a,struct P b){\n ... |
CDSS_168271 | CDSS | #include<stdio.h>
int main()
{
int A[100], N, sw, i;
scanf("%d",&N);
for( i = 1 ; i < N + 1 ; i++ )
{
scanf("%d",&A[i]);
}
sw = bubbleSort(A, N);
printf("%d\n",sw);
return 0;
}
int bubbleSort(int A[],int N)
{
int sw = 0, i, j, temp;
for( i = 1 ; i < N + 1 ; i++ )
{
f... | 2,100 | memory_bytes | {'s_id': 's486205676', 'p_id': 'p02259', 'u_id': 'u367214933', 'date': '1530235275', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2100', 'code_size': '573'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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[100], N, sw, i;\n\n scanf(\"%d\",&N);\n \n for( i = 1 ; i < N + 1 ; i++ )\n {\n ... |
CDSS_492922 | CDSS | #include <stdio.h>
int main(void)
{
int h, a;
int atk = 0;
scanf("%d%d", &h, &a);
while (h > 0)
{
h -= a;
atk++;
}
printf("%d", atk);
return 0;
} | 128 | memory_bytes | {'s_id': 's210347926', 'p_id': 'p02783', 'u_id': 'u632734596', 'date': '1591000915', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '128', 'code_size': '162'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n\tint h, a;\n\tint atk = 0;\n\n\tscanf(\"%d%d\", &h, &a);\n\n\twhile (h > 0)\n\t{\n\t\th -= a... |
CDSS_64531 | CDSS | p=65;main(s){for(;~scanf("%s",&s);p=s&7?s&67:p)s^=s>>16^p;p=!puts(&p);} | 0 | memory_bytes | {'s_id': 's546688707', 'p_id': 'p00047', 'u_id': 'u479246559', 'date': '1332168314', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '71'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\np=65;main(s){for(;~scanf(\"%s\",&s);p=s&7?s&67:p)s^=s>>16^p;p=!puts(&p);}\nPredict its memory footprint.",
"role": "user"
},
{... |
CDSS_108952 | CDSS | main(){int a,b,c,d,p;scanf("%d%d%d%d%d",&a,&b,&c,&d,&p);printf("%d\n",a*p<b+(p-c)*(c<p?d:0)?a*p:b+(p-c)*(c<p?d:0));return 0;} | 596 | memory_bytes | {'s_id': 's444240587', 'p_id': 'p00531', 'u_id': 'u198011997', 'date': '1442835092', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '125'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nmain(){int a,b,c,d,p;scanf(\"%d%d%d%d%d\",&a,&b,&c,&d,&p);printf(\"%d\\n\",a*p<b+(p-c)*(c<p?d:0)?a*p:b+(p-c)*(c<p?d:0));return 0;}\nPr... |
CDSS_565663 | CDSS | #include <stdio.h>
int main() {
int n;
scanf("%d", &n);
printf("%d\n", (n - 2) * 180);
return 0;
} | 128 | memory_bytes | {'s_id': 's578876677', 'p_id': 'p03023', 'u_id': 'u030504180', 'date': '1587743340', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '102'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 n;\n\tscanf(\"%d\", &n);\n\tprintf(\"%d\\n\", (n - 2) * 180);\n\treturn 0;\n}\nPredict its mem... |
CDSS_212164 | CDSS | #include<stdio.h>
#define N 100000
int partition(int A[], int p, int r){
int temp,x,i,j;
x = A[r];
i = p-1;
for (j = p; j< r; j++){
if (A[j] <= x){
i = i+1;
temp=A[i];
A[i]=A[j];
A[j]=temp;
}
}
temp = A[i+1];
A[i+1] = A[r];
A[r] = temp;
return i+1;
}
void pr... | 2,088 | memory_bytes | {'s_id': 's744033114', 'p_id': 'p02276', 'u_id': 'u231138944', 'date': '1576857066', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2088', 'code_size': '701'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 100000\n\nint partition(int A[], int p, int r){\n int temp,x,i,j;\n \n x = A[r];\n i = p-1;\n for ... |
CDSS_279887 | 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': 's355174830', 'p_id': 'p02392', 'u_id': 'u903763377', 'date': '1528086000', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '187'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void)\n{\n int a, b, c;\n\n scanf(\"%d %d %d\", &a, &b, &c);\n\n if(a < b && b < c)\n {\n printf(... |
CDSS_485163 | CDSS | #include<stdio.h>
int main()
{
int n,k,b=0;
scanf("%d%d",&n,&k);
while(n!=0)
{
n=n/k;
b++;
}
printf("%d",b);
return 0;
}
| 128 | memory_bytes | {'s_id': 's224890753', 'p_id': 'p02766', 'u_id': 'u018679195', 'date': '1583522564', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '165'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n int n,k,b=0;\n scanf(\"%d%d\",&n,&k);\n while(n!=0)\n {\n n=n/k;\n b++;\n... |
CDSS_528352 | CDSS | #include <stdio.h>
int main(void){
char str[101];
int i;
scanf("%s",&str);
for(i=0; i<=100; i++){
if(i%2==1 && str[i]=='R' ){
printf("No");
break;
}else if(i%2==0 && str[i]=='L'){
printf("No");
break;
}else if(str[i]=='\0'){
pri... | 128 | memory_bytes | {'s_id': 's205417016', 'p_id': 'p02910', 'u_id': 'u967356370', 'date': '1569136776', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '379'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 char str[101];\n\n int i;\n\n scanf(\"%s\",&str);\n \n for(i=0; i<=100; i++){\n... |
CDSS_255238 | CDSS | #include "stdio.h"
int main(void){
int a,b;
scanf("%d",&a);
scanf("%d",&b);
printf("%d %d\n",a*b,(a*2)+(b*2));
return 0;
} | 596 | memory_bytes | {'s_id': 's424101496', 'p_id': 'p02389', 'u_id': 'u418940511', 'date': '1503541399', '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\"\n\nint main(void){\nint a,b;\nscanf(\"%d\",&a);\nscanf(\"%d\",&b);\nprintf(\"%d %d\\n\",a*b,(a*2)+(b*2));\nreturn... |
CDSS_536419 | CDSS | #include<stdio.h>
int main(void) {
int a;
scanf("%d", &a);
char s[10];
scanf("%s", s);
if (a < 3200) {
printf("red");
}
else {
printf("%s", s);
}
return 0;
}
| 128 | memory_bytes | {'s_id': 's827349219', 'p_id': 'p02933', 'u_id': 'u181431922', 'date': '1566178834', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '192'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void) {\n int a;\n scanf(\"%d\", &a);\n char s[10];\n scanf(\"%s\", s);\n\n if (a < 3200) {\n pr... |
CDSS_641311 | CDSS | #include<stdio.h>
int main()
{
int a,b,i,max;
scanf("%d %d", &a, &b);
max = a+b;
int X[3]={(a+b),(a-b),(a*b)};
for(i=0;i<3;i++)
{
if(X[i]>max)
max = X[i];
}
printf("%d\n", max);
return 0;
}
| 1,700 | memory_bytes | {'s_id': 's693462664', 'p_id': 'p03337', 'u_id': 'u018679195', 'date': '1600301367', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '8', 'memory': '1700', 'code_size': '248'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n int a,b,i,max;\n scanf(\"%d %d\", &a, &b);\n max = a+b;\n int X[3]={(a+b),(a-b),(a*b)};... |
CDSS_333175 | CDSS | #include<stdio.h>
int main(){
int i, j, a, b;
while(1){
scanf("%d%d",&a,&b);
if(a==0 && b==0)break;
for ( i = 0; i < a; i++ ){
for ( j = 0; j < b; j++ ){
if(i!=0&&i!=a-1&&j!=0&&j!=b-1){
printf(".");
} else {
printf("#");
}
}
printf("\n");
}
printf("\n");
}
retu... | 572 | memory_bytes | {'s_id': 's922721989', 'p_id': 'p02404', 'u_id': 'u832816623', 'date': '1434615756', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '572', 'code_size': '327'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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, a, b;\n\n while(1){\n scanf(\"%d%d\",&a,&b);\n if(a==0 && b==0)break;\n for ( ... |
CDSS_325625 | CDSS | #include<stdio.h>
int main()
{
long i, n,max,min,sum = 0;
scanf("%ld",&n);
long a[n];
for (i=0; i<n; i++) {
scanf("%ld" ,&a[i]);
}
max=a[0];
min=a[0];
for(i=0; i<n; i++){
if(max<a[i]){
max = a[i];
}
if(min>a[i]){
min = a[i];
}
sum+=a[i];
}
printf("%ld %ld %ld... | 676 | memory_bytes | {'s_id': 's829157399', 'p_id': 'p02402', 'u_id': 'u767357427', 'date': '1497883571', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '676', 'code_size': '355'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n long i, n,max,min,sum = 0;\n scanf(\"%ld\",&n);\n long a[n];\n for (i=0; i<n; i++) {\n scanf... |
CDSS_56819 | CDSS | #include <stdio.h>
int main(void)
{
double v, y;
int i;
while (scanf("%lf", &v) != EOF){
i = 1;
v /= 9.8;
y = v * v * 4.9;
while (1){
if (y <= 5 * i - 5){
printf("%d\n", i);
break;
}
i++;
}
}
return 0;
} | 628 | memory_bytes | {'s_id': 's426431166', 'p_id': 'p00024', 'u_id': 'u864079743', 'date': '1429838130', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '628', 'code_size': '245'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\tdouble v, y;\n\tint i;\n\t\n\t\n\twhile (scanf(\"%lf\", &v) != EOF){\n\t\ti = 1;\n\t\tv /= ... |
CDSS_656166 | CDSS | #include<stdio.h>
int main(){
int n;
int m;
int a;
scanf("%d",&n);
m=n/3;
printf("%d\n",m);
return 0;
}
| 128 | memory_bytes | {'s_id': 's550409470', 'p_id': 'p03423', 'u_id': 'u353919145', 'date': '1520910950', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '132'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 int m;\n int a;\n scanf(\"%d\",&n);\n m=n/3;\n printf(\"%d\\n\",m);\n r... |
CDSS_425283 | CDSS | int main(){
int minus[200010],plus[200010];
int a[200010];
int n;
scanf("%d",&n);
long long ans=0;
for(int i=0;i<n;i++)scanf("%d",a+i);
for(int i=0;i<n;i++){
if(i+a[i]<=n)ans+=minus[i+a[i]];
if(i-a[i]>=0)ans+=plus[i-a[i]];
if(i+a[i]<=n)plus[i+a[i]]++;
if(i-a[i]>=0)minus[i-a[i]]++;
}
printf("%lld"... | 4,056 | memory_bytes | {'s_id': 's274312609', 'p_id': 'p02691', 'u_id': 'u406138190', 'date': '1588564675', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '27', 'memory': '4056', 'code_size': '328'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nint main(){\n int minus[200010],plus[200010];\n int a[200010];\n\tint n;\n\tscanf(\"%d\",&n);\n\tlong long ans=0;\n\tfor(int i=0... |
CDSS_472824 | CDSS | #include<stdio.h>
#include<string.h>
int main()
{
char c[100];
int len,tr=1,n=1;
scanf("%s",c);
len=strlen(c);
while((tr==1)&&(n<=len/4+1))
{
if((c[n-1]!=c[(len+1)/2-n-1])||(c[(len+1)/2-n-1]!=c[(len+1)/2+n-1])||(c[(len+1)/2+n-1]!=c[len-n]))
tr=0;
n++;
}
if(tr==1)
printf("Yes");
else
... | 128 | memory_bytes | {'s_id': 's773442336', 'p_id': 'p02730', 'u_id': 'u415765811', 'date': '1584926949', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '351'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 c[100];\n int len,tr=1,n=1;\n scanf(\"%s\",c);\n len=strlen(c);\n whi... |
CDSS_695846 | CDSS | #include<stdio.h>
int main()
{
int n,k;
int l[51];
int i,j;
int t;
int sum=0;
scanf("%d%d",&n,&k);
for(i=0;i<n;i++){
scanf("%d",&l[i]);
}
for(i=0;i<n;i++){
for(j=i+1;j<n;j++){
t=l[i];
if(l[i]<l[j]){
l[i]=l[j];
l[j]=t;
}
}
}
for(i=0;i<k;i++){
sum... | 1,716 | memory_bytes | {'s_id': 's397553996', 'p_id': 'p03658', 'u_id': 'u287365470', 'date': '1593233873', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1716', 'code_size': '366'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main()\n{\n int n,k;\n int l[51];\n int i,j;\n int t;\n int sum=0;\n scanf(\"%d%d\",&n,&k);\n for(i=0;... |
CDSS_200700 | CDSS | #include <stdio.h>
#define MAX 20
#define N 2001
int a[MAX], n;
int solve(int, int);
int main() {
int i, m;
int q[N];
scanf("%d", &n);
for (i = 0; i < n; i++) {
scanf("%d", &a[i]);
}
scanf("%d", &m);
for (i = 0; i < m; i++) {
scanf("%d", &q[i]);
if(solve(0, q[i])... | 588 | memory_bytes | {'s_id': 's891531579', 'p_id': 'p02271', 'u_id': 'u211810540', 'date': '1400174134', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '650', 'memory': '588', 'code_size': '552'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#define MAX 20\n#define N 2001\n\nint a[MAX], n;\nint solve(int, int);\n\nint main() {\n\n int i, m;\n int q... |
CDSS_287419 | CDSS | #include <stdio.h>
int main(void) {
int a,b,c;
scanf("%d%d%d",&a,&b,&c);
if(a<=b&&b<=c)
printf("%d %d %d\n",a,b,c);
else if(a>=b&&b>=c)
printf("%d %d %d\n",c,b,a);
else if(a>=b&&a<=c)
printf("%d %d %d\n",b,a,c);
else if(a<=b&&b>=c&&a>=c)
printf("%d %d %d\n",c,a,b);
else if(a<=b&&b>=c&&a<=c)
printf("%d %d %d\n",a,c,b);... | 2,104 | memory_bytes | {'s_id': 's054612807', 'p_id': 'p02393', 'u_id': 'u569462250', 'date': '1527583013', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '387'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\nint a,b,c;\nscanf(\"%d%d%d\",&a,&b,&c);\nif(a<=b&&b<=c)\nprintf(\"%d %d %d\\n\",a,b,c);\nelse ... |
CDSS_207949 | CDSS | #include<stdio.h>
#include<stdlib.h>
#define MAX 10000
void CountingSort(int *,int *,int );
int main(){
int i,k,n,C[MAX+1];
scanf("%d",&n);
unsigned short *A, *B;
A = malloc(sizeof(short)*n+1);
B = malloc(sizeof(short)*n+1);
scanf("%d",&A[0]);
k = A[0];
for(i=1;i<n;i++){
scanf("%d",&A[i]);
... | 8,460 | memory_bytes | {'s_id': 's616994536', 'p_id': 'p02275', 'u_id': 'u073302075', 'date': '1464237445', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '400', 'memory': '8460', 'code_size': '632'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n\n#define MAX 10000\n\nvoid CountingSort(int *,int *,int );\n\nint main(){\n int i,k,n,C[MAX+... |
CDSS_730857 | CDSS | /*
cat <<EOF >mistaken-paste
*/
#pragma GCC diagnostic ignored "-Wincompatible-pointer-types"
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <math.h>
#define BIG 2000000007
#define VERYBIG 200000000000007LL
#define MOD 1000000007
typedef uint64_t ull;
ty... | 128 | memory_bytes | {'s_id': 's350395911', 'p_id': 'p03869', 'u_id': 'u238041222', 'date': '1517976251', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '9128'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n/*\ncat <<EOF >mistaken-paste\n*/\n\n#pragma GCC diagnostic ignored \"-Wincompatible-pointer-types\"\n\n#include <stdio.h>\n#include <... |
CDSS_612606 | CDSS | // AtCoder ABC113: C - ID
// 2020.1.29 bal4u
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef long long ll;
#if 1
#define gc() getchar_unlocked()
#define pc(c) putchar_unlocked(c)
#else
#define gc() getchar()
#define pc(c) putchar(c)
#endif
int in() { // 非負整数の入力
int n = 0, c = gc();
do n = 10 ... | 3,816 | memory_bytes | {'s_id': 's389341110', 'p_id': 'p03221', 'u_id': 'u759237395', 'date': '1580333164', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '16', 'memory': '3816', 'code_size': '1724'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n// AtCoder ABC113: C - ID\n// 2020.1.29 bal4u\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\ntypedef long long ll;... |
CDSS_434246 | CDSS | #include <stdio.h>
int main(){
int a, b, c, d;
scanf("%d %d %d %d", &a, &b, &c, &d);
int turn = 1;
while ((0 < a) && (0 < c)){
if (turn++%2) {
c -= b;
}else {
a -= d;
}
}
if (a > c){
printf("Yes");
}else {
printf("No");
}
return (0);
} | 1,724 | memory_bytes | {'s_id': 's487207842', 'p_id': 'p02700', 'u_id': 'u380408685', 'date': '1587950174', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '1724', 'code_size': '262'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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, d;\n\tscanf(\"%d %d %d %d\", &a, &b, &c, &d);\n\tint turn = 1;\n\n\twhile ((0 < a) &... |
CDSS_738858 | CDSS | #include<stdio.h>
int main()
{
int n,k,x,y,s;
scanf("%d",&n);
scanf("%d",&k);
scanf("%d",&x);
scanf("%d",&y);
if(n-k>0){
s=k*x+(n-k)*y;
printf("%d\n",s);}
else{
s=n*x;
printf("%d\n",s);
}
return 0;
}
| 128 | memory_bytes | {'s_id': 's394780845', 'p_id': 'p04011', 'u_id': 'u726145559', 'date': '1590986506', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '220'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main()\n{\n int n,k,x,y,s;\n scanf(\"%d\",&n);\n scanf(\"%d\",&k);\n scanf(\"%d\",&x);\n scanf(\"%d\",&y);\n\... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.