identifier string | space string | input string | target float64 | metric_type string | metadata string | messages list |
|---|---|---|---|---|---|---|
CDSS_117667 | CDSS | #include <stdio.h>
int main(void) {
int num,year,month,day,i,count,leap,last;
scanf("%d",&num);
for (i=0; i<num; i++) {
count=0;
scanf("%d %d %d",&year,&month,&day);
while (year!=1000) {
if (month==1&&day==1) {
leap=(999-year)/3+1;
count+=l... | 596 | memory_bytes | {'s_id': 's410876041', 'p_id': 'p00760', 'u_id': 'u408260374', 'date': '1394963038', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '1287'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void) {\n int num,year,month,day,i,count,leap,last;\n scanf(\"%d\",&num);\n for (i=0; i<num; i... |
CDSS_268529 | CDSS | #include <stdio.h>
int main(void){
int a,b;
scanf("%d %d",&a,&b);
int s=a-b;
if(s>0){
printf("a > b\n");
}
else if(s<0){
printf("a < b\n");
}
else{
printf("a == b\n");
}
return 0;
} | 580 | memory_bytes | {'s_id': 's593867807', 'p_id': 'p02391', 'u_id': 'u492087359', 'date': '1468066032', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', 'code_size': '185'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\n\nint a,b;\nscanf(\"%d %d\",&a,&b);\n\nint s=a-b;\n\nif(s>0){\nprintf(\"a > b\\n\");\n}\n\nelse... |
CDSS_76420 | CDSS | #include <stdio.h>
int a[16][16];
int main(void)
{
int n;
int i, j;
while (1){
scanf("%d", &n);
if (n == 0) break;
a[n][n] = 0;
for (i = 0; i < n; i++){
a[i][n] = 0;
for (j = 0; j < n; j++){
scanf("%d", &a[i][j]);
... | 616 | memory_bytes | {'s_id': 's869300918', 'p_id': 'p00102', 'u_id': 'u958626383', 'date': '1454244862', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '616', 'code_size': '769'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint a[16][16];\n\nint main(void)\n{\n int n;\n int i, j;\n \n while (1){\n scanf(\"%d\", &n... |
CDSS_693904 | CDSS | #include<stdio.h>
main()
{
int a;
scanf("%d",&a);
if(a==1) printf("1\n");
else if(a<=3) printf("2\n");
else if(a<=7) printf("4\n");
else if(a<=15) printf("8\n");
else if(a<=31) printf("16\n");
else if(a<=63) printf("32\n");
else if(a<=100) printf("64\n");
return 0;
} | 128 | memory_bytes | {'s_id': 's839955859', 'p_id': 'p03644', 'u_id': 'u353919145', 'date': '1518681766', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '277'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nmain()\n{\n\tint a;\n\tscanf(\"%d\",&a);\n\tif(a==1) printf(\"1\\n\");\n\telse if(a<=3) printf(\"2\\n\");\n\telse... |
CDSS_589874 | CDSS | #include <stdio.h>
int main() {
int N, M, C, A[20][20], B[20], i, j, sum, accepted = 0;
scanf("%d%d%d", &N, &M, &C);
for (j = 0; j < M; j++) {
scanf("%d", &B[j]);
}
for (i = 0; i < N; i++) {
for (j = 0; j < M; j++) {
scanf("%d", &A[i][j]);
}
}
for (i ... | 128 | memory_bytes | {'s_id': 's218392924', 'p_id': 'p03102', 'u_id': 'u909577618', 'date': '1552163416', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '549'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main() {\n int N, M, C, A[20][20], B[20], i, j, sum, accepted = 0;\n\n scanf(\"%d%d%d\", &N, &M, &C)... |
CDSS_408296 | CDSS | #include <stdio.h>
#include <math.h>
int main(void){
int n;
scanf("%d",&n);
long int a[n];
int i, j=0;
double m=0, k=0;
long int ans=1;
for(i=0; i<n; i++){
scanf("%ld", &a[i]);
if(a[i]==0){
k++;
}
m+=log10(a[i]);
ans*=a[i];
}
if(k!=0){
printf("0\n");
return 0;
... | 3,152 | memory_bytes | {'s_id': 's099806086', 'p_id': 'p02658', 'u_id': 'u419845534', 'date': '1592639459', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '33', 'memory': '3152', 'code_size': '446'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n\nint main(void){\n int n;\n scanf(\"%d\",&n);\n \n long int a[n];\n int i, j=0;\n doub... |
CDSS_536842 | CDSS | #include <stdio.h>
int main()
{
int number;
scanf("%d",&number);
double kazu[number];
double kazuneo[number];
double goukei;
for(int i=0;i<number;i++){
scanf("%lf",&kazu[i]);
kazuneo[i]=1/kazu[i];
goukei+=kazuneo[i];
}
printf("%lf",1/goukei);
return 0;
} | 128 | memory_bytes | {'s_id': 's310256949', 'p_id': 'p02934', 'u_id': 'u950180790', 'date': '1569452767', '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 should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main()\n{\n int number;\n scanf(\"%d\",&number);\n double kazu[number];\n double kazuneo[number]... |
CDSS_548802 | CDSS | #include <stdio.h>
int main(void){
// Your code here!
int n;
int a[200000];
int fst=0;
int scn=0;
int fn=0;
int sn=0;
scanf("%d",&n);
for(int i=0;i<n;i++){
scanf("%d",&a[i]);
if(a[i]>fst){
scn=fst;
sn=fn;
fst=a[i];
fn=i;... | 2,304 | memory_bytes | {'s_id': 's366999855', 'p_id': 'p02971', 'u_id': 'u944651767', 'date': '1563671809', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '39', 'memory': '2304', 'code_size': '565'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\n // Your code here!\n int n;\n int a[200000];\n int fst=0;\n int scn=0;\n int... |
CDSS_211609 | CDSS | #include<stdio.h>
int A[100000];
int partition(int A[], int p, int r){
int x = A[r-1];
int i = p;
for(int j = p; j < r - 1; j++){
if(A[j] <= x){
int temp = A[i];
A[i] = A[j];
A[j] = temp;
i++;
}
}
int temp = A[i];
A[i] = A[r-1];
... | 2,100 | memory_bytes | {'s_id': 's606354571', 'p_id': 'p02276', 'u_id': 'u648595971', 'date': '1528417012', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2100', 'code_size': '668'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint A[100000];\n\nint partition(int A[], int p, int r){\n int x = A[r-1];\n int i = p;\n for(int j = p... |
CDSS_740494 | CDSS | #include <stdio.h>
#include<string.h>
int main(void){
char s[1100];
int p[4]={},ans;
scanf("%s",s);
for(int i=0;i<strlen(s);i++){
if(s[i]=='N')p[0]++;
else if(s[i]=='W')p[1]++;
else if(s[i]=='S')p[2]++;
else p[3]++;
}
if(p[0]==0&&p[2]==0&&p[1]*p[3]>0)ans=1;
el... | 128 | memory_bytes | {'s_id': 's926310797', 'p_id': 'p04019', 'u_id': 'u869282786', 'date': '1497301228', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '492'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include<string.h>\nint main(void){\n char s[1100];\n int p[4]={},ans;\n scanf(\"%s\",s);\n for(int ... |
CDSS_472138 | CDSS | #include <stdio.h>
int nc2(int n) {
return n * (n - 1) / 2;
}
int main() {
int n, m;
scanf("%d %d", &n, &m);
printf("%d", nc2(n) + nc2(m));
return 0;
} | 128 | memory_bytes | {'s_id': 's130024206', 'p_id': 'p02729', 'u_id': 'u871116581', 'date': '1584925421', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '162'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint nc2(int n) {\n return n * (n - 1) / 2;\n}\nint main() {\n int n, m;\n scanf(\"%d %d\", &n, &m);\n prin... |
CDSS_440558 | CDSS | #include <stdio.h>
int main() {
int R;
scanf("%d", &R);
printf("%f",(double)R*2.0*3.14);
return 0;
} | 1,748 | memory_bytes | {'s_id': 's885702315', 'p_id': 'p02705', 'u_id': 'u957846568', 'date': '1587344886', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '1748', 'code_size': '105'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main() {\n\tint R;\n\tscanf(\"%d\", &R);\n\tprintf(\"%f\",(double)R*2.0*3.14);\n\treturn 0;\n}\nPredict it... |
CDSS_675184 | CDSS | #include <stdio.h>
int main(){
int a;
scanf("%d",&a);
((a/10)%111==0 || (a%1000)%111==0)?puts("Yes"):puts("No");
return 0;
} | 128 | memory_bytes | {'s_id': 's395097660', 'p_id': 'p03543', 'u_id': 'u855016901', 'date': '1561408238', '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 should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(){\n int a;\n scanf(\"%d\",&a);\n ((a/10)%111==0 || (a%1000)%111==0)?puts(\"Yes\"):puts(\"No\");\n ... |
CDSS_684931 | CDSS | #include <stdio.h>
int main (){
int a;
scanf ("%d",&a);
if (a%10==9 || (a-(a%10))/10==9){
printf ("Yes");
}
else {
printf ("No");
}
return 0;
} | 128 | memory_bytes | {'s_id': 's284044001', 'p_id': 'p03605', 'u_id': 'u444555640', 'date': '1545713723', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '143'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main (){\nint a;\nscanf (\"%d\",&a);\nif (a%10==9 || (a-(a%10))/10==9){\nprintf (\"Yes\");\n}\nelse {\nprint... |
CDSS_239067 | CDSS | #include<stdio.h>
struct dice{
int a[6];
};
struct dice dice1;
struct dice dice2;
void tate(){
int cmp=dice2.a[0];
dice2.a[0]=dice2.a[4];
dice2.a[4]=dice2.a[5];
dice2.a[5]=dice2.a[1];
dice2.a[1]=cmp;
}
void yoko(){
... | 2,112 | memory_bytes | {'s_id': 's264489284', 'p_id': 'p02385', 'u_id': 'u800408401', 'date': '1533654321', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '1202'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n \nstruct dice{\n int a[6];\n };\nstruct dice dice1;\nstruct dice dice2;\n \nvoid tate(){\n ... |
CDSS_658188 | CDSS | #define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main(void){
int N,A;
int test = 0;
scanf("%d%d",&N,&A);
test = N % 500 ;
test = test - A;
if (test <= 0) {
printf("Yes");
} else {
printf("No");
}
} | 128 | memory_bytes | {'s_id': 's364931967', 'p_id': 'p03433', 'u_id': 'u163626492', 'date': '1528662902', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '217'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#define _CRT_SECURE_NO_WARNINGS\n\n#include <stdio.h>\n\nint main(void){\nint N,A; \nint test = 0;\nscanf(\"%d%d\",&N,&A);\n\ntest =... |
CDSS_469534 | CDSS | #include<stdio.h>
int main(){
int x,a,b,c;
scanf("%d",&x);
a=x/500;
b=x%500/5;
c=a*1000+b*5;
printf("%d",c);
return 0;
}
| 128 | memory_bytes | {'s_id': 's034672215', 'p_id': 'p02724', 'u_id': 'u233752869', 'date': '1586376849', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '140'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n\n int x,a,b,c;\n\n scanf(\"%d\",&x);\n\n a=x/500;\n b=x%500/5;\n\n c=a*1000+b*5;\n printf(\... |
CDSS_334684 | CDSS | #include<stdio.h>
int main(){
int high[100];
int width[100];
int i;
int j;
int count=0;
int z;
while(1){
scanf("%d %d",&high[count],&width[count]);
if(high[count] == 0 && width[count]==0) break;
count++;
}
for(z=0;z<count;z++){
for(i=0;i<high[z];i++){
for(j=0;j<width[z];j++){
if(... | 2,056 | memory_bytes | {'s_id': 's718407181', 'p_id': 'p02404', 'u_id': 'u081512179', 'date': '1529975218', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2056', 'code_size': '502'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int high[100];\n int width[100];\n int i;\n int j;\n int count=0;\n int z;\n\n \n while(1){... |
CDSS_637926 | CDSS | #include<stdio.h>
#include<math.h>
int main(void){
long long int d,n;
scanf("%lld %lld",&d,&n);
if(n==100){n++;}
printf("%lld",n*(long long int)pow(100,d));
return 0;
} | 128 | memory_bytes | {'s_id': 's924271084', 'p_id': 'p03324', 'u_id': 'u075447091', 'date': '1588878650', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '173'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<math.h>\nint main(void){\n\tlong long int d,n;\n\tscanf(\"%lld %lld\",&d,&n);\n\tif(n==100){n++;}\n\tpri... |
CDSS_123790 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
#define MN 205
#define INF 1<<25
#define init(a) memset(a,0x0f,sizeof(a))
#define min(a,b) (a<b?a:b)
int N,M,R,de[1005],S[MN][MN],L[MN][MN],i,j,k,x,y,s;
int dp[1005][205];
int main()
{
for(;scanf("%d%d",&N,&M),N;)
{
init(S);init(L);init(dp);
for(i=0;i<N;i++... | 1,744 | memory_bytes | {'s_id': 's750218888', 'p_id': 'p01317', 'u_id': 'u363039534', 'date': '1404263743', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '420', 'memory': '1744', 'code_size': '1027'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#include<string.h>\n#define MN 205\n#define INF 1<<25\n#define init(a) memset(a,0x0f,sizeof(a... |
CDSS_412821 | CDSS | #include <stdio.h>
#include <stdlib.h>
int cmpnum(const void * n1, const void * n2) {
if (*(long *)n1 > *(long *)n2)
{
return 1;
}
else if (*(long *)n1 < *(long *)n2)
{
return -1;
}
else
{
return 0;
}
}
int main(void) {
long n;
scanf("%ld", &n);
long a[n],b[n];
for (long i = 0; i < n; i++) {
... | 6,400 | memory_bytes | {'s_id': 's555878481', 'p_id': 'p02661', 'u_id': 'u581816556', 'date': '1591331510', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '94', 'memory': '6400', 'code_size': '664'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\nint cmpnum(const void * n1, const void * n2) {\n\tif (*(long *)n1 > *(long *)n2)\n\t{\n\t... |
CDSS_307480 | CDSS | #include <stdio.h>
int main()
{
int a,b,c,i,count;
count = 0;
scanf("%d %d %d", &a,&b,&c);
for(i=a;i<=b;i++) {
if(c%i == 0) {
count = count + 1;
}
}
printf("%d\n", count);
return(0);
}
| 2,112 | memory_bytes | {'s_id': 's999886784', 'p_id': 'p02398', 'u_id': 'u318645613', 'date': '1553319802', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '244'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main()\n{\n int a,b,c,i,count;\n count = 0;\n scanf(\"%d %d %d\", &a,&b,&c);\n\n for(i=a;i<=b;... |
CDSS_255624 | CDSS | /* -*- C -*- */
#include <stdio.h>
area(int x,int y){
return x*y;
}
perimeter(int x,int y){
return 2*x+2*y;
}
int main()
{
int length,breadth;
scanf("%d %d",&length,&breadth);
while(length<1 || breadth>100){
scanf("%d %d",&length,&breadth);
}
printf("%d %d\n",area(leng... | 1,860 | memory_bytes | {'s_id': 's421107137', 'p_id': 'p02389', 'u_id': 'u449172525', 'date': '1512554184', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1860', 'code_size': '380'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n/* -*- C -*- */\n\n#include <stdio.h>\n\n\narea(int x,int y){\n return x*y;\n}\n\nperimeter(int x,int y){\n return 2*x+2*y;\n}... |
CDSS_141763 | CDSS | #include<stdio.h>
int a[8],b[8],c[15],d[15];
char t[8][8];
int change(int y,int x){
return 7-x+y;
}
int change2(int y,int x){
return y+x;
}
int solve(int y){
if(y==8)return 1;
if(a[y])return solve(y+1);
int x;
for(x=0;x<8;x++){
if(b[x])continue;
if(c[change(y,x)])continue;
if(d[change2(y... | 572 | memory_bytes | {'s_id': 's974792676', 'p_id': 'p02244', 'u_id': 'u017575647', 'date': '1444719519', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '572', 'code_size': '935'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n \nint a[8],b[8],c[15],d[15];\nchar t[8][8];\n \nint change(int y,int x){\n return 7-x+y;\n}\n \nint change2(int... |
CDSS_486202 | CDSS | #include <stdio.h>
const int mod = 1000000007;
int pow(int a, int n);
// aの逆元の計算
int inv(int a) {
return pow(a, mod - 2);
}
int add(int a, int b) {
a %= mod;
b %= mod;
return (a + b) % mod;
}
int sub(int a, int b) {
a %= mod;
b %= mod;
return (a + mod - b) % mod;
}
int mul(int a, int b) {
... | 256 | memory_bytes | {'s_id': 's096880951', 'p_id': 'p02768', 'u_id': 'u426683236', 'date': '1582642037', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '256', 'code_size': '1407'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nconst int mod = 1000000007;\nint pow(int a, int n);\n// aの逆元の計算\nint inv(int a) {\n return pow(a, mod - 2);\n... |
CDSS_111040 | CDSS | #include <stdio.h>
#include <string.h>
int shelf_max;
int result[10001][3];
char map[40004];
char map2[10001];
/*prev now status*/
const int costs[3][3][4]={
{
{0,1,3,3},
{1,1,2,2},
{2,2,2,2}
},{
{1,1,2,2},
{0,1,1,2},
{1,2,1,2}
},{
{2,2,2,2},
{1,2,1,2},
{0,3,1,3}
}
};
int main(void) {
int case... | 0 | memory_bytes | {'s_id': 's350178940', 'p_id': 'p00588', 'u_id': 'u543521645', 'date': '1333440593', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '1590'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\nint shelf_max;\nint result[10001][3];\nchar map[40004];\nchar map2[10001];\n\n/*prev now ... |
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 should 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(... |
CDSS_224561 | CDSS | #include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
typedef struct binary_search_tree_t *binary_search_tree_t;
typedef void (*binary_search_tree_callback_t)(int64_t);
extern binary_search_tree_t binary_search_tree_create(void);
extern void binary_search_tree_destroy(binary_search_tree_t t);
extern void binary_... | 19,368 | memory_bytes | {'s_id': 's703327854', 'p_id': 'p02285', 'u_id': 'u827214117', 'date': '1496336651', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '410', 'memory': '19368', 'code_size': '8011'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdbool.h>\n#include <stdint.h>\n#include <stdio.h>\n\ntypedef struct binary_search_tree_t *binary_search_tree_t;\ntypedef... |
CDSS_693927 | CDSS | //
// main.c
// procon
//
// Created by Lee, Chanyeong | Naru | MSDD on 2017. 10. 16..
// Copyright © 2017년 Lee, Chanyeong | Naru | MSDD. All rights reserved.
//
#include <stdio.h>
int main(int argc, const char * argv[]) {
// insert code here...
int a;
scanf("%d", &a);
// printf("%d", a);
int c... | 128 | memory_bytes | {'s_id': 's593351396', 'p_id': 'p03644', 'u_id': 'u486342718', 'date': '1510704282', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '473'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n//\n// main.c\n// procon\n//\n// Created by Lee, Chanyeong | Naru | MSDD on 2017. 10. 16..\n// Copyright © 2017년 Lee, Chanyeong ... |
CDSS_79285 | CDSS | #include<stdio.h>
#include <string.h>
int main(){
double a, b;
while(scanf("%lf %lf", &a, &b) != EOF){
if(a < 35.5 && b < 71) printf("AAA\n");
else if(a < 37.5 && b < 77) printf("AA\n");
else if(a < 40 && b < 83) printf("A\n");
else if(a < 43 && b < 89) printf("B\n");
else if(a < 50 && b < 105) printf("C\n... | 608 | memory_bytes | {'s_id': 's357300545', 'p_id': 'p00123', 'u_id': 'u145643522', 'date': '1373840188', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '608', 'code_size': '450'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include <string.h>\n\nint main(){\n\tdouble a, b;\n\twhile(scanf(\"%lf %lf\", &a, &b) != EOF){\n\t\tif(a < 35.5 ... |
CDSS_26375 | CDSS | #include <stdio.h>
int main(){
int a,b,count;
while(scanf("%d %d", &a, &b) != EOF){
a = a + b;
count = 0;
while(a > 0){
a = a / 10;
count++;
}
printf("%d\n", count);
}
return 0;
} | 600 | memory_bytes | {'s_id': 's457551126', 'p_id': 'p00002', 'u_id': 'u304677305', 'date': '1447932907', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '204'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n\tint a,b,count;\n\twhile(scanf(\"%d %d\", &a, &b) != EOF){\n\t\ta = a + b;\n\t\tcount = 0;\n\t\n... |
CDSS_496137 | CDSS | //set many funcs template
//Ver.20190820
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<stdbool.h>
#include<time.h>
#include<assert.h>
#define inf 1072114514
#define llinf 4154118101919364364
#define mod 1000000007
#define pi 3.1415926535897932384
int max(int a,int b){if(a>b){return a;}return b;}
int... | 256 | memory_bytes | {'s_id': 's211597531', 'p_id': 'p02787', 'u_id': 'u721060623', 'date': '1580070327', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '28', 'memory': '256', 'code_size': '5519'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n//set many funcs template\n//Ver.20190820\n#include<stdio.h>\n#include<string.h>\n#include<stdlib.h>\n#include<stdbool.h>\n#include<... |
CDSS_274339 | CDSS | 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{
printf("a == b\n");
}
return 0;
}
| 2,128 | memory_bytes | {'s_id': 's677781054', 'p_id': 'p02391', 'u_id': 'u252060773', 'date': '1554829317', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2128', 'code_size': '151'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\nint main(){\nint a,b;\nscanf(\"%d %d\", &a,&b);\nif(a > b){\nprintf(\"a > b\\n\");\n}else if(a < b){\nprintf(\"a < b\\n\");\n}else{\... |
CDSS_700527 | CDSS | #include<stdio.h>
#include<stdlib.h>
typedef long long int int64;
#define POS(i,j) ((i)*W+(j))
void run(void){
int H,W,h,w;
scanf("%d%d%d%d",&H,&W,&h,&w);
if(H%h==0 && W%w==0){
printf("No\n");
return;
}
int *b=(int *)calloc(H*W,sizeof(int));
const int m=(1000000000-1)/(h*w-1);
int64 sum=0;
in... | 3,840 | memory_bytes | {'s_id': 's851693506', 'p_id': 'p03689', 'u_id': 'u425248533', 'date': '1539472135', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '25', 'memory': '3840', 'code_size': '674'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n\ntypedef long long int int64;\n\n#define POS(i,j) ((i)*W+(j))\n\nvoid run(void){\n int H,W,... |
CDSS_243659 | CDSS | #include<stdio.h>
int main(){
int a;
scanf("%d", &a);
a = a * a * a;
printf("%d\n",a);
return 0;
} | 596 | memory_bytes | {'s_id': 's805675053', 'p_id': 'p02388', 'u_id': 'u077277777', 'date': '1475802100', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '105'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n\tint a;\n\tscanf(\"%d\", &a);\t\t\n\ta = a * a * a;\n\tprintf(\"%d\\n\",a);\n\treturn 0;\n}\nPredic... |
CDSS_399909 | CDSS | #include<stdio.h>
int main(){
int N, K, p[1000], sum=0, min=0, trans;
scanf("%d%d", &N, &K);
for(int i=0; i<N; i++){
scanf("%d", &p[i]);
}
for(int i=0; i<N; i++){
for(int j=0; j<N-1; j++){
if(p[j]>p[j+1]){
trans = p[j];
p[j] = p[j+1];
p[j+1] = t... | 1,732 | memory_bytes | {'s_id': 's988691456', 'p_id': 'p02628', 'u_id': 'u108378185', 'date': '1592789396', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1732', 'code_size': '464'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n int N, K, p[1000], sum=0, min=0, trans;\n scanf(\"%d%d\", &N, &K);\n for(int i=0; i<N; i++){\n... |
CDSS_468233 | CDSS | #include<stdio.h>
#include<string.h>
int main()
{
char s[7];
scanf("%s",s);
if(s[2]-'0'==s[3]-'0'&&s[4]-'0'==s[5]-'0') printf("Yes\n");
else printf("No\n");
return 0;
}
| 128 | memory_bytes | {'s_id': 's636679596', 'p_id': 'p02723', 'u_id': 'u056367462', 'date': '1590570439', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '189'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\nint main()\n{\n char s[7];\n scanf(\"%s\",s);\n if(s[2]-'0'==s[3]-'0'&&s[4]-'0'==s[5... |
CDSS_626903 | CDSS | #include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <string.h>
#include <limits.h>
#define min(x, y) (x < y ? x : y)
#define ll long long int
#define Lff long double
int main()
{
int N , K ;
scanf("%d %d",&N,&K);
printf("%d",N%K != 0);
return 0;
}
| 128 | memory_bytes | {'s_id': 's211112189', 'p_id': 'p03284', 'u_id': 'u959524814', 'date': '1590988912', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '273'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdlib.h>\n#include <stdio.h>\n#include <math.h>\n#include <string.h>\n#include <limits.h>\n#define min(x, y) (x < y ? x :... |
CDSS_471335 | CDSS | #include<stdio.h>
int ta[200010],nt[400010],to[400010],cc[400010];
long long u[200010],ANS[200020],ans[200020];
int mbk(long long a,int n,int m){return n?(mbk((a*a)%m,n/2,m)*(n%2?a:1))%m:1;}
int inv(int a,int m){return mbk((long long)a,m-2,m);}
long long pp[200010],ip[200010],M=1e9+7;
int f(int s){//printf("!%d\n",s);
... | 15,360 | memory_bytes | {'s_id': 's516627541', 'p_id': 'p02728', 'u_id': 'u121922047', 'date': '1585526688', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '670', 'memory': '15360', 'code_size': '1874'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint ta[200010],nt[400010],to[400010],cc[400010];\nlong long u[200010],ANS[200020],ans[200020];\nint mbk(long long... |
CDSS_723241 | CDSS | #include <stdio.h>
int main(void)
{
int a,i, count = 0;
char yourinput[1024],check;
int go=0;
scanf("%d", &a);
scanf("%s", yourinput);
check = 'I';
for (i = 0; yourinput[i] != '\0'; i++)
{
if (yourinput[i] == check)
{
count++;
}
else {
count--;
}
if (go < count) {
go... | 128 | memory_bytes | {'s_id': 's809535071', 'p_id': 'p03827', 'u_id': 'u105039872', 'date': '1484537785', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '378'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\n\n\tint main(void)\n\t{\n\t\tint a,i, count = 0;\n\t\tchar yourinput[1024],check;\n\t\tint go=0;\n\n\t\tscanf... |
CDSS_379043 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include <string.h>
int main(){
char s[1000],t[1000];
int tmp;
scanf("%s",s);
scanf("%s",t);
int ans =strlen(t);
for(int i=0;i<strlen(s)-strlen(t)+1;i++){
tmp=0;
for(int j=0;j<strlen(t);j++){
if(s[i+j]!=t[j]){
tmp++;
if(ans<=tmp){
... | 1,704 | memory_bytes | {'s_id': 's740008119', 'p_id': 'p02571', 'u_id': 'u955881349', 'date': '1598731540', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1704', 'code_size': '460'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#include <string.h>\nint main(){\n char s[1000],t[1000];\n int tmp;\n scanf(\"%s\",s);\n ... |
CDSS_514095 | CDSS | #include<stdio.h>
#include<math.h>
int main(){
int n;
scanf("%d",&n);
printf("%d\n",n*n);
return 0;
} | 128 | memory_bytes | {'s_id': 's149708490', 'p_id': 'p02859', 'u_id': 'u576472702', 'date': '1588881863', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '122'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<math.h>\nint main(){\n int n;\n scanf(\"%d\",&n);\n printf(\"%d\\n\",n*n);\n return 0;\n ... |
CDSS_141943 | CDSS | #include <stdio.h>
#define N 8
#define Free -1
#define Not_Free 1
int row[N],col[N],dpos[2*N-1],dneg[2*N-1];
int H[N][N];
void printBoard(){
int i,j;
for(i=0;i<N;i++){
for(j=0;j<N;j++){
if(H[i][j]){
if(row[i]!=j) return;
}
}
}
for(i=0;i<N;i++){
for(j=0;j<N;j++){
printf("... | 572 | memory_bytes | {'s_id': 's406127753', 'p_id': 'p02244', 'u_id': 'u903981312', 'date': '1501121010', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '572', 'code_size': '1096'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#define N 8\n#define Free -1\n#define Not_Free 1\n\nint row[N],col[N],dpos[2*N-1],dneg[2*N-1];\nint H[N][N];\n\... |
CDSS_119709 | CDSS | #include <stdio.h>
#include <string.h>
#define SMAX 4000
int next0[2][SMAX+2], next1[2][SMAX+2], dp[SMAX+2][SMAX+2];
int dfs(int aloc, int bloc);
void scns(int aloc, int bloc);
int main(void)
{
int i, alen, blen;
char a[SMAX+2], b[SMAX+2];
scanf("%s", a + 1);
scanf("%s", b + 1);
a[0] = b[0] = '?';
alen = s... | 64,468 | memory_bytes | {'s_id': 's622210708', 'p_id': 'p00971', 'u_id': 'u141038857', 'date': '1565757700', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '60', 'memory': '64468', 'code_size': '1725'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n#define SMAX 4000\nint next0[2][SMAX+2], next1[2][SMAX+2], dp[SMAX+2][SMAX+2];\n\nint dfs(i... |
CDSS_20437 | CDSS | #include <stdio.h>
int main(void){
int i,j;
for(i = 1; i <= 9 ; i++){
for(j = 1; j<= 9 ; j++){
printf("%dx%d=%d\n", i, j, i*j);
}
}
return 0;
} | 0 | memory_bytes | {'s_id': 's613684149', 'p_id': 'p00000', 'u_id': 'u158037864', 'date': '1317747292', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '238'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n int i,j;\n for(i = 1; i <= 9 ; i++){\n for(j = 1; j<= 9 ; j++){... |
CDSS_369983 | CDSS | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
void shuffle(int h, char *s0) {
int length;
length = strlen(s0);
char temp[length-h+1],s1[length+1];
strcpy(temp,s0+h);
strncpy(s1, s0, h);
s1[h]='\0';
sprintf(s0, "%s%s", temp, s1);
}
int main() {
int i,h;
char s0[201];
while(1) {
... | 2,040 | memory_bytes | {'s_id': 's860480364', 'p_id': 'p02420', 'u_id': 'u250813039', 'date': '1532134289', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2040', 'code_size': '536'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n \n \nvoid shuffle(int h, char *s0) {\n int length;\n length = strle... |
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 should 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_128844 | CDSS | #if 0
cat <<EOF >mistaken-paste
#endif
// thx Ebi-chan!
// #pragma GCC optimize("unroll-loops")
// #pragma GCC optimize("O3")
#pragma GCC diagnostic ignored "-Wincompatible-pointer-types"
#define _USE_MATH_DEFINES
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#in... | 2,108 | memory_bytes | {'s_id': 's846378630', 'p_id': 'p02205', 'u_id': 'u612181412', 'date': '1577171614', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '7881'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#if 0\ncat <<EOF >mistaken-paste\n#endif\n// thx Ebi-chan!\n\n// #pragma GCC optimize(\"unroll-loops\")\n// #pragma GCC optimize(\"O... |
CDSS_220595 | CDSS | #include<stdio.h>
#define N 40
int n,pos;
int a[N],b[N];
void solve(int, int);
int main(){
int i;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d",&a[i]);
}
for(i=0;i<n;i++){
scanf("%d",&b[i]);
}
pos=0;
solve(0,n-1);
printf("\n");
return 0;
}
void solve(int l,int ... | 1,860 | memory_bytes | {'s_id': 's638442189', 'p_id': 'p02282', 'u_id': 'u309410141', 'date': '1513315479', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1860', 'code_size': '632'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#define N 40\n \nint n,pos;\nint a[N],b[N];\n \nvoid solve(int, int);\n \nint main(){\n \n int i;\n \n scan... |
CDSS_560754 | CDSS | #include<stdio.h>
int main(void){
int n, i, s, x=0, ans=1;
scanf("%d %d", &n, &s);
int a[n];
for(i=0;i<n;i++){
scanf("%d", &a[i]);
}
for(i=0;i<n;i++){
x+=a[i];
if(x<=s){
ans++;
}
}
printf("%d\n", ans);
return 0;
}
| 128 | memory_bytes | {'s_id': 's223521739', 'p_id': 'p03000', 'u_id': 'u379136995', 'date': '1560711984', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '254'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n int n, i, s, x=0, ans=1;\n scanf(\"%d %d\", &n, &s);\n int a[n];\n for(i=0;i<n;i++){\n s... |
CDSS_604437 | CDSS | n,a[3333];
long dp[3333][3333];
i;
long f(i,j)
{
return i-j?dp[i][j]?:(dp[i][j]=fmax(a[i]-f(i+1,j),a[j-1]-f(i,j-1))):0;
}
main()
{
for(scanf("%d",&n);~scanf("%d",a+i++););
printf("%ld",f(0,n));
} | 80,256 | memory_bytes | {'s_id': 's315978672', 'p_id': 'p03171', 'u_id': 'u657913472', 'date': '1547043216', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '144', 'memory': '80256', 'code_size': '198'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\nn,a[3333];\nlong dp[3333][3333];\ni;\nlong f(i,j)\n{\n\treturn i-j?dp[i][j]?:(dp[i][j]=fmax(a[i]-f(i+1,j),a[j-1]-f(i,j-1))):0;\n}\nm... |
CDSS_369103 | CDSS | #include <stdio.h>
#include <string.h>
#include <ctype.h>
int main(void)
{
char word[11];
char text[1001];
int i;
int cnt = 0;
scanf("%s", word);
for(i = 0; i < strlen(word); i++)
word[i] = tolower(word[i]);
while(1) {
scanf(" %s", text);
if (strcmp(text, "END_OF_TEXT") == 0)
b... | 552 | memory_bytes | {'s_id': 's260514986', 'p_id': 'p02419', 'u_id': 'u295649290', 'date': '1487483972', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '552', 'code_size': '488'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n#include <ctype.h>\n\nint main(void)\n{\n char word[11];\n char text[1001];\n int i;\n ... |
CDSS_646341 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<string.h>
#include<stdbool.h>
typedef long long ll;
typedef long double ld;
#define rep(i,l,r)for(ll i=(l);i<(r);i++)
#define repp(i,l,r,k)for(ll i=(l);i<(r);i+=(k))
#define INF (1LL<<60)
#define MOD1 1000000007
#define MAX_N (1 << 17)
void swap(ll *a, ll... | 128 | memory_bytes | {'s_id': 's992336342', 'p_id': 'p03361', 'u_id': 'u004279520', 'date': '1584371643', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '1974'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#include<math.h>\n#include<string.h>\n#include<stdbool.h>\ntypedef long long ll;\ntypedef lon... |
CDSS_566299 | CDSS | #include<stdio.h>
int main(void){
int a,p;
scanf("%d %d",&a,&p);
int ans=(3*a+p)/2;
printf("%d\n",ans);
return 0;
} | 128 | memory_bytes | {'s_id': 's441820737', 'p_id': 'p03029', 'u_id': 'u716903426', 'date': '1587516731', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '125'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n int a,p;\n scanf(\"%d %d\",&a,&p);\n int ans=(3*a+p)/2;\n printf(\"%d\\n\",ans);\n return ... |
CDSS_315219 | CDSS | #include <stdio.h>
#include <math.h>
int main()
{
double r;
scanf("%lf", &r);
printf("%f %f\n", r*r*M_PI, 2.*r*M_PI);
return 0;
} | 648 | memory_bytes | {'s_id': 's545812779', 'p_id': 'p02400', 'u_id': 'u663449350', 'date': '1494483291', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '648', 'code_size': '161'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n\nint main()\n{\n double r;\n \n scanf(\"%lf\", &r);\n \n printf(\"%f %f\\n\",... |
CDSS_394014 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
int main() {
int D;
scanf("%d", &D);
int c[27];
for(int i=1;i<=26;i++){
scanf("%d", &c[i]);
}
int s[366][27];
int smax[366];
int smax_idx[366];
int abc[27]={0};
for(int i=1;i<=26;i++){
abc[i]=1;
}
for(int i=1;i... | 2,192 | memory_bytes | {'s_id': 's850166462', 'p_id': 'p02618', 'u_id': 'u301600230', 'date': '1593396566', 'language': 'C', 'original_language': 'C (Clang 10.0.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '9', 'memory': '2192', 'code_size': '796'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <math.h>\n\nint main() {\n int D;\n scanf(\"%d\", &D);\n i... |
CDSS_327844 | CDSS | #include<stdio.h>
#include <stdlib.h>
#define Fi for (i = 0; i < n; i++)
int compare_int(const void *a, const void *b){
return *(int*)a - *(int*)b;
}
int data[100000000];
int main()
{
int n;
long long sum=0;
scanf("%d",&n);
int i;
Fi{
scanf("%d",&data[i]);
sum+=data[i];
}
qs... | 2,104 | memory_bytes | {'s_id': 's450164899', 'p_id': 'p02402', 'u_id': 'u679086106', 'date': '1530132721', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '437'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include <stdlib.h>\n#define Fi for (i = 0; i < n; i++) \nint compare_int(const void *a, const void *b){\n ret... |
CDSS_674309 | CDSS | #include <stdio.h>
#include <math.h>
int main(int argc, char const *argv[]) {
int n,i=0,sum=0,x;
scanf("%d",&n );
x=n;
for (i = 0; n > 0;) {
i=n%10;
sum+=i;
n=n/10;
}
x=fmod(x,sum);
//ここまではおkz
if (x==0) {
printf("Yes\n");
return 0;
}
printf("No\n");
return 0;
}
| 128 | memory_bytes | {'s_id': 's388389027', 'p_id': 'p03502', 'u_id': 'u902963883', 'date': '1512602754', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '316'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\nint main(int argc, char const *argv[]) {\n int n,i=0,sum=0,x;\n scanf(\"%d\",&n );\n x=n;\... |
CDSS_188983 | CDSS | #include <stdio.h>
#define N 10000
#define M 500
int ls(int s[],int n,int key);
int main(){
int n,q,key;
int s[N];
int count=0;
int i;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d",&s[i]);
}
scanf("%d",&q);
for(i=0;i<q;i++){
scanf("%d",&key);
if(ls(s,n,key)==1) count++;
}
printf("%... | 640 | memory_bytes | {'s_id': 's332194800', 'p_id': 'p02267', 'u_id': 'u761306808', 'date': '1494473119', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '640', 'code_size': '471'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#define N 10000\n#define M 500\n\nint ls(int s[],int n,int key);\n\nint main(){\n int n,q,key;\n int s[N];\n ... |
CDSS_286086 | CDSS | #include<stdio.h>
int main(){
int a[3],i,j;
for(i=0;i<3;i++){
scanf("%d",&a[i]);
}
for(i=0;i<3;i++){
for(j=i+1;j<3;j++){
if(a[i]>a[j]){
int temp = a[i];
a[i] = a[j];
a[j] = temp;
}
}
}
for(i=0;i<3;i++){
printf("%d",a[i]);
if(i <2){
printf(" ");
}else{
printf("\n");
}
... | 1,752 | memory_bytes | {'s_id': 's085366092', 'p_id': 'p02393', 'u_id': 'u001711939', 'date': '1507831576', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1752', 'code_size': '337'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n\tint a[3],i,j;\n\t\n\tfor(i=0;i<3;i++){\n\t\tscanf(\"%d\",&a[i]);\n\t}\n\t\n\tfor(i=0;i<3;i++){\n... |
CDSS_229578 | CDSS | #include <stdio.h>
#include <stdlib.h>
#define N 500000
void maxheapify(int);
int n,arr[N+1];
int main(){
int i,node;
scanf("%d",&n);
if(n>N) exit(2);
for(i=1;i<=n;i++){
scanf("%d",&arr[i]);
}
for(i=n/2;i>=1;i--){
maxheapify(i);
}
for(i=1;i<=n;i++){
printf(" %d",arr[i]);
}
printf("\... | 3,812 | memory_bytes | {'s_id': 's977679741', 'p_id': 'p02288', 'u_id': 'u787905360', 'date': '1579158462', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '60', 'memory': '3812', 'code_size': '665'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#define N 500000\n\nvoid maxheapify(int);\n\nint n,arr[N+1];\nint main(){\n int i,node;\n\... |
CDSS_656895 | CDSS | #include <limits.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
// 内部定数
#define D_CHAR_KIND 5 // 文字種類
// 内部変数
static long long sl1Cnt[D_CHAR_KIND]; // 各文字毎の人数
static long long slSum; // 合計
// 内部変数 - テスト用
#ifdef D_TEST
static int siRes;
st... | 128 | memory_bytes | {'s_id': 's752539679', 'p_id': 'p03425', 'u_id': 'u088333128', 'date': '1530219726', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '128', 'code_size': '2218'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <limits.h>\n#include <math.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <time.h>\n\n// 内部定数\n... |
CDSS_469955 | CDSS | #include<stdio.h>
int main ()
{ int n;
scanf("%d",&n);
long long sum=n/500*1000;
n=n%500;
sum+=n/5*5;
printf("%d",sum);
} | 128 | memory_bytes | {'s_id': 's906182067', 'p_id': 'p02724', 'u_id': 'u879164485', 'date': '1585444768', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '143'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main ()\n{ int n;\n scanf(\"%d\",&n);\n long long sum=n/500*1000;\n n=n%500;\n sum+=n/5*5;\n ... |
CDSS_616643 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <stdbool.h>
#include <string.h>
/*以下便利なマクロを定義する。*/
#define rep(i, min, max) for(i=min; i<=max; i=i+1)
#define if_forall(i, min, max, prop)\
\
rep(i, min, max)\
{\
if(!(prop))\
{\
break;\
}\
}\
\
if(i==max+1)\
#define if_exists(i, m... | 128 | memory_bytes | {'s_id': 's106509324', 'p_id': 'p03243', 'u_id': 'u637653462', 'date': '1574921201', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '11349'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <math.h>\n#include <stdbool.h>\n#include <string.h>\n\n\n\n/*以下便利なマクロを定義する。*/\n\n#... |
CDSS_117026 | CDSS | void main(){int i,j,n=1<<18;char p[1<<18];for(i=0;i<n;i++)p[i]=(i<2)?0:1;for(i=2;i*i<n;i++)for(j=i*2;j<n;j+=i)p[i]?p[j]=0:0;for(;j=0,scanf("%d",&n),n;printf("%d\n",j))for(i=n+1;i<=2*n;i++)p[i]?j++:0;} | 0 | memory_bytes | {'s_id': 's702332601', 'p_id': 'p00753', 'u_id': 'u862297061', 'date': '1312273988', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '200'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\nvoid main(){int i,j,n=1<<18;char p[1<<18];for(i=0;i<n;i++)p[i]=(i<2)?0:1;for(i=2;i*i<n;i++)for(j=i*2;j<n;j+=i)p[i]?p[j]=0:0;for(;j=0... |
CDSS_133462 | CDSS | #include <stdio.h>
#include <string.h>
#define MAX 1005
int calcstr(char x[],char y[]);
int main()
{
int i,n;
char x[MAX],y[MAX];
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%s%s",x,y);
printf("%d\n",calcstr(x,y));
}
return 0;
}
int calcstr(char x[],char y[])
{
int i,j,xlen,ylen,max=0,cal[MAX][... | 4,544 | memory_bytes | {'s_id': 's983877905', 'p_id': 'p02235', 'u_id': 'u359023956', 'date': '1502188586', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '40', 'memory': '4544', 'code_size': '691'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n#define MAX 1005\nint calcstr(char x[],char y[]);\n\nint main()\n{\n int i,n;\n char x[MA... |
CDSS_692681 | CDSS | #define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<string.h>
int main() {
/*
int n, m;
scanf("%d%d", &n, &m);
printf("%d", (n - 1)*(m - 1));
*/
/*
char s[200],o[10];
int l,i;
s[0] = '\0';
o[0] = '\0';
scanf("%s", s);
l = strlen(s);
sprintf(o, "%c%d%c", s[0], l-2,s[l-1]);
printf("%s", o);
*/
... | 256 | memory_bytes | {'s_id': 's641973338', 'p_id': 'p03638', 'u_id': 'u699912843', 'date': '1502073480', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '256', 'code_size': '1061'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#define _CRT_SECURE_NO_WARNINGS\n#include<stdio.h>\n#include<string.h>\n\nint main() {\n\t/*\n\tint n, m;\n\tscanf(\"%d%d\", &n, &m)... |
CDSS_106944 | CDSS | #include <stdio.h>
#include <math.h>
int main(){
int L, A, B, C, D, a, b, c, d;
scanf("%d\n", &L);
scanf("%d\n", &A);
scanf("%d\n", &B);
scanf("%d\n", &C);
scanf("%d", &D);
a = A / C;
if(A % C != 0){
a = a + 1;
}
b = B / D;
if(B % D != 0){
b = b + 1;
}
c = fmax(a, b);
d = L - c;
printf("%d\n", d);
... | 600 | memory_bytes | {'s_id': 's859188462', 'p_id': 'p00499', 'u_id': 'u233030964', 'date': '1447375384', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '331'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n\nint main(){\n\tint L, A, B, C, D, a, b, c, d;\n\tscanf(\"%d\\n\", &L);\n\tscanf(\"%d\\n\", ... |
CDSS_696105 | CDSS | #include <stdio.h>
int main(void)
{
int n, k;
int l[50];
int i, j;
int length = 0;
int *max;
memset(l, 0, sizeof(l));
scanf("%d %d", &n, &k);
for(i=0; i < n; i++) {
scanf("%d", &l[i]);
}
for(j = 0; j < k; j++) {
max = &l[0];
for(i = 1; i < n; i++) {
if(*max < l[i]) {
max = &l[i];
}
}
... | 128 | memory_bytes | {'s_id': 's332018970', 'p_id': 'p03658', 'u_id': 'u915452813', 'date': '1500781992', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '390'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n\tint n, k;\n\tint l[50];\n\tint i, j;\n\tint length = 0;\n\tint *max;\n\t\n\tmemset(l, 0, ... |
CDSS_619396 | CDSS | #include <stdio.h>
#include <string.h>
int main(void){
char s[200001],t[200001],c[26]={0},d[26]={0};
scanf("%s %s",s,t);
long long len = strlen(s),i,j;
for(i=0;i<len;i++){
c[(int)(s[i])-97]++;
d[(int)(t[i])-97]++;
}
for(i=0;i<26;i++){
int num = c[i];
for(j=0;j<26;j++){
if(d[j]==num){
d[j]=0;
br... | 512 | memory_bytes | {'s_id': 's585293529', 'p_id': 'p03252', 'u_id': 'u853477575', 'date': '1537753733', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '512', 'code_size': '414'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\nint main(void){\n\tchar s[200001],t[200001],c[26]={0},d[26]={0};\n\tscanf(\"%s %s\",s,t);\n... |
CDSS_719907 | CDSS | #include <stdio.h>
int main(void) {
int n,ma,mb;
scanf("%d %d %d", &n, &ma, &mb);
int a[n],b[n],c[n];
for (int i = 0; i < n; i++) {
scanf("%d %d %d", &a[i], &b[i], &c[i]);
}
int dp[n][401][401];
for (int i = 0; i <= 400; i++) {
for (int j = 0; j <= 400; j++) {
dp[0][i][j] = -1;
}
}
... | 26,856 | memory_bytes | {'s_id': 's729690623', 'p_id': 'p03806', 'u_id': 'u581816556', 'date': '1593621102', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '43', 'memory': '26856', 'code_size': '1223'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\n\n int n,ma,mb;\n scanf(\"%d %d %d\", &n, &ma, &mb);\n int a[n],b[n],c[n];\n for (int i ... |
CDSS_501785 | CDSS | #include<stdio.h>
int main(){
int k,x;
scanf("%d%d",&k,&x);
if(500*k>=x)
printf("Yes\n");
else
printf("No\n");
return 0;
}
| 128 | memory_bytes | {'s_id': 's053707630', 'p_id': 'p02811', 'u_id': 'u917851778', 'date': '1587056438', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '141'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int k,x;\n scanf(\"%d%d\",&k,&x);\n if(500*k>=x)\n printf(\"Yes\\n\");\n else\n printf(\"... |
CDSS_258420 | CDSS | // たて a cm よこ b cm の長方形の面積と周の長さを求めるプログラムを作成して下さい。
// 【入力】
// a と b が1つの空白で区切られて与えられます。
// 【出力】
// 面積と周の長さを1つの空白で区切って1行に出力して下さい。
// 【制約】
// ・1 ≤ a, b ≤ 100
// 【例】
// ・入力:3 5、出力:15 16
#include <stdio.h>
int main( void) {
int a, b; // 長方形の縦と横の長さ(cm)
int area; // 長方形の面積
int length; // 長方形の周の長さ
scanf( "%d %d", &a,... | 1,872 | memory_bytes | {'s_id': 's392664088', 'p_id': 'p02389', 'u_id': 'u614317997', 'date': '1542554733', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1872', 'code_size': '688'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n// たて a cm よこ b cm の長方形の面積と周の長さを求めるプログラムを作成して下さい。\n// 【入力】\n// a と b が1つの空白で区切られて与えられます。\n// 【出力】\n// 面積と周の長さを1つの空白で区切って1行に出力して下さい。\... |
CDSS_295837 | CDSS | #include<stdio.h>
int main(void){
int x;
int i = 0;
koko:
scanf("%d", &x);
while(x != 0){
i += 1;
printf("Case %d: %d\n", i ,x);
goto koko;
}
return 0;
} | 600 | memory_bytes | {'s_id': 's225041410', 'p_id': 'p02396', 'u_id': 'u962330056', 'date': '1474272011', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '180'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n int x;\n int i = 0;\n koko:\n scanf(\"%d\", &x);\n while(x != 0){\n i += 1;\n printf... |
CDSS_380167 | CDSS | // SPDX-License-Identifier: X11
// 2020-08-31
// Coprime (500pt)
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#define MAX 1000005
// !NOTE you have more than enough memory to scan in all of the numbers
bool *erato(uint_least32_t bound);
int main() {
uint_least32_t N;
scanf("%... | 6,328 | memory_bytes | {'s_id': 's864449326', 'p_id': 'p02574', 'u_id': 'u883424625', 'date': '1598874957', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '192', 'memory': '6328', 'code_size': '2638'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n// SPDX-License-Identifier: X11\n// 2020-08-31\n// Coprime (500pt)\n\n#include <stdbool.h>\n#include <stdint.h>\n#include <stdio.h>\... |
CDSS_437906 | CDSS | #include<stdio.h>
int main()
{
double R,p;
while(scanf("%lf",&R)!=EOF){
printf("%lf\n",2*3.141592654*R);
}
return 0;
}
| 1,744 | memory_bytes | {'s_id': 's536970552', 'p_id': 'p02705', 'u_id': 'u089230684', 'date': '1588037350', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1744', 'code_size': '143'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n double R,p;\n while(scanf(\"%lf\",&R)!=EOF){\n printf(\"%lf\\n\",2*3.141592654*R);\n... |
CDSS_555041 | CDSS | #include <stdio.h>
#include <stdint.h>
#include <inttypes.h>
#include <stdlib.h>
#define MIN(a,b) ((a)<(b)?(a):(b))
#define MAX(a,b) ((a)>(b)?(a):(b))
int p[20];
int main()
{
int cnt;
int N;
int i;
int tmp[3];
int result = 0;
cnt = scanf("%d", &N);
for(i=0; i<N; i++) {
cnt = scanf("%d", &p[i]);... | 128 | memory_bytes | {'s_id': 's704568957', 'p_id': 'p02988', 'u_id': 'u917452040', 'date': '1561859476', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '644'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdint.h>\n#include <inttypes.h>\n#include <stdlib.h>\n\n#define MIN(a,b) ((a)<(b)?(a):(b))\n#define M... |
CDSS_154007 | CDSS | #include <stdio.h>
int main(){
int a,b;
scanf("%d %d",&a, &b);
if(b>a){
a^=b;
b^=a;
a^=b;
}
printf("%d\n", gcd(a,b));
}
int gcd(int a, int b){
if (!(a%b)) return b;
return gcd(b,a%b);
}
| 2,108 | memory_bytes | {'s_id': 's867906982', 'p_id': 'p02256', 'u_id': 'u220116434', 'date': '1560491167', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '213'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(){\n int a,b;\n scanf(\"%d %d\",&a, &b);\n if(b>a){\n a^=b;\n b^=a;\n a^=b;\n }\n printf(... |
CDSS_695661 | CDSS | #include <stdio.h>
int main()
{
int A, B;
scanf("%d %d", &A, &B);
if(A % 3 == 0 || B % 3 == 0 || (A + B) % 3 == 0) {
puts("Possible");
} else {
puts("Impossible");
}
return(0);
} | 128 | memory_bytes | {'s_id': 's839896732', 'p_id': 'p03657', 'u_id': 'u383361456', 'date': '1500332321', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '197'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n \nint main()\n{\n\tint A, B;\n\t\n\tscanf(\"%d %d\", &A, &B);\n \n\tif(A % 3 == 0 || B % 3 == 0 || (A + B) % 3 ... |
CDSS_488643 | CDSS | #include<stdio.h>
int main()
{
int n,a,ev_no=0,count=0,i;
scanf("%d",&n);
for(i=0;i<n;i++)
{
scanf("%d",&a);
if(a%2==0)
{
ev_no++;
if(a%3==0 || a%5==0)
{
count++;
}
}
}
if(count == ev_no)
{
... | 128 | memory_bytes | {'s_id': 's265865093', 'p_id': 'p02772', 'u_id': 'u093676545', 'date': '1582151160', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '415'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n int n,a,ev_no=0,count=0,i;\n scanf(\"%d\",&n);\n for(i=0;i<n;i++)\n {\n scanf(... |
CDSS_222683 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
typedef struct node
{
int id;
struct node *parent;
struct node *child[2];
} *nodePointer;
nodePointer root;
nodePointer make1node(int);
void insert(nodePointer);
int find(nodePointer,int);
void preorderWalk(nodePointer);
void inorderWalk(nodePointer);
int ma... | 20,516 | memory_bytes | {'s_id': 's878457205', 'p_id': 'p02284', 'u_id': 'u090372546', 'date': '1530861829', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '300', 'memory': '20516', 'code_size': '2204'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#include<string.h>\ntypedef struct node\n{\n int id;\n struct node *parent;\n struct node ... |
CDSS_231331 | CDSS | #include <stdio.h>
int max(int a, int b);
int min(int a, int b);
int main(void){
int q;
scanf("%d",&q);
double x1,y1,x2,y2,x3,y3,x4,y4;
double x,y;//直線の交点
double det;//行列式
double k1,k2;
int a,b,c,d;
for(int i=0;i<q;i++){
scanf("%lf %lf %lf %lf %lf %lf %lf %lf",&x1,&y1,&x2,&y2,&x3,&y3,&x4,&y4);
... | 2,112 | memory_bytes | {'s_id': 's478033530', 'p_id': 'p02294', 'u_id': 'u371539389', 'date': '1579083526', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '1477'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\n\nint max(int a, int b);\nint min(int a, int b);\n\nint main(void){\n int q;\n scanf(\"%d\",&q);\n\n double... |
CDSS_370861 | CDSS | #include <stdio.h>
#include <string.h>
int main(void){
int i,j,n,h,len;
char str[201],tmp[201];
while(1){
scanf("%s", &str);
if(str[0]=='-') break;
len=strlen(str);
scanf("%d", &n);
for(i=0;i<n;i++){
scanf("%d", &h);
for(j=0;j<len;j++) tm... | 2,040 | memory_bytes | {'s_id': 's965823672', 'p_id': 'p02420', 'u_id': 'u950429664', 'date': '1532959406', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2040', 'code_size': '555'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\nint main(void){\n int i,j,n,h,len;\n char str[201],tmp[201];\n \n while(1){\n ... |
CDSS_98725 | CDSS | #include<stdio.h>
int main(){
int a[4],i,at=0,bt=0;
for(i=0;i<4;i++){
scanf("%d",&a[i]);
at+=a[i];
}
for(i=0;i<4;i++){
scanf("%d",&a[i]);
bt+=a[i];
}
if(at<bt){
printf("%d\n",bt);
}
else{
printf("%d\n",at);
}
return(0);
} | 592 | memory_bytes | {'s_id': 's235161434', 'p_id': 'p00433', 'u_id': 'u522516700', 'date': '1430991291', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', 'code_size': '265'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int a[4],i,at=0,bt=0;\n for(i=0;i<4;i++){\n scanf(\"%d\",&a[i]);\n at+=a[i];\n }\n for(i=... |
CDSS_660961 | CDSS | #include<stdio.h>
int main(){
int A, B, C, X;
scanf("%d %d %d %d", &A, &B, &C, &X);
int i, j, k, count=0;
for(i=0; i<=A; i++){
for(j=0; j<=B; j++){
for(k=0; k<=C; k++){
if(500*i + 100*j + 50*k == X) count++;
}
}
}
printf("%d\n", c... | 128 | memory_bytes | {'s_id': 's510255802', 'p_id': 'p03448', 'u_id': 'u032989583', 'date': '1532365287', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '353'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n #include<stdio.h>\n \n int main(){\n \tint A, B, C, X;\n \tscanf(\"%d %d %d %d\", &A, &B, &C, &X);\n \t\n \ti... |
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 should 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_665873 | CDSS | #include <stdio.h>
int main(void) {
long long int N,Y;
scanf("%lld %lld",&N,&Y);
int i,j,k,cnt=0;
for(i=0;i<=N;i++){
if(cnt==1){
break;
}
for(j=0;j<=N;j++){
k=(N-i-j);
if(cnt==1){
break;
}
if(Y==(i*10000)+(j*5000)+(k*1000)&&(i+j+k)==N&&k>=0){
printf("%d %d %d",i,j,k);
cnt=1;
br... | 128 | memory_bytes | {'s_id': 's830558760', 'p_id': 'p03471', 'u_id': 'u527993431', 'date': '1571780537', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '128', 'code_size': '387'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\n\tlong long int N,Y;\n\tscanf(\"%lld %lld\",&N,&Y);\n\tint i,j,k,cnt=0;\n\tfor(i=0;i<=N;i++)... |
CDSS_111011 | CDSS | #include<stdio.h>
int main(){
int a, b;
while( scanf("%d %d", &a, &b) != EOF ){
printf("%d\n", a + b);
}
return 0;
}
| 600 | memory_bytes | {'s_id': 's454044361', 'p_id': 'p00586', 'u_id': 'u677239009', 'date': '1497006736', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '142'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n int a, b;\n while( scanf(\"%d %d\", &a, &b) != EOF ){\n printf(\"%d\\n\", a + b);\n ... |
CDSS_687568 | CDSS |
// AtCoder Beginner Contest 072 C
#include<stdio.h>
int d[100005];
int main(void)
{
int i, N, a, t;
int max = 0;
scanf("%d", &N);
for(i = 0; i < 100005; i++)
d[i] = 0;
for(i = 0; i < N; i++){
scanf("%d", &a);
if(a>0){d[a-1]++;}
d[a]++; d[a+1]++;
}
... | 512 | memory_bytes | {'s_id': 's574101869', 'p_id': 'p03611', 'u_id': 'u655992433', 'date': '1504405410', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '11', 'memory': '512', 'code_size': '447'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n\n// AtCoder Beginner Contest 072 C\n\n#include<stdio.h>\n\n\n int d[100005];\n\nint main(void)\n{\n\n int i, N, a, t;\n ... |
CDSS_652733 | CDSS | #include <stdio.h>
int main(void)
{
int n,d,x;
int a[101]={};
scanf("%d\n%d %d",&n,&d,&x);
int num=0;
for(int p=0;p<n;p++)
{
scanf("%d",&a[p]);
int nnn=(d-1)/a[p]+1;
num+=nnn;
}
int ans=num+x;
printf("%d",ans);
}
| 128 | memory_bytes | {'s_id': 's391606464', 'p_id': 'p03400', 'u_id': 'u092002408', 'date': '1522030986', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '273'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void)\n{\n int n,d,x;\n int a[101]={};\n scanf(\"%d\\n%d %d\",&n,&d,&x);\n int num=0;\n ... |
CDSS_690733 | CDSS | #include <stdio.h>
int main(){
int A, B, C, D;
scanf("%d %d %d %d", &A, &B, &C, &D);
if(A <= C) {
if(B <= C) {
printf("0");
}
else if(B > C && B <= D) {
printf("%d", B - C);
}
else if(B > D) {
printf("%d", D - C);
}
}
else if(A > C) {
if(D <= A) {
printf("0");
}
else if(D > A ... | 128 | memory_bytes | {'s_id': 's482779857', 'p_id': 'p03632', 'u_id': 'u833251692', 'date': '1502587457', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '413'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n \nint main(){\n\tint A, B, C, D;\n\n\tscanf(\"%d %d %d %d\", &A, &B, &C, &D);\n\n\tif(A <= C) {\n\t\tif(B <= C)... |
CDSS_743735 | CDSS | #include<stdio.h>
int main()
{
int a,b,c;
while(scanf("%d%d%d",&a,&b,&c)==3)
{
if(a==5&&b==5&&c==7)
printf("YES\n");
else if(a==5&&b==7&&c==5)
printf("YES\n");
else if(a==7&&b==5&&c==5)
printf("YES\n");
else
printf("NO\n");
... | 1,604 | memory_bytes | {'s_id': 's646719957', 'p_id': 'p04043', 'u_id': 'u434578311', 'date': '1600368204', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1604', 'code_size': '338'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n int a,b,c;\n while(scanf(\"%d%d%d\",&a,&b,&c)==3)\n {\n if(a==5&&b==5&&c==7)\n ... |
CDSS_167309 | CDSS | #include <stdio.h>
#include <stdlib.h>
int bubbleSort(int* A, int N);
int main(void){
int n;
scanf("%d",&n);
int *num;
num = (int *)malloc(sizeof(int)*n);
if(num == NULL){
printf("failure\n");
exit(1);
}
//int num[100];
int i,chnum;
for(i=0;i<n;i++){
scanf("%d",&num[i]);
}
chnum=bubbleSort(num,... | 1,832 | memory_bytes | {'s_id': 's634863111', 'p_id': 'p02259', 'u_id': 'u980846595', 'date': '1512368389', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1832', 'code_size': '786'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\nint bubbleSort(int* A, int N);\n\nint main(void){\n\tint n;\n\tscanf(\"%d\",&n);\n\t\n\ti... |
CDSS_598686 | CDSS | #include<stdio.h>
#include<stdlib.h>
int cmp( const void *p, const void *q ) {
return *(int*)p - *(int*)q;
}
int main()
{
int i, n, m, ans = 0;
scanf("%d %d", &n, &m);
int x[m], diff[m - 1];
for(i = 0; i < m; i++){
scanf("%d", &x[i]);
}
qsort(x, m, sizeof(int), cmp);
for(i = 0; i < m - 1; i+... | 1,396 | memory_bytes | {'s_id': 's755668642', 'p_id': 'p03137', 'u_id': 'u523969266', 'date': '1549246984', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '30', 'memory': '1396', 'code_size': '490'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n\nint cmp( const void *p, const void *q ) {\n return *(int*)p - *(int*)q;\n}\n\nint main()... |
CDSS_740989 | CDSS | #include<stdio.h>
int main(){
int n,jumlah=0;
scanf("%d",&n);
for(int i=1;i<=n;i++){
jumlah=i+jumlah;
}
printf("%d",jumlah);
return 0;
}
| 2,096 | memory_bytes | {'s_id': 's664978008', 'p_id': 'p04029', 'u_id': 'u863370423', 'date': '1597608975', 'language': 'C', 'original_language': 'C (Clang 10.0.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '2096', 'code_size': '148'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n\tint n,jumlah=0;\n\tscanf(\"%d\",&n);\n\tfor(int i=1;i<=n;i++){\n\t\tjumlah=i+jumlah;\n }\n\tpri... |
CDSS_423710 | CDSS | #include<stdio.h>
int Sun[105];
int main(){
//数组:Sun为0;有食物为1;输出为0的Sun
for(int i=0;i<105;i++) {
Sun[i]=0;
}
int num=0,row=0;
scanf("%d %d",&num,&row);
int d=0,temp=0;
for(int i=0;i<row;i++){
d=0;
scanf("%d",&d);
for(int i=0;i<d;i++){
temp = 0;
scanf("%d",&temp);
Sun[temp-1]=1;
}
}
in... | 1,736 | memory_bytes | {'s_id': 's628066682', 'p_id': 'p02688', 'u_id': 'u256155910', 'date': '1588555858', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1736', 'code_size': '436'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h> \n\nint Sun[105];\n\nint main(){\n\t//数组:Sun为0;有食物为1;输出为0的Sun\n\tfor(int i=0;i<105;i++) {\n\t\tSun[i]=0;\n\t}\n\ti... |
CDSS_627146 | CDSS | #include<stdio.h>
int main( void )
{
int n, k, i, a;
scanf("%d %d", &n, &k);
a=n%k;
if(a==0){
printf("0\n");
} else {
printf("1\n");
}
return 0;
} | 128 | memory_bytes | {'s_id': 's211973103', 'p_id': 'p03284', 'u_id': 'u987798477', 'date': '1544369490', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', '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 should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main( void )\n{\n\tint n, k, i, a;\n\tscanf(\"%d %d\", &n, &k);\n\ta=n%k;\n\tif(a==0){\n\t\tprintf(\"0\\n\");... |
CDSS_151770 | CDSS | #include <stdio.h>
int main() {
int x,y,gcd,m,n;
scanf("%d %d",&x,&y);
if(x >= y) {
m = x;
n = y;
}
else {
m = y;
n = x;
}
while(n != 0) {
gcd = n;
n = m % n;
m = gcd;
}
printf("%d\n",m);
return 0;
} | 592 | memory_bytes | {'s_id': 's398424271', 'p_id': 'p02256', 'u_id': 'u980045752', 'date': '1492054459', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', 'code_size': '248'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main() {\n int x,y,gcd,m,n;\n scanf(\"%d %d\",&x,&y);\n if(x >= y) {\n m = x;\n n = y;\n }\n el... |
CDSS_722612 | CDSS | #include<stdio.h>
int main(){
int a,b,c,d;
scanf("%d %d %d %d",&a,&b,&c,&d);
if(a*b>=c*d){
printf("%d",a*b);
}else{ printf("%d",c*d);}
return 0;
} | 128 | memory_bytes | {'s_id': 's805387392', 'p_id': 'p03826', 'u_id': 'u710135612', 'date': '1549422587', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '177'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n int a,b,c,d;\n\n scanf(\"%d %d %d %d\",&a,&b,&c,&d);\n\n if(a*b>=c*d){\n printf(\... |
CDSS_107255 | CDSS | #include<stdio.h>
n[3][101];
a[200][3];
int main(void){
int N,i,j;
scanf("%d",&N);
for(i=0;i<N;i++){
for(j=0;j<3;j++){
int k=0;
scanf("%d",&k);
n[j][k]++;
a[i][j]=k;
}
}
for(i=0;i<N;i++){
int l=0;
for(j=0;j<3;j++){
if(n[j][a[i][j]]==1){l+=a[i][j];}
}
printf("%d\n",l);
}
return 0;
} | 600 | memory_bytes | {'s_id': 's706323782', 'p_id': 'p00500', 'u_id': 'u223852077', 'date': '1443775762', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '297'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nn[3][101];\na[200][3];\nint main(void){\n\tint N,i,j;\n\tscanf(\"%d\",&N);\n\tfor(i=0;i<N;i++){\n\tfor(j=0;j<3;j+... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.