identifier string | space string | input string | target float64 | metric_type string | metadata string | messages list |
|---|---|---|---|---|---|---|
CDSS_572180 | CDSS | #include <stdio.h>
int main(void)
{
int a,b,i,j;
double c,k=0;
scanf("%d %d",&a,&b);
for(i=1;i<=a;i++){
c=1.0/a;
j=i;
while(j<b){
j*=2;
c/=2;
}
k+=c;
}
printf("%.12f",k);
return 0;
}
| 128 | memory_bytes | {'s_id': 's366589512', 'p_id': 'p03043', 'u_id': 'u320681122', 'date': '1558641635', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '229'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n int a,b,i,j;\n double c,k=0;\n\nscanf(\"%d %d\",&a,&b);\nfor(i=1;i<=a;i++){\n c=1.0... |
CDSS_694794 | CDSS | #include <stdio.h>
#include <stdlib.h>
#define ll long long
#define rep(i,l,r)for(ll i=(l);i<(r);i++)
int main(){
ll k;
scanf("%lld",&k);
puts("50");
rep(i,0,50)printf("%lld%c",(49+k/50)+(i<k%50?51-k%50:-k%50),i==49?'\n':' ');
return 0;
}
| 128 | memory_bytes | {'s_id': 's606954685', 'p_id': 'p03648', 'u_id': 'u382163500', 'date': '1523050259', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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>\n#include <stdlib.h>\n#define ll long long\n#define rep(i,l,r)for(ll i=(l);i<(r);i++)\n\nint main(){\n\tll k;\n\tsc... |
CDSS_333845 | CDSS | #include <stdio.h>
int main()
{
int i,j;
int a,b;
while(1){
scanf("%d %d", &a, &b);
if(a==0&&b==0){
break;
}
else if(a>=3&&a<=300&&b<=300){
for(i=0; i<a; i++){
for(j=0; j<b; j++){
if(i==0||i==a-1){
... | 572 | memory_bytes | {'s_id': 's001493221', 'p_id': 'p02404', 'u_id': 'u180183800', 'date': '1494240599', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '572', 'code_size': '669'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n \nint main()\n{\n int i,j;\n int a,b;\n while(1){\n scanf(\"%d %d\", &a, &b);\n if(a==0&&b... |
CDSS_569071 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <memory.h>
#include <limits.h>
#include <math.h>
int main(int argc, char *argv[])
{
int r, d, x_2000;
int i, x;
int ans;
scanf("%d %d %d", &r, &d, &x_2000);
x = x_2000;
for (i = 2001; i <= 2010; i++) {
x = r * x - d;
... | 128 | memory_bytes | {'s_id': 's651222947', 'p_id': 'p03036', 'u_id': 'u676699191', 'date': '1558832667', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '128', 'code_size': '370'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 <memory.h>\n#include <limits.h>\n#include <math.h>\n\nint main(... |
CDSS_604141 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<string.h>
#include<stdbool.h>
#include<assert.h>
#include<ctype.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 IN... | 11,844 | memory_bytes | {'s_id': 's937777336', 'p_id': 'p03167', 'u_id': 'u004279520', 'date': '1593226841', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '41', 'memory': '11844', 'code_size': '7025'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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>\n#include<ctype.h... |
CDSS_189491 | CDSS | #include <stdio.h>
#include <stdlib.h>
int main(){
int key,S[10001],n,q,T[500],i,j,k,cnt=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[i]);
S[n]=T[i];
key=S[n];
j=0;
k=0;
while(S[j]!=key){
j++;
if(j==n){
k++;
break;
... | 2,128 | memory_bytes | {'s_id': 's199835317', 'p_id': 'p02267', 'u_id': 'u322648397', 'date': '1529813851', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2128', 'code_size': '394'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\nint main(){\n int key,S[10001],n,q,T[500],i,j,k,cnt=0;\n scanf(\"%d\",&n);\n for(i=0;i<n;i... |
CDSS_17648 | CDSS | #include<stdio.h>
int main() {
int i, j;
for (i = 1; i < 10; i ++) {
for (j = 1; j < 10; j ++) {
printf("%dx%d=%d\n", i, j, i * j);
}
}
return 0;
} | 524 | memory_bytes | {'s_id': 's974465396', 'p_id': 'p00000', 'u_id': 'u673933691', 'date': '1415161972', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', '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#include<stdio.h>\nint main() {\n int i, j;\n for (i = 1; i < 10; i ++) {\n for (j = 1; j < 10; j ++) {\n printf(\"%dx%d=%d\... |
CDSS_213642 | CDSS | #include <stdio.h>
#define MAX 100000
#define SENTINEL 2000000000
struct Card {
char suit;
int value;
};
struct Card L[MAX/2+2], R[MAX/2+2];
void merge(struct Card A[], int n, int left, int mid, int right) {
int i, j, k;
int n1 = mid - left;
int n2 = right - mid;
for(i=0;i<n1;i++) L[i] = A[left + i];
f... | 4,076 | memory_bytes | {'s_id': 's952088836', 'p_id': 'p02277', 'u_id': 'u087392296', 'date': '1573453413', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '4076', 'code_size': '1688'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#define MAX 100000\n#define SENTINEL 2000000000\n\nstruct Card {\n char suit;\n int value;\n};\n\nstruct Card L[... |
CDSS_585933 | CDSS | #include<stdio.h>
int main(void){
char b;
scanf("%c",&b);
switch(b){
case 'A':
printf("T");
break;
case 'G':
printf("C");
break;
case 'C':
printf("G");
break;
default:
printf("A");
break;
}
return 0;
} | 128 | memory_bytes | {'s_id': 's983857839', 'p_id': 'p03085', 'u_id': 'u532612305', 'date': '1557409574', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '248'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n\tchar b;\n\tscanf(\"%c\",&b);\n\tswitch(b){\n\t\tcase 'A':\n\t\tprintf(\"T\");\n break;\n\... |
CDSS_423977 | CDSS | #include<stdio.h>
int main(void)
{
int N, M, i, A, B, count=0;
scanf("%d",&N);
scanf("%d",&M);
long H[N], H2[N];
for(i=0; i<N; i++) {
scanf("%ld",&H[i]);
H2[i] = 0;
}
for(i=0;i<M;i++) {
scanf("%d",&A);
scanf("%d",&B);
if(H[A-1] < H[B-1]) {
... | 3,236 | memory_bytes | {'s_id': 's504220839', 'p_id': 'p02689', 'u_id': 'u139965353', 'date': '1595472538', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '43', 'memory': '3236', '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\nint main(void)\n{\n int N, M, i, A, B, count=0;\n\n scanf(\"%d\",&N);\n scanf(\"%d\",&M);\n long H[N]... |
CDSS_69932 | CDSS | #include<stdio.h>
#include<math.h>
int main()
{
double x,h;
double b;
while(1){
scanf("%lf%lf",&x,&h);
if(x==0&&h==0){
break;
}
b=sqrt(h*h+(x/2)*(x/2))*x/2;
printf("%5lf\n",x*x+(b*4));
}
return 0;
} | 648 | memory_bytes | {'s_id': 's209225850', 'p_id': 'p00073', 'u_id': 'u726704931', 'date': '1500880497', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '648', 'code_size': '217'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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{\n\tdouble x,h;\n\tdouble b;\n\twhile(1){\n\t\tscanf(\"%lf%lf\",&x,&h);\n\t\tif(x==0... |
CDSS_83389 | CDSS | #include<stdio.h>
int main(){
int a,n;
int count=0;
scanf("%d",&a);
n=a;
while(a!=0){
while(n!=1){
if(n%2==0){
n/=2;
}else {
n*=3;
n++;
}
count++;
}
printf("%d\n",count);
scanf("%d",&a);
n=a;
count=0;
}
return 0;
} | 0 | memory_bytes | {'s_id': 's067834611', 'p_id': 'p00158', 'u_id': 'u948800138', 'date': '1313911166', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', '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(){\n\tint a,n;\n\tint count=0;\n\tscanf(\"%d\",&a);\n\tn=a;\n\twhile(a!=0){\n\t\twhile(n!=1){\n\t\t\tif(... |
CDSS_351238 | CDSS | #include<stdio.h>
int main(){
int inact[100][100];
int act[100];
int ans[100];
int row, col;
int i, j;
for(i = 0;i < 100;i++){
for(j = 0;j < 100;j++){
inact[i][j] = 0;
}
act[i] = 0;
ans[i] = 0;
}
scanf("%d %d", &row, &col);
for(i = 0;i < ro... | 2,100 | memory_bytes | {'s_id': 's916912171', 'p_id': 'p02410', 'u_id': 'u530646205', 'date': '1523844468', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2100', 'code_size': '681'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 inact[100][100];\n int act[100];\n int ans[100];\n int row, col;\n int i, j;\n ... |
CDSS_361754 | CDSS | #include<stdio.h>
#include<ctype.h>
int main(void){
char c;
do{
c=getchar();
if(isalpha(c)){
if(isupper(c)) printf("%c",tolower(c));
else printf("%c",toupper(c));
}
else printf("%c",c);
}while(c!='\n');
return 0;
} | 524 | memory_bytes | {'s_id': 's937678416', 'p_id': 'p02415', 'u_id': 'u606893172', 'date': '1471264882', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', '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>\n#include<ctype.h>\nint main(void){\n char c;\n do{\n c=getchar();\n if(isalpha(c)){\n ... |
CDSS_236522 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main(void){
int n,i,x[1000],y[1000];
double sum=0,max=0;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d",&x[i]);
}
for(i=0;i<n;i++){
scanf("%d",&y[i]);
}
for(i=0;i<n;i++){
sum+=abs(x[i]-y[i]);
}
printf("%f\n",sum);
... | 2,108 | memory_bytes | {'s_id': 's535417220', 'p_id': 'p02382', 'u_id': 'u250813039', 'date': '1532091200', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', '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#include <stdlib.h>\n#include <math.h>\nint main(void){\n int n,i,x[1000],y[1000];\n double sum=0,max=0;\n \n ... |
CDSS_125782 | CDSS | #include <stdio.h>
int main(void)
{
int n, t, e;
int x[1000];
int i, j;
int reverse;
int flag;
scanf("%d %d %d", &n, &t, &e);
for (i = 0; i < n; i++){
scanf("%d", &x[i]);
}
/*全ての砂時計で調べる*/
for (i = 0; i < n; i++){
/*時刻の許容範囲内を調べる*/
for (j = -e; j <= e; j++){
reverse = 1;/*ひっくり返した数の初期化*/
fla... | 600 | memory_bytes | {'s_id': 's091065051', 'p_id': 'p01520', 'u_id': 'u479947501', 'date': '1364188145', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '740'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n\tint n, t, e;\n\tint x[1000];\n\tint i, j;\n\tint reverse;\n\tint flag;\n\t\n\tscanf(\"%d %d... |
CDSS_547715 | CDSS | #include <stdio.h>
int main(void){
int n, d, i, s=0;
scanf("%d %d", &n, &d);
for(i=0; s<n; i++){
s += 1+2*d;
}
printf("%d\n", i);
} | 128 | memory_bytes | {'s_id': 's859393448', 'p_id': 'p02970', 'u_id': 'u924527074', 'date': '1564943385', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '148'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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, d, i, s=0;\n scanf(\"%d %d\", &n, &d);\n for(i=0; s<n; i++){\n s += 1+2*d;\n }... |
CDSS_279811 | CDSS | #include<stdio.h>
int main(){
int a, b, c;
scanf("%d %d %d", &a, &b, &c);
if(a<b && b<c){
printf("Yes\n");
} else if(a>b || b>c || a==b ){
printf("No\n");
}
return 0;
}
| 2,044 | memory_bytes | {'s_id': 's423199472', 'p_id': 'p02392', 'u_id': 'u893058769', 'date': '1526965898', '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>\n\nint main(){\n\n int a, b, c;\n\n scanf(\"%d %d %d\", &a, &b, &c); \n\n if(a<b && b<c){\n printf(\"Yes\\n... |
CDSS_374972 | CDSS | #include<stdio.h>
int main(){
int n;
int a[100][2];
scanf("%d",&n);
for(int i=0;i<n;i++){
scanf("%d %d",&a[i][1],&a[i][2]);
}
for(int i=0;i<n-2;i++){
if(a[i][1]==a[i][2] && a[i+1][1]==a[i+1][2] && a[i+2][1]==a[i+2][2]){
printf("Yes");
return 0;
}
}
printf("No");
return 0;
} | 1,692 | memory_bytes | {'s_id': 's994958847', 'p_id': 'p02547', 'u_id': 'u219646039', 'date': '1600555535', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1692', 'code_size': '317'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int n;\n int a[100][2];\n scanf(\"%d\",&n);\n for(int i=0;i<n;i++){\n scanf(\"%d %d\",&a[i][1]... |
CDSS_85316 | CDSS | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
int i,n,old,list[7],a[10];
int main(){
while(scanf("%d",&n)*n){
for(;n>9;n-=10){
scanf("%d %d %d %d %d %d %d %d %d %d",&a[0],&a[1],&a[2],&a[3],&a[4],&a[5],&a[6],&a[7],&a[8],&a[9]);
for(i=0;i<10;i++)list[(a[i]>60?60:a[i])/10]++;
}
for(;n>0;n--){
... | 600 | memory_bytes | {'s_id': 's682492482', 'p_id': 'p00184', 'u_id': 'u263489624', 'date': '1375668184', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '50', 'memory': '600', 'code_size': '455'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n\nint i,n,old,list[7],a[10];\n\nint main(){\n\twhile(scanf(\"%d\",&n)*n)... |
CDSS_37851 | CDSS | #include <stdio.h>
#include <string.h>
void swap(char *x, char *y) {
char tmp; tmp = *x;
*x = *y;
*y = tmp;
}
void *reverse(char *s) {
char *p = s, *q = s + strlen(s) - 1;
int t = p - q;
while ((p - q) * t >= 0) {
swap(p, q);
*p++; *q--;
}
return s;
}
int main() {
... | 2,020 | memory_bytes | {'s_id': 's837363359', 'p_id': 'p00006', 'u_id': 'u146816547', 'date': '1516279585', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2020', 'code_size': '422'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\nvoid swap(char *x, char *y) {\n char tmp; tmp = *x;\n *x = *y;\n *y = tmp;\n}\n\nv... |
CDSS_161714 | CDSS | #include <stdio.h>
#include <limits.h>
#define MAX_N 200000
typedef long long ll;
ll max(ll a, ll b) {
if(a < b) return b;
return a;
}
int main() {
ll n, R[MAX_N], mn = LLONG_MAX/2, ans = -LLONG_MAX;
int i;
scanf("%lld", &n);
for(i = 0; i < n; i++) scanf("%lld", R+i);
for(i = 0; i < n; i++) {
ans = ... | 2,160 | memory_bytes | {'s_id': 's125673417', 'p_id': 'p02258', 'u_id': 'u767369662', 'date': '1492051332', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '30', 'memory': '2160', 'code_size': '414'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <limits.h>\n#define MAX_N 200000\ntypedef long long ll;\nll max(ll a, ll b) {\n if(a < b) return b;\n r... |
CDSS_603143 | CDSS | #include <stdio.h>
#include <stdlib.h>
long judge(long,long,long);
int main(){
int n,luck[3][100000];
long dp[3][100000],max;
scanf("%d",&n);
for (int i=0;i<n;i++){
for (int j=0;j<3;j++) scanf("%d",&luck[j][i]);
}
dp[0][0]=(long)luck[0][0];
dp[1][0]=(long)luck[1][0];
dp[2][0]=(long)luck[2][0];
for... | 3,712 | memory_bytes | {'s_id': 's669704369', 'p_id': 'p03162', 'u_id': 'u351299035', 'date': '1553396625', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '32', 'memory': '3712', 'code_size': '959'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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>\nlong judge(long,long,long);\nint main(){\n int n,luck[3][100000];\n long dp[3][100000],max;... |
CDSS_469385 | CDSS | #include <stdio.h>
int main(void){
int x,i,t;
scanf("%d", &x);
i = (x / 500);
t = ((x-(500*i)) / 5);
printf("%d", ((1000*i)+(5*t)));
return 0;
} | 128 | memory_bytes | {'s_id': 's173880456', 'p_id': 'p02724', 'u_id': 'u143329899', 'date': '1589826033', '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\nint main(void){\n \n int x,i,t;\n \n scanf(\"%d\", &x);\n \n i = (x / 500);\n \n t = ((x-(500*i)) / 5);\... |
CDSS_233375 | CDSS | #include<stdio.h>
int ta[100010],nt[200010],to[200010],co[200010],gg;
int MAX(int a,int b){return a<b?b:a;}
int d[100010];
void mkls(int v,int e,int *a,int *b,int *c){
int i;
for(i=0;i<v;i++)ta[i]=-1;
for(i=0;i<e;i++){
nt[i ]=ta[to[i+e]=a[i]];
nt[i+e]=ta[to[i ]=b[i]];
co[ta[b[i]]=i+e]=co[ta[a[i]]=i]... | 8,800 | memory_bytes | {'s_id': 's118040297', 'p_id': 'p02371', 'u_id': 'u731027244', 'date': '1497773605', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '30', 'memory': '8800', 'code_size': '1431'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 ta[100010],nt[200010],to[200010],co[200010],gg;\nint MAX(int a,int b){return a<b?b:a;}\nint d[100010];\nvoid mk... |
CDSS_365447 | CDSS | #include <stdio.h>
#include <string.h>
#include <ctype.h>
int main(){
int i, n, c;
int count[500] = {0};
while((c = getchar()) != EOF){
if(isupper(c)) c = tolower(c);
count[c]++;
}
for(c = 'a';c <= 'z';c++){
printf("%c : %d\n", c, count[c]);
}
return 0;
} | 524 | memory_bytes | {'s_id': 's851554612', 'p_id': 'p02417', 'u_id': 'u158338651', 'date': '1447996457', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', 'code_size': '268'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\tint i, n, c;\n\tint count[500] = {0};\n\twhile((c = getcha... |
CDSS_123423 | CDSS | #include<stdio.h>
#define MAX_MATATABI 100
#define MAX_XY 15 + 1
typedef struct tagSpan{
int stx;
int sty;
int edx;
int edy;
} Span;
int main(void)
{
int tc,max;
scanf("%d", &max);
for(tc=0;tc<max;++tc){
int i;
int p;
Span spans[MAX_MATATABI];
int ways[MAX_XY][MAX_XY] = {{0,},};
int gx;
int gy;
... | 0 | memory_bytes | {'s_id': 's581016875', 'p_id': 'p01304', 'u_id': 'u280402997', 'date': '1267980651', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '1415'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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_MATATABI 100\n#define MAX_XY 15 + 1\n\ntypedef struct tagSpan{\n\tint stx;\n\tint sty;\n\tint edx;\n\... |
CDSS_679868 | CDSS | #include <stdio.h>
int main()
{
int R,G,avg;
scanf("%d%d",&R,&G);
avg=2*G-R;
printf("%d\n",avg);
return 0;
}
| 128 | memory_bytes | {'s_id': 's232052772', 'p_id': 'p03563', 'u_id': 'u863370423', 'date': '1574300060', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '129'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 R,G,avg;\n scanf(\"%d%d\",&R,&G);\n avg=2*G-R;\n printf(\"%d\\n\",avg);\n retur... |
CDSS_618309 | CDSS | #include <stdio.h>
#include <stdlib.h>
int comp(const void * elem1, const void * elem2)
{
int f = *((int *)elem1);
int s = *((int *)elem2);
if (f > s) return 1;
if (f < s) return -1;
return 0;
}
int main(int argc, char *argv[])
{
int array[3] = {};
scanf("%d %d %d", &array[0], &array[1], &array[2]);
... | 128 | memory_bytes | {'s_id': 's811505955', 'p_id': 'p03250', 'u_id': 'u579296775', 'date': '1537751370', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '420'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 comp(const void * elem1, const void * elem2)\n{\n int f = *((int *)elem1);\n int s = ... |
CDSS_218796 | CDSS | #include<stdio.h>
#define MAX 10000
void depth(int, int);
void print(int);
int height(int);
int sibling(int);
struct node{
int parent;
int left;
int right;
};
struct node data[MAX];
int n,data2[MAX],data3[MAX];
int main(){
int i,id,left,right,root=0;
scanf("%d",&n);
for(i=0;i<n;i++)data[i].pa... | 2,056 | memory_bytes | {'s_id': 's513217309', 'p_id': 'p02280', 'u_id': 'u363577051', 'date': '1579187931', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2056', 'code_size': '1838'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\nvoid depth(int, int);\nvoid print(int);\nint height(int);\nint sibling(int);\n\nstruct node{\n... |
CDSS_492236 | CDSS | #include<stdio.h>
double cal_estimate(int a)
{
double b=0.0;
for(int j=1;j<=a;j++) b+=(double)j;
b/=(double)a;
return b;
}
int main(void)
{
int n,k;
scanf("%d%d",&n,&k);
double estimate[n+1],ruiseki[n+1];
for(int i=1;i<=n;i++){
int tmp;
scanf("%d",&tmp);
estimate[i]=cal_estimate(tmp);
}
... | 3,328 | memory_bytes | {'s_id': 's714897388', 'p_id': 'p02780', 'u_id': 'u399091677', 'date': '1590689204', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '214', 'memory': '3328', 'code_size': '614'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\ndouble cal_estimate(int a)\n{\n double b=0.0;\n for(int j=1;j<=a;j++) b+=(double)j;\n b/=(double)a;\n return b;... |
CDSS_392404 | CDSS | #include <stdio.h>
#include <string.h>
int main(){
int n;
char s[4];
int a[4] = {0};
scanf("%d", &n);
while(n--){
scanf("%s", s);
if(!strcmp(s, "AC"))
a[0]++;
if(!strcmp(s, "WA"))
a[1]++;
if(!strcmp(s, "TLE"))
a[2]++;
if(!strcmp(s, "RE"))
a[3]++;
}
printf("AC x %d\n", a[0]);
printf("WA x ... | 1,736 | memory_bytes | {'s_id': 's301134795', 'p_id': 'p02613', 'u_id': 'u161695251', 'date': '1596074710', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '19', 'memory': '1736', '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#include <string.h>\nint main(){\n\tint n;\n\tchar s[4];\n\tint a[4] = {0};\n\tscanf(\"%d\", &n);\n\twhile(n--){\n... |
CDSS_528120 | CDSS | #include <stdio.h>
int main(void){
char s[101];
scanf("%s", s);
int flag = 1;
for (int i = 0; i < 101; i++) {
if (s[i] < 'A' || s[i] > 'Z') {
break;
}
if (i%2 == 0) {
if (s[i] != 'R' && s[i] != 'U' && s[i] != 'D') {
flag = 0;
break;
}
} else {
if (s[i] ... | 128 | memory_bytes | {'s_id': 's271381097', 'p_id': 'p02910', 'u_id': 'u581816556', 'date': '1586710430', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '501'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n\n char s[101];\n scanf(\"%s\", s);\n\n int flag = 1;\n for (int i = 0; i < 101; i++) {\n ... |
CDSS_371947 | CDSS |
int main(){
char num[1000];
char ans[1000];
char fun[20];
int i,j,q;
int a,b;
char t;
scanf("%s",num);
scanf("%d",&q);
for(i=0;i<q;i++){
scanf("%s",fun);
if(strcmp(fun,"print")==0){
scanf("%d %d",&a,&b);
for (j=a; j<b+1; j++) {
... | 576 | memory_bytes | {'s_id': 's819318230', 'p_id': 'p02422', 'u_id': 'u845340937', 'date': '1445589258', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '576', 'code_size': '852'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n\nint main(){\n \n char num[1000];\n char ans[1000];\n char fun[20];\n int i,j,q;\n int a,b;\n char t;\n\n sca... |
CDSS_113190 | CDSS | #include <stdio.h>
int main(void)
{
int n, m;
int temp, flag;
int i, j;
while (1){
scanf("%d%d", &n, &m);
if (n + m == 0){
break;
}
flag = 1;
for (i = 0; i < m; i++){
scanf("%d", &temp);
if (... | 0 | memory_bytes | {'s_id': 's699633281', 'p_id': 'p00661', 'u_id': 'u032763525', 'date': '1323093720', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', '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\nint main(void)\n{\n int n, m;\n int temp, flag;\n int i, j;\n \n while (1){\n scanf(\"%d%d... |
CDSS_592392 | CDSS | /* ex9_2
YSK722 */
#include <stdio.h>
#include <stdlib.h>
#define SIZE 100001
//リストのノード(スタック内の各データ)の定義
typedef struct node{
char elem;
struct node *next;
} node;
//スタックにデータを追加
void push(node **first, char elem){
//追加する分の領域を確保
node *new = calloc(1, sizeof(node));
if (new == NULL)
exit(1... | 4,904 | memory_bytes | {'s_id': 's599413560', 'p_id': 'p03107', 'u_id': 'u802338400', 'date': '1595168823', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '21', 'memory': '4904', 'code_size': '1328'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n/* ex9_2\n YSK722 */\n\n#include <stdio.h>\n#include <stdlib.h>\n#define SIZE 100001\n\n//リストのノード(スタック内の各データ)の定義\ntypedef struct nod... |
CDSS_542137 | CDSS | #include <stdio.h>
int main(){
int n,i;
scanf("%d",&n);
if(1<=n&&n<=9)
{i=n;}
else if(10<=n&&n<=99)
{i=9;}
else if(100<=n&&n<=999)
{i=9;
i+=n-99;}
else if(1000<=n&&n<=9999)
{i=909;}
else if(10000<=n&&n<=99999)
{i=909;
i+=n-9999;}
else if(n==100000)
{i=90909;}
printf("%d",i);
} | 128 | memory_bytes | {'s_id': 's195960517', 'p_id': 'p02952', 'u_id': 'u546853743', 'date': '1564975965', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '277'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(){\nint n,i;\nscanf(\"%d\",&n);\nif(1<=n&&n<=9)\n{i=n;}\nelse if(10<=n&&n<=99)\n{i=9;}\nelse if(100<=n&&n... |
CDSS_673319 | CDSS | #include <stdio.h>
#include <stdlib.h>
typedef long long ll;
ll n;
ll a[55];
int main()
{
ll mpos = 1;
scanf("%lld", &n);
for (ll i = 1; i <= n; i++) {
scanf("%lld", &a[i]);
}
for (ll i = 2; i <= n; i++) {
if (llabs(a[mpos]) < llabs(a[i])) {
mpos = i;
}
}
printf("%lld\n", 2 * n - 1);
for (ll i = 1... | 128 | memory_bytes | {'s_id': 's505841714', 'p_id': 'p03496', 'u_id': 'u683588090', 'date': '1555470085', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '591'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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>\ntypedef long long ll;\n\nll n;\nll a[55];\n\nint main()\n{\n\tll mpos = 1;\n\n\tscanf(\"%lld\... |
CDSS_582602 | CDSS | #include <stdio.h>
#include <stdlib.h>
int main(int argc, const char *argv[])
{
int a[5], k;
for (int i = 0; i < 5; i++) {
scanf("%d", &a[i]);
}
scanf("%d", &k);
for (int i = 0; i < 5; i++) {
for (int j = i; j < 5; j++) {
if (abs(a[i] - a[j]) > k) {
printf(":(\n");
return 0;
... | 128 | memory_bytes | {'s_id': 's248737891', 'p_id': 'p03075', 'u_id': 'u600282213', 'date': '1561613453', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '367'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\nint main(int argc, const char *argv[])\n{\n int a[5], k;\n for (int i = 0; i < 5; i++) {\n ... |
CDSS_375477 | CDSS | #include<stdio.h>
#include<string.h>
typedef long long int lld;
int main()
{
lld n, answer = 0;
scanf("%lld", &n);
for (int i = 1; i<n; i++)
{
lld current_answer = 0;
current_answer = n/i;
if ((n%i) == 0)
{
current_answer --;
}
answer +=... | 1,728 | memory_bytes | {'s_id': 's352549126', 'p_id': 'p02548', 'u_id': 'u757753683', 'date': '1600543862', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '19', 'memory': '1728', 'code_size': '389'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 long long int lld;\n\nint main()\n{\n lld n, answer = 0;\n\n scanf(\"%lld\", &n... |
CDSS_468023 | CDSS | #include<stdio.h>
int main(){
char s[6];
scanf("%s", s);
if(s[2] == s[3] && s[4] == s[5]){
printf("Yes\n");
}else{
printf("No\n");
}
return 0;
}
| 1,624 | memory_bytes | {'s_id': 's911350807', 'p_id': 'p02723', 'u_id': 'u073707009', 'date': '1596312393', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1624', 'code_size': '178'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 s[6];\n scanf(\"%s\", s);\n\n if(s[2] == s[3] && s[4] == s[5]){\n printf(\"Yes\\n\"... |
CDSS_257150 | CDSS | #include<stdio.h>
main()
{
int tate, yoko;
scanf("%d%d",&tate, &yoko);
printf("%d %d\n", tate * yoko, (2 * tate) +(2 * yoko));
return 0;
} | 0 | memory_bytes | {'s_id': 's186377455', 'p_id': 'p02389', 'u_id': 'u334673615', 'date': '1339409165', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '146'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nmain()\n{\n int tate, yoko;\n scanf(\"%d%d\",&tate, &yoko);\n printf(\"%d %d\\n\", tate * yoko, (2 * tate) +(2 *... |
CDSS_279817 | CDSS | #include<stdio.h>
int main(){
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
if (a < b && b < c){
printf("Yes\n");
}else if(a < b && c < b){
printf("No\n");
}else if(a == b && b < c){
printf("No\n");
}else if(a ==b && b == c){
printf("No\n");
}else if(a > b && b < c){
printf("No\n");
}re... | 2,048 | memory_bytes | {'s_id': 's844238502', 'p_id': 'p02392', 'u_id': 'u534602802', 'date': '1526978295', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2048', 'code_size': '337'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int a,b,c;\n scanf(\"%d %d %d\",&a,&b,&c);\n if (a < b && b < c){\n printf(\"Yes\\n\");\n }els... |
CDSS_303643 | CDSS | #include <stdio.h>
int main(void){
while(1){
int x,y;
scanf("%d %d", &x, &y);
if(x == 0 && y == 0) break;
if(x < y){
printf("%d %d\n", x, y);
}else{
printf("%d %d\n", y, x);
}
}
return 0;
}
| 1,912 | memory_bytes | {'s_id': 's633501257', 'p_id': 'p02397', 'u_id': 'u244261845', 'date': '1573523644', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1912', 'code_size': '275'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 while(1){\n int x,y;\n scanf(\"%d %d\", &x, &y);\n if(x == 0 && y == 0) ... |
CDSS_559603 | CDSS | #include <stdio.h>
int main(void)
{
int X,A;
scanf("%d", &X);
scanf("%d", &A);
if(X < A){
printf("0");
}
else{
printf("10");
}
return(0);
} | 128 | memory_bytes | {'s_id': 's174679046', 'p_id': 'p02999', 'u_id': 'u323359664', 'date': '1560712468', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '172'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 X,A;\n scanf(\"%d\", &X);\n scanf(\"%d\", &A);\n \n if(X < A){\n printf(\"0\");\n ... |
CDSS_609854 | CDSS | #include <stdio.h>
int main(void)
{
char s[100];
scanf("%s",s);
int i=0;
int min=1000;
int x;
while(s[i+2]!='\0'){
x=(int)((s[i]-'0')*100+(s[i+1]-'0')*10+s[i+2]-'0');
if(x>753){
x=x-753;
}else{
x=753-x;
}
if(min>x){
min=x;
}
i++;
}
printf("%d\n",min);
return 0;... | 128 | memory_bytes | {'s_id': 's781585638', 'p_id': 'p03211', 'u_id': 'u916428362', 'date': '1551397786', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '322'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\tchar s[100];\n\t\n\tscanf(\"%s\",s);\n\t\n\tint i=0;\n\tint min=1000;\n\tint x;\n\t\n\twhil... |
CDSS_273918 | 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,100 | memory_bytes | {'s_id': 's507456334', 'p_id': 'p02391', 'u_id': 'u208991958', 'date': '1591611461', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2100', '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>\n int main(){\n int a,b;\n scanf(\"%d %d\",&a,&b);\n\n if(a < b) printf(\"a < b\\n\");\n else if(a > b... |
CDSS_590924 | CDSS | #include <stdio.h>
#include <stdlib.h>
int main(void){
int A, B, C;
scanf("%d %d %d", &A, &B, &C);
if(B/A > C) printf("%d\n", C);
else printf("%d\n", B/A);
return 0;
}
| 128 | memory_bytes | {'s_id': 's068416830', 'p_id': 'p03105', 'u_id': 'u924527074', 'date': '1565802169', '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#include <stdlib.h>\n\nint main(void){\n int A, B, C;\n scanf(\"%d %d %d\", &A, &B, &C);\n if(B/A > C) pr... |
CDSS_230823 | CDSS | #include<stdio.h>
#include<limits.h>
int A[2000000];
int n;
int parent(int i)
{
return i/2;
}
int left(int i)
{
return 2*i;
}
int right(int i)
{
return 2*i+1;
}
void maxHeapify(int i)
{
int l = left(i);
int r = right(i);
int largest,temp;
if( l <= n && A[l] > A[i]) ... | 5,640 | memory_bytes | {'s_id': 's470003849', 'p_id': 'p02289', 'u_id': 'u048824902', 'date': '1580665056', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '290', 'memory': '5640', 'code_size': '1521'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h> \n #include<limits.h> \n \n \nint A[2000000]; \nint n; \n \nint parent(int i) \n{ \n return i/2; \n} \nint left(... |
CDSS_120214 | CDSS | #include <stdio.h>
#include <string.h>
int main(void)
{
int n;
int W[40];
char word[11];
int i, j;
int len;
while (1){
scanf("%d", &n);
if (n == 0){
break;
}
for (i = 0; i < n; i++){
scanf("%s", word);
W[i] = strl... | 2,044 | memory_bytes | {'s_id': 's655556412', 'p_id': 'p01086', 'u_id': 'u648926140', 'date': '1597909001', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2044', 'code_size': '1622'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 int n;\n int W[40];\n char word[11];\n int i, j;\n int l... |
CDSS_17711 | CDSS | #include<stdio.h>
int main(){
int i,j;
for(i=1;i<=9;i++)
for(j=1;j<=9;j++)
printf("%dx%d=%d\n",i,j,i*j);
return 0;
} | 524 | memory_bytes | {'s_id': 's225327688', 'p_id': 'p00000', 'u_id': 'u026167858', 'date': '1418721885', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', '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\nint main(){\n\tint i,j;\n\n\tfor(i=1;i<=9;i++)\n\t\tfor(j=1;j<=9;j++)\n\t\t\tprintf(\"%dx%d=%d\\n\",i,j,i*j);\n\n... |
CDSS_258548 | CDSS | #include<stdio.h>
int main(void)
{
int a,b,L,S;
scanf("%d %d",&a,&b);
L=2*(a+b);
S=a*b;
printf("%d %d\n",S,L);
return 0;
}
| 2,040 | memory_bytes | {'s_id': 's948648897', 'p_id': 'p02389', 'u_id': 'u633469782', 'date': '1534384246', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2040', 'code_size': '138'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void)\n{\n\tint a,b,L,S;\n\t\n\tscanf(\"%d %d\",&a,&b);\n\t\n\tL=2*(a+b);\n\tS=a*b;\n\t\n\tprintf(\"%d %... |
CDSS_210075 | CDSS | #include <stdio.h>
#define max 2000000
int a[max+1], b[max+1], c[max+1];
int main(){
int n, i, j, k;
scanf("%d",&n);
for(i = 0; i < n; i++){
scanf("%d",&a[i+1]);
}
for(i = 0; i < n; i++){ //iの出現回数をカウント
c[a[i+1]]++;
}
for(i = 0; i < max; i++){ //i以下の出現回数カウント
c[i+1] = c[i+1] + c[i];
... | 25,148 | memory_bytes | {'s_id': 's109733988', 'p_id': 'p02275', 'u_id': 'u124579062', 'date': '1576220402', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '240', 'memory': '25148', '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#define max 2000000\nint a[max+1], b[max+1], c[max+1];\n\nint main(){\n \n int n, i, j, k;\n scanf(\"%d\",&n);... |
CDSS_365422 | CDSS | #include <stdio.h>
int main(void){
int i,j;
int count[27] = {0};
char c;
while(scanf("%c",&c) != EOF){
for(j = 97;j < 123;j++){
if(c >= 65 && c <= 90){
c+=32;
}else if(c < 97 || c > 122){
continue;
}
if(c == j){
count[j-97]++;
}
}
}
for(i = 0;i+97 < 123;i++){
printf("%c : %d\n"... | 540 | memory_bytes | {'s_id': 's476409911', 'p_id': 'p02417', 'u_id': 'u990607769', 'date': '1445008301', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '540', 'code_size': '352'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\n\nint main(void){\n\tint i,j;\n\tint count[27] = {0};\n\tchar c;\n\n\twhile(scanf(\"%c\",&c) != EOF){\n\t\tfor(j... |
CDSS_741069 | CDSS | #include<stdio.h>
int main()
{
int n,i,s=0;
scanf("%d",&n);
for(i=1;i<=n;i++)
s=s+i;
printf("%d\n",s);
return 0;
}
| 128 | memory_bytes | {'s_id': 's311741888', 'p_id': 'p04029', 'u_id': 'u726145559', 'date': '1590986142', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '126'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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,i,s=0;\n\n scanf(\"%d\",&n);\n for(i=1;i<=n;i++)\n s=s+i;\n\n printf(\"%d\\n\",s);\n\n ret... |
CDSS_399982 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<string.h>
int W_Length(char *str){
int length = 0;
while(*str++ != '\0')
length++;
return length;
}
double deg(double theta){//deg to theta
return theta*(2*3.14159265359)/360;
}
int cmp( const void *p, const void *q ) {
return *(int*)p - *(int*)... | 1,752 | memory_bytes | {'s_id': 's812577371', 'p_id': 'p02628', 'u_id': 'u770369399', 'date': '1592788597', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1752', 'code_size': '828'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\nint W_Length(char *str){\n\tint length = 0;\n\twhile(*s... |
CDSS_673723 | CDSS | #include <stdio.h>
int main(){
int n, a, b;
scanf("%d%d%d",&n,&a,&b);
printf("%d",a*n<b ? a*n:b);
return 0;
} | 128 | memory_bytes | {'s_id': 's479342765', 'p_id': 'p03501', 'u_id': 'u480472958', 'date': '1519061873', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '114'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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, a, b;\n\tscanf(\"%d%d%d\",&n,&a,&b);\n\tprintf(\"%d\",a*n<b ? a*n:b);\n\treturn 0;\n}\nPre... |
CDSS_713175 | CDSS | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdint.h> // int64_t
#define max(a,b) ((a) > (b) ? (a) : (b))
#define min(a,b) ((a) > (b) ? (b) : (a))
int get_int2(int *a1, int *a2) {
scanf("%d %d", a1, a2);
return 0;
}
// <arr[0]> <arr[1]> .. <arr[size-1]>
int fget_array(int64_t *arr, int s... | 1,664 | memory_bytes | {'s_id': 's893423345', 'p_id': 'p03762', 'u_id': 'u866370648', 'date': '1591651674', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '27', 'memory': '1664', 'code_size': '1311'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n#include <stdint.h> // int64_t\n\n#define max(a,b) ((a) > (b) ? (a) : (b... |
CDSS_655030 | CDSS | #include <stdio.h>
int main(void){
int a, b;
scanf("%d%d", &a, &b);
int i;
int count = 0;
for(i = a; i <= b; i++){
if(((i / 10000) % 10) == i % 10){
if((i / 1000) % 10 == (i / 10) % 10){
count++;
}
}
}
printf("%d\n", count);
return 0;
} | 128 | memory_bytes | {'s_id': 's006124122', 'p_id': 'p03416', 'u_id': 'u692797455', 'date': '1547325033', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '281'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 int i;\n int count = 0;\n for(i = a; i <= b; i++){... |
CDSS_129155 | CDSS | #include<stdio.h>
#define m 45
int N[m];
int F(int n){
if(n==0 || n==1)return N[n]=1;
if(N[n]!=-1)return N[n];
return N[n]=F(n-1)+F(n-2);
}
int main(){
int i, n;
for(i=0 ; i<m ; i++)N[i]=-1;
scanf("%d", &n);
printf("%d\n", F(n));
return 0;
}
| 2,116 | memory_bytes | {'s_id': 's540067472', 'p_id': 'p02233', 'u_id': 'u781291236', 'date': '1531988817', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2116', 'code_size': '261'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 m 45\n\nint N[m];\n\nint F(int n){\n if(n==0 || n==1)return N[n]=1;\n if(N[n]!=-1)return N[n];\n return ... |
CDSS_477364 | CDSS | #include <stdio.h>
#include <string.h>
#define BUF_SIZE 10
int main(void) {
char str[BUF_SIZE + 2];
scanf("%s", str);
int flag = 0, ptr;
for (ptr = 0; ptr < strlen(str); ptr += 2) {
if (!strncmp("hi", (str + ptr), 2)) {
flag = 1;
continue;
} else {
... | 128 | memory_bytes | {'s_id': 's051548868', 'p_id': 'p02747', 'u_id': 'u143118232', 'date': '1583716419', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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>\n\n#define BUF_SIZE 10\n\nint main(void) {\n char str[BUF_SIZE + 2];\n scanf(\"%s\", str... |
CDSS_288495 | CDSS | #include <stdio.h>
int main(){
int a, b, c;
scanf("%d %d %d", &a, &b, &c);
if( a < b ){
if( b < c ){
printf("%d %d %d\n", a, b, c);
}else{
if( c < a ){
printf("%d %d %d\n", c, a, b);
}else{
printf("%d %d %d\n", a, c, b);
}
}
}els... | 2,140 | memory_bytes | {'s_id': 's818651320', 'p_id': 'p02393', 'u_id': 'u502612806', 'date': '1539874123', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2140', '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>\n\nint main(){\n int a, b, c;\n scanf(\"%d %d %d\", &a, &b, &c);\n if( a < b ){\n if( b < c ){\n ... |
CDSS_61996 | CDSS | #include <stdio.h>
#include <stdlib.h>
int space[8][8] = {0};
void resetSpace()
{
int i, j;
for (i = 0; i < 8; i++) for (j = 0; j < 8; j++) space[i][j] = 0;
}
void inputToSpace(char input[], int row)
{
int i;
for (i = 0; i < 8; i++){
space[row][i] = input[i] - '0';
}
}
int shapeCheck (vo... | 2,032 | memory_bytes | {'s_id': 's238810058', 'p_id': 'p00036', 'u_id': 'u228549574', 'date': '1589524833', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2032', 'code_size': '2075'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 space[8][8] = {0};\n\nvoid resetSpace()\n{\n int i, j;\n for (i = 0; i < 8; i++) ... |
CDSS_656142 | CDSS | #include<stdio.h>
int main(void){
int N;
scanf("%d",&N);
printf("%d\n",N/3);
return 0;
} | 128 | memory_bytes | {'s_id': 's106974226', 'p_id': 'p03423', 'u_id': 'u506166992', 'date': '1524083351', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '103'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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;\n scanf(\"%d\",&N);\n printf(\"%d\\n\",N/3);\n\treturn 0;\t\t\n}\nPredict its mem... |
CDSS_728869 | CDSS | #include <stdio.h>
#include <string.h>
#define N 3000
#define MD 1000000007
int max(int a, int b) { return a > b ? a : b; }
int main() {
static char cc[N + 1];
static int dp[N + 1];
int n, m, k, k0, l_, r_;
scanf("%d%d%s", &n, &m, cc);
l_ = 0, r_ = -1, k0 = 0;
dp[0] = 1;
while (m--) {
int l, r;
scanf("%... | 1,728 | memory_bytes | {'s_id': 's641051280', 'p_id': 'p03859', 'u_id': 'u206350900', 'date': '1599397625', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '12', 'memory': '1728', 'code_size': '825'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\n#define N\t3000\n#define MD\t1000000007\n\nint max(int a, int b) { return a > b ? a : b; }\... |
CDSS_76066 | CDSS | #include<stdio.h>
int main(void){
char str[3000];
int i,j,k;
int n;
scanf("%d%*c",&n);
for(i = 0;i < n;i++){
fgets(str,3000,stdin);
/*k = 0;
while(str[k] != '\0'){
if(str[k] == '\n'){
str[k] = '\0';
}
k++;
}*/
j = 0;
while(str[j] != '\0'){
if(str[j] == 'H'){
if(str[j+1] == 'o'){
... | 608 | memory_bytes | {'s_id': 's726278703', 'p_id': 'p00101', 'u_id': 'u854735442', 'date': '1446481850', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '608', 'code_size': '586'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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\tchar str[3000];\n\tint i,j,k;\n\tint n;\n\tscanf(\"%d%*c\",&n);\n\tfor(i = 0;i < n;i++){\n\t\tfg... |
CDSS_175669 | CDSS | #include<stdio.h>
#include<stdlib.h>
void insertionSort(int *, int, int);
void shellSort(int *,int);
int cnt = 0;
main(){
int i,j,n,*A;
scanf("%d",&n);
A=(int *)malloc(sizeof(int)*n);
for(i=0;i<n;i++){
scanf("%d",&A[i]);
}
shellSort(A, n);
printf("%d\n",cnt);
for(i=0;i<n;i++){
printf("%d\n"... | 4,500 | memory_bytes | {'s_id': 's230385862', 'p_id': 'p02262', 'u_id': 'u805338419', 'date': '1469165673', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '370', 'memory': '4500', 'code_size': '915'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n \nvoid insertionSort(int *, int, int);\nvoid shellSort(int *,int);\n\nint cnt = 0;\nmain(){\n ... |
CDSS_681778 | CDSS | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdbool.h>
#include <math.h>
int main(void){
int H, W;
scanf("%d%d", &H, &W);
char S[H+2][W+3];
char T[H+1][W+1];
for(int i = 1; i <= H; i++){
scanf("%s", T[i]);
}
for(int i = 0; i <= W+1; i++){
S[0][... | 1,716 | memory_bytes | {'s_id': 's197859013', 'p_id': 'p03574', 'u_id': 'u746385710', 'date': '1600546371', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1716', 'code_size': '1005'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n#include <stdbool.h>\n#include <math.h>\n\nint main(void){\n\n int H,... |
CDSS_157763 | CDSS | #include<stdio.h>
#include<stdlib.h>
int IsPrime(int);
int main() {
int i,count=0,n,*sosu;
scanf("%d",&n);
sosu = (int *)malloc(n * sizeof (int));
for(i=n-1;i>=0;i--){
scanf("%d",&sosu[i]);
if(IsPrime(sosu[i]) == 1) count++;
}
printf("%d\n",count);
return 0;
... | 2,072 | memory_bytes | {'s_id': 's218422702', 'p_id': 'p02257', 'u_id': 'u147767288', 'date': '1529051498', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2072', 'code_size': '579'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\nint IsPrime(int);\nint main() {\n int i,count=0,n,*sosu;\n scanf(\"%d\",&n);\n \n sos... |
CDSS_65837 | CDSS | #include <stdio.h>
int main(void) {
unsigned long long num5=0;
int in,intmp;
while(scanf("%d",&in),in) {
num5=0;
for(;in>0;in--){
intmp=in;
while(!(intmp%5)) {
intmp/=5;
num5++;
}
}
printf("%lld\n",num5);
}
return 0;
} | 600 | memory_bytes | {'s_id': 's098059335', 'p_id': 'p00052', 'u_id': 'u585391547', 'date': '1408641828', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '250'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\tunsigned long long num5=0;\n\tint in,intmp;\n\twhile(scanf(\"%d\",&in),in) {\n\t\tnum5=0;\n... |
CDSS_565957 | CDSS | #include <stdio.h>
#include <string.h>
int main()
{
char k[15];
int len,c = 0;
scanf("%s",k);
len = strlen(k);
for (int i = 0; i < len; i++)
{
if (k[i] == 'o')
{
c ++;
}
}
if (c + 15 - len >= 8)
{
printf("YES");
}
else
{
... | 128 | memory_bytes | {'s_id': 's973329561', 'p_id': 'p03024', 'u_id': 'u494609869', 'date': '1559438757', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '355'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\nint main()\n{\n char k[15];\n int len,c = 0;\n\n scanf(\"%s\",k);\n\n len = str... |
CDSS_320427 | CDSS | #include<stdio.h>
int main(void){
int a,b,i;
char op;
for(i=0;;i++){
scanf("%d %c %d",&a,&op,&b);
if(op=='+')printf("%d\n",a+b);
else if(op=='-')printf("%d\n",a-b);
else if(op=='*')printf("%d\n",a*b);
else if(op=='/')printf("%d\n",a/b);
else if(op=='?')break;
... | 2,068 | memory_bytes | {'s_id': 's401308629', 'p_id': 'p02401', 'u_id': 'u005118816', 'date': '1597470767', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2068', 'code_size': '351'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n int a,b,i;\n char op;\n for(i=0;;i++){\n scanf(\"%d %c %d\",&a,&op,&b);\n ... |
CDSS_113546 | CDSS | #include<stdio.h>
int main(void)
{
int x,y;
while(1)
{
scanf("%d %d",&x,&y);
//printf("x=%d,y=%d\n",x,y);
if(x==0 && y==0)
{
break;
}
int field[102][102]={};
int robot[2][2]={}; //robot[0][0]=x;robot[0][1]=y;robot[1][0]=??????
... | 652 | memory_bytes | {'s_id': 's179762978', 'p_id': 'p00686', 'u_id': 'u964619663', 'date': '1444353717', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '652', 'code_size': '5948'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 x,y;\n\n while(1)\n {\n scanf(\"%d %d\",&x,&y);\n //printf(\"x=%d,y=... |
CDSS_579135 | CDSS | #include<stdio.h>
int main(void){
int a,b;
scanf("%d%d",&a,&b);
int sum=0;
for(int i=0;i<2;i++){
if(a>=b){sum+=a;
a--;
}
else {sum+=b;
b--;
}
}
printf("%d",sum);
return 0;
} | 128 | memory_bytes | {'s_id': 's709981332', 'p_id': 'p03071', 'u_id': 'u073336549', 'date': '1589079481', '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>\nint main(void){\n int a,b;\n scanf(\"%d%d\",&a,&b);\n int sum=0;\n for(int i=0;i<2;i++){\n\tif(a>=b){sum+=a;\n ... |
CDSS_273296 | CDSS | #include<stdio.h>
int main(){
int a,b;
scanf("%d %d",&a,&b);
if(a<b){
printf("a < b\n");
}
if(a>b){
printf("a > b\n");
}
if(a==b){
printf("a == b\n");
}
return 0;
} | 580 | memory_bytes | {'s_id': 's893809680', 'p_id': 'p02391', 'u_id': 'u381482640', 'date': '1347696410', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', '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 int a,b;\n scanf(\"%d %d\",&a,&b);\n if(a<b){\n printf(\"a < b\\n\");\n }\n if(a>b){\n pri... |
CDSS_449482 | CDSS | #include<stdio.h>
#include<string.h>
int main()
{
char N[3];
int i;
scanf("%s",&N);
for(i=0;i<3;i++)
{
if(N[i]=='7')
{
printf("Yes\n");
return 0;
}
}
printf("No\n");
} | 1,660 | memory_bytes | {'s_id': 's708395341', 'p_id': 'p02711', 'u_id': 'u661988345', 'date': '1586743671', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '1660', 'code_size': '221'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\nint main()\n{\n char N[3];\n int i;\n scanf(\"%s\",&N);\n for(i=0;i<3;i++)\n {\n... |
CDSS_630754 | CDSS | #include<stdio.h>
int main()
{
int a[3];
scanf("%d %d %d", &a[0], &a[1], &a[2]);
int i;
int max = 0, min = 2000000000;
for (i = 0; i < 3; i++)
{
if (max < a[i])
max = a[i];
if (min > a[i])
min = a[i];
}
printf("%d\n", max - min);
return 0;
} | 128 | memory_bytes | {'s_id': 's443184705', 'p_id': 'p03292', 'u_id': 'u600300412', 'date': '1532221514', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '317'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n int a[3];\n scanf(\"%d %d %d\", &a[0], &a[1], &a[2]);\n int i;\n int max = 0, min = 200... |
CDSS_219070 | CDSS | #include<stdio.h>
#include<stdlib.h>
struct node{
int key;
int depth;
struct node *parent;
struct node *left;
struct node *right;
};
typedef struct node *Node;
int degree(Node);
void calcDepth(Node T,int p){
T->depth = p;
if(T->right!=NULL) calcDepth(T->right,p+1);
if(T->left!=NULL) calcDepth(T->left,p... | 2,104 | memory_bytes | {'s_id': 's533899203', 'p_id': 'p02280', 'u_id': 'u979828546', 'date': '1547120677', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '1845'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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>\nstruct node{\n int key;\n int depth;\n struct node *parent;\n struct node *left;\n struct ... |
CDSS_111371 | CDSS | #include <stdio.h>
main(){
int a,b;
int i,temp;
while(1){
if(scanf("%d %d", &a, &b)==EOF) break;
if(a>=b){
for(i=1;i<=b;i++){
if(a%i==0 && b%i==0) temp=i;
}
printf("%d\n", temp);
}
else{
for(i=1;i<=a;i++){
if(a%i==0 && b%i==0) temp=i;
}
printf("%d\n", temp... | 0 | memory_bytes | {'s_id': 's825342853', 'p_id': 'p00595', 'u_id': 'u622083648', 'date': '1283353317', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '346'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nmain(){\n int a,b;\n int i,temp;\n\n\n while(1){\n if(scanf(\"%d %d\", &a, &b)==EOF) break;\n\n if(a>=b... |
CDSS_46674 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <math.h>
typedef struct{
double x, y;
} point;
int main(int argc, const char * argv[])
{
point p[4];
double s[4];
int i;
while (scanf("%lf %lf %lf %lf %lf %lf %lf %lf", &p[0].x, &p[0].y, &p[1].x, &p[1].y, &p[2].x, &p[2].y, &p[3].x, &p[3].y) != EOF) {... | 612 | memory_bytes | {'s_id': 's117868964', 'p_id': 'p00012', 'u_id': 'u113082491', 'date': '1387283957', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '612', 'code_size': '876'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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{\n double x, y;\n} point;\n\nint main(int argc, const ... |
CDSS_683394 | CDSS | #include <stdio.h>
int main()
{
int n, m, k;
int i,j;
scanf("%d%d%d", &n, &m, &k);
for (i = 0; i <= n; i++)
{
//printf("i:%d\n",i);
for (j = 0; j <= m; j++)
{
//printf("j:%d\n",j);
if (n * j + m * i - 2 * i * j == k)
{
pr... | 128 | memory_bytes | {'s_id': 's466617945', 'p_id': 'p03592', 'u_id': 'u699912843', 'date': '1506219427', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '422'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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, k;\n int i,j;\n\n scanf(\"%d%d%d\", &n, &m, &k);\n\n for (i = 0; i <= n; i... |
CDSS_686473 | CDSS | #include<stdio.h>
int main()
{
int a,b;
scanf("%d%d",&a,&b);
if(a>b)//还有沙子是会倒完的(不然要a干什么)
printf("%d\n",a-b);//回车了解一下?
else
printf("0\n");//是0,不是空,em··· 大佬的是错的。。。
return 0;
} | 128 | memory_bytes | {'s_id': 's956821540', 'p_id': 'p03609', 'u_id': 'u426964396', 'date': '1584493712', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '282'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 scanf(\"%d%d\",&a,&b);\n if(a>b)//还有沙子是会倒完的(不然要a干什么)\n printf(\"%d\\n\",a-b)... |
CDSS_124899 | CDSS | i,j,c,b,v,u,D[10000];main(N,K,T,U,V,L,x){
scanf("%d%d%d%d%d%d",&N,&K,&T,&U,&V,&L);
for(;i<N;i++)scanf("%d",&x),D[x]=1;
for(;j<L;b?v++,b--:u++,j++)if((c+=D[j])>K||(c&&!b))c--,b=T*V;
printf("%f\n",1.*v/V+1.*u/U);
exit(0);} | 668 | memory_bytes | {'s_id': 's670933366', 'p_id': 'p01415', 'u_id': 'u300645821', 'date': '1351430471', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '668', '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:\ni,j,c,b,v,u,D[10000];main(N,K,T,U,V,L,x){\nscanf(\"%d%d%d%d%d%d\",&N,&K,&T,&U,&V,&L);\nfor(;i<N;i++)scanf(\"%d\",&x),D[x]=1;\nfor(;j<L... |
CDSS_95552 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<math.h>
#define FOR(n) for(int i=0;i<n;i++)
#define FORJ(n) for(int j=0;j<n;j++)
#define PRN(n) printf("%d\n",n)
#define PRF(n) printf("%lf\n",n)
#define PRL(n) printf("%lld\n",n)
#define PRS(s) printf("%s\n",s)
#define PRC(c) printf("%c",c)
#define mod 1... | 2,140 | memory_bytes | {'s_id': 's548328066', 'p_id': 'p00354', 'u_id': 'u029152603', 'date': '1566915034', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2140', 'code_size': '752'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 FOR(n) for(int i=0;i<n;i++)\n#define FORJ(n) for(... |
CDSS_723241 | CDSS | #include <stdio.h>
int main(void)
{
int a,i, count = 0;
char yourinput[1024],check;
int go=0;
scanf("%d", &a);
scanf("%s", yourinput);
check = 'I';
for (i = 0; yourinput[i] != '\0'; i++)
{
if (yourinput[i] == check)
{
count++;
}
else {
count--;
}
if (go < count) {
go... | 128 | memory_bytes | {'s_id': 's809535071', 'p_id': 'p03827', 'u_id': 'u105039872', 'date': '1484537785', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '378'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\n\n\tint main(void)\n\t{\n\t\tint a,i, count = 0;\n\t\tchar yourinput[1024],check;\n\t\tint go=0;\n\n\t\tscanf(\... |
CDSS_566506 | CDSS | #include<stdio.h>
int main()
{
long long int a,p,n,ans;
scanf("%lld %lld",&a,&p);
n = a*3 + p;
ans = n/2;
printf("%lld\n",ans);
return 0;
}
| 128 | memory_bytes | {'s_id': 's104132746', 'p_id': 'p03029', 'u_id': 'u940657701', 'date': '1570500175', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '146'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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\tlong long int a,p,n,ans;\n\tscanf(\"%lld %lld\",&a,&p);\n\tn = a*3 + p;\n\tans = n/2;\n\tprintf(\"... |
CDSS_177134 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define N 200
int isEmpty(int);
int main()
{
int i=0, j, n=0, top=0, S[N];
char c[N];
for(i = 1 ; i < N ; i++)
{
if(scanf("%s",c)==EOF) break;
else if(isEmpty(i)==1){
if(!strcmp(c,"+")){
S[i-2]=S[i-1] + S[i-2];
i = i - 2;
... | 548 | memory_bytes | {'s_id': 's078583751', 'p_id': 'p02263', 'u_id': 'u149941997', 'date': '1461216678', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '548', 'code_size': '656'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#define N 200\nint isEmpty(int);\nint main()\n{\n int i=0, j, n=0, top=... |
CDSS_110188 | CDSS | /*
* JOI / Prelim 0642
* Sugoroku: find a maxium length of the series made only by one
*/
#include <stdio.h>
int main(void)
{
int max = 0;
int tmp_max = 0;
int n;
scanf("%d", &n);
int i;
for (i = 0; i < n; i++) {
int status;
scanf("%d", &status);
if (status == ... | 2,108 | memory_bytes | {'s_id': 's201321811', 'p_id': 'p00565', 'u_id': 'u428405749', 'date': '1544867349', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '544'} | [
{
"content": "Your task is to predict the memory 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 * JOI / Prelim 0642\n * Sugoroku: find a maxium length of the series made only by one\n */\n\n#include <stdio.h>\n\nint main(... |
CDSS_582727 | CDSS | #include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <limits.h>
#define MAX 1000
typedef long long ll;
typedef unsigned long long ull;
extern inline int max( int a, int b ) { return a > b ? a : b ; }
extern inline int min( int a... | 128 | memory_bytes | {'s_id': 's604870192', 'p_id': 'p03075', 'u_id': 'u261077270', 'date': '1556995891', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '128', 'code_size': '896'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 <stdbool.h>\n#include <stdlib.h>\n#include <string.h>\n#include <math.h>\n#include <limits.h>\n#define MA... |
CDSS_119578 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<math.h>
int N,r[575],i,j;
double x=0,p[575];
double max(double a,double b){return a>b?a:b;}
double min(double a,double b){return a<b?a:b;}
double ch(int r1,int r2)
{
double a=1.0*r1+r2,b=1.0*r1-r2;
return sqrt((a*a)-(b*b));
}
int main()
{
scanf("%d",&N);
for(i=0;i<N;i+... | 640 | memory_bytes | {'s_id': 's875422386', 'p_id': 'p00936', 'u_id': 'u363039534', 'date': '1464129190', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '640', 'code_size': '503'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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>\nint N,r[575],i,j;\ndouble x=0,p[575];\ndouble max(double a,double b){return a... |
CDSS_250953 | CDSS | #include<stdio.h>
int main(){
int a,b,m,s;
scanf("%d%d",&a,&b);
s = a*b;
m = 2*(a+b);
printf("%d %d\n",s,m);
return 0;
} | 596 | memory_bytes | {'s_id': 's077362126', 'p_id': 'p02389', 'u_id': 'u393312973', 'date': '1444535370', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '120'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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,m,s;\nscanf(\"%d%d\",&a,&b);\ns = a*b;\nm = 2*(a+b);\nprintf(\"%d %d\\n\",s,m);\nreturn 0;\n}\... |
CDSS_582771 | CDSS | #include <stdio.h>
#define N 6
int main(void)
{
int input[N];
int i,j;
for( i = 0; i < N; i++ ){
scanf("%d", input+i);
}
for( i = 0; i < N; i++ ){
for( j = i + 1; j < N; j++){
if(input[5] < input[j] - input[i]){
printf(":(\n");
return 0;
}
}
}
printf("Yay!... | 128 | memory_bytes | {'s_id': 's742668299', 'p_id': 'p03075', 'u_id': 'u992145640', 'date': '1556141730', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', '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#define N 6\n\nint main(void)\n{\n int input[N];\n int i,j;\n \n for( i = 0; i < N; i++ ){\n scanf(\"%d\", ... |
CDSS_220951 | CDSS | #include<stdio.h>
#include<stdlib.h>
#define NIL NULL
struct node{
struct node *right;
struct node *left;
struct node *parent;
int key;
};
typedef struct node * Node;
Node root;
void insert(int k){
Node y=NIL;
Node x=root;
Node z;
z=malloc(sizeof(struct node));
z->key=k;
z->left=NIL;
z->righ... | 25,116 | memory_bytes | {'s_id': 's805404616', 'p_id': 'p02283', 'u_id': 'u862559864', 'date': '1531531711', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '320', 'memory': '25116', 'code_size': '1080'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n\n#define NIL NULL\n\nstruct node{\n struct node *right;\n struct node *left;\n struct node ... |
CDSS_220145 | CDSS | #include <stdio.h>
#define MAX 1000
#define NIL -1
struct Node {
int p, l, r;
};
struct Node T[MAX];
int n;
void middle( int u );
void follower( int u );
void preceding(int u);
int main()
{
int i, x, l, r, ooo;
scanf("%d", &n);
for ( i = 0; i < n; i++ ) {
T[i].p = NIL;
}
for( i = 0; i < n; i++ ) {
sc... | 2,052 | memory_bytes | {'s_id': 's215031995', 'p_id': 'p02281', 'u_id': 'u942290961', 'date': '1580113883', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2052', 'code_size': '1117'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 1000\n#define NIL -1\n\nstruct Node { \nint p, l, r; \n};\nstruct Node T[MAX];\nint n;\n\nvoid middle(... |
CDSS_594071 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include <string.h>
int main(void){
int n,i;
double moe,ans;
char han[4];
while(scanf("%d",&n)!=1);
for(i=0;i<n;i++){
while(scanf("%lf%s",&moe,han)!=2);
if(strcmp(han,"JPY")==0){
ans+=moe;
}else if(strcmp(han,"BTC")==0){
ans+=moe*380000;
}
}
... | 128 | memory_bytes | {'s_id': 's959093548', 'p_id': 'p03110', 'u_id': 'u720483676', 'date': '1551039385', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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#include<stdlib.h>\n#include <string.h>\n\nint main(void){\n int n,i;\n double moe,ans;\n char han[4];\n while(... |
CDSS_270741 | CDSS | #include<stdio.h>
int main(void){
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;
} | 580 | memory_bytes | {'s_id': 's525399136', 'p_id': 'p02391', 'u_id': 'u517983348', 'date': '1495182126', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', 'code_size': '186'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n\tint a,b;\n\tscanf(\"%d %d\",&a,&b);\n\t\n\tif(a<b){\n\t\tprintf(\"a < b\\n\");\n\t}else if(a>b){... |
CDSS_598184 | CDSS | #include<stdio.h>
int main()
{
int i,N,max=0,max_i,sum=0,L[100];
scanf("%d",&N);
for(i=0;i<N;i++)
{
scanf("%d",&L[i]);
}
for(i=0;i<N;i++)
{
if(L[i]>max)
{
max=L[i];
max_i=i;
}
}
for(i=0;i<N;i++)
{
if(i!=max_i)
{
sum+=L[i];
}
}
if(max<sum... | 128 | memory_bytes | {'s_id': 's214294259', 'p_id': 'p03136', 'u_id': 'u377011568', 'date': '1549247945', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', '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>\n\nint main()\n{\n int i,N,max=0,max_i,sum=0,L[100];\n \n scanf(\"%d\",&N);\n \n for(i=0;i<N;i++)\n {\n \tsca... |
CDSS_405296 | CDSS | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
int verbose = 1;
int main(void)
{
long int a, b, v, w, t;
if (fscanf(stdin, "%ld %ld", &a, &v) == EOF) {
printf("NO\n");
}
if (fscanf(stdin, "%ld %ld", &b, &w) == EOF) {
printf("NO\n");
}
if (fscanf(stdin, "%ld", &t) == EOF)... | 1,600 | memory_bytes | {'s_id': 's915052746', 'p_id': 'p02646', 'u_id': 'u511662927', 'date': '1592108747', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1600', 'code_size': '508'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n\nint verbose = 1;\nint main(void)\n{\n long int\ta, b, v, w... |
CDSS_219998 | CDSS | #include<stdio.h>
#define MAX 100005
#define NIL -1
/*
p: parent
l: left-child
r: right sibling
*/
struct Node{
int p, l, r;
};
struct Node T[MAX]; // Tree
int n;
void preorder(int u){
printf(" %d",u);
if(T[u].l!=NIL) preorder(T[u].l);
if(T[u].r!=NIL) preorder(T[u].r);
}
void inorder(int u){
if (T[u].... | 620 | memory_bytes | {'s_id': 's291283242', 'p_id': 'p02281', 'u_id': 'u911585426', 'date': '1402613036', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '620', 'code_size': '1060'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 100005\n#define NIL -1\n\n/*\n p: parent\n l: left-child\n r: right sibling\n */\nstruct Node{\n int p... |
CDSS_646616 | CDSS |
#include<stdio.h>
int judge_prime(int n){
int divcnt = 0;
for(int i = 1; i <= n; i++){
if(n % i == 0){
divcnt ++;
}
}
if(divcnt == 2){
return 1;
}
return 0;
}
void print_array(int data[], int n){
for(int i = 0; i < n; i++){
printf("%d ", data[i... | 128 | memory_bytes | {'s_id': 's218003979', 'p_id': 'p03362', 'u_id': 'u502731482', 'date': '1580965565', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '605'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n\n#include<stdio.h>\n\nint judge_prime(int n){\n int divcnt = 0;\n for(int i = 1; i <= n; i++){\n if(n % i == 0){\n ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.