identifier string | space string | input string | target float64 | metric_type string | metadata string | messages list |
|---|---|---|---|---|---|---|
CDSS_190089 | CDSS | #include<stdio.h>
int main(){
int i,j,n,m,P[10000],Q[500],c=0;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d",&P[i]);
}
scanf("%d",&m);
for(i=0;i<m;i++){
scanf("%d",&Q[i]);
}
for(i=0;i<m;i++){
for(j=0;j<n;j++){
if(P[j]==Q[i]){
c++;
break;
}
}
}
printf("%d\n",c);
retur... | 2,108 | memory_bytes | {'s_id': 's640108206', 'p_id': 'p02267', 'u_id': 'u733647639', 'date': '1530581627', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '328'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n int i,j,n,m,P[10000],Q[500],c=0;\n\n scanf(\"%d\",&n);\n for(i=0;i<n;i++){\n scanf(\"%d\",&P[... |
CDSS_37782 | CDSS | #include <stdio.h>
#include <string.h>
#define N 20
int main()
{
char str[N];
scanf("%s",str);
int n=strlen(str);
int i;
for(i=0;i<n/2;i++){
if(i!=n-1-i){
char ch=str[i];
str[i]=str[n-1-i];
str[n-1-i]=ch;
}
}
printf("%s\n",str);
return 0;
} | 524 | memory_bytes | {'s_id': 's148338341', 'p_id': 'p00006', 'u_id': 'u252365561', 'date': '1503630923', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', 'code_size': '286'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n#define N 20\n\nint main()\n{\n char str[N];\n scanf(\"%s\",str);\n int n=strlen(str);\n ... |
CDSS_260993 | CDSS | #include<stdio.h>
int main(void){
int s;
scanf("%d",&s);
printf("%d:%d:%d\n",s/3600,s%3600/60,s%60);
return 0;
} | 592 | memory_bytes | {'s_id': 's255245276', 'p_id': 'p02390', 'u_id': 'u439199395', 'date': '1471842705', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', 'code_size': '116'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n\tint s;\n\tscanf(\"%d\",&s);\n\tprintf(\"%d:%d:%d\\n\",s/3600,s%3600/60,s%60);\n\treturn 0;\n}\nP... |
CDSS_65704 | CDSS | #include<stdio.h>
void sort(int box[]){
int i,j,temp;
for(i=0;i<7;i++){
for(j=7;j>i;j--){
if(box[j]>box[j-1]){
temp=box[j];
box[j]=box[j-1];
box[j-1]=temp;
}
}
}
}
int main(void){
int n,i,origin,box[10],max,min;
scanf("%d",&n);
while(n--){
scanf("%d",&origin);
max=0;min=0;
for(i=0;i<... | 600 | memory_bytes | {'s_id': 's023673291', 'p_id': 'p00051', 'u_id': 'u988309310', 'date': '1468150586', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '516'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nvoid sort(int box[]){\n\tint i,j,temp;\n\tfor(i=0;i<7;i++){\n\t\tfor(j=7;j>i;j--){\n\t\t\tif(box[j]>box[j-1]){\n\t\... |
CDSS_659919 | CDSS | #include<stdio.h>
long long int a[100005];
int par[100005], min[100005];
int root(int n)
{
if (par[n] != n)
par[n] = root(par[n]);
return par[n];
}
void uni(int x, int y)
{
x = root(x);
y = root(y);
par[x] = y;
if (a[min[x]] < a[min[y]])
min[y] = min[x];
return;
}
int h[100005], l;
int comp_h(int x, int y)
{... | 4,820 | memory_bytes | {'s_id': 's295345328', 'p_id': 'p03440', 'u_id': 'u600300412', 'date': '1600373531', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '52', 'memory': '4820', 'code_size': '1889'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nlong long int a[100005];\nint par[100005], min[100005];\nint root(int n)\n{\n\tif (par[n] != n)\n\t\tpar[n] = root(... |
CDSS_657640 | CDSS | #define M_PI 3.14159265358979323846
#include <stdio.h>
#include <math.h>
int main(void){
double PI=M_PI;
double po=PI*2/100000;
int N;
scanf("%d",&N);
double x[N],y[N];
for(int i=0;i<N;i++)scanf("%lf %lf",&x[i],&y[i]);
int kakuritu[N];
for(int i=0;i<N;i++)kakuritu[i]=0;
for(int i=0... | 384 | memory_bytes | {'s_id': 's039311316', 'p_id': 'p03428', 'u_id': 'u601717680', 'date': '1519525375', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '257', 'memory': '384', 'code_size': '678'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#define M_PI 3.14159265358979323846\n#include <stdio.h>\n#include <math.h>\n\n\nint main(void){\n double PI=M_PI;\n double po=PI... |
CDSS_166773 | CDSS | #include <stdio.h>
void swap(int *a,int *b) {
int tmp = *a;
*a = *b;
*b = tmp;
}
int main(void) {
int seq[100];
int n;
int i,j;
int swap_count = 0;
scanf("%d",&n);
for (i = 0;i != n;++i) {
scanf("%d",seq + i);
}
// bubble sort
for (i = 0;i != n;++i) {
for (j = n - 1;j != i;--j) {
if (seq[j - 1] > ... | 600 | memory_bytes | {'s_id': 's045199734', 'p_id': 'p02259', 'u_id': 'u582608581', 'date': '1499830561', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '517'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 swap(int *a,int *b) {\n\tint tmp = *a;\n\t*a = *b;\n\t*b = tmp;\n}\n\nint main(void) {\n\tint seq[100];\n\t... |
CDSS_621740 | CDSS | #include <stdio.h>
int main(void) {
int k, cnt=0;
scanf("%d", &k);
for (int i=0;i<=k;i++) {
for (int j=i+1;j<k;j++) {
if ((i%2==0&&j%2==1)||(i%2==1&&j%2==0)) {
cnt++;
}
}
}
printf("%d\n",cnt);
return 0;
}
| 128 | memory_bytes | {'s_id': 's054536455', 'p_id': 'p03264', 'u_id': 'u015875086', 'date': '1572202722', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', '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>\nint main(void) {\n\tint k, cnt=0;\n\tscanf(\"%d\", &k);\n\tfor (int i=0;i<=k;i++) {\n\t\tfor (int j=i+1;j<k;j++) {... |
CDSS_198092 | CDSS | #include<stdio.h>
#include<string.h>
#define M 1000000
#define L 12
char H[M][L]; /* Hash Table */
int getChar(char ch){
if ( ch == 'A') return 1;
else if ( ch == 'C') return 2;
else if ( ch == 'G') return 3;
else if ( ch == 'T') return 4;
}
/* convert a string into an integer value */
long long getKey(char ... | 13,468 | memory_bytes | {'s_id': 's907381488', 'p_id': 'p02269', 'u_id': 'u318027587', 'date': '1532938167', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '190', 'memory': '13468', 'code_size': '1459'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 M 1000000\n#define L 12\n\nchar H[M][L]; /* Hash Table */\n\nint getChar(char ch){\n ... |
CDSS_569552 | CDSS | #include <stdio.h>
int main(void){
int a,b,N,M,i,j,count,amax,bmin;
amax = 0;
bmin = 1000000;
i = j = count = 0;
int okbox[100002];
for (i = 0; i < 100002; i++){
okbox[i] = 0;
}
scanf("%d %d",&N,&M);
for(i = 0; i < M ; i++){
scanf("%d %d",&a,&b);
if (a >... | 128 | memory_bytes | {'s_id': 's197312757', 'p_id': 'p03037', 'u_id': 'u776632505', 'date': '1558836075', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '18', 'memory': '128', 'code_size': '532'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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,M,i,j,count,amax,bmin;\n amax = 0;\n bmin = 1000000;\n i = j = count = 0;\... |
CDSS_317225 | CDSS | #include<stdio.h>
int main()
{
double r,A,p;
scanf("%lf",&r);
A=3.141592653589*r*r;
p=2*3.141592653589*r;
printf("%.6lf %.6lf\n", A,p);
return 0;
}
| 2,052 | memory_bytes | {'s_id': 's443157945', 'p_id': 'p02400', 'u_id': 'u503648542', 'date': '1582965524', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2052', 'code_size': '177'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 double r,A,p;\n scanf(\"%lf\",&r);\n A=3.141592653589*r*r;\n p=2*3.141592653589*r;\n ... |
CDSS_737363 | CDSS | #include <stdio.h>
int main(void){
int a,b,h;
scanf("%d%d%d",&a,&b,&h);
printf("%d\n",(a+b)*h/2);
return 0;
} | 128 | memory_bytes | {'s_id': 's751824222', 'p_id': 'p03997', 'u_id': 'u690536347', 'date': '1537503915', '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(void){\n int a,b,h;\n scanf(\"%d%d%d\",&a,&b,&h);\n printf(\"%d\\n\",(a+b)*h/2);\n return 0... |
CDSS_260288 | CDSS | #include<stdio.h>
int main(){
int time;
scanf("%d",&time);
int h = time/3600;
int ha = time%3600;
int m = ha/60;
int s= ha%60;
printf("%d:%d:%d\n",h,m,s);
return 0;
} | 592 | memory_bytes | {'s_id': 's617099558', 'p_id': 'p02390', 'u_id': 'u212664316', 'date': '1460686441', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', 'code_size': '187'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int time;\n scanf(\"%d\",&time);\n\n int h = time/3600;\n int ha = time%3600;\n int m = ha/60;\n... |
CDSS_650618 | CDSS | #include <stdio.h>
int main(void){
char s[4];
int c = 1;
scanf("%s", s);
for(int i = 0; i < 3; i++){
c *= s[i] - 'a' + 1;
}
printf("%s\n", (c == 6) ? "Yes" : "No");
return 0;
} | 128 | memory_bytes | {'s_id': 's754635626', 'p_id': 'p03385', 'u_id': 'u318955153', 'date': '1554504033', '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>\nint main(void){\n char s[4];\n int c = 1;\n scanf(\"%s\", s);\n for(int i = 0; i < 3; i++){\n c *= s[i] -... |
CDSS_520417 | CDSS | #include <stdio.h>
#include <math.h>
int main(){
int a, b, x;
long double z, d, tan;
scanf("%d%d%d", &a, &b, &x);
if(a*a*b/2 <= x){
d = b - x/ ((long double) a*a);
tan = 2*d/a;
}else{
z = 2*x/ ((long double)a*b);
tan = b/z;
}
//printf("%.12Lf %Lf %Lf %Lf\n", atanl(tan) * 180.0 / 3.14159265, d, z, tan);
... | 128 | memory_bytes | {'s_id': 's943881090', 'p_id': 'p02882', 'u_id': 'u355322985', 'date': '1572229852', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '375'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\tint a, b, x;\n\tlong double z, d, tan;\n\tscanf(\"%d%d%d\", &a, &b, &x);\n\tif(a... |
CDSS_230981 | CDSS | #include <stdio.h>
#include <stdlib.h>
#define MAX 2000000
int H;
int A[MAX+1];
void insert(int);
void heapIncreaseKey(int *, int, int);
int heapExtractMax(int *);
void maxHeapify(int *, int);
int main(){
int key;
char k[10];
while(1){
scanf("%s",k);
if(k[0] == 'e' && k[1] == 'n') break;
if(k[0] =... | 5,604 | memory_bytes | {'s_id': 's709316036', 'p_id': 'p02289', 'u_id': 'u358392022', 'date': '1548044354', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '300', 'memory': '5604', 'code_size': '1151'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#define MAX 2000000\n\nint H;\nint A[MAX+1];\n\nvoid insert(int);\nvoid heapIncreaseKey(int *... |
CDSS_363928 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
int main(void){
char num_str[1002];
int num;
long sum = 0;
int i;
char tmp;
while (1){
fgets(num_str,sizeof(num_str),stdin);
if (num_str[0] =='0') break;
for (i = 0; i < strlen(num_str)-1; i++){
tmp = num_str[i];
num = atoi(&tmp);
sum = sum + num;
... | 532 | memory_bytes | {'s_id': 's791991456', 'p_id': 'p02416', 'u_id': 'u609610058', 'date': '1481265887', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '532', 'code_size': '396'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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#include<stdlib.h>\n\n#include<string.h>\n\nint main(void){\n\nchar num_str[1002];\n\nint num;\n\nlong sum = 0;\n... |
CDSS_96289 | CDSS | #include<stdio.h>
typedef unsigned long long ll;
ll gcd(ll a, ll b){
ll tmp;
if(a<b){
tmp = a;
a = b;
b = tmp;
}
while(b){
tmp = a;
a = b;
b = tmp%b;
}
return a;
}
ll lcm(ll ... | 2,132 | memory_bytes | {'s_id': 's941074177', 'p_id': 'p00405', 'u_id': 'u726971073', 'date': '1595657562', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '460', 'memory': '2132', 'code_size': '920'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 unsigned long long ll;\n\nll gcd(ll a, ll b){\n ll tmp;\n if(a<b){\n tmp = a;\... |
CDSS_247082 | CDSS | #include<stdio.h>
int main()
{
int e;
scanf("%d",&e);
printf("%d\n",e*e*e);
return 0;
}
| 2,036 | memory_bytes | {'s_id': 's730524269', 'p_id': 'p02388', 'u_id': 'u011621222', 'date': '1524078535', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2036', 'code_size': '105'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 e;\n scanf(\"%d\",&e);\n printf(\"%d\\n\",e*e*e);\n return 0;\n}\n\n\nPredict its m... |
CDSS_378820 | CDSS | #include<stdio.h>
#include<string.h>
int main() {
char s[1001], t[1001];
scanf("%s", s);
scanf("%s", t);
char *p;
int i,j;
int count,ans;
ans = 100000;
for (i=0;i<strlen(s)-strlen(t)+1;i++) {
p = &s[i];
count =0;
for (j=0;j<strlen(t);j++) {
if (t[j]!=p[j]) {
count++;
}
... | 1,736 | memory_bytes | {'s_id': 's638881817', 'p_id': 'p02571', 'u_id': 'u509739538', 'date': '1599401786', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '7', 'memory': '1736', 'code_size': '427'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 char s[1001], t[1001];\n scanf(\"%s\", s);\n scanf(\"%s\", t);\n char *p;\... |
CDSS_679004 | CDSS | #include <math.h>
#include <stdio.h>
#include <stdint.h>
int main(){
uint64_t n;
scanf("%ld", &n);
uint64_t x = (uint64_t)sqrt(n);
printf("%ld\n", x * x);
return 0;
}
| 128 | memory_bytes | {'s_id': 's215719543', 'p_id': 'p03556', 'u_id': 'u399938794', 'date': '1510387757', '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 <math.h>\n#include <stdio.h>\n#include <stdint.h>\n\nint main(){\n\tuint64_t n;\n\tscanf(\"%ld\", &n);\n\tuint64_t x = (uint6... |
CDSS_684032 | CDSS | #include <stdio.h>
int main() {
int n;
int a;
int b;
scanf("%d", &n);
scanf("%d", &a);
b = n * n - a;
printf("%d\n", b);
return 0;
}
| 128 | memory_bytes | {'s_id': 's193482570', 'p_id': 'p03597', 'u_id': 'u451787864', 'date': '1508853713', '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\n\nint main() {\n int n;\n int a;\n int b;\n\n scanf(\"%d\", &n);\n scanf(\"%d\", &a);\n\n b = ... |
CDSS_623633 | CDSS | /* ex 7_3
KitamoriFumiya */
#include <stdio.h>
#include <stdlib.h>
int main(void){
int i, j, row, column, *ptr_row, *ptr_column;
char **ptr;
scanf("%d %d\n", &row, &column);
//各行の配列へのポインタ分のメモリ領域を確保
ptr = (char**)calloc(row, sizeof(char*));
if(ptr == NULL){
fprintf(stderr, "calloc error.\n");
exit(1);
}
... | 1,636 | memory_bytes | {'s_id': 's440278536', 'p_id': 'p03273', 'u_id': 'u234924779', 'date': '1594663739', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1636', 'code_size': '2045'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n/* ex 7_3\n KitamoriFumiya */\n\n#include <stdio.h>\n#include <stdlib.h>\n\nint main(void){\n\tint i, j, row, column, *ptr_row, *ptr... |
CDSS_740918 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define MOD 1000000007LL
long long dp[5010][5010] = {{0}};
int main() {
int i, j, len, N;
long long exp, prod, t;
char s[5010];
scanf("%d%s", &N, &s);
len = strlen(s);
dp[0][0] = 1;
dp[1][0] = 1; dp[1][1] = 2;
for (i=2;i<=N;i++) {
dp[i][0] = (dp[i... | 116,864 | memory_bytes | {'s_id': 's275295043', 'p_id': 'p04028', 'u_id': 'u677149117', 'date': '1472235690', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '232', 'memory': '116864', 'code_size': '839'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\n#define MOD 1000000007LL\n\nlong long dp[5010][5010] = {{0}};\n\nint m... |
CDSS_109267 | CDSS | #include <stdio.h>
int main(void)
{
int a[100], b[100], score[100]={0}, target, N, M, i, j;
scanf("%d", &N);
scanf("%d", &M);
for(i = 0; i < M; i++)
scanf("%d", &a[i]);
for(i = 0; i < M; i++){
target = a[i];
for(j = 0; j < N; j++){
scanf("%d", &b[j]);
if(target == b[j])
score[j]++... | 596 | memory_bytes | {'s_id': 's612641806', 'p_id': 'p00532', 'u_id': 'u577534987', 'date': '1488460601', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', '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\nint main(void)\n{\n int a[100], b[100], score[100]={0}, target, N, M, i, j;\n\n scanf(\"%d\", &N);\n scanf(\"... |
CDSS_143450 | CDSS | #include <stdio.h>
void Print(int a[],int n){
int i;
for(i=0;i<n;i++){
if(i>0) printf(" ");
printf("%d",a[i]);
}
printf("\n");
}
void insertionSort(int a[],int n){
int i,j,v;
Print(a,n);
for(i=1;i<n;i++){
v=a[i];
j=i-1;
while(j>=0 && a[j]>v){
a[j+1]=a[j];
j--;
a[j+... | 2,080 | memory_bytes | {'s_id': 's470994448', 'p_id': 'p02255', 'u_id': 'u652916351', 'date': '1541234511', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2080', 'code_size': '496'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nvoid Print(int a[],int n){\n int i;\n for(i=0;i<n;i++){\n if(i>0) printf(\" \");\n printf(\"%d\",a[i]);\... |
CDSS_504592 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(void) {
unsigned long A,B,K;
//入力
scanf("%lu %lu %lu",&A,&B,&K);
if(A<=K) {K-=A;A=0;}
else {A-=K;K=0;}
if(B<=K) B=0;
else B-=K;
printf("\n%lu %lu\n",A,B);
return 0;
} | 256 | memory_bytes | {'s_id': 's605960174', 'p_id': 'p02818', 'u_id': 'u918599282', 'date': '1585144982', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '256', 'code_size': '280'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\nint main(void) {\n\tunsigned long A,B,K;\n\n//入力\n scanf(\"%lu %lu... |
CDSS_534776 | CDSS | /*
* main.c
*
* Created on: 2019/07/21
* Author: family
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
typedef unsigned long long int uint64_t;
int main()
{
uint64_t N = 0, ans = 0;
scanf("%llu", &N);
if (N%2 == 1) {
ans = N * ((N-1)/2);
} else {
ans = (N+1) * N/2;... | 128 | memory_bytes | {'s_id': 's625605715', 'p_id': 'p02924', 'u_id': 'u898925304', 'date': '1567367967', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '376'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n/*\n * main.c\n *\n * Created on: 2019/07/21\n * Author: family\n */\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <strin... |
CDSS_343853 | CDSS | #include<stdio.h>
main(){
int i,n;
int st[100];
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d",&st[i]);
}
for(i=1;i<=n;i++){
printf("%d",st[n-i]);
if(i==n){
printf("\n");
}else{
printf(" ");
}
}
}
| 2,052 | memory_bytes | {'s_id': 's200636524', 'p_id': 'p02407', 'u_id': 'u129719663', 'date': '1595594518', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2052', 'code_size': '243'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nmain(){\n int i,n;\n int st[100];\n scanf(\"%d\",&n);\n for(i=0;i<n;i++){\n scanf(\"%d\",&st[i]);\n }\n ... |
CDSS_671137 | CDSS | #include <stdio.h>
#include <string.h>
#include <math.h>
#include <stdlib.h>
#include <limits.h>
#include <stdbool.h>
#define rep(i, n) for(int i=0; i<(n); ++i)
#define max 200001
//qsort(str, n, sizeof(int), up_comp);
int up_comp(const void *a, const void *b){return *(int*)a - *(int*)b;}
int down_comp(const void *a... | 1,700 | memory_bytes | {'s_id': 's239302475', 'p_id': 'p03493', 'u_id': 'u645174893', 'date': '1595485596', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1700', '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#include <stdio.h>\n#include <string.h>\n#include <math.h>\n#include <stdlib.h>\n#include <limits.h>\n#include <stdbool.h>\n\n#define ... |
CDSS_184527 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
struct node{
unsigned int key;
struct node *next;
struct node *prev;
};
typedef struct node * NodePointer;
NodePointer nil;
NodePointer listSearch( int key )
{
NodePointer cur = nil->next;
while( cur != nil && cur->key != key ) {
cur = cur->next;
}
re... | 31,788 | memory_bytes | {'s_id': 's796229565', 'p_id': 'p02265', 'u_id': 'u604774382', 'date': '1435319658', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '340', 'memory': '31788', 'code_size': '1670'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\nstruct node{\n\tunsigned int key;\n\tstruct node *next;\n\tstruct node *p... |
CDSS_61109 | CDSS | #include <stdio.h>
int main() {
int N;
int a[10];
int i;
int b_top = 0, c_top = -1;
int flag = 1;
scanf("%d", &N);
for(;N > 0; N--) {
flag = 1;
b_top = 0;
c_top = -1;
for(i = 0; i < 10; i++)
scanf("%d", &a[i]);
i = 0;
while(i < 10) {
if(b_top > c_top) {
if(a[i] > b_top)
b_top = a[i];... | 580 | memory_bytes | {'s_id': 's335273619', 'p_id': 'p00033', 'u_id': 'u662697164', 'date': '1360689972', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', 'code_size': '624'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main() {\n\tint N;\n\tint a[10];\n\tint i;\n\tint b_top = 0, c_top = -1;\n\n\tint flag = 1;\n\n\tscanf(\"%d\... |
CDSS_672864 | CDSS | #include <stdio.h>
int main(void)
{
int n,i,flag=0,count=0;
scanf("%d",&n);
int a[n];
for(i=0; i<n; i++){
scanf("%d",&a[i]);
}
while(flag == 0){
for(i=0; i<n; i++){
if(a[i]%2==0){
a[i] = a[i] / 2;
}else{
flag = 1;
... | 128 | memory_bytes | {'s_id': 's230957559', 'p_id': 'p03494', 'u_id': 'u449922162', 'date': '1539573717', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '412'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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,i,flag=0,count=0;\n scanf(\"%d\",&n);\n int a[n];\n for(i=0; i<n; i++){\n ... |
CDSS_709465 | CDSS | #include<stdio.h>
int main(){
int A,B,C;
int Flag = 0;
scanf("%d %d %d",&A,&B,&C);
for(int i=1; i<100; i++){
if( (A*(100+i)) % B == C ){
printf("YES");
Flag = 1;
break;
}else{
/*何もしない*/
}
}
if(Flag == 0){
printf("NO");
}
return 0;
} | 128 | memory_bytes | {'s_id': 's716829486', 'p_id': 'p03730', 'u_id': 'u759675243', 'date': '1587093262', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '278'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n\n\tint A,B,C;\n\tint Flag = 0;\n\n\tscanf(\"%d %d %d\",&A,&B,&C);\n\n\tfor(int i=1; i<100; i++){\n\... |
CDSS_255322 | CDSS | #include<stdio.h>
int main()
{
int a,b;
scanf("%d %d", &a, &b);
printf("%d %d\n", a*b, 2*(a+b));
return 0;
} | 1,800 | memory_bytes | {'s_id': 's919202048', 'p_id': 'p02389', 'u_id': 'u764219174', 'date': '1506176795', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1800', '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{\n int a,b;\n\n scanf(\"%d %d\", &a, &b);\n\n printf(\"%d %d\\n\", a*b, 2*(a+b));\n\n ret... |
CDSS_406848 | CDSS | #include<stdio.h>
#include<math.h>
#include<string.h>
int main()
{
int A,B;
scanf("%d%d",&A,&B);
printf("%d",A*B);
return 0;
} | 1,728 | memory_bytes | {'s_id': 's871850426', 'p_id': 'p02657', 'u_id': 'u187516587', 'date': '1591222139', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '1728', '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#include<math.h>\n#include<string.h>\nint main()\n{\n int A,B;\n scanf(\"%d%d\",&A,&B);\n printf(\"%d\",A*... |
CDSS_605516 | CDSS | #include<stdio.h>
int main()
{
long long int A;
long long int B;
long long int C;
long long int out;
scanf("%lld %lld %lld",&A,&B,&C);
if(C<=B-1) out = B+C;
if((C>B-1)&&(C-B-1<=A)) out = B + C;
if((C>B-1)&&(C-B-1>A)) out = 2*B + 1+ A;
printf("%lld\n",out);
return 0;
}
| 128 | memory_bytes | {'s_id': 's304226338', 'p_id': 'p03186', 'u_id': 'u265756457', 'date': '1546136439', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '284'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main()\n{\n long long int A;\n long long int B;\n long long int C;\n long long int out;\n\n scanf(\"%lld %lld... |
CDSS_296129 | CDSS | #include <stdio.h>
int main(void){
int x,c;
scanf("%d", &x);
c=1;
while(x !=0){
printf("Case %d: %d\n", c, x);
scanf("%d", &x);
c++;
}
return 0;
} | 600 | memory_bytes | {'s_id': 's381573527', 'p_id': 'p02396', 'u_id': 'u975172303', 'date': '1484268225', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '149'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\nint x,c;\nscanf(\"%d\", &x);\nc=1;\n\nwhile(x !=0){\nprintf(\"Case %d: %d\\n\", c, x);\nscanf... |
CDSS_628781 | CDSS | main(R){scanf("%d",&R);puts(R<1200?"ABC":R<2800?"ARC":"AGC");} | 128 | memory_bytes | {'s_id': 's169866408', 'p_id': 'p03288', 'u_id': 'u826189900', 'date': '1586962920', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '62'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nmain(R){scanf(\"%d\",&R);puts(R<1200?\"ABC\":R<2800?\"ARC\":\"AGC\");}\nPredict its memory footprint.",
"role": "user"
},
{
... |
CDSS_44304 | CDSS | #include<stdio.h>
#define MAX 1000000
int main(){
char a[MAX]={1,1};
int i,j,n,x;
for(i=2;i<MAX;i++){
for(j=2;i*j<MAX;j++)if(!a[i])a[i*j]=1;
}
while(scanf("%d",&n)!=EOF){
x=0;
for(i=0;i<=n;i++)if(!a[i])x++;
printf("%d\n",x);
}
return 0;
} | 1,576 | memory_bytes | {'s_id': 's395930042', 'p_id': 'p00009', 'u_id': 'u068244524', 'date': '1355280873', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '1576', 'code_size': '269'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 1000000\nint main(){\n char a[MAX]={1,1};\n int i,j,n,x;\n\n for(i=2;i<MAX;i++){\n for(j=2;i*j<MA... |
CDSS_19770 | 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;
} | 1,756 | memory_bytes | {'s_id': 's735333077', 'p_id': 'p00000', 'u_id': 'u239600616', 'date': '1510397258', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1756', 'code_size': '139'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\nint i,j;\n\nfor (i=1;i<=9;++i){\n\tfor (j=1;j<=9;++j){\n \tprintf(\"%dx%d=%d\\n\",i,j,i*j);\n ... |
CDSS_516509 | CDSS | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
#include <math.h>
#define MAX(X, Y) (((X) > (Y))? (X) : (Y))
#define MIN(X, Y) (((X) < (Y))? (X) : (Y))
int compare_int(const void *a, const void *b){
return *(long int*)b - *(long int*)a; // 大きい順
}
int compare_int_small(const void *a, cons... | 512 | memory_bytes | {'s_id': 's439623854', 'p_id': 'p02866', 'u_id': 'u980869590', 'date': '1574135268', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '11', 'memory': '512', 'code_size': '2994'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 <ctype.h>\n#include <math.h>\n#define MAX(X, Y) (((X) > (Y))? (... |
CDSS_263057 | CDSS | #include <stdio.h>
int main()
{
int S,h,m,s;
scanf("%d",&S);
if ((S>=0)&&(S<=86400))
h=S/3600;
m=S%3600/60;
s=S%60;
printf("%d:%d:%d\n",h,m,s);
} | 1,848 | memory_bytes | {'s_id': 's860146095', 'p_id': 'p02390', 'u_id': 'u425904089', 'date': '1511860744', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1848', '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>\n\nint main()\n{\n int S,h,m,s;\n scanf(\"%d\",&S);\n if ((S>=0)&&(S<=86400))\n h=S/3600;\n m=S%3600/60;... |
CDSS_721294 | CDSS | #include <stdio.h>
#include<string.h>
int main(void)
{
char str[200000];
int i, a, z;
gets(str);
for (i = 0; i < strlen(str); i++) {
if (str[i] == 'A') {
a = i;
break;
}
}
for (i = strlen(str) + 1; i > 0; i--) {
if (str[i] == 'Z') {
z ... | 384 | memory_bytes | {'s_id': 's784822944', 'p_id': 'p03814', 'u_id': 'u868913899', 'date': '1531263389', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '384', 'code_size': '415'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include<string.h>\n\nint main(void)\n{\n char str[200000];\n int i, a, z;\n gets(str);\n for (i = 0; ... |
CDSS_621643 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <math.h>
#include <limits.h>
int main(void){
int h,w;
scanf("%d%d",&h,&w);
int n=h*w;
int a[h][w],ans1[n],ans2[n],ans3[n],ans4[n];
for (int i=0; i<h; i++){
for (int j=0; j<w; j++){
scanf("%d... | 6,912 | memory_bytes | {'s_id': 's312286060', 'p_id': 'p03263', 'u_id': 'u750028862', 'date': '1536458224', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '53', 'memory': '6912', 'code_size': '2684'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 <stdbool.h>\n#include <math.h>\n#include <limits.h>\n\nint main... |
CDSS_366109 | CDSS | #include <stdio.h>
#include <string.h>
int main(void) {
char buf[1200];
char c;
int i;
int answer[26];
memset(answer, 0, sizeof(answer));
while(fgets(buf, sizeof(buf), stdin) != NULL) {
for(i = 0; buf[i] != '\0'; i++) {
if(buf[i] >= 'A' && buf[i] <= 'Z')
buf[i] = buf[i] + 'a' - 'A';
... | 524 | memory_bytes | {'s_id': 's910146267', 'p_id': 'p02417', 'u_id': 'u146752763', 'date': '1503222859', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', 'code_size': '452'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 char buf[1200];\n char c;\n int i;\n int answer[26];\n memset(answe... |
CDSS_623235 | CDSS | #include <stdio.h>
int main(){
int n,i;
scanf("%d %d",&n,&i);
printf("%d",n+1-i);
return 0;
} | 128 | memory_bytes | {'s_id': 's181150782', 'p_id': 'p03272', 'u_id': 'u184335045', 'date': '1561243280', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '102'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n int n,i;\n scanf(\"%d %d\",&n,&i);\n printf(\"%d\",n+1-i);\n return 0;\n}\nPredict its memory ... |
CDSS_623293 | CDSS | #include <stdio.h>
int
main(int argc, char *argv[])
{
int N, i;
scanf("%d%d", &N, &i);
int ans = N - i + 1;
printf("%d\n", ans);
return 0;
} | 128 | memory_bytes | {'s_id': 's409648267', 'p_id': 'p03272', 'u_id': 'u801102476', 'date': '1555042086', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '160'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\nmain(int argc, char *argv[])\n{\n int N, i;\n scanf(\"%d%d\", &N, &i);\n \n int ans = N - i + 1;\n \n ... |
CDSS_563868 | 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]>
#define NUM_MAX 100000
#define DIV... | 1,024 | memory_bytes | {'s_id': 's834657808', 'p_id': 'p03013', 'u_id': 'u866370648', 'date': '1591668580', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '11', 'memory': '1024', 'code_size': '918'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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_414903 | CDSS | #include<stdio.h>
int main(void){
int i;
scanf("%d", &i);
i = i % 10;
if (i == 2 || i == 4 || i == 5 || i == 7 || i == 9){
printf("hon");
}else if(i == 0 || i == 1 || i == 6 || i == 8){
printf("pon");
}else if(i == 3){
printf("bon");
}else{}
return 0;
}
| 1,728 | memory_bytes | {'s_id': 's319310739', 'p_id': 'p02675', 'u_id': 'u360380193', 'date': '1589766004', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '1728', 'code_size': '284'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 i;\n scanf(\"%d\", &i);\n i = i % 10;\n if (i == 2 || i == 4 || i == 5 || i == 7 || i =... |
CDSS_129030 | CDSS | #include<stdio.h>
int dp[50];
int fib(int n){
if(n == 0 || n == 1) return dp[n] = 1;
if(dp[n] != -1) return dp[n];
return dp[n] = fib(n - 1) + fib(n - 2);
}
int main(){
int n, i;
for(i = 0 ; i < 50 ; i++) dp[i] = -1;
scanf("%d", &n);
printf("%d\n", fib(n));
return 0;
}
| 2,104 | memory_bytes | {'s_id': 's650425192', 'p_id': 'p02233', 'u_id': 'u158672065', 'date': '1531801813', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '292'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint dp[50];\n\nint fib(int n){\n if(n == 0 || n == 1) return dp[n] = 1;\n if(dp[n] != -1) return dp[n];\n retu... |
CDSS_432170 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
int main(void)
{
int i, j;
scanf("%d%d", &i, &j);
if (i > j)
{
printf("safe\n");
}
else
{
printf("unsafe\n");
}
return 0;
} | 1,648 | memory_bytes | {'s_id': 's673977174', 'p_id': 'p02699', 'u_id': 'u767290471', 'date': '1587949302', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1648', 'code_size': '252'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <math.h>\nint main(void)\n{\n int i, j;\n scanf(\"%d%d\",... |
CDSS_57701 | CDSS | #include <stdio.h>
int main(void)
{
int a[4];
int b[4];
while(scanf("%d%d%d%d\n%d%d%d%d", &a[0], &a[1], &a[2], &a[3], &b[0], &b[1], &b[2], &b[3])!=EOF) {
int i, j;
int hit=0,brow=0;
for(i=0; i<4; i++) {
for(j=0; j<4; j++) {
if(a[i]==b[j]) {
if(i==j) hit++;
else brow++;
}
}
}
... | 596 | memory_bytes | {'s_id': 's167782498', 'p_id': 'p00025', 'u_id': 'u171377572', 'date': '1464083019', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '368'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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[4];\n\tint b[4];\n\t\n\twhile(scanf(\"%d%d%d%d\\n%d%d%d%d\", &a[0], &a[1], &a[2], &a[... |
CDSS_565307 | CDSS | #include<stdio.h>
#include<string.h>
int main()
{
long int i, a=0, l, count=0;
char str[200000];
scanf("%s", str);
l=strlen(str);
for(i=0; i<l; i++)
{
if(str[i]=='A')
{
count++;
}
else if (str[i] == 'B' && str[i+1] == 'C')
{
a+=coun... | 384 | memory_bytes | {'s_id': 's819762603', 'p_id': 'p03018', 'u_id': 'u246546429', 'date': '1589073047', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '384', '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<string.h>\nint main()\n{\n long int i, a=0, l, count=0;\n char str[200000];\n scanf(\"%s\", str);... |
CDSS_696074 | CDSS | #include <stdio.h>
int main(void) {
int N,K,l[50],max=0,i,j,temp;
scanf("%d %d",&N,&K);
for(i=0;i<N;i++){
scanf("%d",&l[i]);
}
for(i=0;i<N;i++){
for(j=i+1;j<N;j++){
if(l[i]<l[j]){
temp=l[i];
l[i]=l[j];
l[j]=t... | 128 | memory_bytes | {'s_id': 's052482570', 'p_id': 'p03658', 'u_id': 'u279200089', 'date': '1502872354', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '128', 'code_size': '459'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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,K,l[50],max=0,i,j,temp;\n \n scanf(\"%d %d\",&N,&K);\n \n for(i=0;i<N;i+... |
CDSS_635932 | CDSS | #include <stdio.h>
int main(void){
int num = 0;
int i = 0;
int buf[20];
int sum = 0;
scanf("%d",&num);
int digit = 0;
int tmp = num;
while(tmp != 0){
buf[i] = tmp % 10;
i++;
digit++;
tmp = tmp / 10;
}
for(i=0;i<digit;i++){
sum += buf[i];
}
if(num % sum == 0)... | 128 | memory_bytes | {'s_id': 's347331287', 'p_id': 'p03316', 'u_id': 'u772465569', 'date': '1529807352', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '128', 'code_size': '393'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 num = 0;\n int i = 0;\n int buf[20];\n int sum = 0;\n \n scanf(\"%d\",&num);\n \n in... |
CDSS_107435 | CDSS | a[210][9],i,j,n;main(x){for(scanf("%d",&n);n/++i;)for(j=4;--j;--a[a[i][j]=x][j+3])scanf("%d",&x);for(;--i;)for(j=4;--j;)*a[i]+=!~a[x=a[i][j]][j+3]*x;for(;n/++i;)printf("%d\n",*a[i]);} | 600 | memory_bytes | {'s_id': 's617605594', 'p_id': 'p00500', 'u_id': 'u479246559', 'date': '1360251502', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '183'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\na[210][9],i,j,n;main(x){for(scanf(\"%d\",&n);n/++i;)for(j=4;--j;--a[a[i][j]=x][j+3])scanf(\"%d\",&x);for(;--i;)for(j=4;--j;)*a[i]+=!~a... |
CDSS_722612 | CDSS | #include<stdio.h>
int main(){
int a,b,c,d;
scanf("%d %d %d %d",&a,&b,&c,&d);
if(a*b>=c*d){
printf("%d",a*b);
}else{ printf("%d",c*d);}
return 0;
} | 128 | memory_bytes | {'s_id': 's805387392', 'p_id': 'p03826', 'u_id': 'u710135612', 'date': '1549422587', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '177'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer 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,d;\n\n scanf(\"%d %d %d %d\",&a,&b,&c,&d);\n\n if(a*b>=c*d){\n printf(\"%... |
CDSS_508437 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#define max(a, b) (((a) > (b)) ? (a) : (b)) /* 2個の値の最大値 */
#define min(a, b) (((a) < (b)) ? (a) : (b)) /* 2個の値の最小値 */
#define ENTER printf("\n") /* 改行プリント */
int DBG = 1; /* デバッグプリント 提出時は0 */
long gcd(long m, long n); /... | 128 | memory_bytes | {'s_id': 's727628382', 'p_id': 'p02831', 'u_id': 'u231667262', 'date': '1577067019', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '894'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 <ctype.h>\n#define max(a, b)\t(((a) > (b)) ? (a) : (b))\t\t/* 2... |
CDSS_249276 | CDSS | /**
* 氏名: 阿部寛之
* 学籍番号: 170441004
***/
#include<stdio.h>
int main(void)
{
int value;
scanf("%d", &value);
printf("%d\n", value * value * value);
return 0;
}
| 2,080 | memory_bytes | {'s_id': 's482394121', 'p_id': 'p02388', 'u_id': 'u260323877', 'date': '1539684891', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2080', 'code_size': '184'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n/**\n* 氏名: 阿部寛之\n* 学籍番号: 170441004\n***/\n\n\n#include<stdio.h>\n\nint main(void)\n{\n\tint value;\n\n\tscanf(\"%d\", &value);\n\tprin... |
CDSS_393184 | 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;
}
void swap(int *a, int *b){
int temp;
temp=*a;
*a=*b;
*b=temp;
}
//swap(&a, &b)
double deg(double theta){//deg to theta
return theta*(2*3.1415... | 2,224 | memory_bytes | {'s_id': 's516181118', 'p_id': 'p02613', 'u_id': 'u770369399', 'date': '1593998054', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '23', 'memory': '2224', 'code_size': '1171'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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_597405 | CDSS | #include <stdio.h>
int main(void){
int X;
int T;
double A_time;
scanf("%d %d",&T,&X);
A_time = T / (double)X;
printf("%.10f",A_time);
return 0;
} | 128 | memory_bytes | {'s_id': 's393247069', 'p_id': 'p03135', 'u_id': 'u374678351', 'date': '1549250555', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '128', '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(void){\n \n int X;\n int T;\n double A_time;\n \n scanf(\"%d %d\",&T,&X);\n \n A_time = T / (do... |
CDSS_137961 | CDSS | #include<stdio.h>
#include <limits.h>
#define N 101
#define Black 2
#define White 0
#define Gray 1
int n=0;
//int z=0;
int G[N][N];
int d[N];
//int f[N];
int color[N];
int que[N];
int head=0;
int tail=0;
void Enqueue(int s){
que[tail] = s;
tail++;
}
int Dequeue(){
int y;
y = que[head];
head+=1;
... | 636 | memory_bytes | {'s_id': 's703355270', 'p_id': 'p02239', 'u_id': 'u891790901', 'date': '1502216757', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '636', 'code_size': '1033'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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#define N 101\n#define Black 2\n#define White 0\n#define Gray 1\n \n \n \nint n=0;\n//int ... |
CDSS_588936 | CDSS | //a.c A-White Cells
#include<stdio.h>
int main(void){
int H,W;
scanf("%d %d",&H,&W);
int h,w;
scanf("%d %d",&h,&w);
printf("%d\n",(H-h)*(W-w));
return 0;
} | 128 | memory_bytes | {'s_id': 's744562661', 'p_id': 'p03101', 'u_id': 'u043363214', 'date': '1586104154', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '181'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n//a.c A-White Cells\n#include<stdio.h>\n\nint main(void){\n int H,W;\n scanf(\"%d %d\",&H,&W);\n int h,w;\n scanf(\"%d %d\... |
CDSS_626985 | CDSS | #include<stdio.h>
int main(void){
int N,K,x;
scanf("%d %d",&N,&K);
if(N%K==0){
printf("0");}
else printf("1");
return 0;} | 128 | memory_bytes | {'s_id': 's884503731', 'p_id': 'p03284', 'u_id': 'u747634384', 'date': '1570138641', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '132'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n int N,K,x;\n scanf(\"%d %d\",&N,&K);\n if(N%K==0){\n\tprintf(\"0\");}\n else printf(\"1\");\n... |
CDSS_245587 | CDSS | #include <stdio.h>
#include <math.h>
int main(void){
double n;
scanf("%lf", &n);
printf("%d\n", (int)pow(n, 3));
return 0;
} | 664 | memory_bytes | {'s_id': 's417798041', 'p_id': 'p02388', 'u_id': 'u757078771', 'date': '1498617915', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '664', '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>\n#include <math.h>\n\nint main(void){\n\tdouble n;\n\tscanf(\"%lf\", &n);\n\tprintf(\"%d\\n\", (int)pow(n, 3));\n\t... |
CDSS_157376 | CDSS | #include<stdio.h>
#include<math.h>
#define N 10000
main()
{
int i,j,n,c=0,f=0,a[N];
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d",&a[i]);
}
for(i=0;i<n;i++){
for(j=2;j<=sqrt(a[i]);j++){
if(a[i]%j==0){
f=1;
break;
}
}
if(f==0){
c++;
}
f=0;
}
print... | 2,040 | memory_bytes | {'s_id': 's384262662', 'p_id': 'p02257', 'u_id': 'u477717106', 'date': '1524476410', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '2040', 'code_size': '350'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 N 10000\nmain()\n{\n int i,j,n,c=0,f=0,a[N];\n scanf(\"%d\",&n);\n for(i=0;i<n;i++){\n... |
CDSS_216756 | CDSS | #include <stdio.h>
#define MAX 100005
#define NIL -1
struct Node{
int parent;
int left;
int right;
};
struct Node T[MAX];
int n,D[MAX];
int setDepth(int u,int p){
D[u] = p;
if(T[u].right != NIL){
setDepth(T[u].right,p);
}
if(T[u].left != NIL){
setDepth(T[u].left,p+1);
}
}
void printChildren(in... | 6,540 | memory_bytes | {'s_id': 's051063738', 'p_id': 'p02279', 'u_id': 'u184049209', 'date': '1578889884', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '30', 'memory': '6540', 'code_size': '1169'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\nstruct Node{\n int parent;\n int left;\n int right;\n};\n\nstruct Node T[MA... |
CDSS_315380 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define PI 3.14159265359
void form_float(double value, int n_deci, char *output);
int main(){
double r, L, S;
char S_str[16], L_str[16];
scanf("%lf",&r);
L=2*PI*r;
S=PI*r*r;
form_float(L,6,L_str);
form_float(S,6,S_str);
printf("%s %s\... | 644 | memory_bytes | {'s_id': 's753905628', 'p_id': 'p02400', 'u_id': 'u729056931', 'date': '1496754302', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '644', 'code_size': '1041'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\n#define PI 3.14159265359\n\nvoid form_float(double value, int n_deci, ... |
CDSS_659991 | CDSS | #include<stdio.h>
int main()
{ int X, A, B, n, l;
scanf("%d %d %d", &X, &A, &B);
n= (X-A)/B;
l= (X-A)-(B*n);
printf("%d", l);
return 0;
}
| 1,728 | memory_bytes | {'s_id': 's463979462', 'p_id': 'p03447', 'u_id': 'u816631826', 'date': '1596064062', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1728', 'code_size': '164'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 X, A, B, n, l;\n scanf(\"%d %d %d\", &X, &A, &B);\n n= (X-A)/B;\n l= (X-A)-(B*n);\n ... |
CDSS_77751 | CDSS | #include<stdio.h>
#include<math.h>
int main(void)
{
int t,w,h;
int k;
int i,j;
double mininaname;
while(1){
scanf("%d %d %d",&t,&w,&h);
if(t == 0 && w == 0 && h == 0) break;
if(t >= w && t >= h) t = 0;
else if(w >= t && w >= h) w = 0;
else if(h >= t && h >= w)... | 584 | memory_bytes | {'s_id': 's359095779', 'p_id': 'p00107', 'u_id': 'u373127758', 'date': '1353075388', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '584', '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<math.h>\nint main(void)\n{\n int t,w,h;\n int k;\n int i,j;\n double mininaname;\n while(1)... |
CDSS_493584 | CDSS | #include<stdio.h>
int main()
{
int h,n,count;
scanf("%d %d",&h,&n);
count=0;
while(h>0)
{
h=h-n;
count++;
}
printf("%d\n",count);
return 0;
}
| 128 | memory_bytes | {'s_id': 's543188817', 'p_id': 'p02783', 'u_id': 'u782245640', 'date': '1580070528', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '190'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n int h,n,count;\n scanf(\"%d %d\",&h,&n);\n count=0;\n while(h>0)\n {\n h=h-n;... |
CDSS_584368 | CDSS | #include<stdio.h>
int main()
{
long long int n, a[5];
int i;
scanf("%lld", &n);
for (i = 0; i < 5; i++)
scanf("%lld", &a[i]);
long long int min = 1000000000000015;
for (i = 0; i < 5; i++)
if (a[i] < min)
min = a[i];
printf("%lld\n", (n + min - 1) / min + 4);
r... | 128 | memory_bytes | {'s_id': 's229180178', 'p_id': 'p03077', 'u_id': 'u600300412', 'date': '1554668746', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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>\nint main()\n{\n long long int n, a[5];\n int i;\n scanf(\"%lld\", &n);\n for (i = 0; i < 5; i++)\n ... |
CDSS_550511 | CDSS | #include <stdio.h>
int main()
{
int n, a, b;
scanf("%d", &n);
scanf("%d", &a);
scanf("%d", &b);
if (n*a < b)
{
printf("%d\n", n*a);
}
else
{
printf("%d\n", b);
}
return 0;
} | 128 | memory_bytes | {'s_id': 's390083570', 'p_id': 'p02981', 'u_id': 'u809192419', 'date': '1563540904', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '205'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n \nint main()\n{\n int n, a, b;\n scanf(\"%d\", &n);\n scanf(\"%d\", &a);\n scanf(\"%d\", &b);\n if (n*a < b)... |
CDSS_673072 | CDSS |
#pragma warning(disable:4996)
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define _USE_MATH_DEFINES
#include <math.h>
#include <float.h>
#pragma region 定義
typedef long long ll;
typedef unsigned long long ull;
#define _itoa(A,N) sprintf(A, "%d", N);
int i_dsort(const void* a, const void* b);
int i... | 3,008 | memory_bytes | {'s_id': 's909861622', 'p_id': 'p03495', 'u_id': 'u918599282', 'date': '1594432915', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '45', 'memory': '3008', 'code_size': '3786'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n\n#pragma warning(disable:4996)\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#define _USE_MATH_DEFINES\n#include <... |
CDSS_549806 | CDSS | #include<stdio.h>
#include<math.h>
int main() {
int i, j, k;
int n, m, h, g, b, c, d, l, r;
int f = 0;
int w;
int a[100100];
scanf("%d", &n);
for (i = 0;i < n;i++) {
scanf("%d", &a[i]);
}
/*
for (i = 1;i < n - 1 ;i++) {
w = a[i - 1] ^ a[i + 1];
if (w == a[i]) {
}
else {
f = 0;
}
}
w = a[... | 512 | memory_bytes | {'s_id': 's895029960', 'p_id': 'p02975', 'u_id': 'u133959444', 'date': '1563158732', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '12', 'memory': '512', 'code_size': '640'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<math.h>\n\nint main() {\n\tint i, j, k;\n\tint\tn, m, h, g, b, c, d, l, r;\n\tint f = 0;\n\tint w;\n\tint ... |
CDSS_79213 | CDSS | #include <stdio.h>
int main(void){
double t1,t2;
while(scanf("%lf %lf",&t1,&t2)!=EOF){
if(t1<35.50&&t2<71.00)puts("AAA");
else if(t1<37.50&&t2<77.00)puts("AA");
else if(t1<40.00&&t2<83.00)puts("A");
else if(t1<43.00&&t2<89.00)puts("B");
else if(t1<50.00&&t2<105.00)puts("C");
else if(t1<55.00... | 608 | memory_bytes | {'s_id': 's698593088', 'p_id': 'p00123', 'u_id': 'u505651850', 'date': '1475740701', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '608', 'code_size': '424'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\n double t1,t2;\n while(scanf(\"%lf %lf\",&t1,&t2)!=EOF){\n if(t1<35.50&&t2<71.00)puts(\"AAA\... |
CDSS_710726 | CDSS |
#include <stdio.h>
#define INT_LEN 100
int StringLength(char *str)
{
int length = 0;
while (*str)
{
length++;
str++;
}
return length;
}
int main(void)
{
char A[INT_LEN + 1];
char B[INT_LEN + 1];
if (scanf("%s\n%s", A, B) != 2)
{
puts("Input Error.");
... | 128 | memory_bytes | {'s_id': 's311936435', 'p_id': 'p03738', 'u_id': 'u202690731', 'date': '1591765717', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '942'} | [
{
"content": "Your task is to predict the memory 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\n#define INT_LEN 100\n\nint StringLength(char *str)\n{\n int length = 0;\n while (*str)\n {\n l... |
CDSS_199644 | CDSS | #include <stdio.h>
int main() {
int addNumber[20];
int ansNumber[200];
int needAddN, needAnsN;
int YorN;
int i, j;
scanf("%d", &needAddN);
for (i = 0; i < needAddN; i++) {
scanf("%d", &addNumber[i]);
}
scanf("%d", &needAnsN);
for (i = 0; i < needAnsN; i++) {
scanf("%d", &ansNumber[i]);
}
for (i = 0; ... | 580 | memory_bytes | {'s_id': 's838314775', 'p_id': 'p02271', 'u_id': 'u253923767', 'date': '1480246786', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1120', 'memory': '580', 'code_size': '1160'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 addNumber[20];\n\tint ansNumber[200];\n\tint needAddN, needAnsN;\n\tint YorN;\n\tint i, j;\n... |
CDSS_140303 | CDSS | #include<stdio.h>
#define NIL -1
static const int MAX = 500;
static const int INFTY = (1<<21);
main(){
int n, i, j, k, c;
int M[MAX][MAX];
int d[MAX];
int visited[MAX];
int min = INFTY;
int v, u;
scanf("%d", &n);
for ( i = 0; i< n; i++ ){
for ( j = 0; j < n; j++ ){
M[i][j] = INFTY;
}
... | 804 | memory_bytes | {'s_id': 's772131737', 'p_id': 'p02242', 'u_id': 'u580082564', 'date': '1437625395', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '804', 'code_size': '944'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#define NIL -1\n\nstatic const int MAX = 500;\nstatic const int INFTY = (1<<21);\n\nmain(){\n int n, i, j, k, c;\n... |
CDSS_543784 | CDSS | #include <stdio.h>
int main(void){
int a,b;
scanf("%d %d",&a,&b);
if((a+b)%2){
printf("IMPOSSIBLE\n");
}else{
printf("%d\n",(a+b)/2);
}
return 0;
}
| 128 | memory_bytes | {'s_id': 's511991560', 'p_id': 'p02957', 'u_id': 'u202799478', 'date': '1587348980', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '190'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\n if((a+b)%2){\n printf(\"IMPOSSIBLE\\n\"... |
CDSS_474602 | CDSS | #include <stdio.h>
#include <string.h>
int main(void){
int K;
char str[32]={1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51};
scanf("%d",&K);
printf("%d\n",str[K-1]);
return 0;
}
| 128 | memory_bytes | {'s_id': 's090535155', 'p_id': 'p02741', 'u_id': 'u284501132', 'date': '1584391508', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '262'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\nint main(void){\n int K;\n char str[32]={1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 1... |
CDSS_687346 | CDSS | U;i;j;w[9<<14];main(k){for(;~scanf("%d",&k);)j++&&w[k]++;for(;++i<1e5;)U=fmax(w[i-1]+w[i]+w[i+1],U);printf("%d",U);} | 2,436 | memory_bytes | {'s_id': 's854857046', 'p_id': 'p03611', 'u_id': 'u944651767', 'date': '1600391794', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '25', 'memory': '2436', 'code_size': '116'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nU;i;j;w[9<<14];main(k){for(;~scanf(\"%d\",&k);)j++&&w[k]++;for(;++i<1e5;)U=fmax(w[i-1]+w[i]+w[i+1],U);printf(\"%d\",U);}\nPredict its ... |
CDSS_373057 | CDSS | #include <stdio.h>
int a[1010];
int s[1010];
int main(){
int n;
scanf("%d",&n);
for(int i=0;i<n;i++)scanf("%d",a+i);
int q;
scanf("%d",&q);
while(q--){
//[b,e)と[t,*)をswap
int b,e,t;
scanf("%d%d%d",&b,&e,&t);
for(int i=0;i<e-b;i++)s[i]=a[b+i];
for(int i=0;i<e-b;i++)a[b+i]=a[t+i];
for(int i=0;i<e-b;i++... | 2,112 | memory_bytes | {'s_id': 's068184252', 'p_id': 'p02445', 'u_id': 'u409832240', 'date': '1563619174', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '398'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint a[1010];\nint s[1010];\nint main(){\n\tint n;\n\tscanf(\"%d\",&n);\n\tfor(int i=0;i<n;i++)scanf(\"%d\",a+i);... |
CDSS_533031 | CDSS | #include <stdio.h>
#include <math.h>
int main()
{
int a,b,soc=1,cnt=0;
scanf("%d %d",&a,&b);
while(soc<b){
soc--;
soc+=a;
cnt++;
}
printf("%d",cnt);
} | 128 | memory_bytes | {'s_id': 's842390399', 'p_id': 'p02922', 'u_id': 'u530497183', 'date': '1571395275', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '161'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\tint a,b,soc=1,cnt=0;\n\tscanf(\"%d %d\",&a,&b);\n\twhile(soc<b){\n\t\tsoc--;\n... |
CDSS_689421 | CDSS | //set many funcs template
//Ver.20180717
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<stdbool.h>
#include<time.h>
#define inf 1072114514
#define llinf 4154118101919364364
#define mod 1000000007
#define pi 3.1415926535897932384
int max(int a,int b){if(a>b){return a;}return b;}
int min(int a,int b){i... | 57,856 | memory_bytes | {'s_id': 's729302801', 'p_id': 'p03629', 'u_id': 'u721060623', 'date': '1533079983', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '57856', 'code_size': '4911'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n//set many funcs template\n//Ver.20180717\n#include<stdio.h>\n#include<string.h>\n#include<stdlib.h>\n#include<stdbool.h>\n#include<ti... |
CDSS_555088 | CDSS | #include<stdio.h>
int main(){
int i,n,p[20],cnt=0;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d",&p[i]);
if(i<2)
continue;
if(p[i-1]<p[i] && p[i-1]>p[i-2])
cnt++;
else if(p[i-1]<p[i-2] && p[i-1]>p[i])
cnt++;
}
printf("%d\n",cnt);
return 0;
} | 128 | memory_bytes | {'s_id': 's380885304', 'p_id': 'p02988', 'u_id': 'u675446547', 'date': '1561858186', '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 int i,n,p[20],cnt=0;\n scanf(\"%d\",&n);\n for(i=0;i<n;i++){\n scanf(\"%d\",&p[i]);\n if(i<2... |
CDSS_622295 | CDSS | /* ex 7_1
person_A */
#include <stdio.h>
#include <string.h>
//頂点を表す構造体point
typedef struct point{
int x_elem;
int y_elem;
}point;
//頂点pre_pointをx軸にx_diff,y軸にy_diffだけ移動した頂点を返す
point shift_point(point pre_point,int x_diff,int y_diff){
pre_point.x_elem+=x_diff;
pre_point.y_elem+=y_diff;
return p... | 1,720 | memory_bytes | {'s_id': 's940784413', 'p_id': 'p03265', 'u_id': 'u635510709', 'date': '1594441605', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1720', 'code_size': '952'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n/* ex 7_1\n person_A */\n\n#include <stdio.h>\n#include <string.h>\n\n//頂点を表す構造体point\ntypedef struct point{\n int x_elem;\n i... |
CDSS_125308 | CDSS | // AOJ 2333: My friends are small
// 2017.11.19 bal4u@uu
#include <stdio.h>
#define M 1000000007
int w[202], s[202];
int f[10001];
int dp[10001];
char buf[20], *p;
int getint()
{
int n = 0;
while (*p >= '0') n = (n<<3) + (n<<1) + (*p++ & 0xf);
return n;
}
int main()
{
int N, W, i, j, v, min, max, ans;
fgets(... | 1,916 | memory_bytes | {'s_id': 's376823462', 'p_id': 'p01450', 'u_id': 'u847467233', 'date': '1511100564', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1916', 'code_size': '989'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n// AOJ 2333: My friends are small\n// 2017.11.19 bal4u@uu\n\n#include <stdio.h>\n\n#define M 1000000007 \nint w[202], s[202];\nint f[1... |
CDSS_199736 | CDSS | #include<stdio.h>
#include<stdlib.h>
#define mymalloc(p,n) {p = malloc((n)*sizeof(*p));if ((p)==NULL) {printf("not enough memory?\n"); exit(1);};}
int max(int i,int j){
if(i>j){return i;}
else{return j;}
}
int solve(int *A,int i,int m,int n){
if(i>n){
return 0;
}else{
if(m-A[i]==0){
return 1;
}else{
retur... | 580 | memory_bytes | {'s_id': 's082880451', 'p_id': 'p02271', 'u_id': 'u532758459', 'date': '1482030388', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1060', 'memory': '580', 'code_size': '630'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 mymalloc(p,n) {p = malloc((n)*sizeof(*p));if ((p)==NULL) {printf(\"not enough memory?\\... |
CDSS_150088 | CDSS | #include<stdio.h>
void output(int N,int A[]){
int i;
for(i=0;i<N;i++){
if(i>0)printf(" ");
printf("%d",A[i]);
}
printf("\n");
}
void changearray(int N,int A[]){
int i,j,v;
for(i=1;i<N;i++){
v=A[i];
j=i-1;
while(j>=0 && A[j]>v){
A[j+1]=A[j];
j--;
}
A[j+1]=v;
out... | 2,052 | memory_bytes | {'s_id': 's827580658', 'p_id': 'p02255', 'u_id': 'u041012691', 'date': '1543902581', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2052', 'code_size': '516'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nvoid output(int N,int A[]){\n int i;\n for(i=0;i<N;i++){\n if(i>0)printf(\" \");\n printf(\"%d\",A[i]);\n ... |
CDSS_201360 | CDSS | #include<stdio.h>
int n,A[50];
int solve(int i,int m){
if(m==0) return 1;
if(i>=n) return 0;
int res=solve(i+1,m) || solve(i+1,m-A[i]);
return res;
}
int main(){
int q,M,i;
scanf("%d",&n);
for(i=0;i<n;i++)scanf("%d",&A[i]);
scanf("%d",&q);
for(i=0;i<q;i++){
scanf("%d",&M);
if(solve(0,M))printf("yes\n"... | 2,140 | memory_bytes | {'s_id': 's437388379', 'p_id': 'p02271', 'u_id': 'u950429664', 'date': '1539239438', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '500', 'memory': '2140', 'code_size': '362'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 n,A[50];\n\nint solve(int i,int m){\n\tif(m==0) return 1;\n\tif(i>=n) return 0;\n\tint res=solve(i+1,m) || so... |
CDSS_179941 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<string.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 i... | 2,044 | memory_bytes | {'s_id': 's506927299', 'p_id': 'p02263', 'u_id': 'u534560028', 'date': '1588772686', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2044', '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#include<stdio.h>\n#include<stdlib.h>\n#include<string.h>\n\nint top, S[1000];\n\nvoid push(int x) {\n\n S[++top]=x;\n}\n\nint pop() ... |
CDSS_579103 | CDSS | #include <stdio.h>
#include <math.h>
int main(){
int A,B;
scanf("%d %d",&A,&B);
if (A==B){
printf("%d",A+A);
}
else if (A>B){
printf("%d",A+A-1);
}
else{
printf("%d",B+B-1);
}
return 0;
}
| 1,732 | memory_bytes | {'s_id': 's734428222', 'p_id': 'p03071', 'u_id': 'u018679195', 'date': '1600134910', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1732', '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#include <math.h>\nint main(){\n int A,B;\n scanf(\"%d %d\",&A,&B);\n if (A==B){\n printf(\"%d\",A... |
CDSS_80085 | CDSS | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
int i,n,loc,left,right;
char logg[2000],order[60];
int main(){
for(scanf("%d",&n);n>0;n--){
scanf("%s",logg);
loc=30;left=30;right=30;
order[30]=logg[0];
for(i=1;i<(signed)strlen(logg);i+=3){
if(logg[i]=='<'){
if(loc==left)left--;
loc--;
... | 568 | memory_bytes | {'s_id': 's277327434', 'p_id': 'p00130', 'u_id': 'u263489624', 'date': '1375606979', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '568', 'code_size': '488'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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,loc,left,right;\nchar logg[2000],order[60];\n\nint main(){\n\t... |
CDSS_186169 | CDSS | #include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<time.h>
#include<math.h>
struct node
{
struct node *prev;
struct node *next;
int key;
};
struct node *head;//指向链表头部结点
struct node *tail;//指向链表尾部结点
void insertnode(int Key)//在链表头部添加结点,值为Key
{
struct node *p,*q;
p=(struct node *)malloc(sizeof(struct no... | 32,988 | memory_bytes | {'s_id': 's630640116', 'p_id': 'p02265', 'u_id': 'u653994807', 'date': '1583639198', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '290', 'memory': '32988', '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<string.h>\n#include<stdlib.h>\n#include<time.h>\n#include<math.h>\nstruct node\n{\n\tstruct node *prev;\n\... |
CDSS_461184 | CDSS | #include<stdio.h>
#include<math.h>
#include<string.h>
#include<stdlib.h>
int countR_l(int n,char s[])
{
int count=0;
int i;
for(i=0;i<n;i++){
if(s[i]=='R')
count++;
}
return count;
}
int countG_l(int n,char s[])
{
int count=0;
int i;
for(i=0;i<n;i++){
if(s[i]=='G')
count++;
}
r... | 1,740 | memory_bytes | {'s_id': 's964149057', 'p_id': 'p02714', 'u_id': 'u151785909', 'date': '1586745349', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '55', 'memory': '1740', 'code_size': '2364'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\nint countR_l(int n,char s[])\n{\n int count=0;\n int ... |
CDSS_274248 | 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;
}
| 2,112 | memory_bytes | {'s_id': 's995032153', 'p_id': 'p02391', 'u_id': 'u969327169', 'date': '1562903742', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', '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(void){\n\n\tint a, b;\n\tscanf(\"%d %d\", &a, &b);\n\n\tif (a < b)\n\t{\n\t\tprintf(\"a < b\\n\");\n\t}\n... |
CDSS_18868 | CDSS | #include<stdio.h>
int main(void)
{
int i, j;
for(i=1;i<=9;i++)
{
for(j=1;j<=9;j++)
{
printf("%dx%d=%d\n", i, j, i*j);
}
}
return 0;
} | 524 | memory_bytes | {'s_id': 's475460520', 'p_id': 'p00000', 'u_id': 'u064717130', 'date': '1471153805', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', 'code_size': '147'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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;\n\tfor(i=1;i<=9;i++)\n\t{\n\t\tfor(j=1;j<=9;j++)\n\t\t{\n\t\t\tprintf(\"%dx%d=%d\\n\... |
CDSS_97329 | CDSS | n,t[999],a;
int main(i){for(;n*=scanf("%d",&n);puts("")){
for(i=999;t[i]=i--;);
for(;n--;t[a]=*t)scanf(" %c %c",&a,t);
for(scanf("%d",&n);n--;putchar(t[a]))scanf(" %c",&a);
}
} | 592 | memory_bytes | {'s_id': 's336834496', 'p_id': 'p00424', 'u_id': 'u611853667', 'date': '1347718466', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', 'code_size': '190'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nn,t[999],a;\nint main(i){for(;n*=scanf(\"%d\",&n);puts(\"\")){\n for(i=999;t[i]=i--;);\n for(;n--;t[a]=*t)scanf(\" %c %c\",&a,t)... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.