identifier string | space string | input string | target float64 | metric_type string | metadata string | messages list |
|---|---|---|---|---|---|---|
CDSS_513958 | CDSS | #include <stdio.h>
int main(void)
{
int r, cir1;
scanf("%d", &r);
cir1 = r * r;
printf("%d", cir1);
return 0;
} | 1,712 | memory_bytes | {'s_id': 's057407980', 'p_id': 'p02859', 'u_id': 'u592772849', 'date': '1599943375', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1712', '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(void)\n{\n int r, cir1;\n scanf(\"%d\", &r);\n cir1 = r * r;\n printf(\"%d\", cir1);\n\n r... |
CDSS_116083 | CDSS | #include<stdio.h>
#include<math.h>
#define MAX 300000
int main(void){
int i,j;
char mstable[MAX];
int ms[MAX];
int n;
for(i=0;i<MAX;i++){
if(i%7 == 1 || i%7 == 6){
mstable[i] = 1;
}else{
mstable[i] = 0;
}
}
mstable[1] = 0;
j = 6;
while(j<MAX){
for(i=2*j;i<MAX;i+=j)ms... | 852 | memory_bytes | {'s_id': 's030828707', 'p_id': 'p00735', 'u_id': 'u914140574', 'date': '1288925635', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '130', 'memory': '852', 'code_size': '684'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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\n#define MAX 300000\n\nint main(void){\n \n int i,j;\n char mstable[MAX];\n int ms[MAX];\n ... |
CDSS_227742 | CDSS | #include<stdio.h>
#define H 250
int main()
{
int n,i;
int A[H];
scanf("%d",&n);
for(i=1;i<=n;i++)
scanf("%d",&A[i]);
for(i=1;i<=n;i++)
{
printf("node %d: key = %d, ",i,A[i]);
if(i!=1)
{
printf("parent key = %d, ",A[i/2]);
}
if(2*i<=n)
{
... | 2,104 | memory_bytes | {'s_id': 's396754106', 'p_id': 'p02287', 'u_id': 'u987115153', 'date': '1547198752', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '495'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 H 250\n\nint main()\n{\n int n,i;\n int A[H];\n scanf(\"%d\",&n);\n for(i=1;i<=n;i++)\n scanf(\"%d\... |
CDSS_697360 | CDSS | #include<stdio.h>
int main()
{
int a,b,c,sum1,sum2,sum3;
scanf("%d%d%d",&a,&b,&c);
sum1=a+b;
sum2=b+c;
sum3=c+a;
{
if(sum1<sum2 && sum1<sum3)
printf("%d\n",sum1);
else if(sum2<sum1 && sum2<sum3)
printf("%d\n",sum2);
else
printf("%d\n",s... | 128 | memory_bytes | {'s_id': 's337356851', 'p_id': 'p03671', 'u_id': 'u816631826', 'date': '1587056279', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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>\nint main()\n{\n int a,b,c,sum1,sum2,sum3;\n scanf(\"%d%d%d\",&a,&b,&c);\n sum1=a+b;\n sum2=b+c;\n su... |
CDSS_135939 | CDSS | #include <stdio.h>
#include <stdlib.h>
#define MAX 100
int main(){
int G[MAX+1][MAX+1], n, vertex, degree, adj, i, j;
for(i = 1; i <= MAX; i++){
for(j = 1; j <= MAX; j++){
G[i][j] = 0;
}
}
scanf("%d",&n);
for(i = 1; i <= n; i++){
scanf("%d %d",&vertex,°ree);
for(j = 1; j <= degree; ... | 2,108 | memory_bytes | {'s_id': 's420672265', 'p_id': 'p02237', 'u_id': 'u790661560', 'date': '1548135664', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '549'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#define MAX 100\n\nint main(){\n int G[MAX+1][MAX+1], n, vertex, degree, adj, i, j;\n for(i... |
CDSS_364211 | CDSS | #include <stdio.h>
int main(int argc, const char * argv[]) {
int sum=0,i=0;
char c[1000];
while(1){
scanf("%s",c);
if(c[0]=='0'){
break;
}
for(i=0;c[i]!='\0';i++){
sum += c[i]-'0';
}
printf("%d\n",sum);
sum=0;
}
re... | 536 | memory_bytes | {'s_id': 's733634517', 'p_id': 'p02416', 'u_id': 'u811505515', 'date': '1496060901', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '536', 'code_size': '329'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 sum=0,i=0;\n char c[1000];\n \n while(1){\n s... |
CDSS_352978 | CDSS | #define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main() {
int i,c,m, f, r;
char result[100];
i = 0;
while (1) {
scanf("%d %d %d", &m, &f, &r);
if (m == -1 && f == -1 && r == -1) {
break;
}
if (m==-1||f==-1){
result[i] = 'F';
} else if (80 <= m + f ) {
result[i] = 'A';
}else if (65<=m + ... | 1,824 | memory_bytes | {'s_id': 's451875801', 'p_id': 'p02411', 'u_id': 'u516781876', 'date': '1509360621', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1824', 'code_size': '674'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#define _CRT_SECURE_NO_WARNINGS\n#include <stdio.h>\n\nint main() {\n\tint i,c,m, f, r;\n\tchar result[100];\n\ti = 0;\n\twhile (1) {\... |
CDSS_437786 | CDSS | #include <stdio.h>
int main(void) {
int r;
scanf("%d", &r);
printf("%f", r * 2 * 3.14159265359);
return 0;
} | 1,688 | memory_bytes | {'s_id': 's988929039', 'p_id': 'p02705', 'u_id': 'u473465975', 'date': '1589577700', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '1688', 'code_size': '122'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 r;\n\t\n\tscanf(\"%d\", &r);\n\t\n\tprintf(\"%f\", r * 2 * 3.14159265359);\n\t\n\n\tr... |
CDSS_414440 | CDSS | #include <stdio.h>
#include <string.h>
int main()
{
int n;
scanf("%d",&n);
int a=n%10;
if(a==3) printf("bon\n");
else if(a==0||a==1||a==6||a==8) printf("pon\n");
else printf("hon\n");
}
| 1,644 | memory_bytes | {'s_id': 's996596028', 'p_id': 'p02675', 'u_id': 'u599597776', 'date': '1590284228', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1644', '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>\n#include <string.h>\n\nint main()\n{\n int n;\n scanf(\"%d\",&n);\n int a=n%10;\n if(a==3) printf(\"bon\\... |
CDSS_642585 | CDSS | #include<stdio.h>
int main(){
int N;
char S[100],S2[26],S3[26];
int i,j,k,a;
int max,max2=0;
char alp[] = "abcdefghijklmnopqrstuvwxyz";
int alpnum[26];
scanf("%d",&N);
scanf("%s",S);
for(i=0;i<N;i++){
for(a=0;a<26;a++){
S2[a]=0;
S3[a]=0;
}
max=0;
... | 128 | memory_bytes | {'s_id': 's325808507', 'p_id': 'p03338', 'u_id': 'u169379395', 'date': '1527985390', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '843'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n\tint N;\n\tchar S[100],S2[26],S3[26];\n\tint i,j,k,a;\n\tint max,max2=0;\n\n\tchar alp[] = \"abcdef... |
CDSS_652405 | CDSS | #include<stdio.h>
int main(void) {
int A,B,C,D,E,F;
scanf("%d",&A);
scanf("%d",&B);
scanf("%d",&C);
scanf("%d",&D);
if(A>=B){
E = B;
}else{
E = A;
}
if(C>=D){
F = D;
}else{
F = C;
}
E = E + F;
printf("%d",E);
return 0;
} | 256 | memory_bytes | {'s_id': 's674363827', 'p_id': 'p03399', 'u_id': 'u481783270', 'date': '1522027787', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '256', 'code_size': '264'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void) {\n int A,B,C,D,E,F;\n scanf(\"%d\",&A);\n scanf(\"%d\",&B);\n scanf(\"%d\",&C);\n scanf(\"%d\"... |
CDSS_332512 | CDSS | #include<stdio.h>
int main(){
int h, w, i, j;
while(1){
scanf("%d %d",&h,&w);
if(h==0 && w==0) break;
for(i=0;i<h;i++){
for(j=0;j<w;j++){
printf("#");
}
printf("\n");
}
printf("\n");
}
return 0;
}
| 2,148 | memory_bytes | {'s_id': 's229582581', 'p_id': 'p02403', 'u_id': 'u906448367', 'date': '1565953075', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2148', 'code_size': '246'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int h, w, i, j;\n while(1){\n scanf(\"%d %d\",&h,&w);\n if(h==0 && w==0) break;\n\n for(i=... |
CDSS_546485 | CDSS | #include <stdio.h>
int main(void){
long long S, A, B;
scanf ("%lld", &S);
A=S/1000000000+1; B=1000000000-(S%1000000000);
// printf("%lld, %lld\n", A, B);
if (S==1000000000000000000) {
A=1000000000;
printf("%lld %d %d %lld %d %d", A, 0, 0, A, 0, 0);
}
else printf("%lld %d %ll... | 128 | memory_bytes | {'s_id': 's217098919', 'p_id': 'p02963', 'u_id': 'u279160680', 'date': '1563762154', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '376'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n long long S, A, B;\n scanf (\"%lld\", &S);\n A=S/1000000000+1; B=1000000000-(S%100000... |
CDSS_289199 | CDSS | #include <stdio.h>
int main (){
int x,y,w,h,r;
scanf("%d %d %d %d %d",&w,&h,&x,&y,&r);
if(((x-r)<0)||((y-r)<0)||((x+r)>w)||((y+r)>h)) printf("No\n");
else printf("Yes\n");
return 0;
} | 584 | memory_bytes | {'s_id': 's493114029', 'p_id': 'p02394', 'u_id': 'u411540321', 'date': '1429174787', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '584', 'code_size': '197'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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,y,w,h,r;\n\n scanf(\"%d %d %d %d %d\",&w,&h,&x,&y,&r);\n if(((x-r)<0)||((y-r)<0)||((x+r)... |
CDSS_139088 | CDSS | #include <stdio.h>
#define M 100
/*
int main(){
int i,j,n,g[M][M],count=0,min,ti,tj;
scanf("%d",&n);
for(i=0;i<n;i++){
for(j=0;j<n;j++) scanf("%d",&g[i][j]);
}
for(i=0;i<n;i++){
min=2000;
for(j=0;j<n;j++){
if(g[i][j]!=-1){
if(min>=g[i][j]){
min=g[i][j];
ti=i;
tj=j;
}
... | 636 | memory_bytes | {'s_id': 's335614662', 'p_id': 'p02241', 'u_id': 'u491657886', 'date': '1468471993', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '636', 'code_size': '1711'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 M 100\n\n/*\n\nint main(){\n\n int i,j,n,g[M][M],count=0,min,ti,tj;\n\n scanf(\"%d\",&n);\n\n for(i=0... |
CDSS_556441 | CDSS | #include <stdio.h>
int main() {
char str[5], prev = 0;
int i;
scanf("%s", str);
for (i = 0; i < 4; i++) {
if (prev == str[i]) {
printf("Bad\n");
return 0;
}
prev = str[i];
}
printf("Good\n");
return 0;
}
| 128 | memory_bytes | {'s_id': 's074968014', 'p_id': 'p02993', 'u_id': 'u311207249', 'date': '1565381482', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '243'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main() {\n char str[5], prev = 0;\n int i;\n scanf(\"%s\", str);\n for (i = 0; i < 4; i++) {\n if (pr... |
CDSS_54896 | CDSS | #include<stdio.h>
int main(){
int i,j;
int n;
scanf("%d",&n);
double x[4][n],y[4][n];
for(i=0;i<n;i++){
for(j=0;j<4;j++){
scanf("%lf%lf",&x[j][i],&y[j][i]);
}
}
for(i=0;i<n;i++){
if((x[1][i]-x[0][i])*(y[3][i]-y[2][i])==(y[1][i]-y[0][i])*(x[3][i]-x[2][i])){
puts("YES");
}else{
... | 0 | memory_bytes | {'s_id': 's747079474', 'p_id': 'p00021', 'u_id': 'u361407785', 'date': '1306513244', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', '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 int i,j;\n int n;\n scanf(\"%d\",&n);\n double x[4][n],y[4][n];\n for(i=0;i<n;i++){\n for(j=0... |
CDSS_686038 | CDSS | #include<stdio.h>
void QSort(long x[ ], int left, int right)
{
int i, j;
int pivot;
i = left; /* ソートする配列の一番小さい要素の添字 */
j = right; /* ソートする配列の一番大きい要素の添字 */
pivot = x[(left + right) / 2]; /* 基準値を配列の中央付近にとる */
while (1) { /* 無限ループ */
... | 896 | memory_bytes | {'s_id': 's198784144', 'p_id': 'p03607', 'u_id': 'u855429581', 'date': '1525300860', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '896', 'code_size': '1779'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 QSort(long x[ ], int left, int right)\n{\n int i, j;\n int pivot;\n\n i = left; ... |
CDSS_634690 | CDSS | #include <unistd.h>
char ibuf[(11<<18)+5];
char *ibufe = ibuf-1;
extern inline void readall(){
int k, t = 0;
while((k=read(STDIN_FILENO, ibuf+t, sizeof(ibuf)-t))>0) t += k;
}
int read_uint(){
int x=0;
while(*(++ibufe) <'0');
do {
x *= 10;
x += *ibufe-'0';
} while(*(++ibufe) >='0');
return x;
}... | 7,808 | memory_bytes | {'s_id': 's174960444', 'p_id': 'p03313', 'u_id': 'u367021138', 'date': '1530556848', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '25', 'memory': '7808', 'code_size': '1296'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <unistd.h>\n\nchar ibuf[(11<<18)+5];\nchar *ibufe = ibuf-1;\n\nextern inline void readall(){\n int k, t = 0;\n while((k=rea... |
CDSS_131877 | CDSS | #include <stdio.h>
#define INF 1000000000
void matrixchain();
int len,r[101],F[101][101];
int main(){
int i,j=0;
scanf("%d",&len);
for(i = 0; i < len; i++){
scanf("%d %d",&r[i],&r[i+1]);
}
matrixchain();
printf("%d\n",F[1][len]);
return 0;
}
void matrixchain(){
int n,i,j,k,l,q;
n = l... | 636 | memory_bytes | {'s_id': 's273263298', 'p_id': 'p02234', 'u_id': 'u690071726', 'date': '1499312205', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '636', 'code_size': '629'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 INF 1000000000\n\nvoid matrixchain();\n\nint len,r[101],F[101][101];\n\nint main(){\n int i,j=0;\n \n s... |
CDSS_577400 | CDSS | #include <stdio.h>
int main(void){
int a,b,c;
int t;
scanf("%d %d %d", &a, &b, &c);
if(a>b){
t=a;
a=b;
b=t;
}
if(a<=c&&c<=b){
printf("Yes\n");
}else{
printf("No\n");
}
return 0;
}
| 128 | memory_bytes | {'s_id': 's931468926', 'p_id': 'p03067', 'u_id': 'u904318605', 'date': '1559451414', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '252'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 \tint t;\n \n \tscanf(\"%d %d %d\", &a, &b, &c);\n \n \tif(a>b){\n \t... |
CDSS_521382 | CDSS | #include<stdio.h>
int main()
{
int n,d[101],i,j,s=0;
scanf("%d",&n);
for(i=0;i<n;i++)
scanf("%d",&d[i]);
for(i=0;i<n;i++)
for(j=i+1;j<n;j++)
s+=d[i]*d[j];
printf("%d",s);
return 0;
} | 128 | memory_bytes | {'s_id': 's234037987', 'p_id': 'p02886', 'u_id': 'u596813883', 'date': '1588170471', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '196'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n\tint n,d[101],i,j,s=0;\n\n\tscanf(\"%d\",&n);\n\tfor(i=0;i<n;i++)\n\t\tscanf(\"%d\",&d[i]);\n\tfor(... |
CDSS_70876 | CDSS | #include <stdio.h>
#include <string.h>
int main(void){
char s[101];
int len,n,i,j;
while(scanf("%s",s) != EOF){
len = strlen(s);
for(i=0;i<len;i++){
if(s[i] == '@'){
n = s[i+1]-'0';
... | 2,036 | memory_bytes | {'s_id': 's214170502', 'p_id': 'p00077', 'u_id': 'u568794317', 'date': '1574124775', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2036', '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>\n#include <string.h>\nint main(void){\n char s[101];\n int len,n,i,j;\n while(scanf(\"%s\",s) ... |
CDSS_652776 | CDSS | #include<stdio.h>
int main(void) {
int N, D, X;
scanf("%d %d %d", &N, &D, &X);
int A[N];
for (int i = 0; i < N; i++) {
scanf("%d", &A[i]);
}
int cnt = X;
for (int i = 0; i < N; i++) {
int j = 0;
while (j*A[i]+1 <= D) {
cnt++;
j++;
}
}
printf("%d", cnt);
return 0;
} | 128 | memory_bytes | {'s_id': 's423907057', 'p_id': 'p03400', 'u_id': 'u351888211', 'date': '1522026808', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '278'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 N, D, X;\nscanf(\"%d %d %d\", &N, &D, &X);\nint A[N];\nfor (int i = 0; i < N; i++) {\n scan... |
CDSS_415657 | CDSS | #include<stdio.h>
#include<string.h>
#include<ctype.h>
int main()
{
int k,i;
char s[100];
scanf("%d",&k);
scanf("%s",s);
int l = strlen(s);
if(l>k)
{
for(i=0; i<k; i++)
{
printf("%c",s[i]);
}
printf("...");
}
else{
printf("%s",s);
}
return 0;
} | 1,692 | memory_bytes | {'s_id': 's823890037', 'p_id': 'p02676', 'u_id': 'u869167271', 'date': '1590793811', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1692', 'code_size': '266'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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<ctype.h>\nint main()\n{\n\tint k,i;\n\tchar s[100];\n\tscanf(\"%d\",&k);\n\tscanf(\"%s... |
CDSS_144999 | CDSS | // 1_1_A
#include<stdio.h>
void OutPut(int numbers[], int length){
int i;
for(i = 0; i < length - 1; i++){
printf("%d ", numbers[i]);
}
printf("%d\n", numbers[length - 1]);
return;
}
void InsertionSort(int numbers[], int length){
int i, j, v;
for(i = 1; i < length; i++){
v... | 596 | memory_bytes | {'s_id': 's654465824', 'p_id': 'p02255', 'u_id': 'u949338836', 'date': '1471180674', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '782'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n// 1_1_A\n#include<stdio.h>\n\nvoid OutPut(int numbers[], int length){\n int i;\n for(i = 0; i < length - 1; i++){\n prin... |
CDSS_399887 | CDSS | #include<stdio.h>
int main(){
int i, j, n, k, p[1001], tmp, sum=0;
scanf("%d %d", &n, &k);
for(i=0; i<n; i++){
scanf("%d", &p[i]);
}
for(i=0; i<n; i++){
for(j=i+1; j<n; j++){
if(p[i] > p[j]){
tmp = p[i];
p[i] = p[j];
p[j] = ... | 1,736 | memory_bytes | {'s_id': 's913462951', 'p_id': 'p02628', 'u_id': 'u219803424', 'date': '1592789663', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '8', 'memory': '1736', 'code_size': '444'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int i, j, n, k, p[1001], tmp, sum=0;\n scanf(\"%d %d\", &n, &k);\n for(i=0; i<n; i++){\n ... |
CDSS_716006 | CDSS | #include <stdio.h>
#include<string.h>
int main(void){
int i=1,x,sum=0;
scanf("%d",&x);
while(sum<x){
sum+=i;
i++;
}
printf("%d\n",i-1);
return 0;
} | 128 | memory_bytes | {'s_id': 's833399122', 'p_id': 'p03779', 'u_id': 'u319479794', 'date': '1497310201', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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#include<string.h>\nint main(void){\n int i=1,x,sum=0;\n scanf(\"%d\",&x);\n while(sum<x){\n sum+=... |
CDSS_531228 | CDSS | #include <stdio.h>
int min(int a,int b){
return(a>b)?b:a;
}
int main(void){
int n,res=0;
scanf("%d",&n);
int b[n];
for(int i=0;i<n-1;i++)scanf("%d",&b[i]);
for(int i=n-2;i>0;i--){
res+=min(b[i],b[i-1]);
}
printf("%d\n",res+b[0]+b[n-2]);
return 0;
} | 128 | memory_bytes | {'s_id': 's166101490', 'p_id': 'p02917', 'u_id': 'u518794199', 'date': '1572202858', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '293'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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){\n return(a>b)?b:a;\n}\n\nint main(void){\n int n,res=0;\n scanf(\"%d\",&n);\n in... |
CDSS_443897 | CDSS | #include<stdio.h>
int main(void){
int M, Answer, Sum = 0;
double N;
scanf("%lf %d",&N, &M);
int A[M];
for(int i = 0; i < M; i++){
scanf("%d",&A[i]);
Sum += A[i];
}
Answer = N-Sum;
if(Answer < 0){
printf("-1");
}
else{
printf("%d\n",Answer);
}... | 1,772 | memory_bytes | {'s_id': 's655539529', 'p_id': 'p02706', 'u_id': 'u703924199', 'date': '1587345344', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '1772', 'code_size': '336'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 M, Answer, Sum = 0;\n double N;\n scanf(\"%lf %d\",&N, &M);\n int A[M];\n f... |
CDSS_258414 | CDSS | #define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main(void)
{
int a,b;
scanf("%d %d\n",&a,&b);
printf("%d %d\n",a*b,(a+b)*2);
return 0;
}
| 2,112 | memory_bytes | {'s_id': 's976371467', 'p_id': 'p02389', 'u_id': 'u287975630', 'date': '1543033710', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '176'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#define _CRT_SECURE_NO_WARNINGS\n\n#include<stdio.h>\n\nint main(void)\n{\n int a,b;\n \n scanf(\"%d %d\\n\",&a,&b);\n \n ... |
CDSS_209748 | CDSS | #include<stdio.h>
#define Z 2000001
int a[Z],b[Z],c[Z];
main()
{
int i,j,k,l=0;
scanf("%d", &k);
for(i = 0; i < k; i++)
{
scanf("%d", &a[i]);
c[a[i]] += 1;
if(a[i] > l)
{
l = a[i];
}
}
for(i = 1; i <= l; i++)
{
c[i] = c[i] + c[i-1];
}
for(j = ... | 17,892 | memory_bytes | {'s_id': 's079326941', 'p_id': 'p02275', 'u_id': 'u852131824', 'date': '1401862497', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '390', 'memory': '17892', 'code_size': '526'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#define Z 2000001\nint a[Z],b[Z],c[Z];\nmain()\n {\n int i,j,k,l=0;\n scanf(\"%d\", &k);\n for(i = 0; i < k; i++... |
CDSS_177348 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
int pop();
void push();
int A[1000],top=0;
int main(){
int a,b;
char s[100];
while(scanf("%s",s)!=EOF){
if(s[0]=='+'){
a=pop();
b=pop();
push(a+b);
}
else if(s[0]=='-'){
a=pop();
b=pop();
push(b-a);
... | 548 | memory_bytes | {'s_id': 's854501682', 'p_id': 'p02263', 'u_id': 'u494451272', 'date': '1461734387', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '548', 'code_size': '558'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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\nint pop();\nvoid push();\nint A[1000],top=0;\n \nint main(){\n int a,b;... |
CDSS_655603 | CDSS | #include <stdio.h>
int abs(int n){
if(n<0){
return -1*n;}else
return n;}
int main(void)
{int A,B,C,x,i,a,b,l,r,g,m,tmp;
long long int N,K,sum;
scanf("%lld%lld",&N,&K);
sum=0;
if(K==0){
printf("%lld",N*N);}
else if(N==1)
printf("0");
else
{
for(b=K+1;b<=N;b++){
if(N%b<=K-1)
sum+=(b-K)*(N/b);... | 128 | memory_bytes | {'s_id': 's485008904', 'p_id': 'p03418', 'u_id': 'u213156132', 'date': '1520830203', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '128', 'code_size': '403'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 abs(int n){\n\t\tif(n<0){\n\t\treturn -1*n;}else\n\t\treturn n;}\nint main(void)\n{int A,B,C,x,i,a,b,l,r,g,m,t... |
CDSS_568927 | CDSS | #include<stdio.h>
int main(){
long int R, D, x[11];
int i;
scanf("%ld %ld %ld", &R, &D, &x[0]);
for(i=0; i<10; i++){
x[i+1] = R*x[i] - D;
printf("%ld\n", x[i+1]);
}
return 0;
} | 128 | memory_bytes | {'s_id': 's886423703', 'p_id': 'p03036', 'u_id': 'u235231201', 'date': '1558833477', '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 long int R, D, x[11];\n int i;\n\n scanf(\"%ld %ld %ld\", &R, &D, &x[0]);\n\n for(i=0; ... |
CDSS_47074 | CDSS | #include<stdio.h>
int main(void)
{
int temp, i=0;
int t[101];
while(scanf("%d",&temp)!=EOF)
{
if(temp!=0)
{
t[i] = temp;
i++;
}
else
{
printf("%d\n",t[i-1]);
i--;
}
}
return 0;
} | 600 | memory_bytes | {'s_id': 's886124541', 'p_id': 'p00013', 'u_id': 'u374040976', 'date': '1495632180', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '226'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void)\n{\n int temp, i=0;\n int t[101];\n \n while(scanf(\"%d\",&temp)!=EOF)\n {\n if(temp!=... |
CDSS_496827 | CDSS |
#include<stdio.h>
int main()
{
int A,B;
scanf("%d %d",&A,&B);
if(A!=B)
{
printf("No");
}
else
printf("Yes");
return 0;
} | 128 | memory_bytes | {'s_id': 's925987013', 'p_id': 'p02789', 'u_id': 'u353919145', 'date': '1580605017', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '128', 'code_size': '169'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n\n#include<stdio.h>\nint main()\n{\n int A,B;\n\n\n scanf(\"%d %d\",&A,&B);\n if(A!=B)\n {\n printf(\"No\");\n }\n... |
CDSS_652012 | CDSS | #include <stdio.h>
int main(void) {
int a,b,c,d;
scanf("%d%d%d%d",&a,&b,&c,&d);
int x;
if(a<b)
x=a;
else
x=b;
int y;
if(c<d)
y=c;
else
y=d;
int ans=x+y;
printf("%d\n",ans);
return 0;
} | 128 | memory_bytes | {'s_id': 's720529601', 'p_id': 'p03399', 'u_id': 'u353919145', 'date': '1591373624', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '292'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\n int a,b,c,d;\n scanf(\"%d%d%d%d\",&a,&b,&c,&d);\n\n int x;\n if(a<b)\n x... |
CDSS_96295 | CDSS | #include <stdio.h>
int main(void)
{
int a, t, r;
double time;
scanf( "%d %d %d", &a, &t, &r );
time = ( ( double )t / ( double )a ) * r;
printf( "%f\n", time );
return 0;
}
| 2,124 | memory_bytes | {'s_id': 's161649051', 'p_id': 'p00411', 'u_id': 'u650473553', 'date': '1590635049', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2124', 'code_size': '182'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n\tint a, t, r;\n\tdouble time;\n\t\n\tscanf( \"%d %d %d\", &a, &t, &r );\n\ttime = ( ( double... |
CDSS_668154 | CDSS | #include<stdio.h>
int main(void){
int a,b,c,d;
scanf("%d %d %d %d",&a,&b,&c,&d);
if(a+b>c+d){
printf("Left");
}else if(c+d>a+b){
printf("Right");
}else{
printf("Balanced");
}
return 0;
} | 128 | memory_bytes | {'s_id': 's609969064', 'p_id': 'p03477', 'u_id': 'u709529893', 'date': '1552427452', '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 must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void){\nint a,b,c,d;\n\nscanf(\"%d %d %d %d\",&a,&b,&c,&d);\nif(a+b>c+d){\nprintf(\"Left\");\n}else if(c... |
CDSS_260078 | CDSS | #include<stdio.h>
main(){
int time;
int s,m,h;
scanf("%d",&time);
h = time/3600;
m = (time/60)%60;
s = time%60;
printf("%d:%d:%d\n",h,m,s);
return 0;
} | 592 | memory_bytes | {'s_id': 's620158714', 'p_id': 'p02390', 'u_id': 'u457333162', 'date': '1448422019', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', 'code_size': '184'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nmain(){\n int time;\n int s,m,h;\n scanf(\"%d\",&time);\n h = time/3600;\n m = (time/60)%60;\n ... |
CDSS_23705 | CDSS | #include <stdio.h>
int main(int argc, char const *argv[])
{
int temp, max1=-1, max2=-1, max3=-1;
// max3 < max2 < max1
int i;
for(i=0;i<10;i++) {
scanf("%d", &temp);
if(temp>max1) {
max3 = max2;
max2 = max1;
max1 = temp;
} else if (temp>max2) {
max3 = max2;
max2 = temp;
} else if (temp > max... | 600 | memory_bytes | {'s_id': 's863307345', 'p_id': 'p00001', 'u_id': 'u336285540', 'date': '1491223370', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '403'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(int argc, char const *argv[])\n{\n\tint temp, max1=-1, max2=-1, max3=-1;\n\t// max3 < max2 < max1\n\tin... |
CDSS_259962 | CDSS | #include<stdio.h>
int main(){
int a,b,c,d;
scanf("%d", &a);
b = a / 3600;
c = (a-b*3600)/60;
d = (a - b * 3600)-c * 60;
printf("%d:%d:%d\n", b,c,d);
return 0;
} | 592 | memory_bytes | {'s_id': 's275211992', 'p_id': 'p02390', 'u_id': 'u909800692', 'date': '1445499227', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', 'code_size': '173'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n\n\tint a,b,c,d;\n\n\tscanf(\"%d\", &a);\n\n\tb = a / 3600;\n\tc = (a-b*3600)/60;\n\td = (a - b * 36... |
CDSS_548136 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#define ll long long
#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<<62)-(1LL<<31))
#define max(p,q)((p)>(q)?(p):(q))
#define min(p,q)((p)<(q)?(p):(q))
#define bit(n,m)(((n)>>(m))&1)... | 128 | memory_bytes | {'s_id': 's903284153', 'p_id': 'p02970', 'u_id': 'u382163500', 'date': '1563670873', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '850'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 ll long long\n#define rep(i,l,r)for(ll i=(l);... |
CDSS_247524 | CDSS | #include <stdio.h>
int main(){
int a,i;
scanf("%d",&a);
int b=a;
for(i=0;i<2;i++)
b=b*a;
printf("%d\n",b);
return 0;
}
| 2,104 | memory_bytes | {'s_id': 's368737463', 'p_id': 'p02388', 'u_id': 'u344125944', 'date': '1527828065', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '152'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(){\n int a,i;\n scanf(\"%d\",&a);\n int b=a;\n for(i=0;i<2;i++)\n b=b*a;\n printf(\... |
CDSS_361643 | CDSS | #include <stdio.h>
int main(int argc, char** argv)
{
char str[1200];
int i;
memset(str, '\0', sizeof(str));
scanf("%[^\n]", &str);
for (i = 0; str[i] != '\0'; i++) {
if (str[i] >= 'A' && str[i] <= 'Z') {
str[i] = str[i] + 32;
}
else if (str[i] >= 'a' && str[i] <= 'z') {
str[i] = str[i] - 32;
}
}
... | 524 | memory_bytes | {'s_id': 's324623306', 'p_id': 'p02415', 'u_id': 'u360015976', 'date': '1458018737', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', 'code_size': '356'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(int argc, char** argv)\n{\n\tchar str[1200];\n\tint i;\n\n\tmemset(str, '\\0', sizeof(str));\n\tscanf(\... |
CDSS_614684 | CDSS | #include <stdio.h>
int main(void){
int N, T, i, cst = 9999, cnt = 0;
int c[1000];
int t[1000];
scanf("%d %d", &N, &T);
for(i = 0; i < N; i++){
scanf("%d %d", &c[i], &t[i]);
}
for(i = 0; i < N; i++){
if(T >= t[i] && c[i] <= cst){
cst = c[i];
... | 1,736 | memory_bytes | {'s_id': 's304553698', 'p_id': 'p03239', 'u_id': 'u818573308', 'date': '1594150814', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1736', 'code_size': '483'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\n int N, T, i, cst = 9999, cnt = 0;\n int c[1000];\n int t[1000];\n \n scanf(\"%d %... |
CDSS_172638 | CDSS | #include<stdio.h>
#define N 100
int main(){
int i,j,A[N],minj,a,n,count=0;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d",&A[i]);
}
for(i=0;i<n;i++){
minj = i;
for(j=i;j<n;j++){
if(A[j]<A[minj]) minj=j;
}
a=A[i];
A[i]=A[minj];
A[minj]=a;
if(A[i]!=A[minj]) count++... | 2,056 | memory_bytes | {'s_id': 's484127702', 'p_id': 'p02260', 'u_id': 'u236890908', 'date': '1532957738', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2056', 'code_size': '469'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 N 100\nint main(){\n int i,j,A[N],minj,a,n,count=0;\n scanf(\"%d\",&n);\n for(i=0;i<n;i++){\n ... |
CDSS_720182 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#define min(a, b) a < b ? a : b
#define max(a, b) a > b ? a : b
#define MAXN 100000
int main(void)
{
int i;
int N;
int on = 0, en = 0;
long long A[MAXN];
scanf("%d", &N);
for (i = 0; i < N; i++) {
scanf("%lld", &A[i]);
if (A[i] ... | 896 | memory_bytes | {'s_id': 's321320141', 'p_id': 'p03807', 'u_id': 'u622395341', 'date': '1486261929', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '15', 'memory': '896', 'code_size': '836'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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#define min(a, b) a < b ? a : b\n#define max(a, b) ... |
CDSS_571528 | CDSS | #include <stdio.h>
int main() {
int s,res,ues;
scanf("%d",&s);
res=s/100;
ues=s%100;
if(ues<=12 && ues>=1){
if(res<=12 && res>=1)printf("AMBIGUOUS");
else printf("YYMM");
}else{
if(res<=12 && res>=1)
printf("MMYY");
else printf("NA");
}
return 0;
}
| 128 | memory_bytes | {'s_id': 's582817017', 'p_id': 'p03042', 'u_id': 'u403331159', 'date': '1558320964', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '264'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main() {\nint s,res,ues;\nscanf(\"%d\",&s);\nres=s/100;\nues=s%100;\nif(ues<=12 && ues>=1){\n if(res<=12 && r... |
CDSS_70584 | CDSS | #include<stdio.h>
int main(void){
int gakuseki,i = 0;
double W,H;
double BMI;
while(scanf("%d,%lf,%lf",&gakuseki,&W,&H) == 3){
BMI = W/H/H;
if(BMI>=25){
printf("%d\n",gakuseki);
i++;
}
}
if(i == 0){
printf("該当無し\n");
}
return 0;
} | 628 | memory_bytes | {'s_id': 's483448055', 'p_id': 'p00075', 'u_id': 'u588294115', 'date': '1385348291', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '628', 'code_size': '326'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 gakuseki,i = 0;\n double W,H;\n double BMI;\n while(scanf(\"%d,%lf,%lf\",&gakusek... |
CDSS_475505 | CDSS | #include <stdio.h>
int main()
{
long H,W;
scanf("%lu %lu",&H,&W);
long ans;
ans=(H*W+1)/2;
if (H==1 || W==1)
printf("1");
else
printf("%lu",ans);
} | 128 | memory_bytes | {'s_id': 's159062675', 'p_id': 'p02742', 'u_id': 'u068872760', 'date': '1584235887', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '168'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main()\n{\n long H,W;\n scanf(\"%lu %lu\",&H,&W);\n long ans;\n ans=(H*W+1)/2;\n if (H==1 || W==1)\n ... |
CDSS_229399 | CDSS | #include<stdio.h>
#define MAX 500005
void MaxHeapify(int[],int);
void BuildMaxHeap(int[]);
int n;
int main(){
int i,A[MAX];
scanf("%d",&n);
for(i=1;i<=n;i++) scanf("%d",&A[i]);
BuildMaxHeap(A);
for(i=1;i<=n;i++){
printf(" %d",A[i]);
}
printf("\n");
return 0;
}
void MaxHeapify(int A[],int i){
i... | 2,552 | memory_bytes | {'s_id': 's837475334', 'p_id': 'p02288', 'u_id': 'u906311482', 'date': '1403842832', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '100', 'memory': '2552', 'code_size': '612'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 500005\n\nvoid MaxHeapify(int[],int);\nvoid BuildMaxHeap(int[]);\n\nint n;\n\nint main(){\n int i,A[MA... |
CDSS_576169 | CDSS | #include <stdio.h>
#include <stdint.h>
#include <inttypes.h>
int main (int argc, char const *argv[])
{
int64_t N, V[20], C[20];
int64_t ans = 0;
scanf("%"PRId64, &N);
for (int i = 0; i < N; i++) {
scanf("%"PRId64, &V[i]);
}
for (int i = 0; i < N; i++) {
scanf("%"PRId64, &C[i])... | 128 | memory_bytes | {'s_id': 's223860027', 'p_id': 'p03060', 'u_id': 'u335453773', 'date': '1556413693', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '453'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 <stdint.h>\n#include <inttypes.h>\n\n\nint main (int argc, char const *argv[])\n{\n int64_t N, V[20], ... |
CDSS_478311 | CDSS | #include <stdio.h>
int main() {
char a, b, c;
scanf("%c%c%c",&a,&b,&c);
int x = a+b+c;
if(x == 65*3 || x == 66*3)
printf("No");
else
printf("Yes");
return 0;
} | 128 | memory_bytes | {'s_id': 's928739625', 'p_id': 'p02753', 'u_id': 'u033724502', 'date': '1583784622', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '180'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main() {\n char a, b, c;\n scanf(\"%c%c%c\",&a,&b,&c);\n int x = a+b+c;\n if(x == 65*3 || x == 66*3)\n ... |
CDSS_113655 | CDSS | #include<stdio.h>
int gcd( int m, int n ){
// ?????°?????????????????´??????????????????
if (0==m||0==n){
return 0;
}
// ???????????????????????????
while(m!=n){
if(m>n){
m=m-n;
}
else{
n=n-m;
}
}
return m;
}
int main(void){
int a,b,c,d,p,q,r,s,tx,ty,tt,k;
while(1){
scanf("%d %d %d",&a,&b,&c)... | 612 | memory_bytes | {'s_id': 's637977562', 'p_id': 'p00688', 'u_id': 'u003762655', 'date': '1446098951', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '612', 'code_size': '1510'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 gcd( int m, int n ){\n\t// ?????°?????????????????´??????????????????\n\tif (0==m||0==n){\n\t\treturn 0;\n\t}\n... |
CDSS_125968 | CDSS | #include <stdio.h>
int main(void)
{
char inputString[1100] = {};
char answer[1100] = {};
int i;
int answerNumber = 0;
scanf("%s", &inputString);
for(i = 0; inputString[i] != '\0'; i++){
if(i % 2 == 0){
switch (inputString[i]){
case '1':
... | 524 | memory_bytes | {'s_id': 's740648816', 'p_id': 'p01531', 'u_id': 'u219107515', 'date': '1351051459', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', 'code_size': '2931'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 char inputString[1100] = {};\n char answer[1100] = {};\n int i;\n int answerNumb... |
CDSS_237335 | CDSS | #include <stdio.h>
#include <string.h>
typedef struct dice
{
int front; /* the front side of the dice. */
int south; /* the south side of the dice. */
int east; /* the east side of the dice. */
int west; /* the west side of the dice. */
int north; /* the north side of the dice. */
int back; /* the back ... | 596 | memory_bytes | {'s_id': 's884596476', 'p_id': 'p02383', 'u_id': 'u982717767', 'date': '1431550257', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '1201'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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\ntypedef struct dice\n{\n\tint front;\t\t/* the front side of the dice. */\n\tint south;\t\t... |
CDSS_207056 | CDSS | #include<stdio.h>
#include<stdlib.h>
#define MAX 2000001
#define VMAX 10000
int main(){
unsigned short *A, *B;
int C[VMAX+1];
int n,j,i;
scanf("%d",&n);
A=malloc(sizeof(short)*n+1);
B=malloc(sizeof(short)*n+1);
for(i=0;i<=VMAX;i++) C[i]=0;
for(i=0;i<n;i++){
s... | 9,620 | memory_bytes | {'s_id': 's954226489', 'p_id': 'p02275', 'u_id': 'u847268197', 'date': '1545384758', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '230', 'memory': '9620', 'code_size': '613'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 MAX 2000001\n#define VMAX 10000\n\nint main(){\n unsigned short *A, *B;\n \n i... |
CDSS_682467 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#define BIG 2000000007
#define MOD 1000000007
typedef unsigned long long ull;
typedef signed long long sll;
#define N_MAX 100000
#define M_MAX 100000
typedef struct {
int a;
int b;
} hw;
const hw vector8[8] = {
{-1, -1},
{-1, ... | 128 | memory_bytes | {'s_id': 's037322154', 'p_id': 'p03577', 'u_id': 'u238041222', 'date': '1507510911', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '3006'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer 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#define BIG 2000000007\n \n#define MOD 1000000007\... |
CDSS_446098 | CDSS | #include<stdio.h>
#define N 200100
int i,n,a[N],b[N];
int main(){
scanf("%d",&n);
for(i=1;i<n;++i){
scanf("%d",&a[i]);
b[a[i]]++;
}
for(i=1;i<=n;++i){
printf("%d\n",b[i]);
}
return 0;
} | 3,284 | memory_bytes | {'s_id': 's379562741', 'p_id': 'p02707', 'u_id': 'u864393010', 'date': '1587345508', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '39', 'memory': '3284', 'code_size': '197'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 N 200100\nint i,n,a[N],b[N];\nint main(){\n\tscanf(\"%d\",&n);\n\tfor(i=1;i<n;++i){\n\t\tscanf(\"%d\",&a[i]... |
CDSS_273995 | CDSS | #include<stdio.h>
int main(){
int a,b;
scanf("%d %d",&a,&b);
if(a>b){
printf("a > b\n");
}else if(a<b){
printf("a < b\n");
}else if(a==b){
printf("a == b\n");
}
return 0;
}
| 2,056 | memory_bytes | {'s_id': 's613791734', 'p_id': 'p02391', 'u_id': 'u241925005', 'date': '1586757503', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2056', 'code_size': '225'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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;\n scanf(\"%d %d\",&a,&b);\n if(a>b){\n printf(\"a > b\\n\");\n }else if(a... |
CDSS_388996 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#define ll long long
#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<<62)-(1LL<<31))
#define max(p,q)((p)>(q)?(p):(q))
#define min(p,q)((p)<(q)?(p):(q))
#define bit(n,m)(((n)>>(m))&1)... | 1,732 | memory_bytes | {'s_id': 's738541014', 'p_id': 'p02603', 'u_id': 'u382163500', 'date': '1595725846', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '1732', 'code_size': '1107'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 ll long long\n#define rep(i,l,r)for(ll i=(l);... |
CDSS_518582 | CDSS | #include <stdio.h>
main(){
int i,n,m;
scanf("%d",&n);
for(i=1;i<10;i++){
if(n%i==0){
m=n/i;
if(0<m && m<10){
printf("Yes");
break;
}
}
}
if(i==10)
printf("No");
} | 128 | memory_bytes | {'s_id': 's159342906', 'p_id': 'p02880', 'u_id': 'u899589706', 'date': '1582839772', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '219'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 i,n,m;\n scanf(\"%d\",&n);\n for(i=1;i<10;i++){\n if(n%i==0){\n m=n/i;\n if(0<m &&... |
CDSS_167183 | CDSS | #include<stdio.h>
int main(void){
int n,flag,count,A;
int data[99];
count=0;
scanf("%d",&n);
int i,j;
for(i=0;i<n;i++){
scanf("%d",&data[i]);
}
flag=1;
while(flag){
flag=0;
for(j=n-1; j>=1;j--){
if(data[j]<data[j-1]){
A=data[j];
data[j]=data[j-1];
data[j-1]=A;
count++;
flag=1;
}
}
}
printf("%d",data[0]);
for(i=1; ... | 1,796 | memory_bytes | {'s_id': 's968482362', 'p_id': 'p02259', 'u_id': 'u648209196', 'date': '1510711344', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1796', 'code_size': '380'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n \nint main(void){\nint n,flag,count,A;\nint data[99];\ncount=0;\nscanf(\"%d\",&n);\nint i,j; \nfor(i=0;i<n;i++){... |
CDSS_614089 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
int main()
{
int a,b,c;
while(~scanf("%d",&a))
{
if(a==1)
{
printf("Hello World\n");
}
else
{
scanf("%d%d",&b,&c);
printf("%d\n",b+c);
}
}
... | 128 | memory_bytes | {'s_id': 's578072045', 'p_id': 'p03238', 'u_id': 'u816631826', 'date': '1576026037', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '331'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <math.h>\nint main()\n{\n int a,b,c;\n while(~scanf(\"%d\... |
CDSS_318014 | CDSS | #include<stdio.h>
#define PI 3.141592653589
int main (void){
int a,b,ans;
char op;
while(1){
scanf("%d %c %d",&a,&op,&b);
if(op == '?')break;
if(op == '+'){
ans = a+b;
}else if(op == '-'){
ans = a-b;
}else if(op == '*'){
ans = a*b;
}else if(op == '/'){
ans =a/b;
}
printf("%d\n",ans);
}
return 0... | 600 | memory_bytes | {'s_id': 's340698346', 'p_id': 'p02401', 'u_id': 'u122964852', 'date': '1434734285', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '323'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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.141592653589\n\nint main (void){\n\t\n\tint a,b,ans;\n\tchar op;\n\t\n\twhile(1){\n\tscanf(\"%d %c %d\... |
CDSS_558472 | CDSS | // AtCoder ABC131: D - Megalomania
// 2019.9.4 bal4u
#include <stdio.h>
typedef long long ll;
#if 1
#define gc() getchar_unlocked()
#else
#define gc() getchar()
#endif
int in() { // 非負整数の入力
int n = 0, c = gc();
do n = 10 * n + (c & 0xf); while ((c = gc()) >= '0');
return n;
}
ll t[200005]; int N;
void Qsort(... | 1,792 | memory_bytes | {'s_id': 's661727784', 'p_id': 'p02996', 'u_id': 'u759237395', 'date': '1567564682', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '26', 'memory': '1792', 'code_size': '905'} | [
{
"content": "Your task is to predict the memory 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 ABC131: D - Megalomania\n// 2019.9.4 bal4u\n\n#include <stdio.h>\n\ntypedef long long ll;\n\n#if 1\n#define gc() getchar_un... |
CDSS_572499 | CDSS | //AtCoder用
//プリプロセッサ系
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <math.h>
#include <stdlib.h>
#include <stdbool.h>
#define MOD 1000000007
#define INFTY 2147483646
#define DEBUG 1
#define END printf("\n");return 0;
#define QS09(how_data,data) qsort(data,how_data,sizeof(long),(int (*)(const void ... | 1,792 | memory_bytes | {'s_id': 's022536039', 'p_id': 'p03043', 'u_id': 'u926548116', 'date': '1558315531', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1792', 'code_size': '11511'} | [
{
"content": "Your task is to predict the memory 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用\n//プリプロセッサ系\n#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n#include <math.h>\n#include <stdlib.h>\n#include... |
CDSS_622318 | CDSS |
#pragma warning(disable:4996)
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <float.h>
#pragma region 定義
#define i_cin(X) scanf("%d", &X)
#define i_cin2(X,Y) scanf("%d %d",&X,&Y)
#define i_cin4(X,Y,Z,W) scanf("%d %d %d %d",&X,&Y,&Z,&W)
#define i_cin3(X,Y,Z) scanf("%d %d %d",&X,... | 128 | memory_bytes | {'s_id': 's933374920', 'p_id': 'p03265', 'u_id': 'u918599282', 'date': '1589900760', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '4245'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n\n#pragma warning(disable:4996)\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <math.h>\n#include <float.h>... |
CDSS_292119 | CDSS | main(){
int W,H,x,y,r;
scanf("%d%d%d%d%d",&W,&H,&x,&y,&r);
if(x-r>=0 && x+r<=W && y-r>=0 && y+r<=H){
printf("Yes\n");
}
else printf("No\n");
return 0;
} | 584 | memory_bytes | {'s_id': 's804399379', 'p_id': 'p02394', 'u_id': 'u505035465', 'date': '1503453036', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '584', 'code_size': '159'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nmain(){\nint W,H,x,y,r;\nscanf(\"%d%d%d%d%d\",&W,&H,&x,&y,&r);\n\nif(x-r>=0 && x+r<=W && y-r>=0 && y+r<=H){\nprintf(\"Yes\\n\");\n}\ne... |
CDSS_481917 | CDSS | #include <stdio.h>
#include <stdlib.h>
int main(void)
{
int N;
scanf("%d", &N);
printf("%d\n",(N+1)/2);
return (0);
}
| 128 | memory_bytes | {'s_id': 's727683892', 'p_id': 'p02759', 'u_id': 'u062865912', 'date': '1583114589', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '124'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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\t\tmain(void)\n{\n\tint N;\n\tscanf(\"%d\", &N);\n\tprintf(\"%d\\n\",(N+1)/2);\n\tretur... |
CDSS_614032 | CDSS | #include<stdio.h>
int main() {
int N;
int A;
int B;
scanf("%d", &N);
if(N == 1) {
printf("Hello World");
} else {
scanf("%d %d", &A,&B);
printf("%d", A+B);
}
}
| 128 | memory_bytes | {'s_id': 's560715632', 'p_id': 'p03238', 'u_id': 'u050978569', 'date': '1592254388', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '128', 'code_size': '189'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main() {\n int N;\n int A;\n int B;\n scanf(\"%d\", &N);\n if(N == 1) {\n printf(\"Hello World\");\n ... |
CDSS_406557 | CDSS | #include<stdio.h>
int main(void)
{
int a,b,c;
scanf("%d %d",&a,&b);
c=a*b;
printf("%d\n",c);
return 0;
} | 1,732 | memory_bytes | {'s_id': 's033607397', 'p_id': 'p02657', 'u_id': 'u249494515', 'date': '1592946812', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1732', 'code_size': '109'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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;\n\tscanf(\"%d %d\",&a,&b);\n\tc=a*b;\n\tprintf(\"%d\\n\",c);\n\treturn 0;\n}\nPredi... |
CDSS_20722 | CDSS | main(){
int X,Y;
for(X=1;X<10;X++){
for(Y=1;Y<10;Y++){
printf("%dx%d=%d\n",X,Y,X*Y);
}
}
return 0;
} | 0 | memory_bytes | {'s_id': 's795278902', 'p_id': 'p00000', 'u_id': 'u884495090', 'date': '1337951732', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '100'} | [
{
"content": "Your task is to predict the 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(){\nint X,Y;\nfor(X=1;X<10;X++){\nfor(Y=1;Y<10;Y++){\nprintf(\"%dx%d=%d\\n\",X,Y,X*Y);\n}\n}\nreturn 0;\n}\nPredict its memory fo... |
CDSS_551780 | CDSS | #include<stdio.h>
int f(int n)
{
int i = 0;
while (i * i < n)
i++;
if (i * i == n)
return 1;
return 0;
}
int main()
{
int n, d;
scanf("%d %d", &n, &d);
int i, j, k;
int x[20][20];
for (i = 0; i < n; i++)
for (j = 0; j < d; j++)
scanf("%d", &x[i][j]);
int ans = 0, p;
for (i = 0; i < n - 1; i++)
{
... | 128 | memory_bytes | {'s_id': 's191940511', 'p_id': 'p02982', 'u_id': 'u600300412', 'date': '1562548628', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '511'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 f(int n)\n{\n\tint i = 0;\n\twhile (i * i < n)\n\t\ti++;\n\tif (i * i == n)\n\t\treturn 1;\n\treturn 0;\n}\nint... |
CDSS_104782 | CDSS | #include <stdio.h>
int main(void)
{
int n;
int i;
int sum;
int mini;
int sec;
sum = 0;
for (i = 0; i < 4; i++){
scanf("%d", &n);
sum += n;
}
mini = sum / 60;
sec = sum % 60;
printf("%d\n%d\n", mini, sec);
return (0);
} | 1,772 | memory_bytes | {'s_id': 's292700828', 'p_id': 'p00477', 'u_id': 'u498436139', 'date': '1512204683', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1772', 'code_size': '243'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n\tint n;\n\tint i;\n\tint sum;\n\tint mini;\n\tint sec;\n\t\n\tsum = 0;\n\tfor (i = 0; i < 4;... |
CDSS_241303 | CDSS | #include <stdio.h>
#include <math.h>
int main(){
int x, a;
scanf("%d", &x);
a = pow(x, 3);
printf("%d\n", a);
return 0;
} | 632 | memory_bytes | {'s_id': 's993574209', 'p_id': 'p02388', 'u_id': 'u233030964', 'date': '1447374078', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '632', 'code_size': '127'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n\nint main(){\n\tint x, a;\n\tscanf(\"%d\", &x);\n\ta = pow(x, 3);\n\tprintf(\"%d\\n\", a);\n\t... |
CDSS_641513 | CDSS | #include<stdio.h>
int main()
{
int A,B;
scanf("%d%d",&A,&B);
if(A+B>=A-B&&A+B>=A*B)
printf("%d",A+B);
else if(A-B>=A+B&&A-B>=A*B)
printf("%d",A-B);
else if(A*B>=A+B&&A*B>=A-B)
printf("%d",A*B);
return 0;
}
| 128 | memory_bytes | {'s_id': 's768704548', 'p_id': 'p03337', 'u_id': 'u353919145', 'date': '1582342093', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '252'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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;\n scanf(\"%d%d\",&A,&B);\n if(A+B>=A-B&&A+B>=A*B)\n printf(\"%d\",A+B);\n ... |
CDSS_348050 | CDSS | #include <stdio.h>
int main(void) {
int a[4][3][10], n;
int i, j, k, l;
int b, f, r, v;
for(i = 0; i < 4; i++) {
for(j = 0; j < 3; j++) {
for(k = 0; k < 10; k++) {
a[i][j][k] = 0;
}
}
}
scanf("%d", &n);
for(l = 0; l < n; l++) {
scanf("%d %d %d %d", &b, &f, &r, &v);
a... | 600 | memory_bytes | {'s_id': 's604579565', 'p_id': 'p02409', 'u_id': 'u752101659', 'date': '1433405645', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '623'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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[4][3][10], n;\n int i, j, k, l;\n int b, f, r, v;\n for(i = 0; i < 4; i++) {\n ... |
CDSS_496308 | CDSS | #include <stdio.h>
int main()
{
int a,b;
scanf("%d %d",&a,&b);
if (a==b) {
puts("Yes");
}
else {
puts("No");
}
return 0;
}
| 1,624 | memory_bytes | {'s_id': 's925376932', 'p_id': 'p02789', 'u_id': 'u089230684', 'date': '1600192960', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1624', 'code_size': '182'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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;\n scanf(\"%d %d\",&a,&b);\n \n if (a==b) {\n puts(\"Yes\");\n ... |
CDSS_138308 | CDSS | #include<stdio.h>
#define N 1001
static const int INFTY = (1<<21);
int n, M[N][N];
int color[N], d[N], f[N], tt;
int Q[N*2], head, tail;
void init(){
head = tail = 1;
}
void enqueue(int x){
Q[tail++] = x;
}
int empty(){
return head == tail;
}
int dequeue(){
int x = Q[head++];
return x;
}
void bfs(int s)... | 2,112 | memory_bytes | {'s_id': 's147990592', 'p_id': 'p02239', 'u_id': 'u842782968', 'date': '1533447617', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '1014'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 N 1001\nstatic const int INFTY = (1<<21);\n\nint n, M[N][N];\nint color[N], d[N], f[N], tt;\nint Q[N*2], he... |
CDSS_471578 | CDSS | #include<stdio.h>
int main(){
int N,M;
scanf("%d %d", &N, &M);
int k = N + M;
int kC2 = (k*(k-1)) / 2;
int ans = kC2 - N*M;
printf("%d", ans);
return 0;
}
| 128 | memory_bytes | {'s_id': 's620107002', 'p_id': 'p02729', 'u_id': 'u225493896', 'date': '1587702352', '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(){\n\n int N,M;\n\n scanf(\"%d %d\", &N, &M);\n\n int k = N + M;\n int kC2 = (k*(k-1)) / 2;\... |
CDSS_224288 | CDSS | #include<stdio.h>
#include<string.h>
#define LEN 500001
#define NIL -1
int trance_command(char []);
void insert(int);
int find(int, int);
int minimum(int);
int successor(int);
void delete(int);
void print();
void inorder(int);
void preorder(int);
int P[LEN], L[LEN], R[LEN], Key[LEN];
int root=NIL;
int main()
{
... | 9,556 | memory_bytes | {'s_id': 's612211290', 'p_id': 'p02285', 'u_id': 'u970551499', 'date': '1535566372', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '240', 'memory': '9556', 'code_size': '2500'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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#define LEN 500001\n#define NIL -1\n \nint trance_command(char []);\nvoid insert(int);\nint fin... |
CDSS_423849 | CDSS | #include <stdio.h>
#include <string.h>
int main()
{
int N,K;
scanf("%d %d",&N,&K);
int a[100]={0};
for(int i=0;i<K;i++)
{
int d;
scanf("%d",&d);
for(int j=0;j<d;j++)
{
int tmp;
scanf("%d",&tmp);
a[tmp-1]++;
}
}
int ans=0;
for(int i=0;i<N;i++)
{
... | 1,732 | memory_bytes | {'s_id': 's004141707', 'p_id': 'p02688', 'u_id': 'u068872760', 'date': '1588554860', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '7', 'memory': '1732', 'code_size': '371'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\nint main()\n{\n int N,K;\n \n scanf(\"%d %d\",&N,&K);\n \n \n int a[100]={0};\n \n ... |
CDSS_258492 | CDSS | #include <stdio.h>
int a, b;
int main(void) {
scanf("%d %d", &a, &b);
printf("%d %d\n", a*b, 2*(a+b));
return 0;
}
| 2,056 | memory_bytes | {'s_id': 's408808008', 'p_id': 'p02389', 'u_id': 'u749884951', 'date': '1539342300', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2056', 'code_size': '122'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 a, b;\nint main(void) {\n scanf(\"%d %d\", &a, &b);\n printf(\"%d %d\\n\", a*b, 2*(a+b));\n return 0;\n}\... |
CDSS_379446 | CDSS | #include <stdio.h>
int main(){
int N, i, j;
long int sum=0;
scanf("%d", &N);
long int a[N], s[N];
for(i=0; i<N; i++) scanf("%ld", &a[i]);
s[0]=a[0];
for(i=1; i<N; i++) s[i]=s[i-1]+a[i];
for(i=0; i<N-1; i++) sum=(sum+a[i]*((s[N-1]-s[i])%1000000007))%1000000007;
printf("%ld", sum);
} | 4,848 | memory_bytes | {'s_id': 's981900727', 'p_id': 'p02572', 'u_id': 'u518492030', 'date': '1599054720', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '38', 'memory': '4848', 'code_size': '310'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n int N, i, j;\n long int sum=0;\n scanf(\"%d\", &N);\n long int a[N], s[N];\n for(i=0; i<... |
CDSS_216589 | CDSS | #include<stdio.h>
#define N 100000
typedef struct treeee
{
int p;
int l;
int r;
}tree;
tree T[N];
int n;
int depth(int i){
int count=0,iNoOya;
iNoOya=i;
while(1){
if(T[iNoOya].p==-1) break;
iNoOya=T[iNoOya].p;
count++;
}
return count;
}
void hantei(int i){
if(T[i].l==-1&&T[i].p!=-1)... | 1,784 | memory_bytes | {'s_id': 's483196915', 'p_id': 'p02279', 'u_id': 'u894751462', 'date': '1402857465', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '60', 'memory': '1784', 'code_size': '1199'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 N 100000\ntypedef struct treeee\n{\n int p;\n int l;\n int r;\n}tree;\ntree T[N];\nint n;\n\nint depth(i... |
CDSS_654041 | CDSS | #include<stdio.h>
struct red{
int x;
int y;
int flag;
};
struct blue{
int x;
int y;
};
void quicksortr(struct red data[],int left,int right);
void quicksortb(struct blue data[],int left,int right);
int main()
{
int n,i,j,k,ans=0;
struct red rp[100]={0,0,0};
struct blue bp[100]={0,0};
sca... | 128 | memory_bytes | {'s_id': 's720604150', 'p_id': 'p03409', 'u_id': 'u791173062', 'date': '1529216532', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '1593'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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\nstruct red{\n int x; \n int y;\n int flag;\n};\n\nstruct blue{\n int x; \n int y;\n};\n\nvoid qu... |
CDSS_202328 | CDSS | #include <stdio.h>
#define N 500001
#define SENTINEL 1000000005
int n,S[N]; // int ha 32bit system no tame 2*10no9jyou gurai
int cnt = 0;
// merge ha touchi. tumari ketugou.
void merge(int left, int mid, int right){
int n1 = mid - left;
int n2 = right - mid;
// banpei you ni 1tu yobun ni kakuho
int L[n1+1]... | 4,500 | memory_bytes | {'s_id': 's323533472', 'p_id': 'p02272', 'u_id': 'u751410502', 'date': '1458528301', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '160', 'memory': '4500', 'code_size': '1393'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 N 500001\n#define SENTINEL 1000000005\n\nint n,S[N]; // int ha 32bit system no tame 2*10no9jyou gurai\nint... |
CDSS_493446 | CDSS | #include<stdio.h>
int main()
{
int h,a;
scanf("%d%d",&h,&a);
if(h%a==0)
{
printf("%d\n",h/a);
}
else
{
printf("%d\n",(h/a)+1);
}
return 0;
}
| 128 | memory_bytes | {'s_id': 's093874238', 'p_id': 'p02783', 'u_id': 'u803304807', 'date': '1580252580', '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>\nint main()\n{\n int h,a;\n scanf(\"%d%d\",&h,&a);\n if(h%a==0)\n {\n printf(\"%d\\n\",h/a);\n ... |
CDSS_665221 | CDSS | #include <stdio.h>
int main(){
int n, a[101];
scanf("%d", &n);
for(int i=0;i<n;i++) scanf("%d", a+i);
for(int i=0; i<n; i++){
for(int j=n-1; j>i; j--){
if(a[j] > a[j-1]){
int t = a[j];
a[j] = a[j-1];
a[j-1] = t;
}
}
}
int t = 1;
for(int i=1; i<n; i++){
if(a[i] != a[i-1]){
... | 128 | memory_bytes | {'s_id': 's895510740', 'p_id': 'p03470', 'u_id': 'u792720861', 'date': '1585793065', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '371'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n int n, a[101];\n scanf(\"%d\", &n);\n for(int i=0;i<n;i++) scanf(\"%d\", a+i);\n\n for(int i=0... |
CDSS_24378 | CDSS | #include<stdio.h>
int main(void){
int f,j,a[10],i;
f=0;
j=0;
a[9]=0;
i=0;
for(f=0;f<10;f++){
scanf("%d",&a[f]);
}
for(f=0;f<9;f++)
{
for(j=f+1;j<10;j++)
{
if(a[f]<a[j])
{
i=a[f];
a[f]=a[j];
a[j]=i;
}
}
}
printf("%d\n%d\n%d\n",a[0],a[1],a[2]);
re... | 0 | memory_bytes | {'s_id': 's954993353', 'p_id': 'p00001', 'u_id': 'u047988051', 'date': '1306566752', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '329'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 f,j,a[10],i;\n f=0;\n j=0;\n a[9]=0;\n i=0;\n\n for(f=0;f<10;f++){\n scanf(\"%d\",&a... |
CDSS_104737 | CDSS | #include<stdio.h>
int main(void)
{
int time=0;
int i,m,s,a;
for( i=0 ; i<4 ; i++){
scanf("%d",&a);
time+=a;
}
m=time/60;
s=time%60;
printf("%d\n",m);
printf("%d\n",s);
return 0;
} | 596 | memory_bytes | {'s_id': 's574608022', 'p_id': 'p00477', 'u_id': 'u565812827', 'date': '1464250970', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '202'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\n\tint time=0;\n\tint i,m,s,a;\n\t\n\tfor( i=0 ; i<4 ; i++){\n\t\n\tscanf(\"%d\",&a);\n\t\n\ttime... |
CDSS_426071 | CDSS | #include <stdio.h>
int main(void) {
int k, a, b;
scanf("%d", &k);
scanf("%d%d", &a, &b);
int largest = (b / k) * k;
if (a <= largest) {
puts("OK");
} else {
puts("NG");
}
return 0;
}
| 2,096 | memory_bytes | {'s_id': 's762692457', 'p_id': 'p02693', 'u_id': 'u197218542', 'date': '1588791919', 'language': 'C', 'original_language': 'C (Clang 10.0.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '2096', 'code_size': '200'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 k, a, b;\n\t\n\tscanf(\"%d\", &k);\n\tscanf(\"%d%d\", &a, &b);\n\t\n\tint largest = (b /... |
CDSS_248882 | CDSS | #include <stdio.h>
#include <stdlib.h>
int main()
{
int a;
scanf("%d", &a);
printf("%d\n", a * a * a);
return 0;
}
| 2,128 | memory_bytes | {'s_id': 's242601840', 'p_id': 'p02388', 'u_id': 'u419229878', 'date': '1568803340', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2128', 'code_size': '122'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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\nint main() \n{\n\tint a;\n\tscanf(\"%d\", &a);\n\tprintf(\"%d\\n\", a * a * a);\n\treturn... |
CDSS_361022 | CDSS | #include <stdio.h>
int main()
{
int mat1[101][101];
int mat2[101][101];
double mat3[101][101];
int na,mb,lc;
int f,g,h;
scanf("%d %d %d", &na, &mb, &lc);
for(f=0; f<na; f++)
{
for(g=0; g<mb; g++){
scanf("%d", &mat1[f][g]);
}
}
for(f=0; f<mb; f++)
... | 2,088 | memory_bytes | {'s_id': 's817849560', 'p_id': 'p02414', 'u_id': 'u011621222', 'date': '1594199753', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2088', 'code_size': '834'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 mat1[101][101];\n\n int mat2[101][101];\n\n double mat3[101][101];\n\n int na,mb,l... |
CDSS_227495 | CDSS | #include <stdio.h>
#define N 100000
struct node{
int id;
int parent;
int left;
int right;
int flag[3];
};
void serP(struct node *,int);
int main(){
int h,i;
struct node T[N];
scanf("%d",&h);
for( i = 1 ; i <= h ; i++){
scanf("%d",&T[i].id);
}
serP(T,h);
//test
for( i = 1 ; i <= h ... | 2,052 | memory_bytes | {'s_id': 's998946769', 'p_id': 'p02287', 'u_id': 'u493912745', 'date': '1579161083', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2052', 'code_size': '944'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 N 100000\n\nstruct node{\n int id;\n int parent;\n int left;\n int right;\n int flag[3];\n};\n\nvoid ... |
CDSS_110357 | CDSS | #include <stdio.h>
#define GOAL 2019
int main(void){
int N, M, A;
int X[100];
int i;
scanf("%d", &N);
for(i = 0; i < N; i++){
scanf("%d", &X[i]);
}
scanf("%d", &M);
for(i = 0; i < M; i++){
scanf("%d", &A);
if(A != N){
if(X[A - 1] + 1 != X[A]){
X[A - 1]++;
}
}else{
if(X[A - 1] != GOAL... | 2,108 | memory_bytes | {'s_id': 's584703049', 'p_id': 'p00576', 'u_id': 'u729274656', 'date': '1576828106', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '419'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 GOAL 2019\n\nint main(void){\n\tint N, M, A;\n\tint X[100];\n\tint i;\n\t\n\tscanf(\"%d\", &N);\n\tfor(i... |
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 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#include<string.h>\n\nint main() {\n\t/*\n\tint n, m;\n\tscanf(\"%d%d\", &n, &m);\... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.