identifier string | space string | input string | target float64 | metric_type string | metadata string | messages list |
|---|---|---|---|---|---|---|
CDSS_696735 | CDSS | #include <stdio.h>
#include <string.h>
#define MAX 200000
int main(void) {
long long n, i, a[MAX], left=0, right=0, dif, min;
scanf("%lld", &n);
for(i=0; i<n; i++) {
scanf("%lld", &a[i]);
right += a[i];
}
left = a[0];
right -= a[0];
min = left>right ? left-right : right-left;... | 1,664 | memory_bytes | {'s_id': 's234360757', 'p_id': 'p03661', 'u_id': 'u768152935', 'date': '1528428119', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '23', 'memory': '1664', 'code_size': '528'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 MAX 200000\nint main(void) {\n long long n, i, a[MAX], left=0, right=0, dif, min;\... |
CDSS_132170 | CDSS | #include <stdio.h>
#include <stdlib.h>
#define N 10000000
int MCO(int *p, int n){
int i, l, k, j, m[101][101], q;
for(i = 1; i <= n; i++){
m[i][i] = 0;
}
for(l = 2; l <= n; l++){
for(i = 1; i <= n -l +1; i++){
j = i +l -1;
m[i][j] = N;
for(k = i; k
< j; k++){
q = m[i][k] + m[k... | 2,112 | memory_bytes | {'s_id': 's211872623', 'p_id': 'p02234', 'u_id': 'u748416624', 'date': '1580223278', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '590'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 N 10000000\n\nint MCO(int *p, int n){\n int i, l, k, j, m[101][101], q;\n\n for(i =... |
CDSS_412396 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<math.h>
int max(int a,int b){return a>b?a:b;}
int min(int a,int b){return a<b?a:b;}
int main(void)
{
long double a,b;
long c;
scanf("%llf %llf",&a,&b);
c=a*b;
printf("%ld",c);
} | 1,756 | memory_bytes | {'s_id': 's307489626', 'p_id': 'p02659', 'u_id': 'u248039185', 'date': '1590973939', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1756', 'code_size': '253'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 max(int a,int b){return a>b?a:b;}\nint min(int a,int ... |
CDSS_587263 | CDSS | #include<stdio.h>
#include<math.h>
#include <stdlib.h>
int main()
{
char a[10];
int i, max,len;
scanf("%s", a);
int count[10];
for(i=0;i<10;i++){
if(a[i]=='A' || a[i]=='G' || a[i]=='T' || a[i]=='C'){
count[i]=1;
} else {
count[i]=0;
}
}
for(i=1;i<10;i++){
if(count[i]!=... | 128 | memory_bytes | {'s_id': 's266179277', 'p_id': 'p03086', 'u_id': 'u749359783', 'date': '1553459250', '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 must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<math.h>\n#include <stdlib.h>\nint main()\n{\n char a[10];\n int i, max,len;\n\n scanf(\"%s\", a);\n ... |
CDSS_607744 | CDSS | #include<stdio.h>
int main(void){
int D;
scanf("%d",&D);
if(D==25){printf("Christmas\n");}
if(D==24){printf("Christmas Eve\n");}
if(D==23){printf("Christmas Eve Eve\n");}
if(D==22){printf("Christmas Eve Eve Eve\n");}
return 0;
}
| 128 | memory_bytes | {'s_id': 's843897661', 'p_id': 'p03206', 'u_id': 'u978313283', 'date': '1544321573', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '258'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void){\n int D;\n scanf(\"%d\",&D);\n if(D==25){printf(\"Christmas\\n\");}\n if(D==24){print... |
CDSS_193639 | CDSS | #include <stdio.h>
#include <stdlib.h>
int main(int argc, char** argv) {
int n;
int q;
int S[100000];
int left;
int right;
int mid;
int count = 0;
int key;
int i;
scanf("%d", &n);
for(i=0; i<n; i++){
scanf("%d", &S[i]);
}
scanf("%d", &q);
for(i=0; i... | 2,120 | memory_bytes | {'s_id': 's008854056', 'p_id': 'p02268', 'u_id': 'u291723281', 'date': '1530238353', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2120', 'code_size': '746'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\nint main(int argc, char** argv) {\n \n int n;\n int q;\n int S[100000];\n in... |
CDSS_95781 | CDSS | #include <stdio.h>
int main(void)
{
int f,c;
scanf("%d",&f);
c=(f-30)/2;
printf("%d\n",c);
return 0;
}
| 2,112 | memory_bytes | {'s_id': 's104570933', 'p_id': 'p00375', 'u_id': 'u287299930', 'date': '1587005535', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', '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>\n\nint main(void)\n{\n\tint f,c;\n\tscanf(\"%d\",&f);\n\tc=(f-30)/2;\n\tprintf(\"%d\\n\",c);\n\treturn 0;\n}\n\nPre... |
CDSS_129146 | CDSS | #include <stdio.h>
#define N 44
int fib(int);
int main(){
int n;
scanf("%d",&n);
n = fib(n);
printf("%d\n",n);
return 0;
}
int fib(n){
int F[N];
int i;
F[0] = 1;
F[1] = 1;
for(i=2;i<=n;i++){
F[i] = F[i-2] + F[i-1];
}
return F[n];
}
| 2,104 | memory_bytes | {'s_id': 's866602331', 'p_id': 'p02233', 'u_id': 'u046312182', 'date': '1531888728', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '267'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\n#define N 44\n\nint fib(int);\n\nint main(){\n int n;\n\n scanf(\"%d\",&n);\n n = fib(n);\n printf(\"%d\\n\"... |
CDSS_336565 | CDSS | #include <stdio.h>
int main(void){
int H,W,i,j;
while(1){
scanf("%d%d",&H,&W);
if(H == 0 && W == 0){
break;
}
else if(H % 2 == 0 && W % 2 == 0){
for(i = 1; i <= H / 2; i++){
for(j = 1; j <= W / 2; j++){
printf("#.");
}
printf("\n");
for(j = 1; j... | 2,032 | memory_bytes | {'s_id': 's507514637', 'p_id': 'p02405', 'u_id': 'u163468420', 'date': '1526210515', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2032', 'code_size': '1473'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 H,W,i,j;\n while(1){\n scanf(\"%d%d\",&H,&W);\n if(H == 0 && W == 0){\n break... |
CDSS_442577 | CDSS | #include <stdio.h>
int main(){
int n,m;
scanf("%d%d",&n,&m);
for(int i=0;i<m;i++){
int t;
scanf("%d",&t);
n-=t;
}
if(n<0)puts("-1");
else printf("%d",n);
} | 1,728 | memory_bytes | {'s_id': 's916316486', 'p_id': 'p02706', 'u_id': 'u382163500', 'date': '1592318703', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1728', 'code_size': '168'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n\tint n,m;\n\tscanf(\"%d%d\",&n,&m);\n\tfor(int i=0;i<m;i++){\n\t\tint t;\n\t\tscanf(\"%d\",&t);\n\... |
CDSS_84733 | CDSS | #include <stdio.h>
void strrev(char *in, char *out);
int main(void)
{
int i;
int a;
char in[100];
char out[100];
scanf("%d", &a);
while (a != -1){
i = 0;
if(a == 0){
printf("0\n");
}
else{
while (a != 0){
in[i] = a % 4 + '0';
a /= 4;
i++;
}
in[i] = '\0';
strrev(i... | 0 | memory_bytes | {'s_id': 's030786121', 'p_id': 'p00175', 'u_id': 'u032763525', 'date': '1314009160', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '589'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 strrev(char *in, char *out);\n\nint main(void)\n{\n\tint i;\n\tint a;\n\tchar in[100];\n\tchar out[100];\n\... |
CDSS_414094 | CDSS | #include<stdio.h>
int main(void){
int p;
scanf("%d",&p);
if(p%10==2||p%10==4||p%10==5||p%10==7||p%10==9){
printf("hon");
}else if(p%10==0||p%10==1||p%10==6||p%10==8){
printf("pon");
}else if(p%10==3){
printf("bon");
}
return 0;
} | 1,732 | memory_bytes | {'s_id': 's144686657', 'p_id': 'p02675', 'u_id': 'u874637321', 'date': '1595135162', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1732', 'code_size': '272'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n \nint main(void){\n int p;\n scanf(\"%d\",&p);\n if(p%10==2||p%10==4||p%10==5||p%10==7||p%10==9){\n pri... |
CDSS_109683 | CDSS | #include <stdio.h>
int main(void) {
int n,m,bib[128] = {0},swh,i,j;
scanf("%d%d",&n,&m);
for(i = 1;i <= n;i++){scanf("%d",&bib[i]);}
for(i = 1;i <= m;i++){
for(j = 1;j < n;j++){
if(bib[j] % i > bib[j+1] % i){
swh = bib[j];
bib[j] = bib[j+1];
bib[j+1] = swh;
}
}
}
for(i = 1;i <= n;i++){
pr... | 596 | memory_bytes | {'s_id': 's640223217', 'p_id': 'p00543', 'u_id': 'u444407884', 'date': '1477384844', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', '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(void) {\n\tint n,m,bib[128] = {0},swh,i,j;\n\tscanf(\"%d%d\",&n,&m);\n\tfor(i = 1;i <= n;i++){scanf(\"%... |
CDSS_111857 | CDSS | #include <stdio.h>
#include <string.h>
#include <math.h>
int main(void)
{
int table[9][2] = {{1, 1}, {2, 1}, {3, 1},
{1, 2}, {2, 2}, {3, 2},
{1, 3}, {2, 3}, {3, 3}};
int n;
char s[2], t[2], b[2];
int sx, sy, tx, ty, bx, by;
int x, y;
int room[5][5... | 2,080 | memory_bytes | {'s_id': 's710334270', 'p_id': 'p00606', 'u_id': 'u648926140', 'date': '1597392910', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2080', 'code_size': '3456'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n#include <math.h>\n\nint main(void)\n{\n int table[9][2] = {{1, 1}, {2, 1}, {3, 1}, \n ... |
CDSS_132369 | CDSS | #include <stdio.h>
#define INF 1000000000
void matrixChainMultiplication(int *);
int min(int,int);
int n;
int min(int a,int b){
if(a>b){
return b;
}
else{
return a;
}
}
void matrixChainOrder(int p[]){
int i,j,k,l,q;
int m[1000][1000];
for(i=1;i<=n;i++){
m[i][i]=0;
... | 2,096 | memory_bytes | {'s_id': 's243146724', 'p_id': 'p02234', 'u_id': 'u615819161', 'date': '1548640708', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2096', 'code_size': '774'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#define INF 1000000000\nvoid matrixChainMultiplication(int *);\nint min(int,int);\nint n;\nint min(int a,int b){\n... |
CDSS_515924 | CDSS | #include <stdio.h>
#include <math.h>
int main()
{int t,i,j;
double a[12],b[12],s=0;
scanf("%d",&t);
for(i=0;i<t;i++)
{
scanf("%lf%lf",&a[i],&b[i]);
}
for(i=0;i<t-1;i++)
for(j=i+1;j<t;j++)
s+=sqrt((a[i]-a[j])*(a[i]-a[j])+(b[i]-b[j])*(b[i]-b[j]));
printf("%.10lf\n",2*s/t);
... | 128 | memory_bytes | {'s_id': 's916167017', 'p_id': 'p02861', 'u_id': 'u308697166', 'date': '1574043442', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '324'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\nint main()\n{int t,i,j;\ndouble a[12],b[12],s=0;\n\tscanf(\"%d\",&t);\n\t \tfor(i=0;i<t;i++)\n... |
CDSS_190836 | CDSS | #include <stdio.h>
#define N 10001
int linearserach(int*,int,int);
int main(){
int i,n,S[N],q,t,sum=0;
scanf("%d",&n);
for(i=0;i<n;i++)
scanf("%d",&S[i]);
scanf("%d",&q);
for(i=0;i<q;i++){
scanf("%d",&t);
if(linearserach(S,n,t))sum++;
}
printf("%d\n",sum);
return 0;
}
int linearserach(in... | 2,048 | memory_bytes | {'s_id': 's849709750', 'p_id': 'p02267', 'u_id': 'u754549479', 'date': '1576559739', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2048', 'code_size': '432'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 10001\nint linearserach(int*,int,int);\n\nint main(){\n int i,n,S[N],q,t,sum=0;\n\n scanf(\"%d\",&n);\... |
CDSS_87318 | CDSS | #include <stdio.h>
int main(void)
{
int l, m, n, c;
int trip;
int i;
while (scanf("%d", &l), l != 0){
trip = c = 0;
for (i = 0; i < 12; i++){
scanf("%d %d", &m, &n);
trip += m - n;
if (trip >= l && c == 0){
c = i + 1;
}
}
if (c == 0){
printf("NA\n");
}
else {
printf("%d\n", c);
... | 612 | memory_bytes | {'s_id': 's503316814', 'p_id': 'p00206', 'u_id': 'u192770095', 'date': '1459390420', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '612', 'code_size': '341'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 l, m, n, c;\n\tint trip;\n\tint i;\n\t\n\twhile (scanf(\"%d\", &l), l != 0){\n\t\ttrip ... |
CDSS_742641 | CDSS | #include <stdio.h>
#include <string.h>
int main(void)
{
enum { S = 11 };
char s[S];
char ans[S];
scanf("%s", s);
for (size_t i = 0, j = 0, l = strlen(s); i < l; ++i) {
switch (s[i]) {
case 'B':
if (j != 0) {
--j;
}
... | 128 | memory_bytes | {'s_id': 's947041689', 'p_id': 'p04030', 'u_id': 'u627778494', 'date': '1523214645', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '574'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\nint main(void)\n{\n enum { S = 11 };\n char s[S];\n char ans[S];\n scanf(\"%s\"... |
CDSS_125662 | CDSS | /*
AOJ 2400
Your Are the Judge
2015/7/14
*/
#include<stdio.h>
#define TEAM_MAX 51
struct team
{
int correct, penalty, tid;
int wrong_prob[11];
};
int team_num, prob_num, log_num;
void sort(struct team *table)
{
int i, j;
struct team tmp;
for(i = 1; i <= team_num; i++)
{
for(j = team_nu... | 608 | memory_bytes | {'s_id': 's275701764', 'p_id': 'p01514', 'u_id': 'u578475619', 'date': '1442882473', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '608', 'code_size': '2184'} | [
{
"content": "Your task is to predict the memory 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 AOJ 2400\n Your Are the Judge\n 2015/7/14\n*/\n\n#include<stdio.h>\n#define TEAM_MAX 51\n\nstruct team\n{\n int correct, p... |
CDSS_619259 | CDSS | #include<string.h>
#include<stdio.h>
char str1[200001],str2[200001];
int main(){
int len,i,j;
int alphabets[26],checkcount = 0,error = 0;
for(i = 0;i < 26;i++){
alphabets[i] = -1;
}
scanf("%s",str1);
scanf("%s",str2);
len = strlen(str1);
for(i = 0;i < len;i++){
if(alphabets[str1[i] - 'a'] == -1){
alphabets[str1[i] - ... | 512 | memory_bytes | {'s_id': 's937617765', 'p_id': 'p03252', 'u_id': 'u209927535', 'date': '1538250527', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '512', 'code_size': '620'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<string.h>\n#include<stdio.h>\n\nchar str1[200001],str2[200001];\nint main(){\nint len,i,j;\nint alphabets[26],checkcount = 0,... |
CDSS_22431 | CDSS | #include<stdio.h>
int main (void){
int i,j,d,n[10],max,full[3];
for(i=0;i<10;i++){
scanf("%d",&n[i]);
}
for(i=0;i<3;i++){
max = 0;
for(j=0;j<10;j++){
if(max<n[j]){
max = n[j];
full[i] = n[j];
d = j;
}
}
... | 600 | memory_bytes | {'s_id': 's335502114', 'p_id': 'p00001', 'u_id': 'u158083086', 'date': '1423808253', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '411'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main (void){\n int i,j,d,n[10],max,full[3];\n for(i=0;i<10;i++){\n scanf(\"%d\",&n[i]);\n }\n ... |
CDSS_370867 | CDSS | #include<stdio.h>
#include<string.h>
int main()
{
int i,leng,m,h;
char ch[250],a[250];
while(1)
{
scanf("%s",ch);
if(ch[0]=='-') break;
leng=strlen(ch);
scanf("%d",&m);
while(m--){
scanf("%d",&h);
for(i=0;i<leng;i++){
a[i]=ch[i];
}
for(i=h;i<leng;i++){
ch[i-h]=ch... | 2,056 | memory_bytes | {'s_id': 's021861434', 'p_id': 'p02420', 'u_id': 'u893058769', 'date': '1532597203', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2056', 'code_size': '433'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\nint main()\n{\n int i,leng,m,h;\n char ch[250],a[250];\n\n while(1)\n { \n scanf(\"%s\",... |
CDSS_257869 | CDSS | #include<stdio.h>
int main(void){
int a,b;
scanf("%d %d",&a,&b);
printf("%d %d\n",a*b,2*(a+b));
return 0;
}
| 2,088 | memory_bytes | {'s_id': 's473845539', 'p_id': 'p02389', 'u_id': 'u661435580', 'date': '1584424470', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2088', '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>\nint main(void){\n int a,b;\n scanf(\"%d %d\",&a,&b);\n printf(\"%d %d\\n\",a*b,2*(a+b));\n return 0;\n}... |
CDSS_169209 | CDSS | #include<stdio.h>
int main()
{
int i,j,flag,tmp,count=0,N,A[100];
scanf("%d",&N);
for(i=0;i<N && N<=100 && N>=1;i++)
{
scanf("%d",&A[i]);
}
flag=1;
while(flag!=0)
{
flag=0;
for(j=N-1;j>=1;j--)
{
if(A[j]<A[j-1])
{
tmp=A[j];
A[j]=A[j-1];
A[j-1]=tmp;
flag=1;
count... | 2,144 | memory_bytes | {'s_id': 's072622924', 'p_id': 'p02259', 'u_id': 'u588072005', 'date': '1544160595', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2144', 'code_size': '484'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n int i,j,flag,tmp,count=0,N,A[100];\n scanf(\"%d\",&N);\n for(i=0;i<N && N<=100 && N>=1;i++)\n ... |
CDSS_19825 | CDSS | #include<stdio.h>
int main()
{
for (int i = 1; i <= 9;i++)
for (int j = 1; j <= 9; j++){
printf("%dx%d=%d\n", i, j, i*j);
}
return 0;
} | 1,780 | memory_bytes | {'s_id': 's870432389', 'p_id': 'p00000', 'u_id': 'u011621222', 'date': '1513302891', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1780', 'code_size': '141'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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\tfor (int i = 1; i <= 9;i++)\n\tfor (int j = 1; j <= 9; j++){\n\t\tprintf(\"%dx%d=%d\\n\", i, j, i*... |
CDSS_85977 | CDSS | #include<stdio.h>
#include<stdlib.h>
int m,n;
void makeboard(int **board,int x,int y,int rank);
int countboard(int **board,int x,int y,int rank);
int main(void){
int s,t;
int i,j,k,count=0,counts;
int place[10][2];
int **board,**copyboard;
while(scanf("%d",&m) && m!=0){
count=0;
scanf("%d",&n);
... | 0 | memory_bytes | {'s_id': 's471389141', 'p_id': 'p00193', 'u_id': 'u703949805', 'date': '1311962149', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '70', 'memory': '0', 'code_size': '1932'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 m,n;\n\nvoid makeboard(int **board,int x,int y,int rank);\nint countboard(int **board,int... |
CDSS_237120 | CDSS | #include <stdio.h>
#include <math.h>
int main(void)
{
int n;
int i;
double x[1000], y[1000];
double d1 = 0, d2 = 0, d3 = 0, dm = 0;
double b1 = 0, b2 = 0;
double max = 0;
double box = 0;
scanf("%d", &n);
for (i = 0; i < n; i++) {
scanf("%lf", &x[i]);
}
for (i = 0; i < n; i++) {
scanf("%lf", &y[i]);
... | 2,104 | memory_bytes | {'s_id': 's585660591', 'p_id': 'p02382', 'u_id': 'u617677485', 'date': '1545211029', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '883'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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\nint main(void)\n{\n\tint n;\n\tint i;\n\tdouble x[1000], y[1000];\n\tdouble d1 = 0, d2 = 0,... |
CDSS_80970 | CDSS | #include <stdio.h>
#include <math.h>
int main(){
int i,ban,n,s,kei;
scanf("%d",&n);
for(ban=1;ban<=n;ban++){
scanf("%d",&s);
printf("Case %d:\n",ban);
for(i=1;i<=10;i++){
s = s*s;
s=s/100;
if(s>10000){
s=s%10000;
}
... | 592 | memory_bytes | {'s_id': 's953741883', 'p_id': 'p00137', 'u_id': 'u724424933', 'date': '1354049069', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', '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#include <math.h>\nint main(){\n int i,ban,n,s,kei;\n scanf(\"%d\",&n);\n for(ban=1;ban<=n;ban++){\n ... |
CDSS_408338 | CDSS | #include <stdio.h>
int main ()
{
int n,i;
scanf("%d",&n);
long long int a[n+3];
for(i=0; i<n; i++)
scanf("%lld",&a[i]);
int zero =0;
for(i=0; i<n; i++)
if(a[i]==0)
zero ++;
if(zero >0)
{
printf("0\n");
return 0;
}
long long prod =1;... | 2,512 | memory_bytes | {'s_id': 's968628127', 'p_id': 'p02658', 'u_id': 'u956253216', 'date': '1592344966', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '33', 'memory': '2512', 'code_size': '561'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main ()\n{\n int n,i;\n scanf(\"%d\",&n);\n long long int a[n+3];\n for(i=0; i<n; i++)\n sc... |
CDSS_603928 | CDSS | #include <stdio.h>
#include <math.h>
#include <string.h>
#include <stdlib.h>
#define REP(i,n) for(i=0;i<(int)(n);++i)
#define SIZE 3010//文字列の長さの最大値
int i,j;//for文の添字
int max(int a,int b){//a,bのうち大きい方を返す
if(a>b)return a;
else return b;
}
//変数の初期化
char s1[SIZE],s2[SIZE];
int ls1=0,ls2=0;
int dp[SIZE][SIZE];
char... | 35,456 | memory_bytes | {'s_id': 's091363384', 'p_id': 'p03165', 'u_id': 'u030685402', 'date': '1559561103', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '45', 'memory': '35456', 'code_size': '1297'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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#include <string.h>\n#include <stdlib.h>\n#define REP(i,n) for(i=0;i<(int)(n);++i)\n#define SIZ... |
CDSS_149993 | CDSS | #include<stdio.h>
/* 配列の要素を順番に出力 */
void trace(int A[], int N) {
int i;
for ( i = 0; i < N; i++) {
if ( i > 0 ) printf(" "); //隣接する要素の間に1つの空白を出力
printf("%d", A[i]);
}
printf("\n");
}
/* 挿入ソート(0オリジン配列)*/
void insertionSort(int A[], int N) {
int j, i, v;
for ( i = 1; i < N; i++ )... | 2,104 | memory_bytes | {'s_id': 's452654278', 'p_id': 'p02255', 'u_id': 'u051927633', 'date': '1549655940', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '767'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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/* 配列の要素を順番に出力 */\nvoid trace(int A[], int N) {\n int i;\n for ( i = 0; i < N; i++) {\n if ( i > 0 )... |
CDSS_546803 | CDSS | #include<stdio.h>
int main()
{
int a,b,c,d;
scanf("%d",&a);
d=a*a*3;
printf("%d\n",d);
}
| 128 | memory_bytes | {'s_id': 's050712807', 'p_id': 'p02969', 'u_id': 'u816631826', 'date': '1571474363', '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 must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n\n int a,b,c,d;\n scanf(\"%d\",&a);\n d=a*a*3;\n \n printf(\"%d\\n\",d);\n \n ... |
CDSS_704762 | CDSS | #include <stdio.h>
int main(void){
int x,y;
int ga[] = {1,3,5,7,8,10,12};
int gb[] = {4,6,9,11};
int flag_a = 0,flag_b = 0;
scanf("%d%d",&x,&y);
for(int i = 0; i < 7; i++){
if(ga[i] == x || ga[i] == y){
flag_a += 1;
}
}
for(int i = 0; i < 4; i+... | 128 | memory_bytes | {'s_id': 's522032672', 'p_id': 'p03711', 'u_id': 'u154818015', 'date': '1589916767', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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\nint main(void){\n int x,y;\n int ga[] = {1,3,5,7,8,10,12};\n int gb[] = {4,6,9,11};\n int flag_a = 0... |
CDSS_61882 | CDSS | #include<stdio.h>
#define N 1000
int main(void){
int i,num,j,k;
char m[9][9],hoge,ans[N];
int c,sf=1;
for(i=0;;i++){
ans[i]=0;
for(j=0;j<8;j++){
for(k=0;k<8;k++)
c=scanf("%c",&m[j][k]);
if(c!=1){
sf=0;
break;
}
scanf("%c",&hoge);
}
if(sf==0)
... | 0 | memory_bytes | {'s_id': 's916709658', 'p_id': 'p00036', 'u_id': 'u846661244', 'date': '1322875953', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '1606'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 1000\n\nint main(void){\n int i,num,j,k;\n char m[9][9],hoge,ans[N];\n int c,sf=1;\n\n for(i=0;;i++){... |
CDSS_463324 | CDSS | #include <stdio.h>
int main (int argc, char *argv[]) {
int a;
int b;
int c;
int temp;
scanf("%d %d %d", &a, &b, &c);
temp = a;
a = b;
b = temp;
temp = a;
a = c;
c = temp;
printf("%d %d %d", a, b, c);
return 0;
} | 128 | memory_bytes | {'s_id': 's362249244', 'p_id': 'p02717', 'u_id': 'u074603368', 'date': '1586053376', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '272'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main (int argc, char *argv[]) {\n int a;\n int b;\n int c;\n int temp;\n\n scanf(\"%d %d %d\"... |
CDSS_720872 | CDSS | /*
A - ABC/ARC
<http://abc053.contest.atcoder.jp/tasks/abc053_a>
*/
int main(int argc, char const *argv[]) {
int x;
scanf("%d", &x);
if( x < 1200 ){
printf("ABC\n");
}else{
printf("ARC\n");
}
return 0;
}
| 128 | memory_bytes | {'s_id': 's849277751', 'p_id': 'p03813', 'u_id': 'u809235356', 'date': '1492564779', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '233'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n/*\n A - ABC/ARC\n <http://abc053.contest.atcoder.jp/tasks/abc053_a>\n*/\n\nint main(int argc, char const *argv[]) {\n\n int x;\n\n... |
CDSS_740190 | CDSS | #include <stdio.h>
typedef long long ll;
ll n, a;
ll x[55];
ll dp[55][55][55 * 55];
ll solve(ll sum, ll card, ll i);
int main()
{
scanf("%lld %lld", &n, &a);
for (ll i = 0; i < n; i++) {
scanf("%lld", &x[i]);
}
for (ll i = 0; i < 55; i++) {
for (ll j = 0; j < 55; j++) {
for (ll k = 0; k < 55 * 55; k++) {
... | 71,680 | memory_bytes | {'s_id': 's150553845', 'p_id': 'p04015', 'u_id': 'u683588090', 'date': '1554840234', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '29', 'memory': '71680', 'code_size': '729'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\ntypedef long long ll;\n\nll n, a;\nll x[55];\nll dp[55][55][55 * 55];\nll solve(ll sum, ll card, ll i);\n\nint mai... |
CDSS_717757 | CDSS | #include <stdio.h>
int main(void)
{
int i, N;
unsigned long long int power = 1;
scanf("%d", &N);
for(i = 1; i <= N; i++){
power *= i;
power = power % (1000000000+7);
}
printf("%llu\n", power);
return 0;
}
| 128 | memory_bytes | {'s_id': 's354396860', 'p_id': 'p03796', 'u_id': 'u274523003', 'date': '1487470731', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '223'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 i, N;\n\tunsigned long long int power = 1;\n\t\n\tscanf(\"%d\", &N);\n\t\n\tfor(i = 1; ... |
CDSS_471996 | CDSS | #include <stdio.h>
int main(void){
int n,m;
scanf("%d %d",&n,&m);
printf("%d",(m*(m-1)+n*(n-1))/2);
return 0;
} | 128 | memory_bytes | {'s_id': 's390221171', 'p_id': 'p02729', 'u_id': 'u734195782', 'date': '1584926412', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '128'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n int n,m;\n scanf(\"%d %d\",&n,&m);\n printf(\"%d\",(m*(m-1)+n*(n-1))/2);\n return ... |
CDSS_71150 | CDSS | #include<stdio.h>
#include<math.h>
#define dis(a,b) (a)*(a)+(b)*(b)
int main(){
double x[3],y[3],a,b,c,sum=0.0;
scanf("%lf,%lf%lf,%lf%lf,%lf",&x[0],&y[0],&x[1],&y[1],&x[2],&y[2]);
a=dis(x[0]-x[1],y[0]-y[1]);
do{
b=dis(x[1]-x[2],y[1]-y[2]);
c=dis(x[2]-x[0],y[2]-y[0]);
sum+=sqrt((a*b+b*c+c*a)*2-a*a-b*... | 0 | memory_bytes | {'s_id': 's777287077', 'p_id': 'p00079', 'u_id': 'u361407785', 'date': '1306757130', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '449'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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#define dis(a,b) (a)*(a)+(b)*(b)\nint main(){\n double x[3],y[3],a,b,c,sum=0.0;\n scanf(\"%lf,%... |
CDSS_179164 | CDSS | #include<stdio.h>
#include<stdlib.h>
int top,S[1000];
void push(int x){
S[++top]=x;
}
int pop(){
top--;
return S[top+1];
}
int main(){
int a,b;
top=0;
char s[100];
while(scanf("%s",s)!=EOF){
if(s[0]=='+'){
a=pop();
b=pop();
push(a+b);
}else if(s[0]=='-'){
b=pop();
a=pop();
push(a-b);
}e... | 2,144 | memory_bytes | {'s_id': 's190963741', 'p_id': 'p02263', 'u_id': 'u440761437', 'date': '1529906847', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2144', 'code_size': '447'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 top,S[1000];\n\nvoid push(int x){\n\tS[++top]=x;\n}\nint pop(){\n\ttop--;\n\treturn S[top... |
CDSS_416750 | CDSS | /* ex4_2
kohei_suzuki */
#include <stdio.h>
#include <stdlib.h>
#define _USE_MATH_DEFINES
#include <math.h>
int main(void){
double short_hand, long_hand, hour, min;//短針,長針,時間,分
double angle, ans;//角度,答え
scanf("%lf %lf %lf %lf",&short_hand, &long_hand, &hour, &min);//入力受取
angle = fabs(hour*30.0 + m... | 2,580 | memory_bytes | {'s_id': 's601206417', 'p_id': 'p02677', 'u_id': 'u141521528', 'date': '1590689069', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '2580', 'code_size': '601'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n/* ex4_2\n kohei_suzuki */\n\n#include <stdio.h>\n#include <stdlib.h>\n#define _USE_MATH_DEFINES\n#include <math.h>\n\nint main(void... |
CDSS_685475 | CDSS | #include <stdio.h>
#include <math.h>
int main(){
int n, sum = 0;
scanf("%d", &n);
int a[n], b[n];
for (int i = 0; i < n; i++){
scanf("%d%d", &a[i], &b[i]);
sum += abs(b[i]-a[i])+1;
}
printf("%d\n", sum);
return 0;
}
| 128 | memory_bytes | {'s_id': 's862363919', 'p_id': 'p03606', 'u_id': 'u109867600', 'date': '1575724608', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '236'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n\nint main(){\n\n\tint n, sum = 0;\n\t\n\tscanf(\"%d\", &n);\n\t\n\tint a[n], b[n];\n\t\n\tfor ... |
CDSS_451138 | CDSS | #include <stdio.h>
#include <stdlib.h>
int main(void){
char N[3];
for(int i=0;i<3;i++){
scanf("%c",&N[i]);
}
printf("\n");
for(int i=0;i<3;i++){
if(N[i] =='7'){
printf("Yes");
return 0;
}
}
printf("No");
return 0;
}
| 1,664 | memory_bytes | {'s_id': 's294229136', 'p_id': 'p02711', 'u_id': 'u518087575', 'date': '1586740046', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1664', 'code_size': '241'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\nint main(void){\n\tchar N[3];\n\tfor(int i=0;i<3;i++){\n\t\tscanf(\"%c\",&N[i]);\n\t}\n\tpr... |
CDSS_521642 | CDSS | #include <stdio.h>
int main(int argc,char *argv[]){
int N,i,j=0;
int a[50];
scanf("%d",&N);
if(N<2||N>50){ return -1;}
i=N;
while(i>0){
scanf("%d",&a[j]);
j++;
i--;
}
j=0;
int k=0;
int max=0;
for(k=0;k<N;k++){
for(j=k+1;j<N;j++){
max += a[k]*a[j];
}
}
printf("%d",... | 128 | memory_bytes | {'s_id': 's260303127', 'p_id': 'p02886', 'u_id': 'u387720785', 'date': '1571860406', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '128', 'code_size': '342'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(int argc,char *argv[]){\n \tint N,i,j=0;\n \tint a[50];\n scanf(\"%d\",&N);\n if(N<2||N>50){ return ... |
CDSS_468431 | CDSS | #include <stdio.h>
int main(int argc, char const *argv[]) {
char str[8];
scanf("%s", str);
if (str[2] == str[3] && str[4] == str[5]) {
printf("Yes\n");
}else{
printf("No\n");
}
return 0;
}
| 128 | memory_bytes | {'s_id': 's981024179', 'p_id': 'p02723', 'u_id': 'u912952979', 'date': '1586387657', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '212'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 char str[8];\n scanf(\"%s\", str);\n\n if (str[2] == str[3] && s... |
CDSS_301951 | CDSS | #include <stdio.h>
int main(void)
{
int i,x,y;
i=0;
while(i<3000)
{
i++;
scanf("%d %d",&x,&y);
(((x>0)&&(x<10000))&&((y>=0)&&(y<=10000)));
if((x==0)&&(y==0))break;
if(x<=y)
{
printf("%d %d\n",x,y);
}
else
{
printf("%d %d\n",y,x);
}
}
return 0;
} | 600 | memory_bytes | {'s_id': 's299104527', 'p_id': 'p02397', 'u_id': 'u606900602', 'date': '1499929659', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '283'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 i,x,y;\n\ti=0;\n\twhile(i<3000)\n\t{\n\t\ti++;\n\t\tscanf(\"%d %d\",&x,&y);\n\t\t(((x>0... |
CDSS_687830 | CDSS | #include<stdio.h>
#include<stdlib.h>
int compare_int(const void *a, const void *b)
{
return *(int*)b - *(int*)a;
}
int main() {
int n, i;
int a[100010];
int num[100010] = {};
scanf("%d", &n);
for (i = 0; i < n; i++) {
scanf("%d", &a[i]);
num[a[i]] += 1;
}
int num_3[100010];
for (i = 0; i <... | 1,660 | memory_bytes | {'s_id': 's257021871', 'p_id': 'p03613', 'u_id': 'u429843511', 'date': '1504400950', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '19', 'memory': '1660', 'code_size': '475'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n\nint compare_int(const void *a, const void *b)\n{\n return *(int*)b - *(int*)a;\n}\n\nint m... |
CDSS_374538 | CDSS | #include <stdio.h>
#include <string.h>
int main(void){
// Your code here!
char str[1010];
scanf("%s",str);
int l;
l=strlen(str);
if(str[l-1]=='s') {strcat(str,"es");}
else strcat(str,"s");
printf("%s\n",str);
return 0;
}
| 1,616 | memory_bytes | {'s_id': 's391006357', 'p_id': 'p02546', 'u_id': 'u385649291', 'date': '1600625432', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1616', 'code_size': '257'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\nint main(void){\n // Your code here!\n char str[1010];\n scanf(\"%s\",str);\n int... |
CDSS_419638 | CDSS | /// ****** Property of vipulks ****** \
#include <stdio.h>
#include <limits.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#define ll long long
int main(){
ll n,i,j,k,q;
//scanf("%lld",&t);
q=1;
char s[50],t[50];
bool ok=true;
while(q--){
//scanf("%lld",&n);
scanf("\n%s\n... | 1,660 | memory_bytes | {'s_id': 's012939463', 'p_id': 'p02681', 'u_id': 'u126866086', 'date': '1589159388', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1660', 'code_size': '608'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n/// ****** Property of vipulks ****** \\\n\n#include <stdio.h>\n#include <limits.h>\n#include <stdbool.h>\n#include <stdlib.h>\n#inclu... |
CDSS_155201 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <math.h>
int check(int n){
int i;
if(n == 2) return 1;
if(n < 2 || n % 2 == 0) return 0;
for(i = 3; i <= sqrt((double)n); i += 2){
if(n % i == 0) return 0;
}
return 1;
}
int main(){
int n, i;
int *a;
int prime = 0;
scanf("%d", &n);
a = (int*)malloc(sizeof(... | 628 | memory_bytes | {'s_id': 's064818015', 'p_id': 'p02257', 'u_id': 'u696108793', 'date': '1457165363', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '628', 'code_size': '442'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <math.h>\n\nint check(int n){\n\tint i;\n\tif(n == 2) return 1;\n\tif(n < 2 || n % 2... |
CDSS_486808 | CDSS | #include <stdio.h>
void readInt(int *x) {
scanf("%d", x);
return;
}
void readInts(int n, int arr[]) {
int i;
for (i=0;i<n;i++) {
readInt(&arr[i]);
}
}
void readChar(char *x) {
scanf("%c", x);
return;
}
void readChars(int n, char x[]) {
scanf("%s", x);
return;
}
void printInts(int n, int *arr) {
int i;
for... | 128 | memory_bytes | {'s_id': 's276880849', 'p_id': 'p02771', 'u_id': 'u509739538', 'date': '1589677637', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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#include <stdio.h>\n\nvoid readInt(int *x) {\n\tscanf(\"%d\", x);\n\treturn;\n}\nvoid readInts(int n, int arr[]) {\n\tint i;\n\tfor (i... |
CDSS_584943 | CDSS | #include <stdio.h>
int main (void)
{
/* variables for main process */
char A, B, C;
/* support variables for main process */
int retval_scanf;
// STEP.01
// read out the given integers
retval_scanf = scanf("%d %d %d", &A, &B, &C);
// STEP.02
// determine if there exists an equila... | 128 | memory_bytes | {'s_id': 's694114309', 'p_id': 'p03079', 'u_id': 'u484703930', 'date': '1554062967', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '519'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 /* variables for main process */\n char A, B, C;\n\n /* support variables for main... |
CDSS_390819 | CDSS | #include <stdio.h>
int main(void)
{
unsigned int n;
scanf("%d", &n);
printf("%u\n", n % 1000 == 0? n % 1000: 1000-(n %1000));
return 0;
} | 1,736 | memory_bytes | {'s_id': 's571464406', 'p_id': 'p02612', 'u_id': 'u041692779', 'date': '1596778006', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1736', 'code_size': '142'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n\tunsigned int n;\n\tscanf(\"%d\", &n);\n\tprintf(\"%u\\n\", n % 1000 == 0? n % 1000: 1000-(n... |
CDSS_663732 | CDSS | #include <stdio.h>
#include <stdlib.h>
int main()
{
int i, n, time;
int flag = 0;
scanf("%d", &n);
int t[n], x[n], y[n];
int mem=0, xma=0, yma=0;
for(i=0; i<n; i++)
{
scanf("%d %d %d", &t[i], &x[i], &y[i]);
}
mem = x[0] + y[0];
if(mem > t[0])
{
flag = 1;
... | 1,280 | memory_bytes | {'s_id': 's042767110', 'p_id': 'p03457', 'u_id': 'u403069529', 'date': '1568325504', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '23', 'memory': '1280', 'code_size': '889'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\nint main()\n{\n int i, n, time;\n int flag = 0;\n scanf(\"%d\", &n);\n\n int t[... |
CDSS_680007 | CDSS | #include <stdio.h>
int main (){
int R,G;
int peformance;
scanf("%d",&R);
scanf("%d",&G);
if(R,G <=4500 && R,G >=0){
peformance = (( G * 2 ) - R);
printf("%d\n",peformance);
}
return 0;
}
| 128 | memory_bytes | {'s_id': 's013348273', 'p_id': 'p03563', 'u_id': 'u863370423', 'date': '1536170984', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '228'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 R,G;\n int peformance;\n\n scanf(\"%d\",&R);\n scanf(\"%d\",&G);\n\n if(R,G <=... |
CDSS_310744 | CDSS | #include <stdio.h>
int main()
{
int a,b;
scanf("%d%d" ,&a ,&b);
printf("%d %d %.5lf\n",a/b ,a%b ,(double)a/b);
return 0;
} | 640 | memory_bytes | {'s_id': 's840199990', 'p_id': 'p02399', 'u_id': 'u439404782', 'date': '1499862917', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '640', 'code_size': '132'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main()\n{\n int a,b;\n\n scanf(\"%d%d\" ,&a ,&b);\n printf(\"%d %d %.5lf\\n\",a/b ,a%b ,(double)a/b);\n re... |
CDSS_621597 | CDSS | #include <stdio.h>
inline static int gl(void){
int x = 0;
for(;;){
unsigned int c = getchar_unlocked() - 48;
if(c < 10){
x = x*10 + c;
}else{
break;
}
}
return x;
}
typedef struct{
int y;
int x;
} pos_t;
typedef struct{
int fy;
i... | 6,144 | memory_bytes | {'s_id': 's500708878', 'p_id': 'p03263', 'u_id': 'u188638030', 'date': '1536469721', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '34', 'memory': '6144', 'code_size': '1246'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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\ninline static int gl(void){\n int x = 0;\n for(;;){\n unsigned int c = getchar_unlocked() - 48;\n ... |
CDSS_81279 | CDSS | #include <stdio.h>
#include <string.h>
#define NUMBER 210
int A_snake(char snake[]);
int B_snake(char snake[]);
int main(void) {
int quantity, i;
char snake[NUMBER] = {0};
scanf("%d", &quantity);
for(i = 0; i < quantity; i++) {
scanf("%s", snake);
if(snake[0] != ... | 584 | memory_bytes | {'s_id': 's635928089', 'p_id': 'p00139', 'u_id': 'u273981871', 'date': '1386482513', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '584', 'code_size': '2230'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 NUMBER 210\n\nint A_snake(char snake[]);\nint B_snake(char snake[]);\n\nint main(void... |
CDSS_230802 | CDSS | #include<stdio.h>
#define MAX 2000000
#define MAX2 99999999
int h,data[MAX+1];
int left(int l){
return 2*l;
}
int right(int r){
return 2*r+1;
}
void maxHeapify(int i){
int l,r,largest,t;
l=left(i);
r=right(i);
if(l<=h && data[l]>data[i])largest=l;
else largest=i;
if(r<=h && data[r]>data[largest])larges... | 5,676 | memory_bytes | {'s_id': 's386941523', 'p_id': 'p02289', 'u_id': 'u363577051', 'date': '1581434392', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '290', 'memory': '5676', 'code_size': '1114'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 2000000\n#define MAX2 99999999\n\nint h,data[MAX+1];\nint left(int l){\n return 2*l;\n}\nint right(int... |
CDSS_577453 | CDSS | #include<stdio.h>
int main() {
int a, b, c;
scanf("%d %d %d", &a, &b, &c);
if (a < b) {
if ((a < c) && (c < b)) {
printf("Yes\n");
}
else {
printf("No\n");
}
}
else {
if ((b < c) && (c < a)) {
printf("Yes\n");
}
else {
printf("No\n");
}
}
return 0;
} | 128 | memory_bytes | {'s_id': 's805888960', 'p_id': 'p03067', 'u_id': 'u719038982', 'date': '1556138147', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '286'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main() {\n\tint a, b, c;\n\tscanf(\"%d %d %d\", &a, &b, &c);\n\tif (a < b) {\n\t\tif ((a < c) && (c < b)) {\n\t... |
CDSS_540021 | CDSS | #include <stdio.h>
#include <string.h>
int main(void) {
int K, X;
scanf("%d %d", &K, &X);
for (int i = X-K+1; i < X+K; i++) {
if (i>=-1000000&&i<=1000000) {
printf("%d ", i);
}
}
printf("\n");
return 0;
}
| 128 | memory_bytes | {'s_id': 's928569661', 'p_id': 'p02946', 'u_id': 'u601271366', 'date': '1565485894', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '232'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\nint main(void) {\n int K, X;\n scanf(\"%d %d\", &K, &X);\n for (int i = X-K+1; i < X+K; ... |
CDSS_391726 | CDSS | #include <stdio.h>
int main()
{
int N;
int i;
int t;
int kei;
scanf("%d", &N);
if (N % 1000 > 0)
{
i = N / 1000;
t = i * 1000 + 1000;
kei = t - N;
printf("%d", kei);
}
else
{
kei = N - N;
printf("%d", kei);
}
return 0;
} | 1,732 | memory_bytes | {'s_id': 's309517925', 'p_id': 'p02612', 'u_id': 'u722770490', 'date': '1594000057', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1732', 'code_size': '318'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main()\n{\n int N;\n int i;\n int t;\n int kei;\n\n scanf(\"%d\", &N);\n if (N % 1000 > 0)\n... |
CDSS_702567 | CDSS | #include <stdio.h>
int main() {
int A, B, ans;
scanf("%d %d", &A, &B);
ans = A + B;
if(ans>=10)
printf("error\n");
else
printf("%d\n",ans);
return 0;
} | 128 | memory_bytes | {'s_id': 's327326872', 'p_id': 'p03697', 'u_id': 'u863370423', 'date': '1587142478', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '170'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main() {\n int A, B, ans;\n scanf(\"%d %d\", &A, &B);\n \n ans = A + B;\n \n \n if(ans>=10) \n printf(\"erro... |
CDSS_339484 | CDSS | #include <stdio.h>
int main(void){
int i,x,n;
scanf("%d",&n);
for(i=1; i<=n; ++i){
x=i;
if(x%3==0){
printf(" %d",i);
}else{
do{
if(x%10==3){
printf(" %d",i);
break;
}else
x/=10;
}while(x);
}
}
putchar('\n');
... | 600 | memory_bytes | {'s_id': 's768779498', 'p_id': 'p02406', 'u_id': 'u907503461', 'date': '1496890035', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '335'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\n int i,x,n;\n scanf(\"%d\",&n);\n for(i=1; i<=n; ++i){\n x=i;\n if(x%3==0){\n ... |
CDSS_273025 | CDSS | #include <stdio.h>
#include <stdlib.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 printf("a == b\n");
return 0;
}
| 2,036 | memory_bytes | {'s_id': 's581107125', 'p_id': 'p02391', 'u_id': 'u125067612', 'date': '1527469394', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2036', 'code_size': '215'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n \nint main()\n{\n int a, b;\n \n scanf(\"%d%d\", &a, &b);\n if (a < b) printf(\"a <... |
CDSS_490991 | CDSS | #include<stdio.h>
#include<string.h>
int main()
{
int n;
char s[200];
scanf("%s",s);
n=strlen(s);
for(int i=0;i<n;i++)
printf("x");
return 0;
}
| 128 | memory_bytes | {'s_id': 's214144626', 'p_id': 'p02778', 'u_id': 'u763695695', 'date': '1581279112', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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#include<stdio.h>\n#include<string.h>\nint main()\n{\n int n;\n char s[200];\n scanf(\"%s\",s);\n n=strlen(s);\n for(in... |
CDSS_588996 | CDSS | #include<stdio.h>
int main(void)
{
int H,W,h,w;
scanf("%d %d %d %d",&H,&W,&h,&w);
printf("%d\n",(H-h)*(W-w));
return 0;
} | 128 | memory_bytes | {'s_id': 's138519712', 'p_id': 'p03101', 'u_id': 'u490089586', 'date': '1563874448', '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 must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\n\tint H,W,h,w;\n\tscanf(\"%d %d %d %d\",&H,&W,&h,&w);\n\tprintf(\"%d\\n\",(H-h)*(W-w));\n\tretur... |
CDSS_544554 | CDSS | #include <stdio.h>
int main(void){
int A, B;
scanf("%d %d", &A, &B);
if ((A+B)%2==0) printf("%d", (A+B)/2);
else printf("IMPOSSIBLE");
return 0;
} | 128 | memory_bytes | {'s_id': 's237357646', 'p_id': 'p02957', 'u_id': 'u279160680', 'date': '1564275822', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '167'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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;\n scanf(\"%d %d\", &A, &B);\n if ((A+B)%2==0) printf(\"%d\", (A+B)/2);\n ... |
CDSS_286456 | CDSS | #include<stdio.h>
int main()
{
int a,b,c,i,j;
scanf("%d%d%d",&a,&b,&c);
if(a>b && a>c)
{
if(b>c)
printf("%d %d %d\n",c,b,a);
else
printf("%d %d %d\n",b,c,a);
}
else if(b>a && b>c)
{
if(a>c)
printf("%d %d %d\n",c,a,b);
else
printf("%d %d %d\n",a,c,b);
}
els... | 1,796 | memory_bytes | {'s_id': 's859693742', 'p_id': 'p02393', 'u_id': 'u011621222', 'date': '1511366909', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1796', 'code_size': '458'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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,i,j;\n scanf(\"%d%d%d\",&a,&b,&c);\n if(a>b && a>c)\n{\n if(b>c)\n pri... |
CDSS_239196 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <math.h>
typedef struct dice{
int face[6];
}dice;
void rotate(dice *d, char dir)
{
int temp;
switch(dir) {
case 'N':
temp=d->face[0];
d->face[0]=d->face[1];
d->face[1]=d->face[5];
d->face[5]=d->face[4];
d->face[4]=... | 584 | memory_bytes | {'s_id': 's347668903', 'p_id': 'p02386', 'u_id': 'u277798389', 'date': '1468669312', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '584', 'code_size': '1480'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <math.h>\n\ntypedef struct dice{\n int face[6];\n}dice;\n\nvoid rotate(dice *d, c... |
CDSS_121476 | CDSS | v[5];a[]={0,10,50,100,500,v};c,b;main(z){for(;c>4?b>3?c=0,b=-1:++b?z=v[b]+*v%a[b+1]/a[b],z<1||printf("%d %d\n",a[b],z):puts(a):~scanf("%d",v+c)?*v-=v[c]*a[c],++c:0;);} | 0 | memory_bytes | {'s_id': 's032091930', 'p_id': 'p01132', 'u_id': 'u479246559', 'date': '1333163946', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '167'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nv[5];a[]={0,10,50,100,500,v};c,b;main(z){for(;c>4?b>3?c=0,b=-1:++b?z=v[b]+*v%a[b+1]/a[b],z<1||printf(\"%d %d\\n\",a[b],z):puts(a):~sca... |
CDSS_447681 | CDSS | #include<stdio.h>
int main()
{
char n[4];
scanf("%s",n);
if(n[0]=='7'||n[1]=='7'||n[2]=='7')
puts("Yes");
else
puts("No");
return 0;
} | 1,604 | memory_bytes | {'s_id': 's943338860', 'p_id': 'p02711', 'u_id': 'u596813883', 'date': '1594349504', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1604', 'code_size': '145'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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\tchar n[4];\n\n\tscanf(\"%s\",n);\n\n\tif(n[0]=='7'||n[1]=='7'||n[2]=='7')\n\t\tputs(\"Yes\");\n\te... |
CDSS_597589 | CDSS | #include <stdio.h>
int main(void) {
int T, X;
scanf("%d %d", &T, &X);
printf("%lf\n", (double)T / (double)X);
return 0;
}
| 128 | memory_bytes | {'s_id': 's339421663', 'p_id': 'p03135', 'u_id': 'u004707990', 'date': '1549245757', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '135'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\n int T, X;\n scanf(\"%d %d\", &T, &X);\n\n printf(\"%lf\\n\", (double)T / (double)X);\n \n... |
CDSS_511142 | CDSS | #include <stdio.h>
int main()
{
int M1, D1;
int M2, D2;
int ans = 0;
scanf("%d %d\n", &M1, &D1);
scanf("%d %d\n", &M2, &D2);
if (M1 != M2)
ans = 1;
printf("%d\n", ans);
return (0);
}
| 128 | memory_bytes | {'s_id': 's626265355', 'p_id': 'p02841', 'u_id': 'u662185644', 'date': '1585780099', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '199'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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\t\tmain()\n{\n\tint\t\tM1, D1;\n\tint\t\tM2, D2;\n\tint\t\tans = 0;\n\n\tscanf(\"%d %d\\n\", &M1, &D1);\n\ts... |
CDSS_125635 | CDSS | #include<stdio.h>
#include<string.h>
int N,M,P[105][105],i,j,r,t;
int main()
{
for(;scanf("%d",&N),N;)
{
memset(P,0,sizeof(P));
for(i=1;i<N+2;i++)
for(scanf("%d",&M),j=0;j<M;j++)
{
scanf("%d",&t);
P[i][t]=1;
}
for(i=1,r=-1;i<=N;i++)
{
for(j=1;j<=100;j++)
if(P[N+1][j]&&!P[i][j])
br... | 648 | memory_bytes | {'s_id': 's342637256', 'p_id': 'p01513', 'u_id': 'u363039534', 'date': '1393549202', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '648', 'code_size': '446'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 N,M,P[105][105],i,j,r,t;\nint main()\n{\n\tfor(;scanf(\"%d\",&N),N;)\n\t{\n\t\tmemset(P,0,s... |
CDSS_41051 | CDSS | #include<stdio.h>
int main(void)
{
int i,j,k,l,n,cnt;
while(scanf("%d",&n)!=EOF){
cnt=0;
for(i=0;i<10;i++){
for(j=0;j<10;j++){
for(k=0;k<10;k++){
for(l=0;l<10;l++){
if(i+j+k+l==n){
cnt++;
}
}
}
}
}
printf("%d\n",cnt);
}
return 0;
} | 596 | memory_bytes | {'s_id': 's259932527', 'p_id': 'p00008', 'u_id': 'u850274609', 'date': '1471580560', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '287'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 i,j,k,l,n,cnt;\n\twhile(scanf(\"%d\",&n)!=EOF){\n\t\tcnt=0;\n\t\tfor(i=0;i<10;i++){\n\t\t\... |
CDSS_130644 | CDSS | #include <stdio.h>
#define N 45
int memory[N];
int fib(int n){
if(n==1 || n==0)return memory[n]=1;
if(memory[n]!=-1)return memory[n];
return memory[n]=fib(n-2)+fib(n-1);
}
int main() {
int n,ans;
for(int i=0;i<N;i++)memory[i]=-1;
scanf("%d",&n);
ans=fib(n);
printf("%d\n",ans);
return 0;
}
| 2,144 | memory_bytes | {'s_id': 's821032927', 'p_id': 'p02233', 'u_id': 'u225091313', 'date': '1579842922', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2144', '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#define N 45\n\nint memory[N];\nint fib(int n){\n if(n==1 || n==0)return memory[n]=1;\n if(memory[n]!=-1)return ... |
CDSS_591589 | CDSS | #include<stdio.h>
int main(){
int a,b,c,d=0;
scanf("%d %d %d",&a,&b,&c);
for(int i=100; 1<=i; i--){
if(a%i==0&&b%i==0){
d++;
}
if(d==c){
printf("%d",i);
break;
}
}
return 0;} | 128 | memory_bytes | {'s_id': 's602291809', 'p_id': 'p03106', 'u_id': 'u308101268', 'date': '1589663767', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '218'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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,c,d=0;\n scanf(\"%d %d %d\",&a,&b,&c);\n for(int i=100; 1<=i; i--){\n if(a%i==0&&b%i==0... |
CDSS_543276 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main (void) {
char s[100001];
int ans[100001];
memset(s, '\0', 100001);
memset(ans, 0, 100001*sizeof(int));
scanf("%s", s);
int i, n_char=strlen(s);
int r_cnt, l_cnt, r_idx, l_idx;
while ( i<n_char ) {
r_cnt ... | 896 | memory_bytes | {'s_id': 's384565921', 'p_id': 'p02954', 'u_id': 'u263564761', 'date': '1581135245', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '9', 'memory': '896', 'code_size': '993'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 main (void) {\n char s[100001];\n int ans[100001];\n ... |
CDSS_170009 | CDSS | #include<stdio.h>
#define MAX 100
int main(){
int i,j,minj,count,n,A[MAX+1];
scanf("%d",&n);
for(i=0;i<n;i++)
scanf("%d",&A[i]);
count = 0;
for(i=0;i<n;i++){
minj = i;
for(j=i;j<n;j++){
if(A[j] < A[minj])minj = j;
}
A[n] = A[i];
A[i] = A[minj];
A[minj] = A[n];
if(i !... | 604 | memory_bytes | {'s_id': 's211843740', 'p_id': 'p02260', 'u_id': 'u073302075', 'date': '1469069795', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '604', 'code_size': '454'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\n#define MAX 100\n\nint main(){\n int i,j,minj,count,n,A[MAX+1];\n\n scanf(\"%d\",&n);\n for(i=0;i<n;i++)\n ... |
CDSS_224791 | CDSS | #include<stdio.h>
#include<stdlib.h>
struct node{
struct node *right;
struct node *left;
struct node *parent;
int key;
};
typedef struct node * Node;
#define NIL NULL
Node root;
/*
節点 x を根とする部分木の中で最小のキーを持つ節点を返す
*/
Node treeMinimum (Node x ){
while (x->left != NIL ){
x = x->left;
} // end while
return x;... | 19,364 | memory_bytes | {'s_id': 's214747830', 'p_id': 'p02285', 'u_id': 'u597396610', 'date': '1392064726', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '390', 'memory': '19364', 'code_size': '3319'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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\nstruct node{\n\tstruct node *right;\n\tstruct node *left;\n\tstruct node *parent;\n\tint key;... |
CDSS_487079 | CDSS | #include<stdio.h>
int main(void) {
int a, b, c;
scanf("%d %d %d", &a, &b, &c);
if (
(a == b && b != c)
|| (a == c && b != c)
|| (b == c && a != b)
) {
printf("Yes\n");
}
else
printf("No\n");
} | 128 | memory_bytes | {'s_id': 's373895905', 'p_id': 'p02771', 'u_id': 'u013751754', 'date': '1586532962', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '211'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void) {\n\tint a, b, c;\n\tscanf(\"%d %d %d\", &a, &b, &c);\n\n\tif (\n\t\t(a == b && b != c)\n\t\t|| (a =... |
CDSS_626617 | CDSS | #include<stdio.h>
int main(){
char S[101];
scanf("%s",S);
long long K;
scanf("%lld",&K);
long long i=0;
while(S[i]=='1'){
i++;
}
if(i>=K){
printf("1\n");
return 0;
}
printf("%c\n",S[i]);
return 0;
} | 128 | memory_bytes | {'s_id': 's947309373', 'p_id': 'p03282', 'u_id': 'u573082373', 'date': '1534641703', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '222'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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\tchar S[101];\n\tscanf(\"%s\",S);\n\tlong long K;\n\tscanf(\"%lld\",&K);\n\tlong long i=0;\n\twhile... |
CDSS_274539 | 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,044 | memory_bytes | {'s_id': 's080980838', 'p_id': 'p02391', 'u_id': 'u360102554', 'date': '1534155384', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2044', 'code_size': '203'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(){\n int a,b;\n scanf(\"%d %d\",&a,&b);\n if(a>b){\n printf(\"a > b\\n\");\n }else if(a<b){\n p... |
CDSS_118596 | CDSS | #include <stdio.h>
#include <string.h>
char a[10][6], b[10][6];
char *h[5], *v[5];
int diff[10];
int ans;
int check(int j){
int i, k;
for (k = 0; k <= j; k++) {
for (i = 0; i <= j; i++) if (h[i][k] == v[k][i]) return 0;
}
return 1;
}
void solve(int k, int s){
int i, x, y, b... | 2,044 | memory_bytes | {'s_id': 's003547988', 'p_id': 'p00781', 'u_id': 'u545696826', 'date': '1525792190', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '50', 'memory': '2044', 'code_size': '1262'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 \nchar a[10][6], b[10][6];\nchar *h[5], *v[5];\nint diff[10];\nint ans;\n \nint check(int j)... |
CDSS_220141 | CDSS | #include<stdio.h>
#define MAX 10000
#define NIL -1
struct Node{
int p,l,r;
};
struct Node T[MAX];
int n;
void preParse(int u){
if(u == NIL) return;
printf(" %d",u);
preParse(T[u].l);
preParse(T[u].r);
}
void inParse(int u){
if(u ==NIL) return;
inParse(T[u].l);
printf(" %d",u);
inParse(T[u].r);
}
... | 2,108 | memory_bytes | {'s_id': 's331784800', 'p_id': 'p02281', 'u_id': 'u917751552', 'date': '1580271184', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '909'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 10000\n#define NIL -1\n\nstruct Node{\n int p,l,r;\n};\n\nstruct Node T[MAX];\nint n;\n\nvoid preParse... |
CDSS_712427 | CDSS | #include<stdio.h>
#include<string.h>
int main(){
char o[2][51];
scanf("%s%*c%s",o[0],o[1]);
int i,olen=strlen(o[0]),elen=strlen(o[1]);
for(i=0;i<olen;i++){
printf("%c",o[0][i]);
if(i!=elen)
printf("%c",o[1][i]);
}
puts("");
return 0;
} | 1,648 | memory_bytes | {'s_id': 's212317657', 'p_id': 'p03760', 'u_id': 'u917851778', 'date': '1594087781', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1648', 'code_size': '265'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\nint main(){\n char o[2][51];\n scanf(\"%s%*c%s\",o[0],o[1]);\n int i,olen=strlen(o[0]),ele... |
CDSS_699127 | CDSS | #include<stdio.h>
int main(){
int a,b,c;
scanf("%d%d%d",&a,&b,&c);
if(c-b<=0){
printf("delicious");
}else if(c-b<=a){
printf("safe");
}else{
printf("dangerous");
}
return 0;
} | 128 | memory_bytes | {'s_id': 's020110737', 'p_id': 'p03679', 'u_id': 'u071680334', 'date': '1576673133', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '175'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 a,b,c;\nscanf(\"%d%d%d\",&a,&b,&c);\nif(c-b<=0){\nprintf(\"delicious\");\n}else if(c-b<=a){\nprint... |
CDSS_732911 | CDSS | #include<stdio.h>
int main(){
int i=0,ans=0;
char s[100001],tmp;
scanf("%s",s);
tmp=s[0];
while(s[i]!=0){
if(s[i]!=tmp){
ans++;
tmp=s[i];
}
i++;
}
printf("%d\n",ans);
return 0;
} | 256 | memory_bytes | {'s_id': 's359724881', 'p_id': 'p03945', 'u_id': 'u946810083', 'date': '1541711549', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '256', 'code_size': '179'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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(){\nint i=0,ans=0;\nchar s[100001],tmp;\nscanf(\"%s\",s);\ntmp=s[0];\nwhile(s[i]!=0){\nif(s[i]!=tmp){\na... |
CDSS_693569 | CDSS | #include<stdio.h>
#include<math.h>
int main(){
int N=0;
scanf("%d",&N);
for(int i=8; i>=0; i--){
if(N >= pow(2,i)){
printf("%d",(int)pow(2,i));
return 0;
}
}
return 0;
} | 128 | memory_bytes | {'s_id': 's846154677', 'p_id': 'p03644', 'u_id': 'u759675243', 'date': '1587302629', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '206'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<math.h>\n\nint main(){\n \n int N=0;\n scanf(\"%d\",&N);\n\n for(int i=8; i>=0; i--){\n if(N >= pow... |
CDSS_69673 | CDSS | #include <stdio.h>
#include <stdlib.h>
typedef struct Bomb{
int map[8][8];
} BOMB;
Input(BOMB *);
void explode(BOMB *);
int x_cnt, y_cnt;
int main()
{
int input_times, input_cnt;
BOMB Bomb[50];
int x, y;
scanf("%d", &input_times);
for(input_cnt = 0; input_cnt < input_times; input_cnt++){
Input(&Bomb[input... | 612 | memory_bytes | {'s_id': 's781124196', 'p_id': 'p00071', 'u_id': 'u178215473', 'date': '1476683008', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '612', 'code_size': '2135'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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\ntypedef struct Bomb{\n\tint map[8][8];\n} BOMB;\n\nInput(BOMB *);\nvoid explode(BOMB *);\n\... |
CDSS_29331 | CDSS | #include<stdio.h>
int main(){
int N, i, a, b, c;
scanf("%d",&N);
for(i=0; i<N; i++){
scanf("%d %d %d", &a, &b, &c);
if(a*a == b*b + c*c || b*b == c*c + a*a || c*c == a*a + b*b)
printf("YES\n");
else
printf("NO\n");
}
return 0;
} | 580 | memory_bytes | {'s_id': 's052289160', 'p_id': 'p00003', 'u_id': 'u369381079', 'date': '1424526595', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', 'code_size': '245'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n\tint N, i, a, b, c;\n\tscanf(\"%d\",&N);\n\tfor(i=0; i<N; i++){\n\t\tscanf(\"%d %d %d\", &a, &b, &c);... |
CDSS_722654 | CDSS | #include<stdio.h>
int main()
{
int A,B;
int C,D;
scanf("%d %d",&A,&B);
scanf("%d %d",&C,&D);
if(A*B>=C*D) {
printf(" %d\n",A*B);
}else{
printf(" %d\n",C*D);
}
return 0;
}
| 128 | memory_bytes | {'s_id': 's628724820', 'p_id': 'p03826', 'u_id': 'u816631826', 'date': '1538447526', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '198'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 int C,D;\n scanf(\"%d %d\",&A,&B);\n scanf(\"%d %d\",&C,&D);\n if(A*B>=C*D) {\n \tpri... |
CDSS_421839 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<string.h>
#include<stdbool.h>
#include<assert.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 rrep(i,l,r)for(ll i=(l);i>=(r);i--)
#define INF (1LL<<60)
#defin... | 6,420 | memory_bytes | {'s_id': 's018951676', 'p_id': 'p02685', 'u_id': 'u004279520', 'date': '1589208500', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '18', 'memory': '6420', 'code_size': '5299'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#include<math.h>\n#include<string.h>\n#include<stdbool.h>\n#include<assert.h>\ntypedef long lon... |
CDSS_68363 | CDSS | #include<stdio.h>
#include<string.h>
int main()
{
char str[102];
int len,count,flg,ans=0;
while(fgets(str,102,stdin)!=NULL)
{
flg=1;
len=strlen(str)-1;
for(count=0;count<len/2;count++)
{
if(*(str+count)!=*(str+len-count-1))
{
flg=0;
}
}
if(flg)
{
ans++;
}
}
printf("%d\n",ans);
r... | 0 | memory_bytes | {'s_id': 's436407095', 'p_id': 'p00063', 'u_id': 'u539546618', 'date': '1314868001', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '330'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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\tchar str[102];\n\tint len,count,flg,ans=0;\n\n\twhile(fgets(str,102,stdin)!=... |
CDSS_108331 | CDSS | #include <stdio.h>
int main(){
int data[5];
int score = 0,i,average;
for(i = 0; i < 5; i++){
scanf("%d", &data[i]);
}
for(i = 0; i < 5; i++){
if(data[i] >= 40){
score += data[i];
//printf("%d\n", score);
}
else if(data[i] < 40){
... | 600 | memory_bytes | {'s_id': 's508677810', 'p_id': 'p00515', 'u_id': 'u851038312', 'date': '1447875739', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '466'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 data[5];\n int score = 0,i,average;\n \n for(i = 0; i < 5; i++){\n scanf(\"... |
CDSS_607246 | CDSS | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <math.h>
int main()
{
int d;
scanf("%d", &d);
if( d == 25 ) puts("Christmas");
else if( d == 24 ) puts("Christmas Eve");
else if( d == 23 ) puts("Christmas Eve Eve");
else if( d == 22 ) puts("Christmas Eve E... | 128 | memory_bytes | {'s_id': 's729792057', 'p_id': 'p03206', 'u_id': 'u091936069', 'date': '1587405692', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '128', 'code_size': '349'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n#include <math.h>\n\nint main()\n{\n int d;\n\n scanf(\"%d\"... |
CDSS_539600 | CDSS | #include<stdio.h>
int main()
{
int X,K,i;
scanf("%d%d",&K,&X);
for(i=-K+1;i<K;i++){
printf("%d ",X+i);
}
return 0;
}
| 128 | memory_bytes | {'s_id': 's230916659', 'p_id': 'p02946', 'u_id': 'u899589706', 'date': '1582865247', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '137'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n int X,K,i;\n scanf(\"%d%d\",&K,&X);\n for(i=-K+1;i<K;i++){\n printf(\"%d \",X+i);\n... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.