identifier string | space string | input string | target float64 | metric_type string | metadata string | messages list |
|---|---|---|---|---|---|---|
CDSS_737045 | CDSS | #include<stdio.h>
int main(){
int unused __attribute__((unused));
int a, b, h;
unused = scanf("%d", &a);
unused = scanf("%d", &b);
unused = scanf("%d", &h);
printf("%d", (a+b)*h/2);
return 0;
} | 128 | memory_bytes | {'s_id': 's430646139', 'p_id': 'p03997', 'u_id': 'u997413262', 'date': '1585575471', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '209'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int unused __attribute__((unused));\n int a, b, h;\n\n unused = scanf(\"%d\", &a);\n unused = s... |
CDSS_164984 | CDSS | #include<stdio.h>
int main(){
int i,j=0,x,count=0,g,n[100];
scanf("%d",&g);
for(i=0;i<g;i++)scanf("%d",&n[i]);
for(j=0;j<g-1;j++){
for(i=g-1;i>j;i--){
if(n[i]<n[i-1]){
x = n[i-1];
n[i-1] = n[i];
n[i] = x;
count++;
}}
}
for(i=0;i<g;i++){
printf("%d",n[i]);
if(i<g-1)printf(... | 604 | memory_bytes | {'s_id': 's817976416', 'p_id': 'p02259', 'u_id': 'u410129892', 'date': '1429230761', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '604', 'code_size': '367'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int i,j=0,x,count=0,g,n[100];\n scanf(\"%d\",&g);\n for(i=0;i<g;i++)scanf(\"%d\",&n[i]);\n for(... |
CDSS_174899 | CDSS | #include<stdio.h>
#include<stdlib.h>
void bubble(int *a,char *b,int n){
int x,flag=1;
char y;
while(flag!=0){
flag=0;
for(int i=n-1;i>0;i--){
if(a[i]<a[i-1]){
x=a[i];
y=b[i];
a[i]=a[i-1];
b[i]=b[i-1];
a[i-1]=x;
b[i-1]=y;
flag=1;
}
}
}
//出力
for(int i=0;i<n;i++){
printf("... | 2,036 | memory_bytes | {'s_id': 's816448893', 'p_id': 'p02261', 'u_id': 'u102033351', 'date': '1571310817', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2036', 'code_size': '1331'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n\nvoid bubble(int *a,char *b,int n){\n\tint x,flag=1;\n\tchar y;\n\twhile(flag!=0){\n\t\tflag... |
CDSS_531912 | CDSS | #include<stdio.h>
int main(){
int i,c=0;
char s[3],t[3];
scanf("%s%s",s,t);
for(i=0;i<3;i++){
if(s[i]==t[i])c++;
}
printf("%d",c);
return 0;
} | 128 | memory_bytes | {'s_id': 's855878484', 'p_id': 'p02921', 'u_id': 'u321065001', 'date': '1577561449', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '163'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int i,c=0;\n char s[3],t[3];\n scanf(\"%s%s\",s,t);\n for(i=0;i<3;i++){\n if(s[i]==t[i])c++;... |
CDSS_494792 | CDSS | #include<stdio.h>
#include<stdlib.h>
int main(void){
int H,N,A;
int ans;
scanf("%d",&H);
scanf("%d",&N);
ans=0;
for(int i=0;i<N;i++){
scanf("%d",&A);
ans+=A;
}
if(ans >= H){
printf("Yes");
}else{
printf("No");
}
return 0;
} | 128 | memory_bytes | {'s_id': 's031902062', 'p_id': 'p02784', 'u_id': 'u350498965', 'date': '1580069299', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '128', 'code_size': '304'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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 H,N,A;\n int ans;\n\n scanf(\"%d\",&H);\n scanf(\"%d\",&N... |
CDSS_742493 | CDSS | #include<stdio.h>
int main(){
char s[100],k = 'B';
scanf("%s",&s);
for(int i = 1;i < strlen(s);i++){
if(s[i] == k){
int j = i - 1;
while(s[j] == k && j > 0){
j--;
}
s[j] = k;
}
}
for(int i = 0;i < strlen(s);i++){
if(s[i] != k){
printf("%c",s[i]);
}
}
r... | 128 | memory_bytes | {'s_id': 's920213032', 'p_id': 'p04030', 'u_id': 'u008829811', 'date': '1551354997', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', '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 should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n char s[100],k = 'B';\n scanf(\"%s\",&s);\n for(int i = 1;i < strlen(s);i++){\n if(s[i] == k){... |
CDSS_403262 | CDSS | #include <stdio.h>
int main() {
int count, leg;
scanf("%d%d", &count, &leg);
int i = 0;
int sum = 0;
int flag = 0;
for (i = 0; i <= count; i++) {
sum = 2 * i + 4 * (count - i);
if (sum == leg) {
flag = 1;
break;
}
}
if (flag == 1) {
puts("Yes");
} else {
puts("No");
... | 1,660 | memory_bytes | {'s_id': 's578116365', 'p_id': 'p02640', 'u_id': 'u660007557', 'date': '1592184166', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '1660', 'code_size': '335'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main() {\n int count, leg;\n scanf(\"%d%d\", &count, &leg);\n int i = 0;\n int sum = 0;\n int flag = ... |
CDSS_582202 | CDSS | #include <stdio.h>
#include <stdlib.h>
int *check(char *str, int len, int *cnt) {
int i, j = 0;
int *list = (int*)malloc(len * sizeof(int));
list[j] = 0; ++j;
for(i = 1; i < len; ++i) {
if(str[i-1] != str[i]) { list[j] = i; ++j; }
}
list[j] = i; ++j;
*cnt = j;
return list;
}
vo... | 640 | memory_bytes | {'s_id': 's977622157', 'p_id': 'p03074', 'u_id': 'u816645498', 'date': '1555192872', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '640', 'code_size': '1178'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\nint *check(char *str, int len, int *cnt) {\n int i, j = 0;\n int *list = (int*)mall... |
CDSS_303963 | CDSS | #include<stdio.h>
int main()
{
int a,b,c;
int i;
int sum;
sum = 0;
scanf("%d %d %d",&a,&b,&c);
for(i=a;i<=b;i++){
if(c%i==0){
sum++;
}
}
printf("%d\n",sum);
return 0;
}
| 2,104 | memory_bytes | {'s_id': 's417866600', 'p_id': 'p02398', 'u_id': 'u522826937', 'date': '1531300255', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '237'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n int main()\n {\n int a,b,c;\n int i;\n int sum;\n sum = 0;\n scanf(\"%d %d %d\",&a,&b,&c);\n\n ... |
CDSS_191142 | CDSS | #include<stdio.h>
#include<stdlib.h>
int linearSearch(int *,int);
int n;
int main(){
int q,s[10000],t[500],i,j,count;
count = 0;
scanf("%d",&n);
if(n < 1 || 10000 < n)exit(0);
for(i = 0; i < n; i++){
scanf("%d",&s[i]);
if(s[i] < 0 || 1000000000 < s[i])exit(0);
}
scanf("%d",&q);
if(q < ... | 2,104 | memory_bytes | {'s_id': 's178873958', 'p_id': 'p02267', 'u_id': 'u418578333', 'date': '1544883717', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '799'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n\nint linearSearch(int *,int);\n\nint n;\n\nint main(){\n int q,s[10000],t[500],i,j,count;\n... |
CDSS_231252 | CDSS | #include <stdio.h>
int main() {
int n, x0, y0, x1, y1, x2, y2, x3, y3;
scanf("%d", &n);
while(n--) {
scanf("%d%d%d%d%d%d%d%d", &x0, &y0, &x1, &y1, &x2, &y2, &x3, &y3);
if ((x1-x0) * (y3-y2) - (y1-y0) * (x3-x2) == 0) puts("2");
else if ((x1-x0) * (x3-x2) + (y1-y0) * (y3-y2) == 0) put... | 2,120 | memory_bytes | {'s_id': 's913550570', 'p_id': 'p02293', 'u_id': 'u475394465', 'date': '1583318854', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2120', 'code_size': '361'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main() {\n int n, x0, y0, x1, y1, x2, y2, x3, y3;\n scanf(\"%d\", &n);\n while(n--) {\n sc... |
CDSS_434903 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<math.h>
#include<time.h>
#define FOR(i,n) for(int i=0;i<n;i++)
#define PRN(n) printf("%d\n",n)
#define PRF(n) printf("%lf\n",n)
#define PRL(n) printf("%lld\n",n)
#define PRS(s) printf("%s\n",s)
#define PRC(c) printf("%c",c)
#define INI(n) scanf("%d",&n)
#... | 5,728 | memory_bytes | {'s_id': 's031570162', 'p_id': 'p02701', 'u_id': 'u008829811', 'date': '1600354354', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '79', 'memory': '5728', 'code_size': '1878'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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#include<time.h>\n#define FOR(i,n) for(int i=0;i<n;i++)... |
CDSS_387585 | CDSS | #include <stdio.h>
#include <stdlib.h>
int main (void) {
int N, w_c = -1, r_c = -1, count = 0, j = 0;
scanf("%d\n", &N);
char t;
int w[N], r[N];
for (int i = 0; i < N; i++) {
scanf("%c", &t);
if (t == 'R') {
r_c++;
r[r_c] = i;
} else if (t == 'W') {
... | 2,524 | memory_bytes | {'s_id': 's910015343', 'p_id': 'p02597', 'u_id': 'u630177233', 'date': '1596421461', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '22', 'memory': '2524', 'code_size': '525'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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, w_c = -1, r_c = -1, count = 0, j = 0;\n scanf(\"%d\\n\",... |
CDSS_501868 | CDSS | #include <stdio.h>
int main(void)
{
int k,x;
scanf("%d%d",&k,&x);
if(500*k>=x)
printf("Yes\n");
else
printf("No\n");
return 0;
} | 128 | memory_bytes | {'s_id': 's841172092', 'p_id': 'p02811', 'u_id': 'u596813883', 'date': '1586272566', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', '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 should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void)\n{\n int k,x;\n\n scanf(\"%d%d\",&k,&x);\n if(500*k>=x)\n printf(\"Yes\\n\");\n ... |
CDSS_740426 | CDSS | #include<stdio.h>
#include<stdlib.h>
int fun(char *);
int fun(char *s)
{
int px1=0,px2=0,py1=0,py2=0;
while(*s)
{
if(*s=='E')
{
px1++;
}
if(*s=='W')
{
px2++;
}
if(*s=='N')
{
py1++;
}
if(*s=='S... | 128 | memory_bytes | {'s_id': 's356693817', 'p_id': 'p04019', 'u_id': 'u247366051', 'date': '1581721430', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '128', 'code_size': '607'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\nint fun(char *);\nint fun(char *s)\n{\n int px1=0,px2=0,py1=0,py2=0;\n while(*s)\n {... |
CDSS_568098 | CDSS | #include <stdio.h>
int main (void)
{
int a,b;
scanf("%d",&a);
scanf("%d",&b);
if(13<=a)
printf("%d",b);
else if(6<=a && a<=12)
printf("%d",b/2);
else
putchar('0');
return 0;
}
| 128 | memory_bytes | {'s_id': 's269239101', 'p_id': 'p03035', 'u_id': 'u208723543', 'date': '1559257017', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '197'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main (void)\n{\n int a,b;\n scanf(\"%d\",&a);\n scanf(\"%d\",&b);\n if(13<=a)\n\tprintf(\"%d\",b);\n ... |
CDSS_416156 | CDSS | #include<stdio.h>
int main(void){
int K;
char S[100];
int i = 0;
scanf("%d", &K);
scanf("%s", S);
while(S[i]){
if(i == K) break;
printf("%c", S[i]);
i++;
}
if(S[i] != '\0'){
puts("...");
}
putchar('\n');
return 0;
}
| 1,660 | memory_bytes | {'s_id': 's056013729', 'p_id': 'p02676', 'u_id': 'u101878479', 'date': '1589766371', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '1660', 'code_size': '263'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void){\n\n int K;\n char S[100];\n int i = 0;\n \n scanf(\"%d\", &K);\n scanf(\"%s\", S);\n\n w... |
CDSS_310819 | CDSS | #include<stdio.h>
int main (void){
int a,b;
double f;
scanf("%d",&a);
scanf("%d",&b);
f=1.0*a/b;
printf("%d %d %f\n",a/b,a%b,f);
return 0;
} | 636 | memory_bytes | {'s_id': 's036656616', 'p_id': 'p02399', 'u_id': 'u523348427', 'date': '1501681801', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '636', 'code_size': '140'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main (void){\nint a,b;\ndouble f;\nscanf(\"%d\",&a);\nscanf(\"%d\",&b);\nf=1.0*a/b;\nprintf(\"%d %d %f\\n\",a... |
CDSS_314176 | CDSS | #include<stdio.h>
int main()
{
double r, l, s;
double pi = 3.141592653589;
scanf("%lf", &r);
s = r*r*pi;
l = 2 * r*pi;
printf("%f %f\n", s, l);
return 0;
} | 648 | memory_bytes | {'s_id': 's026056398', 'p_id': 'p02400', 'u_id': 'u279808390', 'date': '1467182942', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '648', 'code_size': '164'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n\tdouble r, l, s;\n\tdouble pi = 3.141592653589;\n\tscanf(\"%lf\", &r);\n\ts = r*r*pi;\n\tl = 2 * ... |
CDSS_611521 | CDSS | #include <stdio.h>
int main (){
int a,b,c;
scanf ("%d%d",&a,&b);
c=a+(b/2);
printf ("%d",c);
return 0;
} | 128 | memory_bytes | {'s_id': 's373034769', 'p_id': 'p03219', 'u_id': 'u444555640', 'date': '1541383477', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '104'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main (){\nint a,b,c;\nscanf (\"%d%d\",&a,&b);\nc=a+(b/2);\nprintf (\"%d\",c);\nreturn 0;\n}\nPredict its mem... |
CDSS_723958 | CDSS | #include<stdio.h>
int main(){
char s[20];
int i;
scanf("%s",s);
for(i=0;s[i]!='\0';i++){
if(s[i]==','){
s[i] = ' ';
}
}
printf("%s",s);
return 0;
} | 128 | memory_bytes | {'s_id': 's804586551', 'p_id': 'p03834', 'u_id': 'u710135612', 'date': '1549395379', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '206'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n char s[20];\n int i;\n\n scanf(\"%s\",s);\n\n for(i=0;s[i]!='\\0';i++){\n if(s... |
CDSS_309353 | CDSS | #include <stdio.h>
int main()
{
int a, b;
scanf("%d %d", &a, &b);
printf("%d %d %.8lf\n", a / b, a % b, (double)a / b);
return 0;
} | 640 | memory_bytes | {'s_id': 's717740873', 'p_id': 'p02399', 'u_id': 'u770241242', 'date': '1465532462', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '640', 'code_size': '139'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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;\n\n\tscanf(\"%d %d\", &a, &b);\n\n\tprintf(\"%d %d %.8lf\\n\", a / b, a % b, (doubl... |
CDSS_700811 | CDSS | #include<stdio.h>
int main(void)
{
int r,g,b,total;
scanf("%d %d %d",&r,&g,&b);
total=r*100+g*10+b;
if(total%4==0){
printf("YES\n");
}else{
printf("NO\n");
}
return 0;
} | 128 | memory_bytes | {'s_id': 's464819414', 'p_id': 'p03693', 'u_id': 'u969215838', 'date': '1560573727', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', '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 should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\n\tint r,g,b,total;\n \tscanf(\"%d %d %d\",&r,&g,&b);\n \ttotal=r*100+g*10+b;\n \tif(total%4... |
CDSS_423849 | CDSS | #include <stdio.h>
#include <string.h>
int main()
{
int N,K;
scanf("%d %d",&N,&K);
int a[100]={0};
for(int i=0;i<K;i++)
{
int d;
scanf("%d",&d);
for(int j=0;j<d;j++)
{
int tmp;
scanf("%d",&tmp);
a[tmp-1]++;
}
}
int ans=0;
for(int i=0;i<N;i++)
{
... | 1,732 | memory_bytes | {'s_id': 's004141707', 'p_id': 'p02688', 'u_id': 'u068872760', 'date': '1588554860', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '7', 'memory': '1732', 'code_size': '371'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\nint main()\n{\n int N,K;\n \n scanf(\"%d %d\",&N,&K);\n \n \n int a[100]={0};\n \n... |
CDSS_80428 | CDSS | #include<stdio.h>
int main(){
int i, n, x;
double ans;
scanf("%d", &n);
for(i=0, ans=0.0; i<n; ++i){
scanf("%d", &x);
ans += x;
}
ans /= (double)n;
printf("%.0f\n", ans);
return 0;
} | 628 | memory_bytes | {'s_id': 's272882262', 'p_id': 'p00134', 'u_id': 'u278606251', 'date': '1354683405', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '628', 'code_size': '208'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n int i, n, x;\n double ans;\n\n scanf(\"%d\", &n);\n for(i=0, ans=0.0; i<n; ++i){\n scanf(\... |
CDSS_301734 | CDSS | #include <stdio.h>
int main(void)
{
int x, y, tmp;
while (1) {
scanf("%d %d", &x, &y);
if (x == 0 && y == 0) break;
if (x > y) {
tmp = y;
y = x;
x = tmp;
}
printf("%d %d\n", x, y);
}
return 0;
} | 600 | memory_bytes | {'s_id': 's312761996', 'p_id': 'p02397', 'u_id': 'u928564834', 'date': '1495287069', '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 should 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, y, tmp;\n\n\twhile (1) {\n\t\tscanf(\"%d %d\", &x, &y);\n\t\tif (x == 0 && y == 0)... |
CDSS_69177 | CDSS | #include <stdio.h>
#define WIDTH 12
#define HEIGHT 12
void delIsland( int, int );
char field[ WIDTH ][ HEIGHT ];
const int dx[ 4 ] = { -1, 0, 1, 0 }, dy[ 4 ] = { 0, -1, 0, 1 };
int main( void ) {
int x, y, island;
while ( ungetc( getchar(), stdin ) != EOF ) {
for ( y = 0; y < HEIGHT; y++ )
for ( x = 0; x < ... | 548 | memory_bytes | {'s_id': 's899038983', 'p_id': 'p00067', 'u_id': 'u340315059', 'date': '1373128696', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '548', 'code_size': '830'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\n#define WIDTH 12\n#define HEIGHT 12\n\nvoid delIsland( int, int );\n\nchar field[ WIDTH ][ HEIGHT ];\nconst in... |
CDSS_23295 | CDSS | #include <stdio.h>
int main(){
int hei[10],i,j,temp;
for(i=0;i<10;i++){
scanf("%d",&hei[i]);
}
for(i=0;i<10;i++){
for(j=i+1;j<10;j++){
if(hei[i]<hei[j]){
temp=hei[i];
hei[i]=hei[j];
hei[j]=temp;
}
}
}
for(i=0;i<3;i++){
printf("%d\n",hei[i]);
}
return(0);
} | 600 | memory_bytes | {'s_id': 's681754726', 'p_id': 'p00001', 'u_id': 'u020581035', 'date': '1467119894', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '291'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n\tint hei[10],i,j,temp;\n\n\tfor(i=0;i<10;i++){\n\t\tscanf(\"%d\",&hei[i]);\n\t}\n\tfor(i=0;i<10;... |
CDSS_217093 | CDSS | #include<stdio.h>
#define MAX 100000
#define NIL -1
typedef struct{
int parent;
int left;
int right;
}Node;
Node T[MAX];
int n;
int getDep(int u){
int d=0;
while(T[u].parent!=NIL){
u=T[u].parent;
d++;
}
return d;
}
void print(int u){
int i,c;
printf("node %d: parent = %d, depth = %d, ... | 3,028 | memory_bytes | {'s_id': 's555502836', 'p_id': 'p02279', 'u_id': 'u847268197', 'date': '1546570403', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '30', 'memory': '3028', 'code_size': '1092'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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\n\ntypedef struct{\n int parent;\n int left;\n int right;\n}Node;\n\nNode... |
CDSS_662758 | CDSS | #include <stdio.h>
int main() {
int a, b;
scanf("%d%d", &a, &b);
printf("%s", a * b % 2 ? "Odd" : "Even");
}
| 128 | memory_bytes | {'s_id': 's555145259', 'p_id': 'p03455', 'u_id': 'u816631826', 'date': '1517770642', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '121'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main() {\n int a, b;\n scanf(\"%d%d\", &a, &b);\n printf(\"%s\", a * b % 2 ? \"Odd\" : \"Even\");\n... |
CDSS_297563 | CDSS | #include<stdio.h>
int main(){
int n,i;
for(i=1;i<=10000;i++){
scanf("%d", &n);
if ( n == 0)
break;
printf("Case %d: %d\n", i, n);
}
return 0;
} | 1,848 | memory_bytes | {'s_id': 's828925756', 'p_id': 'p02396', 'u_id': 'u605515851', 'date': '1510771269', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1848', 'code_size': '197'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int n,i;\n for(i=1;i<=10000;i++){\n scanf(\"%d\", &n);\n if ( n == 0) \n ... |
CDSS_78928 | CDSS | /*
AizuOnline A0119
Title Taro's obsession
*/
#include <stdio.h>
// Select Below
//#include <stdlib.h>
//#include <string.h>
//#include <float.h>
//#include <math.h>
//#include <limits.h>
//Global data section
#define SHOUGENNO 100
#define NINZUU 20
int n,m;
int x[SHOUGENNO],y[SHOUGENNO];
int flag[NINZUU+1];
//
void sh... | 608 | memory_bytes | {'s_id': 's056045803', 'p_id': 'p00119', 'u_id': 'u708993917', 'date': '1364251869', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '608', 'code_size': '887'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n/*\nAizuOnline A0119\nTitle Taro's obsession\n*/\n#include <stdio.h>\n// Select Below\n//#include <stdlib.h>\n//#include <string.h>\... |
CDSS_537421 | CDSS | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
int cmp(const void *a, const void *b) {
int x = *(float*)a;
int y = *(float*)b;
if(x > y) return 1;
else if(x < y) return -1;
else return 0;
}
int main(int argc, char const* argv[])
{
int n, i;
float a[50];
scanf("%d",&n);
for(i=0; i<n; i++) {
scan... | 128 | memory_bytes | {'s_id': 's213953037', 'p_id': 'p02935', 'u_id': 'u543173665', 'date': '1567822386', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '464'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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 cmp(const void *a, const void *b) {\n\tint x = *(float*)a;\n\tin... |
CDSS_234608 | CDSS | #include <stdio.h>
#include <math.h>
int main(){
double a,b,c;
double PI=acos(-1);
scanf("%lf %lf %lf",&a,&b,&c);
c/=180.0;
c*=PI;
printf("%lf\n%lf\n%lf\n",a*b*0.5*sin(c),a+b+sqrt(a*a+b*b-2.0*a*b*cos(c)),a*b*sin(c)/a);
return 0;
}
| 2,088 | memory_bytes | {'s_id': 's203613571', 'p_id': 'p02380', 'u_id': 'u417937981', 'date': '1545660319', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2088', 'code_size': '239'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\nint main(){\n\tdouble a,b,c;\n\tdouble PI=acos(-1);\n\tscanf(\"%lf %lf %lf\",&a,&b,&c);\n\tc/... |
CDSS_443177 | CDSS | #include <stdio.h>
int main(void) {
int n, m;
scanf("%d%d", &n, &m);
int a[m], total = 0;
for(int i = 0; i < m; i++) {
scanf("%d", &a[i]);
total += a[i];
}
if(n < total) printf("-1");
else printf("%d\n", n - total);
}
| 1,772 | memory_bytes | {'s_id': 's005436949', 'p_id': 'p02706', 'u_id': 'u231261695', 'date': '1587351309', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '1772', 'code_size': '273'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\n int n, m;\n scanf(\"%d%d\", &n, &m);\n \n int a[m], total = 0;\n for(int i =... |
CDSS_438052 | CDSS | #include<stdio.h>
#include<math.h>
int main(void)
{
int a;
scanf("%d", &a);
printf("%lf\n", a*2*M_PI);
return 0;
}
| 1,752 | memory_bytes | {'s_id': 's152590844', 'p_id': 'p02705', 'u_id': 'u329109049', 'date': '1587853421', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '1752', 'code_size': '126'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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{\n int a;\n\n scanf(\"%d\", &a);\n printf(\"%lf\\n\", a*2*M_PI);\n\n ret... |
CDSS_329451 | CDSS | #include<stdio.h>
int main(){
int H,W,i,j;
while(1){
scanf("%d %d\n",&H,&W);
if(H==0 && W==0) break;
for(i=0;i<H;i++){
for(j=0;j<W;j++){
printf("#");
}
printf("\n");
}
printf("\n");
}
return 0;
} | 576 | memory_bytes | {'s_id': 's127349597', 'p_id': 'p02403', 'u_id': 'u196669489', 'date': '1460707984', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '576', 'code_size': '220'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n\n\tint H,W,i,j;\t\n\n\twhile(1){\n\t\tscanf(\"%d %d\\n\",&H,&W);\n\t\tif(H==0 && W==0) break;\n\n... |
CDSS_358772 | CDSS | #include <stdio.h>
int main(void){
int r,c,a[101][101]={0},i,j;
scanf("%d%d",&r,&c);
for(i=0;i<r;i++){
for(j=0;j<c;j++){
scanf("%d",&a[i][j]);
a[i][c]+=a[i][j];
}
}
for(i=0;i<c;i++){
for(j=0;j<r;j++)a[r][i]+=a[j][i];
a[r][c]+=a[r][i];
}
... | 2,064 | memory_bytes | {'s_id': 's559612274', 'p_id': 'p02413', 'u_id': 'u351440844', 'date': '1564804273', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2064', 'code_size': '489'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n int main(void){\n int r,c,a[101][101]={0},i,j;\n scanf(\"%d%d\",&r,&c);\n for(i=0;i<r;i++){\n f... |
CDSS_429935 | CDSS | #include <stdio.h>
int main(void) {
int s, w;
scanf("%d%d", &s, &w);
if (w >= s) {
printf("unsafe");
}
else {
printf("safe");
}
return 0;
} | 1,676 | memory_bytes | {'s_id': 's944569028', 'p_id': 'p02699', 'u_id': 'u548033479', 'date': '1591554189', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '1676', 'code_size': '152'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void) {\n\tint s, w;\n\n\tscanf(\"%d%d\", &s, &w);\n\n\tif (w >= s) {\n\t\tprintf(\"unsafe\");\n\t}\n\t... |
CDSS_118292 | CDSS | #include <stdio.h>
int main (){
int x,y,s,sum1,sum2,i,j,max,a[1000],b[1000],count;
while(1){
scanf("%d%d%d",&x,&y,&s);
if(x==0 && y==0 && s==0)break;
count=0;
for(i=1;i<=s;i++){
for(j=1;j<=s;j++){
sum1 = (int)((double)i*(100+x)/100) + (int)((double)j*(100+x)/100);
if(s==s... | 608 | memory_bytes | {'s_id': 's107480123', 'p_id': 'p00773', 'u_id': 'u681694396', 'date': '1496668241', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '650', 'memory': '608', 'code_size': '608'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main (){\n int x,y,s,sum1,sum2,i,j,max,a[1000],b[1000],count;\n \n while(1){\n \n scanf(\"%d%d%d\",... |
CDSS_413076 | CDSS | #include <stdio.h>
int main(void){
int h1,m1,h2,m2,k,ans,s,e;
scanf("%d %d %d %d %d",&h1,&m1,&h2,&m2,&k);
s=h1*60+m1;
e=h2*60+m2;
ans=e-s-k;
printf("%d\n",ans);
return 0;
} | 1,720 | memory_bytes | {'s_id': 's298555329', 'p_id': 'p02663', 'u_id': 'u379261952', 'date': '1590888290', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1720', 'code_size': '179'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\n\tint h1,m1,h2,m2,k,ans,s,e;\n\tscanf(\"%d %d %d %d %d\",&h1,&m1,&h2,&m2,&k);\n\ts=h1*60+m1;\n\... |
CDSS_582602 | CDSS | #include <stdio.h>
#include <stdlib.h>
int main(int argc, const char *argv[])
{
int a[5], k;
for (int i = 0; i < 5; i++) {
scanf("%d", &a[i]);
}
scanf("%d", &k);
for (int i = 0; i < 5; i++) {
for (int j = i; j < 5; j++) {
if (abs(a[i] - a[j]) > k) {
printf(":(\n");
return 0;
... | 128 | memory_bytes | {'s_id': 's248737891', 'p_id': 'p03075', 'u_id': 'u600282213', 'date': '1561613453', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '367'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\nint main(int argc, const char *argv[])\n{\n int a[5], k;\n for (int i = 0; i < 5; i++) {\... |
CDSS_126999 | CDSS | #include <stdio.h>
int main(void) {
char a[3], b[3];
int n, i, point;
while (1) {
point = 0;
scanf("%d", &n);
if (n == 0) break;
while (n > 0) {
if (n != 1) {
scanf("%s", a);
scanf("%s", b);
if (a[0] != b[0])
point++;
}
else
scanf("%s", a);
n -= 2;
}
printf("%d\n"... | 604 | memory_bytes | {'s_id': 's013165424', 'p_id': 'p01694', 'u_id': 'u214404619', 'date': '1481710617', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '604', 'code_size': '347'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\n\tchar a[3], b[3];\n\tint n, i, point;\n\t\n\twhile (1) {\n\t\tpoint = 0;\n\t\tscanf(\"%d\",... |
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 should 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 nu... |
CDSS_336992 | CDSS | #include <stdio.h>
int main(void) {
int H, W;
while (1) {
scanf("%d %d", &H, &W);
if (H == 0 && W == 0) break;
for (int i = 0; i < H; i++) {
for (int j = 0; j < W; j++) {
if (i % 2 == 0) {
if(j % 2 == 0) printf("#");
... | 2,072 | memory_bytes | {'s_id': 's034900435', 'p_id': 'p02405', 'u_id': 'u922981423', 'date': '1584414592', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2072', 'code_size': '568'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\n int H, W;\n\n while (1) {\n scanf(\"%d %d\", &H, &W);\n\n if (H == 0 &&... |
CDSS_208912 | CDSS | #include <stdio.h>
void CountingSort(int *,int *,int);
int C[2000000],max=0;
int main(void){
int n,A[2000000],B[2000000],i;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d",&A[i]);
if(max<A[i])max=A[i];
}
CountingSort(A,B,n);
for(i=0;i<n;i++){
printf("%d",B[i]);
if(i!=n-1)printf(" ");
}
prin... | 25,176 | memory_bytes | {'s_id': 's194383209', 'p_id': 'p02275', 'u_id': 'u483179571', 'date': '1530547680', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '240', 'memory': '25176', 'code_size': '678'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nvoid CountingSort(int *,int *,int);\nint C[2000000],max=0;\nint main(void){\n int n,A[2000000],B[2000000],i;\n ... |
CDSS_90547 | CDSS | // AOJ 0254: Scone
// 2017.9.12 bal4u@uu
// 2017.11.12
#include <stdio.h>
#include <string.h>
int s[30003], f[100002];
char buf[330010], *p;
int getint()
{
int n = 0;
while (*p >= '0') n = (n<<3) + (n<<1) + (*p++ & 0xf);
return n;
}
int main()
{
int n, m, i, a, ans, max;
long long sum;
while (fgets(p=buf, 20... | 2,392 | memory_bytes | {'s_id': 's946439053', 'p_id': 'p00250', 'u_id': 'u847467233', 'date': '1510463449', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2392', 'code_size': '960'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n// AOJ 0254: Scone\n// 2017.9.12 bal4u@uu\n// 2017.11.12\n\n#include <stdio.h>\n#include <string.h>\n\nint s[30003], f[100002];\ncha... |
CDSS_699770 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<math.h>
int main(void) {
int n, b[100001][2] = { 0 }, next = 1,r;
scanf("%d", &n);
for (int i = 1; i <= n; i++) {
scanf("%d", &b[i][0]);
}
for (r = 0;; r++) {
if (next == 2)break;
b[next][1]++;
if (b[next][1] > 1) {
printf("-1\n");
ret... | 896 | memory_bytes | {'s_id': 's491593833', 'p_id': 'p03680', 'u_id': 'u623759422', 'date': '1582174900', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '12', 'memory': '896', 'code_size': '374'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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\nint main(void) {\n\tint n, b[100001][2] = { 0 }, next... |
CDSS_392108 | CDSS | #include <stdio.h>
int main(void){
int N;
scanf("%d",&N);
N = -1 * N;
while(N<0){
N+=1000;
}
printf("%d\n",N);
return 0;
} | 1,728 | memory_bytes | {'s_id': 's923199920', 'p_id': 'p02612', 'u_id': 'u645618252', 'date': '1593997407', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1728', 'code_size': '159'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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 scanf(\"%d\",&N);\n N = -1 * N;\n while(N<0){\n N+=1000;\n }\... |
CDSS_727160 | CDSS | #include <stdio.h>
#include <stdlib.h>
#define N 100000
int compare(const void *a, const void *b)
{
return *(int *)a - *(int *)b;
}
int power(int a, int b)
{
if (b == 0)
return 1;
else
return a * power(a, b - 1) % 1000000007;
}
int main()
{
int n, i;
int flag = 1;
int a[N];
... | 1,396 | memory_bytes | {'s_id': 's414806931', 'p_id': 'p03846', 'u_id': 'u706786134', 'date': '1543720121', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '23', 'memory': '1396', 'code_size': '1256'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#define N 100000\n\nint compare(const void *a, const void *b)\n{\n return *(int *)a - *(... |
CDSS_607871 | CDSS | #include<stdio.h>
int main(){
int N;
int p[11];
int i,j;
int max = 0;
int sum = 0;
scanf("%d", &N);
for(i=0; i<N; i++){
scanf("%d", &p[i]);
if(max<p[i]){
max = p[i];
}
sum = sum + p[i];
}
printf("%d", sum-max/2);
return 0;
} | 128 | memory_bytes | {'s_id': 's883305303', 'p_id': 'p03207', 'u_id': 'u079774926', 'date': '1579789467', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '316'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n \nint main(){\n int N;\n int p[11];\n int i,j;\n int max = 0;\n int sum = 0;\n \n scanf(\"%d\"... |
CDSS_322275 | CDSS | #include <stdio.h>
int main ()
{
int a,n,i,MAX=-2147483648,min=2147483647;
long long t=0;
scanf("%d",&n);
for(i=1;i<=n;i++){
scanf("%d",&a);
t+=a;
if( MAX<a)
MAX=a;
if( min>a)
min=a;
}
printf("%d ",min);
printf("%d ",MAX);
printf("%lld\n",t);
return 0;
} | 600 | memory_bytes | {'s_id': 's255343322', 'p_id': 'p02402', 'u_id': 'u493956406', 'date': '1445060012', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '307'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main ()\n{\n int a,n,i,MAX=-2147483648,min=2147483647;\n long long t=0;\n scanf(\"%d\",&n);\n \n for(i=1... |
CDSS_443522 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main()
{
int N=0,M=0,i=0,sum=0;
int A[10000];
scanf("%d %d",&N,&M);
while(i<M){
scanf("%d",&A[i]);
sum+=A[i];
i++;
}
if(N>=sum){
printf("%d", N-sum);
}
else{
printf("%d",-1);
}
return 0;
}
| 1,768 | memory_bytes | {'s_id': 's003655949', 'p_id': 'p02706', 'u_id': 'u344760398', 'date': '1587346561', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1768', 'code_size': '277'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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()\n{\n\tint N=0,M=0,i=0,sum=0;\n\tint A[10000];\n\t\n\tscanf(... |
CDSS_399284 | CDSS | #include <stdio.h>
int main()
{
char a;
scanf("%c",&a);
if('A'<=a&&a<='Z'){
printf("A\n");
}
else{
printf("a\n");
}
return 0;
} | 1,580 | memory_bytes | {'s_id': 's691274905', 'p_id': 'p02627', 'u_id': 'u530411589', 'date': '1592787877', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1580', 'code_size': '152'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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 \n if('A'<=a&&a<='Z'){\n printf(\"A\\n\");\n }\n else{\n ... |
CDSS_155415 | CDSS |
#include <stdio.h>
#include <math.h>
int main(){
int n,a[100000],i,j,f,count=0;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d",&a[i]);
if(a[i]<2 && 1000000<a[i]) break;
}
for(i=0;i<n;i++){
f=0;
if(a[i]==2) f=0;
else if(a[i]%2==0)f=1;
else{
for(j=3;j<=sqrt(a[i]);j=j+2){... | 636 | memory_bytes | {'s_id': 's265665358', 'p_id': 'p02257', 'u_id': 'u146842448', 'date': '1460525729', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '30', 'memory': '636', 'code_size': '450'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n\n#include <stdio.h>\n#include <math.h>\nint main(){\n \n int n,a[100000],i,j,f,count=0;\n scanf(\"%d\",&n);\n for(i=0;i<n;i++... |
CDSS_29404 | CDSS | #include <stdio.h>
#include <stdlib.h>
int cmpr_int(const void *a, const void *b)
{
const int *x = a;
const int *y = b;
return *x - *y;
}
int main()
{
int n, i, a[3];
scanf("%d", &n);
for (i = 0; i < n; i++) {
scanf("%d%d%d", &a[0], &a[1], &a[2]);
qsort(a, 3, sizeof(a[0]), cmpr_int);
if (a[0] ... | 584 | memory_bytes | {'s_id': 's164644616', 'p_id': 'p00003', 'u_id': 'u320121447', 'date': '1434508397', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '584', 'code_size': '440'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\nint cmpr_int(const void *a, const void *b)\n{\n const int *x = a;\n const int *y = b;\n... |
CDSS_229094 | CDSS | #include <stdio.h>
#define N 500000
int A[N];
int n;
int parent(int);
int left(int);
int right(int);
void maxHeapify(int);
void buildMaxHeap();
int main(){
int i;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d",&A[i]);
}
buildMaxHeap();
for(i=0;i<n;i++){
printf(" %d",A[i]);
}printf("\n");
... | 2,552 | memory_bytes | {'s_id': 's056260490', 'p_id': 'p02288', 'u_id': 'u804743964', 'date': '1498711810', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '110', 'memory': '2552', 'code_size': '865'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\n#define N 500000\n\nint A[N];\nint n;\n\nint parent(int);\nint left(int);\nint right(int);\nvoid maxHeapify(in... |
CDSS_299248 | CDSS | #include<stdio.h>
int main(void){
int x[10000];
int t,m=0;
for(t=0;t<10000;t++){
scanf("%d",&x[t]);
if(x[t]==0){
break;
}
m++;
}
for(t=0;t<m;t++){
printf("Case %d: %d\n",t+1,x[t]);
}
return 0;
}
| 1,992 | memory_bytes | {'s_id': 's711420369', 'p_id': 'p02396', 'u_id': 'u894520005', 'date': '1564102277', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1992', 'code_size': '215'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n\tint x[10000];\n\tint t,m=0;\n\tfor(t=0;t<10000;t++){\n\t\tscanf(\"%d\",&x[t]);\n\t\tif(x[t]==0... |
CDSS_522811 | CDSS | #include<stdio.h>
#include<stdlib.h>
int compare_int(const void *a, const void *b){
return *(int*)a - *(int*)b;
}
int main(void){
int N,i,j,k,L[2001],s,ans=0;
scanf("%d",&N);
for(i = 0;i < N;i++){
scanf("%d",&L[i]);
}
qsort(L,N,sizeof(int),compare_int);
for(i = 0;i < N;i++){
... | 128 | memory_bytes | {'s_id': 's761607677', 'p_id': 'p02888', 'u_id': 'u045767587', 'date': '1571535706', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '900', 'memory': '128', 'code_size': '595'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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 return *(int*)a - *(int*)b;\n}\n\nint m... |
CDSS_620672 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
int main(void)
{
int n,i,j,ans=1,len1;
char w[100][11];
scanf("%d",&n);
for ( i = 0; i < n; i++)
{
scanf("%s",w[i]);
}
for ( i = 1; i < n; i++)
{
len1=strlen(w[i-1]);
if(w[i-1][len1-1]!=w[i][0]) ans=0;
... | 128 | memory_bytes | {'s_id': 's821229167', 'p_id': 'p03261', 'u_id': 'u007202328', 'date': '1575834441', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '490'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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{\n int n,i,j,ans=1,len1;\n char w[100][11];\n\n ... |
CDSS_236927 | CDSS | #include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <math.h>
int main(){
int num;
int x[100];
int y[100];
int i;
double re[4]={0.0, 0.0, 0.0, 0.0};
scanf("%d", &num);
for(i=0; i< num; i++){
scanf("%d", &x[i]);
}
for(i=0; i<num; i++){
scanf("%d", &y[i]);
}
for(i=0; i<... | 2,100 | memory_bytes | {'s_id': 's090036436', 'p_id': 'p02382', 'u_id': 'u590441150', 'date': '1524358648', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2100', 'code_size': '786'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdlib.h>\n#include <stdio.h>\n#include <string.h>\n#include <ctype.h>\n#include <math.h>\n\nint main(){\n\tint num;\n\tin... |
CDSS_566624 | CDSS | #include <stdio.h>
int main(){
int a,b,c;
scanf("%d%d",&a,&b);
c = a*3 + b;
printf("%d",c/2);
return 0;
} | 128 | memory_bytes | {'s_id': 's076503297', 'p_id': 'p03029', 'u_id': 'u820341516', 'date': '1561054557', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '125'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(){\n int a,b,c;\n scanf(\"%d%d\",&a,&b);\n c = a*3 + b;\n printf(\"%d\",c/2);\n return 0;\n \n \... |
CDSS_210148 | CDSS | #include <stdio.h>
#include <stdlib.h>
void CountingSort(int *A, int *B,int *C, int n, int k){
for(int i = 0; i < k; i++){
C[i] = 0;
}
for(int j = 0; j < n; j++){
C[A[j]] = C[A[j]]+1;
/* C[i] now contains the number of elements equal to i */
}
for(int i = 1; i < k; i++){
C[i] =... | 33,804 | memory_bytes | {'s_id': 's499893252', 'p_id': 'p02275', 'u_id': 'u221643921', 'date': '1562241147', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '250', 'memory': '33804', 'code_size': '1171'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\nvoid CountingSort(int *A, int *B,int *C, int n, int k){\n for(int i = 0; i < k; i++){\n... |
CDSS_609295 | CDSS | #include<stdio.h>
int main(void)
{
int a;
scanf("%d", &a);
if (a==3) {
printf("YES");
}else if (a==5) {
printf("YES");
}else if (a==7) {
printf("YES");
}else{
printf("NO");
}
return 0;
}
| 128 | memory_bytes | {'s_id': 's480298436', 'p_id': 'p03210', 'u_id': 'u379136995', 'date': '1548267064', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '223'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\n int a;\n\n scanf(\"%d\", &a);\n\n if (a==3) {\n printf(\"YES\");\n }else if (a==5) {\n... |
CDSS_212043 | CDSS | #include <stdio.h>
int main(){
int i,j,k,num,change,array[100000];
scanf("%d",&num);
for(i=0;i<num;i++) scanf("%d",&array[i]);
i=-1;
for(j=0;j<num-1;j++){
if(array[j]<=array[num-1]){
i++;
change=array[i]; /*exchange array[i] array[j]*/
array[i]=array[j];
array[j]=change;
}
... | 2,156 | memory_bytes | {'s_id': 's711473967', 'p_id': 'p02276', 'u_id': 'u623957789', 'date': '1578371185', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2156', 'code_size': '604'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(){\n int i,j,k,num,change,array[100000];\n\n scanf(\"%d\",&num);\n for(i=0;i<num;i++) scanf(\"%d\",&... |
CDSS_212558 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define MAX_N 100000
#define INFTY 1000000000
typedef struct{
int n;
char c;
}card;
int partition(card *, int, int);
void swap(card *, card *);
void quickSort(card *, int, int);
void merge(card *, int, int, int);
void mergeSort(card *, int, int);
int ma... | 2,948 | memory_bytes | {'s_id': 's821900982', 'p_id': 'p02277', 'u_id': 'u558264685', 'date': '1432872702', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '40', 'memory': '2948', 'code_size': '1975'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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 MAX_N 100000\n#define INFTY 1000000000\n\ntypedef struct{\n ... |
CDSS_342461 | CDSS | #include<stdio.h>
int main(void)
{
int a[10000];
int i,n;
scanf("%d",&n);
for(i = 0;i < n;i++){
scanf("%d",&a[i]);
}
for(i = n-1;i >= 0;i--){
printf("%d",a[i]);
if(i != 0){
printf(" ");
}
}
printf("\n");
return 0;
} | 608 | memory_bytes | {'s_id': 's381365625', 'p_id': 'p02407', 'u_id': 'u197750783', 'date': '1495177794', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '608', 'code_size': '236'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\n\tint a[10000];\n\tint i,n;\n\tscanf(\"%d\",&n);\n\tfor(i = 0;i < n;i++){\n\t\tscanf(\"%d\",&a... |
CDSS_365955 | CDSS | #include<stdio.h>
#include<string.h>
main(){
int i, j,counter[26]={0};
char text[26]={'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'},c[1200]="";
for(i=0;i<1200;i++){
scanf("%c",&c[i]);
if(c[i]=='\0')break;
else if(c[i]=='\n')continue;
el... | 548 | memory_bytes | {'s_id': 's078748942', 'p_id': 'p02417', 'u_id': 'u797618752', 'date': '1496025664', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '548', 'code_size': '489'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\n\nmain(){\n\t\n\tint i, j,counter[26]={0};\n\tchar text[26]={'a','b','c','d','e','f','g','h',... |
CDSS_668469 | CDSS | #include <stdio.h>
#include <string.h>
int digitSum(int i){
int sum=0;
while(i>0){
sum+=i%10;
i/=10;
}return sum;
}
int main()
{
int N,A,B;
scanf("%d %d %d",&N,&A,&B);
int sum=0;
for(int i=1;i<=N;i++){
if(digitSum(i)>=A&&digitSum(i)<=B){
sum+=i;
}
}
printf("%d\n",sum);
} | 1,732 | memory_bytes | {'s_id': 's835677755', 'p_id': 'p03478', 'u_id': 'u018679195', 'date': '1596570990', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1732', 'code_size': '293'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\nint digitSum(int i){\n\tint sum=0;\n\twhile(i>0){\n\t\tsum+=i%10;\n\t\ti/=10;\n\t}return ... |
CDSS_180101 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
int pop(void);
void push(int);
int tail=0;
int stack[100];
int main(){
int x,y,z;
char s[100];
while( scanf("%s", s) != EOF ){
if ( s[0] == '+' ){
y=pop();
z=pop();
push(z+y);
} else if ( s[0] == '-' ){
y=pop();
z=po... | 2,052 | memory_bytes | {'s_id': 's434408884', 'p_id': 'p02263', 'u_id': 'u164150168', 'date': '1576218268', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2052', 'code_size': '615'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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>\nint pop(void);\nvoid push(int);\nint tail=0;\nint stack[100];\nint main()... |
CDSS_676327 | CDSS | #include<stdio.h>
int add(int x, int y) {
return x + y;
}
int jian(int x, int y) {
return x - y;
}
int main() {
int a[10], i, j, k;
char sign[2] = { '+','-' };
int(*p[2])(int, int) = { add,jian };
for (i = 0; i < 4; i++) scanf("%1d", a + i);
int sum=a[0];
for (i = 0; i < 2; i++) {
for (j = 0; j < 2; j++) {... | 128 | memory_bytes | {'s_id': 's812077190', 'p_id': 'p03545', 'u_id': 'u863370423', 'date': '1548654203', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '554'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint add(int x, int y) {\n\treturn x + y;\n}\nint jian(int x, int y) {\n\treturn x - y;\n}\nint main() {\n\tint a[... |
CDSS_525303 | CDSS | #include<stdio.h>
int main()
{
int n,k,cntr=0;
scanf("%d %d",&n,&k);
for(int i=0;i<n;i++)
{
int temp;
scanf("%d",&temp);
if(temp>=k)
cntr++;
}
printf("%d",cntr);
return 0;
} | 128 | memory_bytes | {'s_id': 's237812707', 'p_id': 'p02898', 'u_id': 'u412564676', 'date': '1569720953', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '9', 'memory': '128', 'code_size': '205'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n int n,k,cntr=0;\n scanf(\"%d %d\",&n,&k);\n for(int i=0;i<n;i++)\n {\n int temp;\n scan... |
CDSS_702431 | CDSS |
#include <stdio.h>
int main(void){
int left=0,right=0;
int n,i;
char s[101];
scanf("%d %s",&n,s);
for(i=0;i<n;i++){
if(s[i]=='('){
left++;}
else if(s[i]==')'){
if(left>0)left--;
else right++;
}
}
for(i=... | 128 | memory_bytes | {'s_id': 's645201460', 'p_id': 'p03696', 'u_id': 'u962206827', 'date': '1499165787', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '447'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n\n\n#include <stdio.h>\nint main(void){\n int left=0,right=0;\n int n,i;\n char s[101];\n scanf(\"%d %s\",&n,s);\n fo... |
CDSS_716359 | CDSS | z[9999],a,b,c;f(x,y){fflush(!printf("? %d %d\n",x,y));scanf("%s",&b);b=b>78;}main(i){if(scanf("%d%d",&a,&b),a<=b){puts("Impossible");return;}for(i=a+=b;~--i;)!c||f(i,z[c-1])?(z[c++]=i):c--;for(c=*z,i=a;~--i;)z[i]=f(c,i);for(printf("! "),i=0;i<a;)printf("%d",z[i++]);} | 788 | memory_bytes | {'s_id': 's876871976', 'p_id': 'p03784', 'u_id': 'u280667879', 'date': '1489937953', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '296', 'memory': '788', 'code_size': '267'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\nz[9999],a,b,c;f(x,y){fflush(!printf(\"? %d %d\\n\",x,y));scanf(\"%s\",&b);b=b>78;}main(i){if(scanf(\"%d%d\",&a,&b),a<=b){puts(\"Impo... |
CDSS_192070 | CDSS | #include <stdio.h>
#define N 100000
#define Q 50000
int main()
{
int S[N],T[Q],C=0;
int n,q,i;
int left,right,mid,key;
scanf("%d",&n);
for(i=0; i<n; i++)
scanf("%d",&S[i]);
scanf("%d",&q);
for(i=0; i<q; i++)
scanf("%d",&T[i]);
for(i=0; i<q; i++){
key = T[i];
left = 0;
right = n;
... | 1,184 | memory_bytes | {'s_id': 's768556272', 'p_id': 'p02268', 'u_id': 'u875311313', 'date': '1462936370', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '1184', 'code_size': '536'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#define N 100000\n#define Q 50000\n\nint main()\n{\n int S[N],T[Q],C=0;\n int n,q,i;\n int left,right,mid,key... |
CDSS_443957 | CDSS | #include <stdio.h>
int main(){
int n, m, a, sum = 0;
scanf("%d %d", &n, &m);
for(int i = 0; i < m; i++){
scanf("%d", &a);
// printf("%d", a);
sum += a;
}
// printf("%d",sum);
if((n - sum) >= 0) printf("%d", n - sum);
else printf("-1");
} | 1,732 | memory_bytes | {'s_id': 's398638598', 'p_id': 'p02706', 'u_id': 'u889390649', 'date': '1587345226', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1732', 'code_size': '269'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(){\n int n, m, a, sum = 0;\n scanf(\"%d %d\", &n, &m);\n for(int i = 0; i < m; i++){\n scanf(\"... |
CDSS_239196 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <math.h>
typedef struct dice{
int face[6];
}dice;
void rotate(dice *d, char dir)
{
int temp;
switch(dir) {
case 'N':
temp=d->face[0];
d->face[0]=d->face[1];
d->face[1]=d->face[5];
d->face[5]=d->face[4];
d->face[4]=... | 584 | memory_bytes | {'s_id': 's347668903', 'p_id': 'p02386', 'u_id': 'u277798389', 'date': '1468669312', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '584', 'code_size': '1480'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <math.h>\n\ntypedef struct dice{\n int face[6];\n}dice;\n\nvoid rotate(dice *d,... |
CDSS_115573 | CDSS | // Aizu 1147: ICPC Score Totalizer Software
// 2017.9.13 bal4u@uu
#include <stdio.h>
int main()
{
int n, a, i, sum, min, max;
while (scanf("%d", &n) && n) {
for (min = 1001, max = -1, sum = 0, i = 0; i < n; i++) {
scanf("%d", &a);
if (a < min) min = a;
if (a > max) max = a;
sum += a;
}
printf("%d... | 1,772 | memory_bytes | {'s_id': 's394417223', 'p_id': 'p00728', 'u_id': 'u847467233', 'date': '1505302402', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1772', 'code_size': '366'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n// Aizu 1147: ICPC Score Totalizer Software\n// 2017.9.13 bal4u@uu\n\n#include <stdio.h>\n\nint main()\n{\n\tint n, a, i, sum, min, ... |
CDSS_703020 | CDSS | #include <stdio.h>
int main(int argc, char *argv[])
{ int m,n;
scanf("%d%d",&n,&m);
if(m+n>=10)printf("error");
else printf("%d",n+m);
return 0;
} | 128 | memory_bytes | {'s_id': 's908589087', 'p_id': 'p03697', 'u_id': 'u995405136', 'date': '1496538172', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '153'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(int argc, char *argv[])\n{ int m,n;\n\tscanf(\"%d%d\",&n,&m);\n\tif(m+n>=10)printf(\"error\");\n\tels... |
CDSS_407651 | CDSS | #include <stdio.h>
int main(){
long long int i,T=1,N,A[100001];
scanf ("%lld",&N);
for (i=0;i<N;i++){
scanf ("%lld",&A[i]);
if (A[i]==0){
printf("0\n");
return 0;
}
}
for (i=0;i<N;i++){
if (A[i] <= 1000000000000000000/T){
T *= A[i];
}
else{
printf ("-1\n");
return 0;
}
}
printf ("%l... | 2,844 | memory_bytes | {'s_id': 's131480631', 'p_id': 'p02658', 'u_id': 'u353919145', 'date': '1600387756', 'language': 'C', 'original_language': 'C (Clang 10.0.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '29', 'memory': '2844', 'code_size': '342'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n\tlong long int i,T=1,N,A[100001];\n\tscanf (\"%lld\",&N);\n\tfor (i=0;i<N;i++){\n\t\tscanf (\"%l... |
CDSS_660168 | CDSS | # include"stdio.h"
int main(void){
int x,a,b;
scanf("%d %d %d",&x,&a,&b);
x=x-a;
while(x>=0)
x=x-b;
printf("%d",x+b);
return 0;
} | 128 | memory_bytes | {'s_id': 's149418321', 'p_id': 'p03447', 'u_id': 'u791116888', 'date': '1557769172', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '145'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n# include\"stdio.h\"\nint main(void){\n int x,a,b;\n scanf(\"%d %d %d\",&x,&a,&b);\n x=x-a;\n while(x>=0)\n x=x-b;\n printf(... |
CDSS_612901 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <math.h>
typedef struct {
int num;
int P;
long long int Y;
int y;
} bigint;
int cmp( const void *p, const void *q ) {
if(((bigint*)p)->Y - ((bigint*)q)->Y > 0){
return 1;
}else{
return -1;
}
}
int cmp2( const void *p, const void *q ) {
return ... | 6,612 | memory_bytes | {'s_id': 's447654742', 'p_id': 'p03221', 'u_id': 'u950580323', 'date': '1541387487', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '148', 'memory': '6612', 'code_size': '961'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <math.h>\n\ntypedef struct {\n int num;\n int P;\n long long int Y;\n int y;\n... |
CDSS_665413 | CDSS | #include <stdio.h>
#include <stdlib.h>
int desc(const void *a, const void *b) {
return *(int *)b - *(int *)a;
}
int main(void){
int n,i,r=1,before;
int arr[999];
scanf("%d",&n);
for(i=0;i<n;i++)scanf("%d",&arr[i]);
qsort(arr,n,4,desc);
before=arr[0];
for(i=1;i<n;i++){
if(before!=a... | 128 | memory_bytes | {'s_id': 's921738074', 'p_id': 'p03470', 'u_id': 'u406481677', 'date': '1548789294', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '425'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\nint desc(const void *a, const void *b) {\n return *(int *)b - *(int *)a;\n}\n\nint main(vo... |
CDSS_633937 | CDSS | #include <stdio.h>
int main(){
int n,i;
int max = 0;
int min = 0;
scanf("%d",&n);
int a[n];
for(i = 0;i < n;i++){
scanf("%d",&a[n]);
if(max < a[n])
max = a[n];
if(min == 0)
min = a[n];
if(a[n] < min)
min = a[n];
}
printf("%d",max - min);
return 0;
} | 128 | memory_bytes | {'s_id': 's900612843', 'p_id': 'p03308', 'u_id': 'u981457522', 'date': '1530494442', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '270'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n\tint n,i;\n\tint max = 0;\n\tint min = 0;\n\tscanf(\"%d\",&n);\n\tint a[n];\n\tfor(i = 0;i < n;i... |
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 should 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_274081 | CDSS | #include <stdio.h>
int main(){
int a,b;
scanf("%d%d",&a,&b);
if(a==b)printf("a == b\n");
if(a>b)printf("a > b\n");
if(a<b)printf("a < b\n");
return 0;
}
| 2,120 | memory_bytes | {'s_id': 's047379136', 'p_id': 'p02391', 'u_id': 'u536373814', 'date': '1582189648', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2120', 'code_size': '178'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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==b)printf(\"a == b\\n\");\n if(a>b)printf(\... |
CDSS_65960 | CDSS | #include <stdio.h>
int main()
{
int n,m,i,j;
for(;;){
scanf("%d",&n);
if(n==0) break;
j = 0;
for(m=5;m<=n;m+=5){
i = m;
while(i%5 == 0){
i /= 5;
j++;
}
}
printf("%d\n",j);
}
return 0;
} | 0 | memory_bytes | {'s_id': 's814850225', 'p_id': 'p00052', 'u_id': 'u324171823', 'date': '1320988646', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '237'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main()\n{\n int n,m,i,j;\n for(;;){\n scanf(\"%d\",&n);\n if(n==0) break;\n j = 0;\n for(m=5;m... |
CDSS_235315 | CDSS | #include<stdio.h>
#include<math.h>
int main(void)
{
double PI = acos(-1);
int a, b;
double C;
scanf("%d %d %lf", &a, &b, &C);
C = PI*C/180.0;
printf("%lf\n", a*b * sin(C)/2.0);
printf("%lf\n", a+b + sqrt( a*a + b*b - 2*a*b*cos(C)));
printf("%lf\n", b*sin(C));
}
| 2,096 | memory_bytes | {'s_id': 's046922220', 'p_id': 'p02380', 'u_id': 'u239892997', 'date': '1593193674', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2096', 'code_size': '300'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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{\n double PI = acos(-1);\n int a, b;\n double C;\n scanf(\"%d %d... |
CDSS_722441 | 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\n", a * b);
}else {
printf("%d\n", c * d);
}
} | 128 | memory_bytes | {'s_id': 's227292082', 'p_id': 'p03826', 'u_id': 'u224085427', 'date': '1585889260', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', '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 should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int a, b, c, d;\n scanf(\"%d %d %d %d\", &a, &b, &c, &d);\n if(a*b>c*d){\n printf(\... |
CDSS_334896 | CDSS | #include <stdio.h>
int main(){
while(1) {
int i, j, h, w;
scanf("%d %d", &h, &w);
if(h == 0 && w == 0) {
break;
}
for(i = 1; i <= h; i++){
for(j = 1; j <= w; j++){
if(i != 1 && i != h && j != 1 && j != w) {
printf(".... | 2,044 | memory_bytes | {'s_id': 's701010935', 'p_id': 'p02404', 'u_id': 'u834111896', 'date': '1590117448', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2044', 'code_size': '493'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(){\n while(1) {\n int i, j, h, w;\n scanf(\"%d %d\", &h, &w);\n if(h == 0 && w ... |
CDSS_680421 | CDSS | #include <stdio.h>
#include <math.h>
int main(void){
int n,k,i;
scanf("%d %d",&n,&k);
int sum=1;
for(i=0;i<n;i++){
if(sum*2<sum+k) sum*=2;
else sum+=k;
}
printf("%d\n",sum);
return 0;
} | 128 | memory_bytes | {'s_id': 's513116006', 'p_id': 'p03564', 'u_id': 'u185896732', 'date': '1552663101', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '207'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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 int n,k,i;\n scanf(\"%d %d\",&n,&k);\n int sum=1;\n for(i=0;i<n;i++){\n... |
CDSS_490305 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
int main(void){
char S[11],T[11],U[11];
int A,B;
scanf("%s",S);
scanf("%s",T);
scanf("%d %d",&A,&B);
scanf("%s",U);
if(strcmp(S,U)==0){
A--;
printf("%d %d\n",A,B);
return 0;
}
else if(strcmp(T,U)==0){
B--;
printf("%d ... | 128 | memory_bytes | {'s_id': 's032421281', 'p_id': 'p02777', 'u_id': 'u073336549', 'date': '1581279442', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '354'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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>\nint main(void){\n char S[11],T[11],U[11];\n int A,B;\n \n scanf(\... |
CDSS_430204 | CDSS | int main(){
int s;
scanf("%d", &s);
int w;
scanf(" %d", &w);
if (s<=w) printf("unsafe");
else printf("safe");
} | 1,724 | memory_bytes | {'s_id': 's626304571', 'p_id': 'p02699', 'u_id': 'u365152996', 'date': '1588223114', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '9', 'memory': '1724', 'code_size': '123'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\nint main(){\n int s;\n scanf(\"%d\", &s);\n int w;\n scanf(\" %d\", &w);\n if (s<=w) printf(\"unsafe\");\n else printf(\"safe\... |
CDSS_582771 | CDSS | #include <stdio.h>
#define N 6
int main(void)
{
int input[N];
int i,j;
for( i = 0; i < N; i++ ){
scanf("%d", input+i);
}
for( i = 0; i < N; i++ ){
for( j = i + 1; j < N; j++){
if(input[5] < input[j] - input[i]){
printf(":(\n");
return 0;
}
}
}
printf("Yay!... | 128 | memory_bytes | {'s_id': 's742668299', 'p_id': 'p03075', 'u_id': 'u992145640', 'date': '1556141730', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '342'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#define N 6\n\nint main(void)\n{\n int input[N];\n int i,j;\n \n for( i = 0; i < N; i++ ){\n scanf(\"%d\"... |
CDSS_490725 | CDSS | #include <stdio.h>
int main (void){
char s[100],ch;
int hoge;
hoge = 0;
while ( (ch = getchar()) != 10 ){
s[hoge] = 'x';
hoge++;
}
for ( hoge = 0 ; s[hoge] == 'x' ; hoge++)
printf("%c",s[hoge]);
printf("\n");
}
| 128 | memory_bytes | {'s_id': 's346425873', 'p_id': 'p02778', 'u_id': 'u898461696', 'date': '1581681835', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '237'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main (void){\n char s[100],ch;\n int hoge;\n hoge = 0;\n while ( (ch = getchar()) != 10 ){\n s[hoge] ... |
CDSS_86928 | CDSS | p[' '];t[' '];n,x,k,j;main(i){for(;i++<1e6;)for(x=i;x<1e6;p[x+=i]=1);for(;scanf("%d%d",&n,&x)*n;memset(t,0,4e6)){for(*t=1;n--;)for(i=-scanf("%d",&k);++i<x;)t[i]&&++t[i+k];for(;p[x]|!t[x];x--);printf(x<2?"NA\n":"%d\n",x);}} | 15,000 | memory_bytes | {'s_id': 's295233193', 'p_id': 'p00202', 'u_id': 'u479246559', 'date': '1331262302', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1810', 'memory': '15000', 'code_size': '226'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\np[' '];t[' '];n,x,k,j;main(i){for(;i++<1e6;)for(x=i;x<1e6;p[x+=i]=1);for(;scanf(\"%d%d\",&n,&x)*n;memset(t,0,4e6)){for(*t=1;n--;... |
CDSS_551492 | CDSS | #include<stdio.h>
#include<math.h>
int main()
{
int i,n,a,j,counter=0;
int ar[100][100];
scanf("%d%d", &n, &a);
for(i=0; i<n; i++)
{
for(j=0;j<a; j++)
{
scanf("%d", &ar[i][j]);
}
}
int x,ar1[100],q;
for(i=0; i<n; i++)
{
int d =i;
for(q... | 128 | memory_bytes | {'s_id': 's360787164', 'p_id': 'p02982', 'u_id': 'u526278960', 'date': '1562710633', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '766'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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 i,n,a,j,counter=0;\n int ar[100][100];\n scanf(\"%d%d\", &n, &a);\... |
CDSS_471952 | CDSS | #include <stdio.h>
int main() {
int n, m;
int g = 0, k = 0;
scanf("%d %d\n", &n, &m);
for (int i = n - 1; i > 0; i--)
g += i;
for (int i = m - 1; i > 0; i--)
k += i;
printf("%d\n", g + k);
return 0;
} | 128 | memory_bytes | {'s_id': 's168327186', 'p_id': 'p02729', 'u_id': 'u020788337', 'date': '1584927320', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '227'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main() {\n int n, m;\n int g = 0, k = 0;\n scanf(\"%d %d\\n\", &n, &m);\n\n for (int i = n - 1; i > 0;... |
CDSS_705417 | CDSS | #include<stdio.h>
int main()
{
int h,w;
scanf("%d %d",&h,&w);
int i;
char a[102][102];
for(i=0;i<h;i++)
scanf("%s",a[i]);
for(i=0;i<w+2;i++)
printf("#");
printf("\n");
for(i=0;i<h;i++)
printf("#%s#\n",a[i]);
for(i=0;i<w+2;i++)
printf("#");
printf("\n");
return 0;
} | 128 | memory_bytes | {'s_id': 's241383987', 'p_id': 'p03712', 'u_id': 'u600300412', 'date': '1542848798', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '288'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n\tint h,w;\n\tscanf(\"%d %d\",&h,&w);\n\tint i;\n\tchar a[102][102];\n\tfor(i=0;i<h;i++)\n\t scan... |
CDSS_493863 | CDSS | #include<stdio.h>
int main(void){
int a[100000],h,n,i,b=0;
scanf("%d %d",&h,&n);
for(i=0;i<n;i++){
scanf("%d",&a[i]);
}
while(1){
h=h-a[b];
b=b+1;
if(b==n){
break;
}
}
if(h<=0){
printf("Yes\n");
}
else{
printf("No\n");
}
return 0;
}
| 2,036 | memory_bytes | {'s_id': 's029823460', 'p_id': 'p02784', 'u_id': 'u334911316', 'date': '1598430298', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '25', 'memory': '2036', 'code_size': '289'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n int a[100000],h,n,i,b=0;\n scanf(\"%d %d\",&h,&n);\n for(i=0;i<n;i++){\n scanf(\"%d\",&a[... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.