identifier string | space string | input string | target float64 | metric_type string | metadata string | messages list |
|---|---|---|---|---|---|---|
CDSS_307258 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#define ABS(x) ( (x)>0 ? x : -(x) )
#define MIN(x,y) ( (x) < (y) ? (x) : (y) )
#define MAX(x,y) ( (x) > (y) ? (x) : (y) )
#define INF 1000000000
void swap(int* x, int *y)
{
int t;
t = *x;
*x = *y;
*y = t;
}
int binary_search(int p[], ... | 2,144 | memory_bytes | {'s_id': 's688031365', 'p_id': 'p02398', 'u_id': 'u129426219', 'date': '1584286689', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2144', 'code_size': '981'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <math.h>\n\n#define ABS(x) ( (x)>0 ? x : -(x) )\n#define MIN(x,... |
CDSS_313999 | CDSS | #include <stdio.h>
int main(void)
{
long double r;
const long double pi = 3.14159265359;
scanf("%Lf", &r);
printf("%Lf %Lf\n", pi*r*r, 2.0*pi*r);
return 0;
} | 652 | memory_bytes | {'s_id': 's617631157', 'p_id': 'p02400', 'u_id': 'u871224043', 'date': '1462214444', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '652', '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>\n\nint main(void)\n{\n\tlong double r;\n\tconst long double pi = 3.14159265359;\n\tscanf(\"%Lf\", &r);\n\tprintf(\"... |
CDSS_248505 | CDSS | #include<stdio.h>
int main(void){
int x;
scanf("%d", &x);
printf("%d\n", x*x*x);
return 0;
}
| 2,040 | memory_bytes | {'s_id': 's904853675', 'p_id': 'p02388', 'u_id': 'u321468744', 'date': '1589515453', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2040', 'code_size': '125'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void){\n \n int x;\n \n scanf(\"%d\", &x);\n printf(\"%d\\n\", x*x*x);\n \n return ... |
CDSS_660365 | CDSS | #include <stdio.h>
int main(void){
int x,a,b;
int s;
scanf("%d%d%d",&x,&a,&b);
s=x-a;
s %=b;
printf("%d\n",s);
return 0;
}
| 128 | memory_bytes | {'s_id': 's502181549', 'p_id': 'p03447', 'u_id': 'u286120733', 'date': '1518621491', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '133'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n\tint x,a,b;\n\tint s;\n\n\tscanf(\"%d%d%d\",&x,&a,&b);\n\ts=x-a;\n\ts %=b;\n\n\tprintf(\"%d\\n... |
CDSS_123419 | CDSS | #include<stdio.h>
int p[110][5],m;
int f(int a,int b,int c,int d){
int k;
for(k=0;k<m;k++){
if(p[k][0]==a&&p[k][1]==b&&p[k][2]==c&&p[k][3]==d||
p[k][0]==c&&p[k][1]==d&&p[k][2]==a&&p[k][3]==b)return 0;
}
return 1;
}
int main(){
int n,w,h,i,j;
scanf("%d",&n);
while(n--){
int d[20][20]={1};
... | 612 | memory_bytes | {'s_id': 's964853106', 'p_id': 'p01304', 'u_id': 'u731027244', 'date': '1468404863', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '612', 'code_size': '639'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 p[110][5],m;\nint f(int a,int b,int c,int d){\n int k;\n for(k=0;k<m;k++){\n if(p[k][0]==a&&p[k][1]==b&&p[... |
CDSS_713013 | CDSS | #include <stdio.h>
#include <string.h>
int main(int argc, char const *argv[]) {
char o[51];
char e[51];
int i = 0;
scanf("%s", o);
scanf("%s", e);
//while (strncmp(&o[i], "\0", 1) != 0 || strncmp(&e[i], "\0", 1) != 0) {
while (strncmp(&o[i], "\0", 1) != 0) {
printf("%c", o[i]);
if (strncmp(&e[i... | 128 | memory_bytes | {'s_id': 's073070604', 'p_id': 'p03760', 'u_id': 'u632731979', 'date': '1491702041', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '128', 'code_size': '445'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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(int argc, char const *argv[]) {\n char o[51];\n char e[51];\n int i = 0;\n\n s... |
CDSS_244642 | CDSS | #include<stdio.h>
int main(int argc){
int x;
scanf("%d", &x);
x=x*x*x;
printf("%d\n", x);
return 0;
} | 596 | memory_bytes | {'s_id': 's534415156', 'p_id': 'p02388', 'u_id': 'u567788288', 'date': '1491545005', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '113'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n \nint main(int argc){\n \nint x;\n \nscanf(\"%d\", &x);\n \nx=x*x*x;\n \nprintf(\"%d\\n\", x);\n \nreturn 0;\n}\nP... |
CDSS_558410 | CDSS | #include <stdio.h>
typedef long long ll;
ll gcd(ll a, ll b){
if(a == 0 || b == 0) return a + b;
if(a >= b) return gcd(b, a % b);
else return gcd(b, a);
}
int
main(int argc, char *argv[])
{
long long a, b, c, d;
scanf("%lld %lld %lld %lld", &a, &b, &c, &d);
ll lcm = (c * d) / gcd(c, d);
ll ans = (b / c... | 128 | memory_bytes | {'s_id': 's472794158', 'p_id': 'p02995', 'u_id': 'u801102476', 'date': '1561231211', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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>\ntypedef long long ll;\n\nll gcd(ll a, ll b){\n if(a == 0 || b == 0) return a + b;\n if(a >= b) return gcd(b, a %... |
CDSS_363644 | 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;
}
pr... | 528 | memory_bytes | {'s_id': 's954506449', 'p_id': 'p02416', 'u_id': 'u597318581', 'date': '1469788123', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '528', 'code_size': '392'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\n#include<string.h>\n\n\nint main(void){\n\n\nchar num_str[1002];\n\n\nint num;\n\n\nlong ... |
CDSS_333319 | CDSS | #include<stdio.h>
int main(void)
{
int H, W;
int i, n;
while (1)
{
scanf("%d %d", &H, &W);
if (H == 0 && W == 0)
{
break;
}
for (i = 0; i < W; i++){
printf("#");
}
putchar('\n');
for (i = 0; i < H - 2; i++)
{
printf("#");
for (n = 0; n < W - 2; n++)
{
printf(".");
}
pri... | 592 | memory_bytes | {'s_id': 's060022468', 'p_id': 'p02404', 'u_id': 'u004140766', 'date': '1450485190', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', '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\tint H, W;\n\tint i, n;\n\n\twhile (1)\n\t{\n\t\tscanf(\"%d %d\", &H, &W);\n\t\tif (H == 0 &&... |
CDSS_463284 | CDSS | #include <stdio.h>
int main (void) {
int a, b, c, tmp;
scanf("%d %d %d", &a, &b, &c);
if ( a == b && b == c && a == c) {
printf("%d %d %d\n", a, b, c);
}
else {
tmp = a;
a = b;
b = tmp;
tmp = a;
a = c;
c =tmp;
printf("%d %d %d\n", a, b, c);
}
}
| 128 | memory_bytes | {'s_id': 's393332290', 'p_id': 'p02717', 'u_id': 'u615041344', 'date': '1586055931', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '279'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 a, b, c, tmp;\n\t\n\tscanf(\"%d %d %d\", &a, &b, &c);\n\t\n\tif ( a == b && b == c &&... |
CDSS_104558 | CDSS | // AOJ 0550: Dividing Snacks
// 2017.11.18 bal4u@uu
#include <stdio.h>
#include <string.h>
#define TM 0
#if TM
#include <time.h>
#endif
#define INF 0x33333333
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, ti, i... | 1,888 | memory_bytes | {'s_id': 's540724919', 'p_id': 'p00473', 'u_id': 'u847467233', 'date': '1510993465', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '1888', 'code_size': '831'} | [
{
"content": "Your task is to predict the memory 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 0550: Dividing Snacks\n// 2017.11.18 bal4u@uu\n\n#include <stdio.h>\n#include <string.h>\n#define TM 0\n#if TM\n#include <time.... |
CDSS_447799 | CDSS | #include<stdio.h>
#include<stdlib.h>
int main(void){
int n,i,result=0;
scanf("%d",&n);
while(n>0){
if(n % 10 == 7)result = 1;
n/=10;
}
if(n==7) result = 1;
if(result==1) printf("Yes");
else printf("No");
return 0;
} | 1,736 | memory_bytes | {'s_id': 's621575813', 'p_id': 'p02711', 'u_id': 'u523462306', 'date': '1591230194', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '1736', '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#include<stdlib.h>\n\nint main(void){\n int n,i,result=0;\n \n scanf(\"%d\",&n);\n while(n>0){\n \tif(n % 10 ... |
CDSS_471048 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifdef TEST
struct test {
int ans;
} td[] = {
{},
};
#endif
int
distance(int f, int t)
{
int d = f - t;
if(d < 0)
d = -d;
return d;
}
void
solver(int n, int x, int y)
{
int i, j;
int len[2001];
int min_len;
int new... | 128 | memory_bytes | {'s_id': 's155212742', 'p_id': 'p02726', 'u_id': 'u913347928', 'date': '1585507763', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '7', 'memory': '128', 'code_size': '1113'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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#ifdef TEST\nstruct test {\n int ans;\n} td[] = {\n {},\n};\n#en... |
CDSS_169719 | CDSS | #include <stdio.h>
void trace(int A[], int N){
int i;
for (i = 0; i < N; i++){
if (i > 0) printf(" ");
printf("%d", A[i]);
}
printf("\n");
}
void swap(int *a, int *b){
int temp;
temp = *a;
*a = *b;
*b = temp;
}
int selectionSort(int A[], int N){
int minj, count;
int i,j;
count = ... | 604 | memory_bytes | {'s_id': 's767948873', 'p_id': 'p02260', 'u_id': 'u534798664', 'date': '1442294971', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '604', 'code_size': '927'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 trace(int A[], int N){\n\tint i;\n\tfor (i = 0; i < N; i++){\n\t\tif (i > 0) printf(\" \");\n\t\tprintf(\"%... |
CDSS_64174 | CDSS | #include<stdio.h>
int main(void){
double n,max,min,s;
s=-1.0;
while(scanf("%lf",&n)!=EOF){
if(s==-1.0){
max=n;
min=n;
s=max-min;
continue;
}
if(max<n)max=n;
if(min>n)min=n;
s=max-min;
}
printf("%.1lf\n",s);
return 0;
}
| 652 | memory_bytes | {'s_id': 's362538423', 'p_id': 'p00046', 'u_id': 'u177407651', 'date': '1344588245', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '652', 'code_size': '258'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void){\n\tdouble n,max,min,s;\n\t\n\ts=-1.0;\n\t\n\twhile(scanf(\"%lf\",&n)!=EOF){\n\t\tif(s==-1.0){\n\t... |
CDSS_668997 | CDSS | #include <stdio.h>
int DigitSum(int x){
return x%10 + (x/10)%10 + (x/100)%10 + (x/1000)%10 + (x/10000)%10;
}
int main(){
int N,A,B,K,i;
scanf("%d %d %d",&N,&A,&B);
for(i = 1; i <= N; i++){
if(A <= DigitSum(i) && DigitSum(i) <= B){
K += i;
}
}
printf("%d\n",K);
return 0;
} | 128 | memory_bytes | {'s_id': 's919533224', 'p_id': 'p03478', 'u_id': 'u467041847', 'date': '1514275676', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '291'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 DigitSum(int x){\n\treturn x%10 + (x/10)%10 + (x/100)%10 + (x/1000)%10 + (x/10000)%10;\n}\n\nint main(){\n\t... |
CDSS_687011 | CDSS | #include <stdio.h>
#include <string.h>
int main(void){
int i;
char s[100001];
scanf("%s", s);
for(i = 0; i < strlen(s); i += 2){
printf("%c", s[i]);
}
printf("\n");
return 0;
} | 256 | memory_bytes | {'s_id': 's641934584', 'p_id': 'p03610', 'u_id': 'u692797455', 'date': '1546920610', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '854', 'memory': '256', 'code_size': '194'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\nint main(void){\n int i;\n char s[100001];\n scanf(\"%s\", s);\n for(i = 0; i < strlen(s)... |
CDSS_598308 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <inttypes.h>
#include <string.h>
#include <math.h>
int main (int argc, char const *argv[])
{
int64_t N, L[10];
int64_t i, sum = 0;
scanf("%"PRId64, &N);
for (i = 0; i < N; i++) {
scanf("%"PRId64, &L[i]);
sum += L[i];
... | 128 | memory_bytes | {'s_id': 's584572719', 'p_id': 'p03136', 'u_id': 'u335453773', 'date': '1549246109', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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#include <stdlib.h>\n#include <stdint.h>\n#include <inttypes.h>\n#include <string.h>\n#include <math.h>\n\nint mai... |
CDSS_735005 | CDSS | #include<stdio.h>
int main(){
int n,k;
scanf("%d %d",&n,&k);
int answer=k;
for(int i=1;i<n;i++){
answer*=(k-1);
}
printf("%d",answer);
return 0;
} | 128 | memory_bytes | {'s_id': 's640266898', 'p_id': 'p03963', 'u_id': 'u060823879', 'date': '1476727176', '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(){\nint n,k;\nscanf(\"%d %d\",&n,&k);\nint answer=k;\nfor(int i=1;i<n;i++){\nanswer*=(k-1);\n}\nprintf(\"%... |
CDSS_416984 | CDSS | #include <stdio.h>
#include <math.h>
#define PI 3.14159265358979323846
int main(void) {
int a, b, h, m;
scanf("%d%d%d%d", &a, &b, &h, &m);
long double rad = PI * 2 * ((long double)h / 12.0 + ((long double)m / 60.0) / 12.0 - (long double)m / 60.0);
long double rsq = (long double)(a * a + b * b) - (long ... | 2,556 | memory_bytes | {'s_id': 's103131264', 'p_id': 'p02677', 'u_id': 'u333548057', 'date': '1590169182', 'language': 'C', 'original_language': 'C (Clang 10.0.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '2556', 'code_size': '405'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n\n#define PI 3.14159265358979323846\nint main(void) {\n int a, b, h, m;\n scanf(\"%d%d%d%... |
CDSS_581926 | CDSS | #include<stdio.h>
#include<string.h>
int main(){
int tairu=0,i;
char S[100010];
scanf("%s",S);
if(S[0]=='0'){
for(i=1;i<strlen(S);i++){
if(i%2==0){
if(S[i]=='1'){
tairu++;
}
}else{
if(S[i]=='0'){
tairu++;
}
}
}
}else if(S[0]=='1'){
for(i=1;i<strlen(S);i++){
if(i%2==0){
... | 256 | memory_bytes | {'s_id': 's253616262', 'p_id': 'p03073', 'u_id': 'u937747602', 'date': '1555184609', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '256', 'code_size': '461'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\n\nint main(){\n\t\n\tint tairu=0,i;\n\tchar S[100010];\n\t\n\tscanf(\"%s\",S);\n\t\n\tif(S[... |
CDSS_576609 | CDSS | #include<stdio.h>
#include<math.h>
#include<stdlib.h>
#include<string.h>
#include<stdbool.h>
#define MOD 998244353
#define MIN(a,b) ((a)<(b)?(a):(b))
#define MAX(a,b) ((a)>(b)?(a):(b))
int gcd(int a,int b){
return b?gcd(b,a%b):a;
}
typedef long long int64;
int main(void){
int N;
scanf("%d",&N);
int... | 1,664 | memory_bytes | {'s_id': 's650193841', 'p_id': 'p03061', 'u_id': 'u647569169', 'date': '1556419170', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '16', 'memory': '1664', 'code_size': '881'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<math.h>\n#include<stdlib.h>\n#include<string.h>\n#include<stdbool.h>\n\n#define MOD 998244353\n\n#define M... |
CDSS_110027 | CDSS | #include<stdio.h>
int main(void)
{
int n,m,d,i,j,k,cnt,sum;
char s[101][101];
scanf("%d %d %d",&n,&m,&d);
for(i=0;i<n;i++) scanf("%s",s[i]);
sum=0;
for(i=0;i<n;i++){
for(j=0;j<m;j++){
cnt=1;
if(s[i][j]=='.'){
for(k=1;k<d;k++){
if(s[i][j+k]=='.') cnt++;
else{
cnt=1;
break;
}
... | 2,092 | memory_bytes | {'s_id': 's967988346', 'p_id': 'p00555', 'u_id': 'u732783072', 'date': '1572936161', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2092', 'code_size': '568'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 n,m,d,i,j,k,cnt,sum;\n\tchar s[101][101];\n\tscanf(\"%d %d %d\",&n,&m,&d);\n\tfor(i=0;i<n;... |
CDSS_233566 | CDSS | #include <stdio.h>
#include <math.h>
int main(){
double x1,x2;
double y1,y2;
scanf("%lf %lf",&x1,&y1);
scanf("%lf %lf",&x2,&y2);
x1-=x2;
y1-=y2;
printf("%lf\n",sqrt(x1*x1+y1*y1));
return 0;
}
| 2,108 | memory_bytes | {'s_id': 's769681151', 'p_id': 'p02379', 'u_id': 'u250813039', 'date': '1532090627', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '224'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 double x1,x2;\n double y1,y2;\n scanf(\"%lf %lf\",&x1,&y1);\n scanf(\... |
CDSS_452173 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define rep(i,l,n) for(int (i)=(l);(i)<(n);(i)++)
#define min(a,b) (a)<(b)?(a):(b)
#define max(a,b) (a)>(b)?(a):(b)
#define abs(a) (a)>0?(a):-(a)
#define llong long long
int main(){
int N; scanf("%d",&N);
int flag = 0;
rep(i,0,3){
if( N%10 == 7 ) flag = ... | 1,732 | memory_bytes | {'s_id': 's013245820', 'p_id': 'p02711', 'u_id': 'u354326404', 'date': '1586739798', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '7', 'memory': '1732', 'code_size': '397'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 rep(i,l,n) for(int (i)=(l);(i)<(n);(i)++)\n#define min(a,b) (a... |
CDSS_589756 | CDSS | #include <stdio.h>
int main(void){
int n,m,c,i,j,x,ans=0,b[20],aij;
scanf("%d%d%d",&n,&m,&c);
for(i=0;i<m;i++)scanf("%d",&b[i]);
for(i=0;i<n;i++){
x=c;
for(j=0;j<m;j++){
scanf("%d",&aij);
x+=aij*b[j];
}
if(x>0)ans++;
}
printf("%d",ans);
}
| 128 | memory_bytes | {'s_id': 's215542881', 'p_id': 'p03102', 'u_id': 'u690438113', 'date': '1552251183', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '320'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n int n,m,c,i,j,x,ans=0,b[20],aij;\n scanf(\"%d%d%d\",&n,&m,&c);\n for(i=0;i<m;i++)scan... |
CDSS_474756 | CDSS | #include <stdio.h>
int main(void)
{
int n;
int n_array[37] = {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", &n);
printf("%d", n_array[n - 1]);
return (0);
}
| 128 | memory_bytes | {'s_id': 's155373896', 'p_id': 'p02741', 'u_id': 'u610775603', 'date': '1584234794', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '247'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\tmain(void)\n{\n\tint\tn;\n\tint\tn_array[37] = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2,\n\t \t\t\t\t\t1... |
CDSS_112324 | CDSS | #include <stdio.h>
int main(void)
{
int n, s[400], i, sum;
while (scanf("%d", &n), n != 0){
sum = 0;
for (i = 0; i < n / 4; i++){
scanf("%d", &s[i]);
sum += s[i];
}
printf("%d\n", sum);
}
return 0;
} | 600 | memory_bytes | {'s_id': 's645948875', 'p_id': 'p00627', 'u_id': 'u145563629', 'date': '1428849672', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '222'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n\tint n, s[400], i, sum;\n\t\n\twhile (scanf(\"%d\", &n), n != 0){\n\t\tsum = 0;\n\t\tfor (i ... |
CDSS_469344 | CDSS | #include <stdio.h>
#include <math.h>
int main()
{
int x, point = 0;
scanf("%d", &x);
while(x > 499) {
x -= 500;
point += 1000;
}
while(x > 4) {
x -= 5;
point += 5;
}
printf("%d\n", point);
return 0;
}
| 128 | memory_bytes | {'s_id': 's050465882', 'p_id': 'p02724', 'u_id': 'u863370423', 'date': '1589934970', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '128', 'code_size': '267'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\nint main()\n{\n int x, point = 0;\n scanf(\"%d\", &x);\n\n while(x > 499) {\n x... |
CDSS_230874 | CDSS | #include<stdio.h>
#define H 50000000
int A[H],size = 0;
int left(int);
int right(int);
int parent(int);
void maxHeapify(int);
void buildMaxHeap();
void insert(int);
int extract(void);
void increase(int);
int main() {
int key,n = 0,j,ex[2000000],a;
char com[20];
while (1) {
scanf("%s", com);
if ('i' == com[0]) {
... | 11,496 | memory_bytes | {'s_id': 's658864123', 'p_id': 'p02289', 'u_id': 'u306628728', 'date': '1579448138', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '270', 'memory': '11496', 'code_size': '1442'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#define H 50000000\nint A[H],size = 0;\nint left(int);\nint right(int);\nint parent(int);\nvoid maxHeapify(int);\nv... |
CDSS_659265 | CDSS | #include<stdio.h>
#include<stdlib.h>
typedef struct node{
int x;
int y;
int value;
struct node* next;
}node;
int main(){
int h, w;
scanf("%d%d", &h, &w);
char map[h+2][w+2];
int p[h+2][w+2];
for(int i=0; i<h+2; i++){
for(int j=0; j<w+2; j++){
map[i][j] = '#';
... | 256 | memory_bytes | {'s_id': 's328748459', 'p_id': 'p03436', 'u_id': 'u071680334', 'date': '1569944654', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '256', 'code_size': '2728'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n\ntypedef struct node{\n int x;\n int y;\n int value;\n struct node* next;\n}node;\... |
CDSS_231519 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <stdint.h>
#include <time.h>
#include <limits.h>
#include <string.h>
int n;
float *x,*y;
float getdist(int i,int j){
float dx,dy;
dx = x[i]-x[j];
dy = y[i]-y[j];
return sqrtf(dx*dx+dy*dy);
}
/* xorshift */
/* https://ja.wikipedia.org/wiki/Xorsh... | 25,528 | memory_bytes | {'s_id': 's751500687', 'p_id': 'p02303', 'u_id': 'u289594538', 'date': '1467355448', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '220', 'memory': '25528', 'code_size': '6574'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 <stdint.h>\n#include <time.h>\n#include <limits.h>\n#include <str... |
CDSS_348935 | CDSS | #include<stdio.h>
#include<string.h>
int main(void){
int room[4][3][10] = {0} ;
int n=0 ;
int b=0 ,f=0 ,r=0 ,v=0 ;
int i=0 ,j=0 ,k=0 ;
scanf("%d",&n);
for (i=0 ;i<n ;i++){
scanf("%d%d%d%d",&b ,&f ,&r ,&v);
room[b-1][f-1][r-1]=room[b-1][f-1][r-1]+v;
}
for (i=0 ;i<4 ;i++... | 612 | memory_bytes | {'s_id': 's785887169', 'p_id': 'p02409', 'u_id': 'u582778522', 'date': '1494521229', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '612', 'code_size': '554'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\n\nint main(void){\n int room[4][3][10] = {0} ;\n int n=0 ;\n int b=0 ,f=0 ,r=0 ,v=0 ;\... |
CDSS_28130 | CDSS | #include<stdio.h>
int main(){
int a,b,sum,counter,i;
while(scanf("%d %d",&a,&b)!=-1){
sum = a + b;
for(i=0;sum!=0;i++)
sum = sum / 10;
printf("%d\n",i);
}
return 0;
} | 0 | memory_bytes | {'s_id': 's844969020', 'p_id': 'p00002', 'u_id': 'u562661144', 'date': '1342954509', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '193'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n int a,b,sum,counter,i;\n while(scanf(\"%d %d\",&a,&b)!=-1){\n sum = a + b;\n for(i=0;sum!=0... |
CDSS_149963 | CDSS | #include <stdio.h>
void trace(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;
for(i=1;i<N;i++) {
v=A[i];
j=i-1;
while(j>=0 && A[j] > v) {
A[j... | 2,148 | memory_bytes | {'s_id': 's309370516', 'p_id': 'p02255', 'u_id': 'u754206059', 'date': '1555636703', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2148', 'code_size': '575'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 trace(int A[],int N) {\n int i;\n for(i=0;i<N;i++) {\n if(i>0) printf(\" \");\n printf(... |
CDSS_57202 | CDSS | #include <stdio.h>
int main(void)
{
double v, y;
int n;
while (scanf("%lf", &v) != EOF){
y = (v * v / 19.6);
n = 0;
while (5.0 * n <= y){
n++;
}
printf("%d\n", n + 1);
}
return (0);
} | 628 | memory_bytes | {'s_id': 's060092839', 'p_id': 'p00024', 'u_id': 'u077018477', 'date': '1398935528', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '628', 'code_size': '204'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\tdouble v, y;\n\tint n;\n\t\n\twhile (scanf(\"%lf\", &v) != EOF){\n\t\ty = (v * v / 19.6);\n... |
CDSS_735412 | CDSS | #include<stdio.h>
int main(){
int N,i;
long long int T,A,TRatio,ARatio,j,k;
scanf("%d",&N);
scanf("%lld %lld",&T,&A);
for(i=1;i<N;++i){
scanf("%lld %lld",&TRatio,&ARatio);
j=T/TRatio;
if(T%TRatio) ++j;
k=A/ARatio;
if(A%ARatio) ++k;
if(j>k){
T=TRatio*j;A=ARatio*j;
}
else... | 128 | memory_bytes | {'s_id': 's699826888', 'p_id': 'p03966', 'u_id': 'u041082869', 'date': '1480389463', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '399'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 long long int T,A,TRatio,ARatio,j,k;\n\n scanf(\"%d\",&N);\n scanf(\"%lld %lld\",&T,... |
CDSS_671005 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
#define ll long long
#define rep(i,l,r)for(ll i=(l);i<(r);i++)
#define repp(i,l,r,k)for(ll i=(l);i<(r);i+=(k))
char s[9000];
ll d[9000];
ll xx[20000],*x=xx+10000;
ll yy[20000],*y=yy+10000;
ll tt[20000],*t=tt+10000;
int main(){
scanf("%s",s);
int len=strlen(s);... | 640 | memory_bytes | {'s_id': 's318833040', 'p_id': 'p03490', 'u_id': 'u382163500', 'date': '1522099907', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '201', 'memory': '640', 'code_size': '863'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 ll long long\n#define rep(i,l,r)for(ll i=(l);i<(r);i++)\n#define re... |
CDSS_666860 | CDSS | #include<stdio.h>
int main(){
int M,rem;
scanf("%d",&M);
if(M>=1&&M<=23){
rem=48-M;
printf("%d\n",rem);
}
return 0;
}
| 128 | memory_bytes | {'s_id': 's098581673', 'p_id': 'p03473', 'u_id': 'u018679195', 'date': '1528181074', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '154'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 M,rem;\n scanf(\"%d\",&M);\n if(M>=1&&M<=23){\n rem=48-M;\n printf(\"%d\\n... |
CDSS_320117 | CDSS | #include <stdio.h>
int main(void) {
int a, b;
char op;
while(1){
scanf("%d %c %d", &a, &op, &b);
if(op == '?') break;
if(op == '+') printf("%d\n", a+b);
if(op == '-') printf("%d\n", a-b);
if(op == '*') printf("%d\n", a*b);
if(op == '/') printf("%d\n", a/b);
}
return 0;
}
| 2,060 | memory_bytes | {'s_id': 's062391325', 'p_id': 'p02401', 'u_id': 'u485618438', 'date': '1528771068', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2060', 'code_size': '290'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\n\tint a, b;\n\tchar op;\n\twhile(1){\n\t\tscanf(\"%d %c %d\", &a, &op, &b);\n\t\tif(op == '?')... |
CDSS_155595 | CDSS | #include<stdio.h>
#include<math.h>
int A[10000];
int main(){
int num=0, length, i, j, sq, flag;
scanf("%d", &length);
for(i=0; i<length; i++){
scanf("%d",&A[i]);
}
for(i=0; i<length; i++){
flag = 0;
sq = (int)sqrt(A[i]);
for(j=2; j<=sq; j++){
if((A[i]%j... | 628 | memory_bytes | {'s_id': 's767611121', 'p_id': 'p02257', 'u_id': 'u289393355', 'date': '1461128605', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '628', 'code_size': '475'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<math.h>\nint A[10000];\n\nint main(){\n int num=0, length, i, j, sq, flag;\n\n scanf(\"%d\", &length... |
CDSS_631957 | CDSS | #include <stdio.h>
#define ZERO 0
int main(){
int slime_count;
scanf("%d",&slime_count);
int a[slime_count]; /*各スライムの色(数字)*/
int i = ZERO, j = ZERO; /*ループ用変数*/
int consecutive_count = 1; /*ある数字が連続した場合のその連続数*/
int color_change_count = 0; /*色(数字)を変... | 256 | memory_bytes | {'s_id': 's320643905', 'p_id': 'p03296', 'u_id': 'u284281348', 'date': '1536866576', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '256', 'code_size': '818'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 ZERO 0\nint main(){\n\tint slime_count;\n\n\tscanf(\"%d\",&slime_count);\n\n\tint a[slime_count]; ... |
CDSS_546797 | CDSS | #include<stdio.h>
int main() {
int r, area;
scanf("%d", &r);
area = 3*r*r;
printf("%d", area);
return 0;
} | 128 | memory_bytes | {'s_id': 's303157574', 'p_id': 'p02969', 'u_id': 'u353919145', 'date': '1571550071', '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 int r, area;\n\n\n scanf(\"%d\", &r);\n\n area = 3*r*r;\n printf(\"%d\", area);\n\n retu... |
CDSS_191460 | CDSS | #include<stdio.h>
int binarySearch(int,int [],int);
int A[1000001],n;
int main(){
int i,q,key;
int count = 0;
scanf("%d",&n);
for(i = 0;i < n;i++)
scanf("%d",&A[i]);
scanf("%d",&q);
for(i = 0;i < q;i++){
scanf("%d",&key);
if(binarySearch(n,A,key) != 0)
count++;
}
printf("%d\n",c... | 2,084 | memory_bytes | {'s_id': 's552187133', 'p_id': 'p02268', 'u_id': 'u201826327', 'date': '1545313119', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2084', 'code_size': '627'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 binarySearch(int,int [],int);\n\nint A[1000001],n;\n\nint main(){\n int i,q,key;\n int count = 0;\n\n scan... |
CDSS_302258 | CDSS | #include <stdio.h>
int main(){
int x, y, t;
while(1){
scanf("%d %d", &x, &y);
if (x == 0 && y==0) break;
if (x > y){
t = x;
x = y;
y = t;
}
printf("%d %d\n", x, y);
}
} | 1,812 | memory_bytes | {'s_id': 's740185043', 'p_id': 'p02397', 'u_id': 'u515938582', 'date': '1509421135', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1812', 'code_size': '311'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 x, y, t;\n while(1){\n scanf(\"%d %d\", &x, &y);\n if (x == 0 && y==... |
CDSS_518119 | CDSS | #include<stdio.h>
int main(){
int a, b;
scanf("%d%d", &a, &b);
if(a > 9 || b > 9){
printf("-1");
}else{
printf("%d", a*b);
}
return 0;
} | 256 | memory_bytes | {'s_id': 's166588927', 'p_id': 'p02879', 'u_id': 'u071680334', 'date': '1572224532', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '256', '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 int a, b;\n scanf(\"%d%d\", &a, &b);\n if(a > 9 || b > 9){\n printf(\"-1\");\n }... |
CDSS_415041 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <ctype.h>
#include <time.h>
#define findmax(a,b) (a)>(b)?(a):(b)
#define findmin(a,b) (a)<(b)?(a):(b)
#define inout freopen("in.txt","r",stdin);freopen("out.txt","w",stdout)
#define swap(a,b) (a)+=(b);(b)=(a)-(b);(a)-=(b)
#define quic... | 1,660 | memory_bytes | {'s_id': 's942802877', 'p_id': 'p02675', 'u_id': 'u524844150', 'date': '1589764459', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '1660', 'code_size': '781'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 <ctype.h>\n#include <time.h>\n#define findma... |
CDSS_85910 | CDSS | #include <stdio.h>
#define MAX 100
double dp[MAX+1][MAX];
double table[MAX][MAX];
int main(int argc, char *argv[]){
for(;;){
int n, m;
int i, j, k;
scanf("%d %d", &n, &m);
if(n == 0 && m == 0){
break;
}
for(i = 0; i < n; i++){
for(j = 0; j < n; j++){
scanf("%lf", &tab... | 820 | memory_bytes | {'s_id': 's109573371', 'p_id': 'p00191', 'u_id': 'u197786702', 'date': '1351217221', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '820', 'code_size': '880'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\n#define MAX 100\n\ndouble dp[MAX+1][MAX];\ndouble table[MAX][MAX];\n\nint main(int argc, char *argv[]){\n \n f... |
CDSS_714954 | CDSS | #include <stdio.h>
#include <math.h>
#define MIN(x,y) (x)<(y)?(x):(y)
#define MAX(x,y) (x)>(y)?(x):(y)
int main(void) {
int min;
long n,b;
scanf("%lld",&n);
min = log10(n)+1;
for (long a = 1;a*a <= n;a++) {
if (!(n % a)) {
b = n/a;
min = MIN(min,MAX((int) log10(a)+1,(int) log10(b)+1));
}
}
printf(... | 384 | memory_bytes | {'s_id': 's281547962', 'p_id': 'p03775', 'u_id': 'u731412691', 'date': '1490577506', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '384', 'code_size': '348'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 MIN(x,y) (x)<(y)?(x):(y)\n#define MAX(x,y) (x)>(y)?(x):(y)\n\nint main(void) {\n\tint m... |
CDSS_328282 | CDSS | /* ITP1_4_D: Min, Max and Sum */
/* 20181119 AOJ */
#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <limits.h>
int main(void){
int min, max, n, a;
long long sum;
scanf("%d", &n);
scanf("%d", &a);
min = max = sum = a;
while(--n){
scanf("%d", &a);
if(a < min) min = a;
if(a > max) max = a;
su... | 1,988 | memory_bytes | {'s_id': 's916118876', 'p_id': 'p02402', 'u_id': 'u761232808', 'date': '1542576014', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1988', 'code_size': '386'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n/* ITP1_4_D: Min, Max and Sum */\n/* 20181119 AOJ */\n\n#define _CRT_SECURE_NO_WARNINGS\n\n#include <stdio.h>\n#include <limits.h>\n\n... |
CDSS_527001 | CDSS | #include<stdio.h>
int h,w,a,b,i,j;
int main(){
scanf("%d%d%d%d",&h,&w,&a,&b);
for(i=h;i--;){
for(j=w;j--;){
if(j<a&&i<b||j>=a&&i>=b)printf("1");
else printf("0");
}
printf("\n");
}
return 0;
} | 1,152 | memory_bytes | {'s_id': 's404101629', 'p_id': 'p02903', 'u_id': 'u125212320', 'date': '1569116854', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '1152', 'code_size': '256'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 h,w,a,b,i,j;\nint main(){\n scanf(\"%d%d%d%d\",&h,&w,&a,&b);\n for(i=h;i--;){\n for(j=w;j--;){\n ... |
CDSS_90919 | CDSS | #include <stdio.h>
int main(void)
{
int b[4],cnt;
scanf("%d",&b[1]);
scanf("%d %d",&b[2],&b[3]);
if(((b[1]==1)&&(b[2]==1))||((b[3]==1)&&((b[1]==0)&&(b[2]==0))))
printf("Open\n");
else
printf("Close\n");
scanf("%d",&b[1]);
return 0;
} | 584 | memory_bytes | {'s_id': 's158466372', 'p_id': 'p00252', 'u_id': 'u620915080', 'date': '1471659858', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '584', 'code_size': '244'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 b[4],cnt;\n\tscanf(\"%d\",&b[1]);\n\tscanf(\"%d %d\",&b[2],&b[3]);\n\tif(((b[1]==1)&&(b[2... |
CDSS_240113 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<math.h>
int main(int argc, char *argv[])
{
int cubic;
char str[256];
fgets(str, 256, stdin);
cubic = atoi(str);
printf("%d\n", cubic*cubic*cubic);
return 0;
} | 528 | memory_bytes | {'s_id': 's310141471', 'p_id': 'p02388', 'u_id': 'u836893114', 'date': '1407558282', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '528', 'code_size': '211'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#include<math.h>\n\nint main(int argc, char *argv[])\n{\n\tint cubic;\n\tchar str[256];\n\tfget... |
CDSS_360480 | CDSS | #include <stdio.h>
int main(void){
int n,m,l;
int i,j,k;
scanf("%d %d %d\n",&n,&m,&l);
int a[n][m];
int b[m][l];
long long c[n][l];
//n*m??????A???????????????
for(i=0;i<n;i++){
for(j=0;j<m;j++){
scanf("%d ",&a[i][j]);
}
}
//m*l??????b???????????????
... | 764 | memory_bytes | {'s_id': 's361725672', 'p_id': 'p02414', 'u_id': 'u979795132', 'date': '1502464366', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '764', 'code_size': '867'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n int n,m,l;\n int i,j,k;\n scanf(\"%d %d %d\\n\",&n,&m,&l);\n int a[n][m];\n int... |
CDSS_306387 | CDSS | #include <stdio.h>
int main(void){
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
int i;
int counter=0;
for(i=a;i<=b;i++){
if(c%i==0){
counter++;
}
}
printf("%d\n",counter);
} | 1,732 | memory_bytes | {'s_id': 's775652273', 'p_id': 'p02398', 'u_id': 'u290160177', 'date': '1507692453', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1732', 'code_size': '239'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n int a,b,c;\n scanf(\"%d %d %d\",&a,&b,&c);\n \n int i;\n int counter=0;\n fo... |
CDSS_214607 | CDSS | #include<stdio.h>
#include <stdlib.h>
typedef struct{
int id,parent,depth,type; //type:0,root,1,internal node, 2,leaf
int num; //nimber of data
int *data;
}treenode;
int main(){
int n,d,i,j,k,id;
int cnt = 1;
char ttype[3][20] = {"root","internal node","leaf"};
treenode *a;
scanf("%d",&n);
a = (treeno... | 8,348 | memory_bytes | {'s_id': 's939033100', 'p_id': 'p02279', 'u_id': 'u117823890', 'date': '1531378898', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '60', 'memory': '8348', 'code_size': '1279'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 struct{\n int id,parent,depth,type; //type:0,root,1,internal node, 2,leaf\n int num;... |
CDSS_220592 | CDSS | int preorder[40],inorder[40];
void recover(int fp,int lp,int fi,int li){
int root=fi;
for(;root<li;root++)if(preorder[fp]==inorder[root])break;
if(fi<root)recover(fp+1,fp+(root-fi)+1,fi,root);
if(root<li-1)recover(fp+(root-fi)+1,lp,root+1,li);
printf(inorder[root]==preorder[0]?"%d\n":"%d ",inorder[r... | 1,828 | memory_bytes | {'s_id': 's245309395', 'p_id': 'p02282', 'u_id': 'u923072008', 'date': '1512107976', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1828', 'code_size': '494'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nint preorder[40],inorder[40];\nvoid recover(int fp,int lp,int fi,int li){\n int root=fi;\n for(;root<li;root++)if(preorder[fp]==... |
CDSS_623182 | CDSS | #include<stdio.h>
int main(){
int N, i;
scanf("%d%d", &N, &i);
printf("%d", N - i + 1);
return 0;
} | 128 | memory_bytes | {'s_id': 's710003968', 'p_id': 'p03272', 'u_id': 'u767481489', 'date': '1576509550', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '151'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 N, i;\n scanf(\"%d%d\", &N, &i);\n printf(\"%d\", N - i + 1)... |
CDSS_633540 | CDSS | #include<stdio.h>
int main(){
int n,a=1<<30,b=0,t,i;
scanf("%d",&n);
for(i=0;i<n;i++){scanf("%d",&t);a=a<t?a:t;b=b<t?t:b;}
printf("%d",b-a);
}
| 1,732 | memory_bytes | {'s_id': 's340504132', 'p_id': 'p03308', 'u_id': 'u218346293', 'date': '1595638685', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1732', 'code_size': '151'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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,a=1<<30,b=0,t,i;\n scanf(\"%d\",&n);\n for(i=0;i<n;i++){scanf(\"%d\",&t);a=a<t?a:t;b=b<t?t:b... |
CDSS_309719 | CDSS | #include <stdio.h>
int main(void){
int a,b,d,r;
double f;
scanf("%d %d",&a,&b);
d=a/b;
r=a%b;
f=(double)a/(double)b;
printf("%d %d %lf\n",d,r,f);
return 0;
} | 636 | memory_bytes | {'s_id': 's863442643', 'p_id': 'p02399', 'u_id': 'u169647138', 'date': '1476846662', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '636', 'code_size': '165'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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,d,r;\n\tdouble f;\n\tscanf(\"%d %d\",&a,&b);\n\td=a/b;\n\tr=a%b;\n\tf=(double)a/(double... |
CDSS_163091 | CDSS | #include <stdio.h>
int main(){
int t; //first line
scanf("%d",&t);
int r[t];
int i = 0;
int j;
int p;
while(i < t){
scanf("%d",&r[i]);
i++;
}
i = 0;
p = r[1] - r[0];
int minr = r[0];
for(j=1; j<t; j++){
if(minr > r[j-1]){
... | 2,548 | memory_bytes | {'s_id': 's169965754', 'p_id': 'p02258', 'u_id': 'u092993594', 'date': '1517038384', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2548', 'code_size': '475'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n\n int t; //first line\n\n scanf(\"%d\",&t);\n\n int r[t];\n int i = 0;\n int j;\n ... |
CDSS_570266 | CDSS | #include <stdio.h>
int main () {
int k;
int n;
char A, B, C;
scanf("%d %d", &n, &k);
getchar();
char s[n];
scanf("%s", &s);
s[k-1] += 32;
printf("%s", s);
return 0;
} | 1,704 | memory_bytes | {'s_id': 's167488890', 'p_id': 'p03041', 'u_id': 'u018679195', 'date': '1597292344', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1704', 'code_size': '180'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main () {\n\tint k;\n\tint n;\n\tchar A, B, C;\n\t\n\tscanf(\"%d %d\", &n, &k);\n\tgetchar();\n\tchar s[n];\... |
CDSS_633104 | CDSS | #include <stdio.h>
int main(){
int n;
scanf("%d",&n);
if(n%2 == 0){
printf("%d",n);
}
else{
printf("%d",n*2);
}
}
| 128 | memory_bytes | {'s_id': 's364756002', 'p_id': 'p03307', 'u_id': 'u501869915', 'date': '1557372900', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '158'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 scanf(\"%d\",&n);\n if(n%2 == 0){\n printf(\"%d\",n);\n }\n else{\n ... |
CDSS_544135 | CDSS | #include <stdio.h>
int main(){
int A, B;
scanf("%d %d",&A,&B);
int K;
K = (A+B)/2;
if((A+B)%2==0){
printf("%d",K);
}
else printf("IMPOSSIBLE");
return 0;
} | 128 | memory_bytes | {'s_id': 's281626998', 'p_id': 'p02957', 'u_id': 'u733391043', 'date': '1565598761', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '165'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(){\n\tint A, B;\n\tscanf(\"%d %d\",&A,&B);\n\tint K;\n\tK = (A+B)/2;\n\tif((A+B)%2==0){\n\t\tprintf(\"%d\... |
CDSS_445241 | CDSS | #include<stdio.h>
int main()
{
long long int n, i, a[500000]={}, x;
scanf("%lli", &n) ;
while(scanf("%lli",&x)!=EOF)
a[x]+=1;
for(i=1;i<=n;i++)
printf("%lli\n", a[i]) ;
return 0;
} | 5,636 | memory_bytes | {'s_id': 's709096251', 'p_id': 'p02707', 'u_id': 'u028438021', 'date': '1587440181', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '40', 'memory': '5636', 'code_size': '225'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main() \n{\n long long int n, i, a[500000]={}, x;\n scanf(\"%lli\", &n) ;\n \n \twhile(scanf(\"%lli... |
CDSS_288561 | CDSS | #include <stdio.h>
int main(void)
{
int a,b,c,d,e,f;
scanf("%d %d %d",&a,&b,&c);
if(a > b){
d=a;
a=b;
b=d;
}
if(a > c){
f=a;
a=c;
c=f;
}
if(b > c){
e=b;
b=c;
c=e;
}
printf("%d %d %d\n",a,b,c);
return 0;
}
| 2,036 | memory_bytes | {'s_id': 's339036358', 'p_id': 'p02393', 'u_id': 'u702115148', 'date': '1533742152', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2036', 'code_size': '318'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void)\n{\n int a,b,c,d,e,f;\n scanf(\"%d %d %d\",&a,&b,&c);\n if(a > b){\n d=a;\n ... |
CDSS_723235 | CDSS | #include<stdio.h>
int main() {
int i, n, x[100], max = 0;
char s[100];
scanf("%d ", &n);
x[0] = 0;
for (i = 0;i < n;i++) {
scanf("%c", &s[i]);
if (s[i] == 'I') {
x[i + 1] = x[i] + 1;
}
else if (s[i] == 'D') {
x[i + 1] = x[i] - 1;
}
if (x[i + 1] >= max) {
max = x[i + 1];
}
}
printf("%d\n",... | 128 | memory_bytes | {'s_id': 's173162423', 'p_id': 'p03827', 'u_id': 'u644746047', 'date': '1484694579', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '339'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main() {\n\tint i, n, x[100], max = 0;\n\tchar s[100];\n\tscanf(\"%d \", &n);\n\tx[0] = 0;\n\tfor (i = 0;i < n;... |
CDSS_110366 | CDSS | #include<stdio.h>
int main(void)
{
int n,m,x[100],a[100];
int i,j,s;
s=0;
scanf("%d",&n);
for(i=1;i<=n;i++){
scanf("%d",&x[i]);
}
scanf("%d",&m);
for(j=1;j<=m;j++){
scanf("%d",&a[j]);
s=a[j];
if(x[s+1]!=x[s]+1){
x[s]++;
}
if(x[s]>=2019){
x[s]=2019;
}
}
for(i=1;i<=n;i++){
printf("%d\n",x[... | 2,144 | memory_bytes | {'s_id': 's918638481', 'p_id': 'p00576', 'u_id': 'u288941982', 'date': '1568790303', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2144', 'code_size': '341'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\n\tint n,m,x[100],a[100];\n\tint i,j,s;\n\ts=0;\n\tscanf(\"%d\",&n);\n\tfor(i=1;i<=n;i++){\n\t\ts... |
CDSS_521005 | CDSS | #include <stdio.h>
int main(void) {
int a, b;
scanf("%d%d", &a, &b);
if(a-2*b <= 0) printf("0\n");
else printf("%d\n", a-2*b);
return 0;
}
| 128 | memory_bytes | {'s_id': 's152328238', 'p_id': 'p02885', 'u_id': 'u231261695', 'date': '1572029998', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', '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 main(void) {\n int a, b;\n scanf(\"%d%d\", &a, &b);\n if(a-2*b <= 0) printf(\"0\\n\");\n else pr... |
CDSS_437775 | CDSS | #include <stdio.h>
#include <math.h>
int main() {
int R;
scanf("%d", &R);
printf("%f", 2 * R * M_PI);
return 0;
} | 1,752 | memory_bytes | {'s_id': 's762607593', 'p_id': 'p02705', 'u_id': 'u492598592', 'date': '1589900086', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1752', 'code_size': '122'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n\nint main() {\n int R;\n scanf(\"%d\", &R);\n printf(\"%f\", 2 * R * M_PI);\n return 0;\n}... |
CDSS_712647 | CDSS | #include <stdio.h>
#include <string.h>
#include <math.h>
int main(void){
char o[50],e[50];
int i,j;
scanf("%s %s",o,e);
double sum=fmax(strlen(o),strlen(e));
for(i=0;i<sum;i++){
if(o[i]!='\0') printf("%c",o[i]);
if(e[i]!='\0') printf("%c",e[i]);
}
return 0;
} | 128 | memory_bytes | {'s_id': 's397853286', 'p_id': 'p03760', 'u_id': 'u185896732', 'date': '1550010453', '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#include <string.h>\n#include <math.h>\nint main(void){\n char o[50],e[50];\n int i,j;\n scanf(\"%s %s\",o,e);\... |
CDSS_601876 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
int main(void)
{
int n;
int i = 0;
int *table1, *value;
int newvalue1, newvalue2;
scanf("%d",&n);
table1 = (int*)malloc(sizeof(int)*n);
value = (int*)malloc(sizeof(int)*n);
while(i < n)
{
scanf("%d",&table1[i]);
i++;
}
val... | 2,224 | memory_bytes | {'s_id': 's234545472', 'p_id': 'p03160', 'u_id': 'u480340065', 'date': '1598984723', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '2224', 'code_size': '686'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 main(void)\n{\n\tint n;\n\tint i = 0;\n\tint *t... |
CDSS_482437 | CDSS | #include <stdio.h>
int main(void){
int N;
int i,j,k;
int bingo[3][3];
for(i=0 ;i<3 ;i++){
for(j=0 ; j<3 ; j++){
bingo[i][j]=0;
}
}
int Aar[3][3];
for(i=0 ;i<3 ;i++){
for(j=0 ; j<3 ; j++){
scanf("%d",&Aar[i][j]);
}
}
scanf("%d",... | 128 | memory_bytes | {'s_id': 's935459771', 'p_id': 'p02760', 'u_id': 'u245847722', 'date': '1583358642', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '929'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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;\n int i,j,k;\n int bingo[3][3];\n for(i=0 ;i<3 ;i++){\n for(j=0 ; j<... |
CDSS_196079 | CDSS | #include<stdio.h>
#include<string.h>
#define M 1000000/* your task*/
#define L 14
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 lo... | 14,280 | memory_bytes | {'s_id': 's428745669', 'p_id': 'p02269', 'u_id': 'u292759042', 'date': '1494652616', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '220', 'memory': '14280', 'code_size': '1429'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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/* your task*/\n#define L 14\n\nchar H[M][L]; /* Hash Table */\n\nint getCha... |
CDSS_568182 | CDSS | #include<stdio.h>
int main()
{
int A,B,c;
scanf("%d%d",&A,&B);
if(A<=5)
{
printf("%d",0);
}
else if(A>=6&&A<=12)
{
printf("%d",B/2);
}
else
{
printf("%d",B);
}
return 0;
}
| 128 | memory_bytes | {'s_id': 's162558384', 'p_id': 'p03035', 'u_id': 'u040450399', 'date': '1558847859', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '244'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n int A,B,c;\n scanf(\"%d%d\",&A,&B);\n if(A<=5)\n {\n printf(\"%d\",0);\n }\n ... |
CDSS_423398 | CDSS | #include<stdio.h>
int main()
{
int n, k, i, d, j, m;
scanf("%d %d",&n,&k);
int a[n+1];
for(i=0;i<n+1;i++)
{
a[i]= 0;
}
for(i=0;i<k;i++)
{
scanf("%d",&d);
for(j=0;j<d;j++)
{
scanf("%d",&m);
a[m]=1;
}
}
int c =0 ;
... | 1,700 | memory_bytes | {'s_id': 's842224629', 'p_id': 'p02688', 'u_id': 'u766413013', 'date': '1588895927', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1700', 'code_size': '443'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n int n, k, i, d, j, m;\n scanf(\"%d %d\",&n,&k);\n int a[n+1];\n for(i=0;i<n+1;i++)\n ... |
CDSS_392297 | CDSS | #include <stdio.h>
int main() {
int ans,n,b,a,w,t,r,k;
a=0;
w=0;
t=0;
k=0;
r=0;
char s[10];
scanf("%d",&n);
for(k=0;k<n;k++)
{
scanf("%s",s);
{
if(s[0]=='A')
{
a++;
}
else if(s[0]=='W')
{
w++;
}
else if(s[0]=='T')
{
t++;
}
else... | 1,696 | memory_bytes | {'s_id': 's388819184', 'p_id': 'p02613', 'u_id': 'u806320475', 'date': '1597385704', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '17', 'memory': '1696', '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>\nint main() {\n int ans,n,b,a,w,t,r,k;\n a=0;\n w=0;\n t=0;\n k=0;\n r=0;\n char s[10]; \n \n scanf(\"%... |
CDSS_212206 | CDSS | #include <stdio.h>
#define MAX 100000
int A[MAX], n;
int partition(int p, int r) {
int x, i, j, t;
x = A[r];
i = p-1;
for(j=p; j<r; j++) {
if(A[j] <= x) {
i++;
t=A[i]; A[i]=A[j]; A[j]=t;
}
}
t=A[i+1]; A[i+1]=A[r]; A[r]=t;
return i+1;
}
int main(void) {
int i, q;
scanf("%d", &n)... | 2,176 | memory_bytes | {'s_id': 's905273350', 'p_id': 'p02276', 'u_id': 'u238725755', 'date': '1572242572', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2176', 'code_size': '543'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\nint A[MAX], n;\n\nint partition(int p, int r) {\n int x, i, j, t;\n x = A[r];\n i = p-1;\... |
CDSS_149987 | CDSS | #include<stdio.h>
void trace(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 j,i,v;
for(i=1;i<N;i++){
v=A[i];
j=i-1;
while(j>=0 && A[j]>v){
A[j+1]=A[j];
... | 2,064 | memory_bytes | {'s_id': 's779288013', 'p_id': 'p02255', 'u_id': 'u442969736', 'date': '1551162806', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2064', 'code_size': '568'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 trace(int A[],int N){\n int i;\n for(i=0;i<N;i++){\n if(i>0) printf(\" \");\n printf(\"%... |
CDSS_142156 | CDSS | //2020.1.30
//s1270188 xxxmk2
//alds1_13a
#include<stdio.h>
#define N 8
//global
int masu[N][N], row[N], col[N], dpos[2*N-1], dneg[2*N-1];
//function
void pr_masu(void){
int i, j;
for(i=0;i<N;i++){
for(j=0;j<N;j++){
if(masu[i][j]==1 && row[i]!=j) return;
}
}
for(i=0;i<N;i++){
for(j=0;j<N;j++){
... | 2,112 | memory_bytes | {'s_id': 's956286534', 'p_id': 'p02244', 'u_id': 'u906448367', 'date': '1580369222', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '999'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n//2020.1.30\n//s1270188 xxxmk2\n//alds1_13a\n\n#include<stdio.h>\n#define N 8\n\n//global\nint masu[N][N], row[N], col[N], dpos[2*N-1]... |
CDSS_625766 | CDSS | #include<stdio.h>
void run() {
int N, i, j, cnt1 = 0, cnt2 = 0;
scanf("%d", &N);
for(j = 0; j < N; ++j){
for(i = 1; i <= N-j; ++i) {
if((N-j)%2 == 0) continue;
if(((N-j) % i) == 0) cnt1++;
if(cnt1 == 8) cnt2++;
if(cnt1 == 9) cnt2--;
}
cnt1 = 0;
}
printf("%d", cnt2);
}
int main() {
run();
retur... | 128 | memory_bytes | {'s_id': 's896508467', 'p_id': 'p03281', 'u_id': 'u200849592', 'date': '1545013145', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '326'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nvoid run() {\n\tint N, i, j, cnt1 = 0, cnt2 = 0;\n\tscanf(\"%d\", &N);\n\tfor(j = 0; j < N; ++j){\n\t\tfor(i = 1;... |
CDSS_217088 | CDSS | #include <stdio.h>
#define MAX 100000
#define NIL -1
struct Node {int p,l,r;};
struct Node T[MAX];
int n,D[MAX];
void print(int u){
int i,c;
printf("node %d: ",u);
printf("parent = %d, ",T[u].p);
printf("depth = %d, ",D[u]);
if(T[u].p==NIL){
printf("root, ");
}
else if(T[u].l==NIL){
printf("le... | 6,380 | memory_bytes | {'s_id': 's516833664', 'p_id': 'p02279', 'u_id': 'u099580126', 'date': '1546571612', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '40', 'memory': '6380', 'code_size': '1065'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 NIL -1\n\nstruct Node {int p,l,r;};\n\nstruct Node T[MAX];\nint n,D[MAX];\n\nvoid prin... |
CDSS_586358 | CDSS | #include<stdio.h>
int main()
{
char a;
scanf("%c",&a);
if(a=='A')
printf("T");
else if(a=='T')
printf("A");
else if(a=='G')
printf("C");
else
printf("G");
return 0;
}
| 128 | memory_bytes | {'s_id': 's365717559', 'p_id': 'p03085', 'u_id': 'u475899775', 'date': '1553458216', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '228'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n char a;\n scanf(\"%c\",&a);\n if(a=='A')\n printf(\"T\");\n else if(a=='T')\n ... |
CDSS_287967 | CDSS | #include <stdio.h>
int main() {
int a, b, c;
int tmp;
scanf("%d %d %d", &a, &b, &c);
if(a > b){
tmp = a;
a = b;
b = tmp;
}
if(b > c) {
tmp = b;
b = c;
c = tmp;
}
if(a > b) {
tmp = a;
a = b;
b = t... | 2,104 | memory_bytes | {'s_id': 's870654802', 'p_id': 'p02393', 'u_id': 'u301759650', 'date': '1596260723', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '386'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 int tmp;\n \n scanf(\"%d %d %d\", &a, &b, &c);\n \n if(a > b){\n... |
CDSS_521918 | CDSS | #include <stdio.h>
int main(void) {
int n;
char s[100002];
scanf("%d", &n);
scanf("%s", s);
int ans = 1;
for (int i = 1; i < n; i++) {
if (s[i] != s[i - 1]) ans++;
}
printf("%d\n", ans);
} | 1,828 | memory_bytes | {'s_id': 's828602688', 'p_id': 'p02887', 'u_id': 'u126905253', 'date': '1594514160', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1828', 'code_size': '237'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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;\n char s[100002];\n \n scanf(\"%d\", &n);\n scanf(\"%s\", s);\n \n i... |
CDSS_535526 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#define ll long long
#define rep(i,l,r,d) for(ll i=(l);i<(r);i+=(d))
#define max(p,q) ((p)>(q)?(p):(q))
#define min(p,q) ((p)<(q)?(p):(q))
#define abs(p) ((p)>=(0)?(p):(-(p)))
ll A[2001], lowp[2001], lowa[2001];
int main(void){
ll N, K, MO... | 256 | memory_bytes | {'s_id': 's597874317', 'p_id': 'p02928', 'u_id': 'u924527074', 'date': '1566700222', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '17', 'memory': '256', 'code_size': '879'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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#define ll long long\n#define rep(i,l,r,d) for(ll i=(... |
CDSS_332443 | CDSS | #include <stdio.h>
#include <ctype.h>
#include <stdlib.h>
int main()
{ int i,j;
int h,w;
while(1){
scanf("%d %d",&h,&w);
if (h==0 && w ==0) break;
for(i=0; i < h; i++){
for(j=0; j < w; j++) putchar('#');
putchar('\n');
}
putchar('\n');
... | 2,004 | memory_bytes | {'s_id': 's358867652', 'p_id': 'p02403', 'u_id': 'u351341371', 'date': '1580734328', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2004', 'code_size': '340'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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>\n#include <stdlib.h>\n\nint main()\n{ int i,j;\n int h,w;\n \n while(1){\n sc... |
CDSS_302587 | CDSS | #include<stdio.h>
int main(void)
{
int x = 0, y = 0;
int i, j;
for (i = 0; i <= 3000; i++) {
scanf("%d", &x);
scanf("%d", &y);
if (y < x) {
j = x;
x = y;
y = j;
}
if (x == 0 && y == 0) {
break;
}
printf("%d %d\n", x, y);
}
return 0;
}
| 2,040 | memory_bytes | {'s_id': 's086631824', 'p_id': 'p02397', 'u_id': 'u547947913', 'date': '1523928458', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2040', 'code_size': '273'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 x = 0, y = 0;\n\tint i, j;\n\tfor (i = 0; i <= 3000; i++) {\n\t\tscanf(\"%d\", &x);\n\t\... |
CDSS_79038 | CDSS | // AOJ 0121: Seven Puzzle
// 2017.8.4 bal4u@uu
// 2017.11.1 retry
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define HASHSIZ 52009 // must > 20160
typedef struct { int s; char v; } HASH;
HASH hash[HASHSIZ+3], *hashend = hash + HASHSIZ;
int lookup(int s)
{
HASH *hp = hash + s % HASHSIZ;
while (hp-... | 2,244 | memory_bytes | {'s_id': 's344748667', 'p_id': 'p00121', 'u_id': 'u847467233', 'date': '1509504363', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2244', 'code_size': '1523'} | [
{
"content": "Your task is to predict the memory 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 0121: Seven Puzzle \n// 2017.8.4 bal4u@uu\n// 2017.11.1 retry\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n... |
CDSS_709391 | CDSS | #include <stdio.h>
int main(void) {
int i,j;
char A[11], B[11], C[11];
scanf("%s%s%s", &A, &B, &C);
for (i = 0; A[i] != '\0'; i++);
for (j = 0; B[j] != '\0'; j++);
if (A[i - 1] == B[0] && B[j - 1] == C[0]) {
printf("YES");
}
else {
printf("NO");
}
return 0;
} | 128 | memory_bytes | {'s_id': 's313677004', 'p_id': 'p03729', 'u_id': 'u960777154', 'date': '1493514907', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '274'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\n\tint i,j;\n\tchar A[11], B[11], C[11];\n\tscanf(\"%s%s%s\", &A, &B, &C);\n\tfor (i = 0; A[i] ... |
CDSS_612522 | CDSS | #include<stdio.h>
#include<math.h>
int main()
{
int n;
scanf("%d", &n);
int t, a;
scanf("%d %d", &t, &a);
int h[1003];
int i;
for (i = 0; i < n; i++)
scanf("%d", &h[i]);
int ans = 0;
double min = 2000000000;
double k;
for (i = 0; i < n; i++)
{
k = t - 0.00... | 128 | memory_bytes | {'s_id': 's234659286', 'p_id': 'p03220', 'u_id': 'u600300412', 'date': '1541384155', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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<math.h>\nint main()\n{\n int n;\n scanf(\"%d\", &n);\n int t, a;\n scanf(\"%d %d\", &t, &a);\n... |
CDSS_257183 | CDSS | #include <stdio.h>
int main(void)
{
int num1 = 0;
int num2 = 0;
scanf("%d %d", &num1, &num2);
printf("%d %d\n", num1 * num2, 2 * num1 + 2 * num2);
return (0);
} | 596 | memory_bytes | {'s_id': 's897895494', 'p_id': 'p02389', 'u_id': 'u472634864', 'date': '1360768258', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '170'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n\tint num1 = 0;\n\tint num2 = 0;\n\t\n\tscanf(\"%d %d\", &num1, &num2);\n\tprintf(\"%d %d\\n\... |
CDSS_68330 | CDSS | #include<stdio.h>
#include<string.h>
#include<stdlib.h>
int main(void)
{
char a[50][101];
int n = 0,i,j,str_length,flag=0,count=0;
while (scanf("%s",a[n]) != EOF) {
n++;
}
for(i=0; i<n; i++){
str_length = strlen(a[i]);
if(str_length == 1){
count++;
}else{
for(j=0; j<(str_length/2); j++)
... | 548 | memory_bytes | {'s_id': 's610293877', 'p_id': 'p00063', 'u_id': 'u481307862', 'date': '1483861064', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '548', 'code_size': '491'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 main(void)\n{\n\tchar a[50][101];\n\tint n = 0,i,j,str_length,flag=0,... |
CDSS_129484 | CDSS |
#include <stdio.h>
int F[45]; //0<=n<=44
int fib(int n){
if(F[n]!=0){
return F[n];
}
else
{
if(n<=1)F[n]=1; //
else{
F[n]=fib(n-1)+fib(n-2);
}
return F[n];
}
}
int main(void){
int n;
scanf("%d",&n);
printf("%d\n",fib(n));
return 0;
} | 596 | memory_bytes | {'s_id': 's363539151', 'p_id': 'p02233', 'u_id': 'u947828612', 'date': '1404961204', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '291'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n\n#include <stdio.h>\nint F[45]; //0<=n<=44\n\nint fib(int n){\n if(F[n]!=0){\n return F[n];\n }\n else\n {\n if(n<=1)F[... |
CDSS_610998 | CDSS | #include<stdio.h>
int main(){
int x,y;
scanf("%d%d",&x,&y);
printf("%d\n",x+y/2);
return 0;
}
| 128 | memory_bytes | {'s_id': 's287385868', 'p_id': 'p03219', 'u_id': 'u917851778', 'date': '1590499167', '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>\nint main(){\n int x,y;\n scanf(\"%d%d\",&x,&y);\n printf(\"%d\\n\",x+y/2);\n return 0;\n}\n\nPredict its memory... |
CDSS_126209 | CDSS | #include <stdio.h>
#include <string.h>
int main(void){
int num,i,n,sign,o;
char map[256][11],line[11],ans[2][7]={"Opened","Closed"};
scanf("%d",&num);
for(i=0;i<num;i++)
scanf("%s",map[i]);
scanf("%d",&n);
for(sign=1,i=0;i<n;i++){
scanf("%s",line);
for(o=0;o<num;o++){
... | 608 | memory_bytes | {'s_id': 's599921612', 'p_id': 'p01554', 'u_id': 'u048361305', 'date': '1486711761', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '608', 'code_size': '584'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\nint main(void){\n int num,i,n,sign,o;\n char map[256][11],line[11],ans[2][7]={\"Opene... |
CDSS_344105 | CDSS | #include<stdio.h>
int main(void){
int i,n;
int a[100],b[100];
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d",&a[i]);
b[n-1-i]=a[i];
}
for(i=n-1;i>=0;i--){
printf("%d",b[n-1-i]);
if(i!=0){
printf(" ");
}else{
printf("\n");
}
... | 2,148 | memory_bytes | {'s_id': 's000239334', 'p_id': 'p02407', 'u_id': 'u857791651', 'date': '1555058824', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2148', 'code_size': '340'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n int i,n;\n int a[100],b[100];\n scanf(\"%d\",&n);\n for(i=0;i<n;i++){\n scanf(... |
CDSS_689331 | CDSS | #include<stdio.h>
#include<stdlib.h>
int compare_int(const void *a, const void *b)
{
return *(int*)b - *(int*)a;
}
int main() {
int N;
int a = -1, b = -1;
long long ans = 0;
scanf("%d", &N);
int *A = (int *)malloc(sizeof(int)*N);
for (int i = 0; i < N; i++)
{
scanf("%d", &A[i]);
}
qsort(A, N, sizeof(int),... | 892 | memory_bytes | {'s_id': 's742697789', 'p_id': 'p03627', 'u_id': 'u389185410', 'date': '1551642733', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '25', 'memory': '892', 'code_size': '748'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n\nint compare_int(const void *a, const void *b)\n{\n\treturn *(int*)b - *(int*)a;\n}\n\nint mai... |
CDSS_168468 | CDSS | #include<stdio.h>
#define swap(a,b){a+=b;b=a-b;a-=b;}
int main(){
int n,i,j,A[100],count=0;
scanf("%d",&n);
for (i = 0; i < n; i++)
scanf("%d",&A[i]);
for (i = 0; i <= n - 1; i++){
for (j = n - 1; j >= i + 1; j--){
if (A[j] < A[j - 1]){
swap(A[j], A[j - 1]);
count++;
}
}
}
for (i = 0; i < n... | 604 | memory_bytes | {'s_id': 's848981665', 'p_id': 'p02259', 'u_id': 'u725029766', 'date': '1397726303', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '604', 'code_size': '423'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 swap(a,b){a+=b;b=a-b;a-=b;}\n\nint main(){\n\tint n,i,j,A[100],count=0;\n\tscanf(\"%d\",&n);\n\tfor (i = 0;... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.