identifier string | space string | input string | target float64 | metric_type string | metadata string | messages list |
|---|---|---|---|---|---|---|
CDSS_486808 | CDSS | #include <stdio.h>
void readInt(int *x) {
scanf("%d", x);
return;
}
void readInts(int n, int arr[]) {
int i;
for (i=0;i<n;i++) {
readInt(&arr[i]);
}
}
void readChar(char *x) {
scanf("%c", x);
return;
}
void readChars(int n, char x[]) {
scanf("%s", x);
return;
}
void printInts(int n, int *arr) {
int i;
for... | 128 | memory_bytes | {'s_id': 's276880849', 'p_id': 'p02771', 'u_id': 'u509739538', 'date': '1589677637', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '674'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nvoid readInt(int *x) {\n\tscanf(\"%d\", x);\n\treturn;\n}\nvoid readInts(int n, int arr[]) {\n\tint i;\n\tfor ... |
CDSS_593059 | CDSS | #include<stdio.h>
int main(void){
char a[11];
scanf("%s",a);
if((a[5]=='0') && (a[6]<'5')){
printf("Heisei\n");
}else{
printf("TBD\n");
}
return 0;
} | 128 | memory_bytes | {'s_id': 's611562113', 'p_id': 'p03109', 'u_id': 'u716903426', 'date': '1588096587', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '169'} | [
{
"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 a[11];\n scanf(\"%s\",a);\n if((a[5]=='0') && (a[6]<'5')){\n printf(\"Heisei\\n\");\... |
CDSS_371556 | CDSS | #include <stdio.h>
int main(void){
int i,j,n,taro_p=0,hana_p=0;
char taro[101], hana[101];
scanf("%d", &n);
for(i=0;i<n;i++){
scanf("%s %s", taro, hana);
for(j=0;;j++){
if(taro[j] > hana[j]){
taro_p += 3;
break;
}else if(taro[j] < hana[j]){
hana_p += 3;
br... | 2,028 | memory_bytes | {'s_id': 's456611905', 'p_id': 'p02421', 'u_id': 'u729485474', 'date': '1587399831', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2028', 'code_size': '487'} | [
{
"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 i,j,n,taro_p=0,hana_p=0;\n char taro[101], hana[101];\n\n scanf(\"%d\", &n);\n\n for... |
CDSS_102433 | CDSS | #include <stdio.h>
int main(){
int h[3][2],m[3][2],s[3][2],i,k,koh[3],kom[3],kos[3],da=0,de=0;
for(k=0;k<3;k++){
scanf("%d %d %d %d %d %d",&h[k][0],&m[k][0],&s[k][0],&h[k][1],&m[k][1],&s[k][1]);
}
for(i=0;i<3;i++){
if(s[i][0]<=s[i][1]){
kos[i]=s[i][1]-s[i][0];
}
else{kos[i]=s[i][1]+60-s[i][0]; m... | 1,796 | memory_bytes | {'s_id': 's279825120', 'p_id': 'p00455', 'u_id': 'u529373084', 'date': '1510664602', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1796', 'code_size': '541'} | [
{
"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 h[3][2],m[3][2],s[3][2],i,k,koh[3],kom[3],kos[3],da=0,de=0;\n\nfor(k=0;k<3;k++){\nscanf(\"%d %d... |
CDSS_660101 | CDSS | #include<stdio.h>
int main(void) {
int x, a, b;
int m = 0;
scanf("%d %d %d", &x, &a, &b);
m = x - a;
while (m >= b) {
m = m - b;
}
printf("%d\n", m);
return 0;
} | 128 | memory_bytes | {'s_id': 's562042411', 'p_id': 'p03447', 'u_id': 'u216563808', 'date': '1563817028', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '174'} | [
{
"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\tint x, a, b;\n\tint m = 0;\n\tscanf(\"%d %d %d\", &x, &a, &b);\n\tm = x - a;\n\twhile (m >=... |
CDSS_734992 | CDSS | #include<stdio.h>
#include<math.h>
int main() {
int N, K;
scanf("%d %d", &N, &K);
printf("%d\n", K*(int)pow(K - 1, N - 1));
return 0;
} | 128 | memory_bytes | {'s_id': 's540924728', 'p_id': 'p03963', 'u_id': 'u698760125', 'date': '1476744179', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '128', 'code_size': '142'} | [
{
"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() {\n\tint N, K;\n\t\n\tscanf(\"%d %d\", &N, &K);\n\tprintf(\"%d\\n\", K*(int)pow(K ... |
CDSS_630937 | CDSS | /*
submission # - User: herp_sy
https://atcoder.jp/contests/
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <stdbool.h>
#define _CRT_SECURE_NO_WARNINGS
#define TLong long long
#define TBMod 1000000007
int main(int argc, char const *argv[])
{
char s[103],t[103];
char stac... | 128 | memory_bytes | {'s_id': 's105577590', 'p_id': 'p03293', 'u_id': 'u185464141', 'date': '1564091844', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '494'} | [
{
"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\tsubmission # - User: herp_sy\n\thttps://atcoder.jp/contests/\n*/\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.... |
CDSS_524380 | CDSS | #include <stdio.h>
int main()
{
int N;
scanf("%d",&N);
printf("%f",((N+1)/2)/(double)N);
return 0;
} | 128 | memory_bytes | {'s_id': 's718604082', 'p_id': 'p02897', 'u_id': 'u756033787', 'date': '1569936094', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '109'} | [
{
"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 int N;\n scanf(\"%d\",&N);\n printf(\"%f\",((N+1)/2)/(double)N);\n return 0;\n}\nPredict i... |
CDSS_392225 | CDSS | #include<stdio.h>
#include<string.h>
int main()
{
int n,i,c0,c1,c2,c3;
char ac[]={"AC"},wa[]={"WA"},tle[]={"TLE"},re[]={"RE"};
scanf("%d", &n);
c0=0;
c1=0;
c2=0;
c3=0;
char result[4];
for (i=0;i<n;i++)
{
scanf("%s",result);
// printf("%s",result);
if (strcmp(result,ac)==0) {
... | 1,736 | memory_bytes | {'s_id': 's987064406', 'p_id': 'p02613', 'u_id': 'u576520274', 'date': '1599429204', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '18', 'memory': '1736', 'code_size': '651'} | [
{
"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>\nint main()\n{\n int n,i,c0,c1,c2,c3;\n char ac[]={\"AC\"},wa[]={\"WA\"},tle[]={\"TLE\"},re[... |
CDSS_64907 | CDSS | main(){float f;for(;~scanf("%f",&f);)puts(f>91?"heavy":f>81?"light heavy":f>75?"middle":f>69?"light middle":f>64?"welter":f>60?"light welter":f>57?"light":f>54?"feather":f>51?"bantam":f>48?"fly":"light fly");return 0;} | 604 | memory_bytes | {'s_id': 's464204538', 'p_id': 'p00048', 'u_id': 'u300645821', 'date': '1349113218', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '604', 'code_size': '218'} | [
{
"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:\nmain(){float f;for(;~scanf(\"%f\",&f);)puts(f>91?\"heavy\":f>81?\"light heavy\":f>75?\"middle\":f>69?\"light middle\":f>64?\"welter\... |
CDSS_650065 | CDSS | #include<stdio.h>
#include<stdlib.h>
int cmp(const void *a,const void *b){
return *(int*)a-*(int*)b;
}
int main(){
int N,i,j;
scanf("%d",&N);
int A[N];
int B[N];
int mid;
for(i=0;i<N;i++) {
scanf("%d",&A[i]);
B[i]=A[i];
}
qsort(B,N,sizeof(int),cmp);
mid=B[N/2];
for(i=0;i<N;i++){
if(... | 3,692 | memory_bytes | {'s_id': 's664916273', 'p_id': 'p03379', 'u_id': 'u511344501', 'date': '1523758729', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '69', 'memory': '3692', 'code_size': '432'} | [
{
"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\n\nint cmp(const void *a,const void *b){\n return *(int*)a-*(int*)b;\n}\n\nint main(){\n i... |
CDSS_589447 | CDSS | #include <stdio.h>
int main(){
int H,W,h,w;
scanf("%d %d",&H,&W);
scanf("%d %d",&h,&w);
printf("%d", (H-h)*(W-w));
return 0;
}
| 128 | memory_bytes | {'s_id': 's234998974', 'p_id': 'p03101', 'u_id': 'u487914635', 'date': '1552161796', '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 should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n int H,W,h,w;\n scanf(\"%d %d\",&H,&W);\n scanf(\"%d %d\",&h,&w);\n printf(\"%d\", (H... |
CDSS_716006 | CDSS | #include <stdio.h>
#include<string.h>
int main(void){
int i=1,x,sum=0;
scanf("%d",&x);
while(sum<x){
sum+=i;
i++;
}
printf("%d\n",i-1);
return 0;
} | 128 | memory_bytes | {'s_id': 's833399122', 'p_id': 'p03779', 'u_id': 'u319479794', 'date': '1497310201', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '187'} | [
{
"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>\nint main(void){\n int i=1,x,sum=0;\n scanf(\"%d\",&x);\n while(sum<x){\n sum... |
CDSS_668397 | 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("Balanced\n");
}else if(a+b>c+d){
printf("Left\n");
}else{
printf("Right\n");
}
return 0;
} | 128 | memory_bytes | {'s_id': 's127399033', 'p_id': 'p03477', 'u_id': 'u399527088', 'date': '1514081224', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '218'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer 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,c,d;\n scanf(\"%d %d %d %d\",&a,&b,&c,&d);\n if(a+b==c+d){\n printf(\"Balanced\\n... |
CDSS_469042 | CDSS | #include<stdio.h>
int main(){
char s[6] = {};
int flag = 0;
scanf("%s", s);
if(s[2] == s[3]){
if(s[4] == s[5]){
flag = 1;
}
}
if(flag == 0){
printf("No");
} else {
printf("Yes");
}
return 0;
} | 128 | memory_bytes | {'s_id': 's106946364', 'p_id': 'p02723', 'u_id': 'u327241892', 'date': '1585443837', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '290'} | [
{
"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[6] = {};\n int flag = 0;\n \n\n scanf(\"%s\", s);\n\n if(s[2] == s[3]){\n ... |
CDSS_574320 | CDSS | #include <stdio.h>
#include <stdlib.h>
int main(void)
{
int h, w;
int i, j;
int masu[1000000] = {0};
int kuro[1000000] = {0};
int index = 0;
int count = 0;
int sum = 0;
int work;
int work2;
int ans = 0;
char str[1000][1001];
scanf("%d%d", &h, &w);
for(i = 0; i < h; i++) {
scanf("%s", str[i]);
}
... | 8,960 | memory_bytes | {'s_id': 's359744900', 'p_id': 'p03053', 'u_id': 'u833841247', 'date': '1557340868', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '23', 'memory': '8960', 'code_size': '1470'} | [
{
"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{\n\tint h, w;\n\tint i, j;\n\tint masu[1000000] = {0};\n\tint kuro[10000... |
CDSS_621193 | CDSS |
#include <stdio.h>
#include <stdlib.h>
int gcd(int a,int b){
if(a<b){
int tmp=b;
b=a;
a=tmp;
}
int r=a%b;
if(r==0)return b;
while(r>0){
a=b;
b=r;
r=a%b;
}
return b;
}
int main()
{
int n,x;
scanf("%d%d",&n,&x);
int a[n];
for(in... | 512 | memory_bytes | {'s_id': 's850415872', 'p_id': 'p03262', 'u_id': 'u993046043', 'date': '1560439458', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '13', 'memory': '512', 'code_size': '504'} | [
{
"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 <stdlib.h>\nint gcd(int a,int b){\n if(a<b){\n int tmp=b;\n b=a;\n a=tmp;\n ... |
CDSS_490066 | CDSS | #include<stdio.h>
#include<string.h>
int main(int argc, char const *argv[])
{
struct N{
char st[10];
int ab;
};
struct N n[2];
char u[10];
int i;
scanf("%s %s\n%d %d\n%s",n[0].st,n[1].st,&n[0].ab,&n[1].ab,u);
for(i=0;i<2;i++){
if(strcmp(n[i].st,u)==0)n[i].ab=n[i].ab-1;
}
printf("%d %d\n",n[0].ab,n[1].ab);
r... | 128 | memory_bytes | {'s_id': 's380506321', 'p_id': 'p02777', 'u_id': 'u511672502', 'date': '1581368355', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '330'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer 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(int argc, char const *argv[])\n{\nstruct N{\t\n\tchar st[10];\n\tint ab;\n};\n\nst... |
CDSS_471712 | CDSS | #include <stdio.h>
#include <stdlib.h>
int main (void) {
int n, m;
scanf("%d%d", &n, &m);
printf("%d\n", ((n+m)*(n+m-1)/2) - (n*m));
return EXIT_SUCCESS;
}
| 128 | memory_bytes | {'s_id': 's697981353', 'p_id': 'p02729', 'u_id': 'u263564761', 'date': '1585143866', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '128', 'code_size': '174'} | [
{
"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, m;\n scanf(\"%d%d\", &n, &m);\n\n printf(\"%d\\n\", (... |
CDSS_286957 | CDSS | #include <stdio.h>
#include <stdlib.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 = tmp;
}
printf("%d %d %d\n", a, b, c);
return 0;
}
| 2,068 | memory_bytes | {'s_id': 's898523217', 'p_id': 'p02393', 'u_id': 'u351272696', 'date': '1525675147', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2068', 'code_size': '312'} | [
{
"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()\n{\n int a, b, c;\n int tmp;\n \n scanf(\"%d%d%d\", &a, &b, &c);\n... |
CDSS_224558 | CDSS | #include <stdio.h>
typedef struct{
int p, k, l, r;
}node;
node nodes[500001];
int ino_f = 0;
int next_id = 0;
int next(int z);
void ino(int id)
{
if(id == -1)
return ;
ino(nodes[id].l);
printf(" %d", nodes[id].k);
ino(nodes[id].r);
}
void find(int z)
{
int x = 0;
while(x >= 0 ... | 6,864 | memory_bytes | {'s_id': 's043079711', 'p_id': 'p02285', 'u_id': 'u248416507', 'date': '1484443550', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '300', 'memory': '6864', 'code_size': '4096'} | [
{
"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\ntypedef struct{\n int p, k, l, r;\n}node;\n\nnode nodes[500001];\n\nint ino_f = 0;\nint next_id = 0;\n\nint... |
CDSS_654514 | CDSS | #include<stdio.h>
#include<string.h>
int main(void){
int A,B,C,D,E,N,M,x,y,i,j,cou=0,cou2,v[1000000],w[1000000],min_i,en=0;
char S[100][100],W[100],s[10],X,Y;
for(i=0;i<3;i++){
scanf("%s",&S[i]);
}
printf("%c%c%c",S[0][0],S[1][1],S[2][2]);
return 0;
} | 128 | memory_bytes | {'s_id': 's337554148', 'p_id': 'p03415', 'u_id': 'u635508156', 'date': '1552571671', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '310'} | [
{
"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 int main(void){\n int A,B,C,D,E,N,M,x,y,i,j,cou=0,cou2,v[1000000],w[1000000],m... |
CDSS_607730 | CDSS | #include <stdio.h>
int main(void)
{
int D,i;
scanf("%d",&D);
printf("Christmas");
for(i=0;i<abs(D-25);i++){
printf(" Eve");
}
printf("\n");
return 0;
} | 128 | memory_bytes | {'s_id': 's361609666', 'p_id': 'p03206', 'u_id': 'u809433990', 'date': '1544321630', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '161'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer 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 D,i;\n\tscanf(\"%d\",&D);\n\tprintf(\"Christmas\");\n\tfor(i=0;i<abs(D-25);i++){\n\t\... |
CDSS_516475 | CDSS | #include<stdio.h>
typedef long long ll;
int main(void){
int N;
scanf("%d", &N);
printf("%d", N%2 == 0 ? N/2-1: N/2);
return 0;
} | 128 | memory_bytes | {'s_id': 's383716733', 'p_id': 'p02865', 'u_id': 'u408173306', 'date': '1573351330', '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 should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\ntypedef long long ll;\n\nint main(void){\n int N;\n scanf(\"%d\", &N);\n printf(\"%d\", N%2 == 0 ? N/2... |
CDSS_23652 | CDSS | #include<stdio.h>
int main(void){
int a[10000],A,i,j;
for(i=0;i<10;i++){
scanf("%d",&a[i]);
}
for(i=0;i<10;i++){
for(j=0;j<10;j++){
if(i!=j){
if(a[i]>a[j]){
A=a[i];
a[i]=a[j];
a[j]=A;
}
}
}
}
for(i=0;i<3;i++){
printf("%d\n",a[i]);
}
return 0;
} | 608 | memory_bytes | {'s_id': 's550262301', 'p_id': 'p00001', 'u_id': 'u330937064', 'date': '1484811999', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '608', '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>\nint main(void){\n\n int a[10000],A,i,j;\n for(i=0;i<10;i++){\nscanf(\"%d\",&a[i]);\n \t}\n\n for(i=0;i<10;i++){\... |
CDSS_719157 | CDSS | #include <stdio.h>
int main(void)
{
int A, B;
scanf("%d%d", &A, &B);
if (A == 1) A += 13;
if (B == 1) B += 13;
if (A > B) {
printf("Alice\n");
} else if (B > A) {
printf("Bob\n");
} else {
printf("Draw\n");
}
return 0;
} | 128 | memory_bytes | {'s_id': 's893740734', 'p_id': 'p03803', 'u_id': 'u580725438', 'date': '1526902203', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '284'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer 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%d\", &A, &B);\n\n if (A == 1) A += 13;\n if (B == 1) B ... |
CDSS_348372 | CDSS | #include <stdio.h>
#include<math.h>
int main() {
int heya[4][3][10]={0};
int b,f,r,v=0,i,n,B,F,R;
scanf("%d",&n);
for(i=1;i<=n;i++){
scanf("%d %d %d %d",&b,&f,&r,&v);
heya[b-1][f-1][r-1]=heya[b-1][f-1][r-1]+v;
}
for(B=0;B<=3;B++){
for(F=0;F<=2;F++){
for(R=0;R<=9;R++){
printf(" %d",heya[B][F]... | 612 | memory_bytes | {'s_id': 's838468139', 'p_id': 'p02409', 'u_id': 'u995116138', 'date': '1463729869', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '612', 'code_size': '419'} | [
{
"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() {\n\tint heya[4][3][10]={0};\n\tint b,f,r,v=0,i,n,B,F,R;\n\t\n\tscanf(\"%d\",&n)... |
CDSS_499576 | CDSS | #include <stdio.h>
#include <stdint.h>
#define MAX(x,y) ((x) > (y) ? (x) : (y))
#define MIN(x,y) ((x) < (y) ? (x) : (y))
#define LL int64_t
#define REP(i,n) for (LL (i) = 0; (i) < (n); i++)
#define REPr(i,n) for (LL (i) = (n); (i) --> 0;)
#define INF 1e9
int DP[1<<18][18];
int A[18][2];
int bitcount(LL bits) {
bit... | 18,560 | memory_bytes | {'s_id': 's007018712', 'p_id': 'p02798', 'u_id': 'u732412551', 'date': '1579442436', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '254', 'memory': '18560', 'code_size': '1488'} | [
{
"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 <stdint.h>\n#define MAX(x,y) ((x) > (y) ? (x) : (y))\n#define MIN(x,y) ((x) < (y) ? (x) : (y))\n#define... |
CDSS_68262 | CDSS | #include <stdio.h>
int main(void)
{
char str[16];
int i, last;
while (~scanf("%s", str)){
last = 9;
while (last > 0){
for (i = 0; i < last; i++){
str[i] = ((str[i] - '0') + (str[i + 1] - '0')) % 10 + '0';
}
last--;
}
printf("%c\n", *str);
}
return (0);
} | 540 | memory_bytes | {'s_id': 's608587411', 'p_id': 'p00062', 'u_id': 'u490032117', 'date': '1403087559', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '540', 'code_size': '283'} | [
{
"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\tchar str[16];\n\tint i, last;\n\n\twhile (~scanf(\"%s\", str)){\n\t\tlast = 9;\n\t\twhile... |
CDSS_21681 | CDSS | #include <stdio.h>
int main()
{
int i, j;
for (i = 1; i <= 9; i++) {
for (j = 1; j <= 9; j++) {
printf("%dx%d=%d\n", i, j, i*j);
}
}
return 0;
} | 524 | memory_bytes | {'s_id': 's851941763', 'p_id': 'p00000', 'u_id': 'u011621222', 'date': '1383113696', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', 'code_size': '168'} | [
{
"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 int i, j;\n for (i = 1; i <= 9; i++) {\n\tfor (j = 1; j <= 9; j++) {\n\t printf(\"%dx... |
CDSS_581741 | CDSS | #include<stdio.h>
#include<string.h>
int main(void){
char s[1000000];
scanf("%s",&s);
int cnt = 0;
for(int i = 1;i < strlen(s);i++){
if(s[i] == s[i - 1]){
cnt++;
if(s[i] == '0'){
s[i] = '1';
}else{
s[i] = '0';
}
}
}
if(strlen(s) < 2 * cnt)cnt = strlen(s) - cnt... | 256 | memory_bytes | {'s_id': 's069738482', 'p_id': 'p03073', 'u_id': 'u008829811', 'date': '1555241207', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '263', 'memory': '256', 'code_size': '357'} | [
{
"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>\nint main(void){\n char s[1000000];\n scanf(\"%s\",&s);\n int cnt = 0;\n for(int i = 1;i <... |
CDSS_77962 | CDSS | #include<stdio.h>
char s[110];
int p=0;
double f(double a,int b,double c){
if(b==2)return a+c;
if(b==3)return a-c;
if(b==4)return a*c;
return a/c;
}
int kobun(){
int i,r=0,o[3],or[]={0,0,1,1,2,2};
int n[3],a;
char c[]={")=+-*/"};
while(1){
for(a=0;'0'<=s[p]&&s[p]<='9';p++)a=a*10+s[p]-'0';
if(s[p... | 1,768 | memory_bytes | {'s_id': 's407411052', 'p_id': 'p00109', 'u_id': 'u731027244', 'date': '1513768170', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1768', 'code_size': '645'} | [
{
"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>\nchar s[110];\nint p=0;\ndouble f(double a,int b,double c){\n if(b==2)return a+c;\n if(b==3)return a-c;\n if(b=... |
CDSS_697432 | CDSS | #include<stdio.h>
int sort(a,b,c){
int A, B, C;
A = a+b;
B = a+c;
C = b+c;
int tmp=A;
if(B < tmp)
tmp =B;
if(C < tmp)
tmp =C;
return tmp;
}
int main(){
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
printf("%d\n", sort(a,b,c));
return 0;
} | 128 | memory_bytes | {'s_id': 's511918789', 'p_id': 'p03671', 'u_id': 'u775097519', 'date': '1564364630', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '251'} | [
{
"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 sort(a,b,c){\n int A, B, C;\n A = a+b;\n B = a+c;\n C = b+c;\n\nint tmp=A;\nif(B < tmp)\ntmp =B;\nif(C <... |
CDSS_646553 | CDSS | #include <stdio.h>
#include <math.h>
#include <string.h>
#include <stdlib.h>
#define rad M_PI/3
#define N 2147483647
#define Max 500000
#define NTL -1
#define min(a,b) ((a>b)?b:a)
#define max(a,b) ((a<b)?b:a)
int main(void)
{
int h,w,i,j,check=1;
scanf("%d%d",&h,&w);
char color[52][52];
for(i=1;i<h+2;i++){... | 128 | memory_bytes | {'s_id': 's993892518', 'p_id': 'p03361', 'u_id': 'u559645647', 'date': '1525572441', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '847'} | [
{
"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#include <string.h>\n#include <stdlib.h>\n#define rad M_PI/3\n#define N 2147483647\n#define M... |
CDSS_483350 | CDSS | #include <stdio.h>
int main(void)
{
int n, m;
int i, j, k, l, o;
int p, q, r;
int count;
int s[6], c[6];
scanf("%d%d", &n, &m);
for (i = 0; i < m; i++)
{
scanf("%d%d", &s[i], &c[i]);
}
p = 10;
q = 0;
r = 0;
count = 0;
if (m != 0)
{
for (j ... | 128 | memory_bytes | {'s_id': 's350923208', 'p_id': 'p02761', 'u_id': 'u149854193', 'date': '1583122907', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '2636'} | [
{
"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 n, m;\n int i, j, k, l, o;\n int p, q, r;\n int count;\n int s[6], c[6]... |
CDSS_93439 | CDSS | n,x;main(y){for(scanf("%d",&n);n--;printf("%d\n",(x-1)%y+1))scanf("%d%d",&x,&y);exit(0);} | 596 | memory_bytes | {'s_id': 's114465961', 'p_id': 'p00292', 'u_id': 'u300645821', 'date': '1422373856', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '89'} | [
{
"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:\nn,x;main(y){for(scanf(\"%d\",&n);n--;printf(\"%d\\n\",(x-1)%y+1))scanf(\"%d%d\",&x,&y);exit(0);}\nPredict its memory footprint.",
... |
CDSS_281849 | CDSS | #include <stdio.h>
int main (){
int a[3],i,j,tem;
for(i=0;i<3;i++) scanf("%d",&a[i]);
for(i=0;i<2;i++) for(j=i;j<3;j++) if(a[i]>a[j]){
tem = a[i];
a[i] = a[j];
a[j] = tem;
}
printf("%d %d %d\n",a[0],a[1],a[2]);
return 0;
} | 596 | memory_bytes | {'s_id': 's584298641', 'p_id': 'p02393', 'u_id': 'u411540321', 'date': '1429173962', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '240'} | [
{
"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[3],i,j,tem;\n\n for(i=0;i<3;i++) scanf(\"%d\",&a[i]);\n for(i=0;i<2;i++) for(j=i;j<3;j... |
CDSS_657829 | CDSS | #include <stdio.h>
int main(void){
int N,A,S;
scanf("%d",&N);
scanf("%d",&A);
S=N%500;
if(S<=A){
printf("Yes");
}
else{
printf("No");
}
return 0;
} | 128 | memory_bytes | {'s_id': 's043411923', 'p_id': 'p03433', 'u_id': 'u625145093', 'date': '1588983813', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '184'} | [
{
"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 N,A,S;\n \n scanf(\"%d\",&N);\n scanf(\"%d\",&A);\n \n S=N%500;\n \n if(S<=A){\n ... |
CDSS_616152 | CDSS | #include<stdio.h>
int main(void){
char X[4];scanf("%s",X);
for(int i=0;i<3;i++){
if(X[i]=='1'){
printf("9");
}else{
printf("1");
}
}
putchar('\n');
return 0;
}
| 128 | memory_bytes | {'s_id': 's653877931', 'p_id': 'p03242', 'u_id': 'u127063317', 'date': '1559749546', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '194'} | [
{
"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 X[4];scanf(\"%s\",X);\n for(int i=0;i<3;i++){\n if(X[i]=='1'){\n printf(\"9\");\... |
CDSS_316274 | CDSS | #include <math.h>
#include <stdio.h>
main() {
double a;
scanf("%lf", &a);
printf("%f %f", a * a * M_PI, 2 * a * M_PI);
}
| 2,040 | memory_bytes | {'s_id': 's859120656', 'p_id': 'p02400', 'u_id': 'u493988062', 'date': '1523862371', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2040', 'code_size': '122'} | [
{
"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 <math.h>\n#include <stdio.h>\nmain() {\ndouble a;\nscanf(\"%lf\", &a);\nprintf(\"%f %f\", a * a * M_PI, 2 * a * M_PI);\n}\... |
CDSS_18531 | CDSS | #include<stdio.h>
#define N 9
int main(){
int i, j;
for(i=0;i<N;i++){
for(j=0;j<N;j++){
printf("%dx%d=%d\n",i+1, j+1, (i+1)*(j+1));
}
}
return 0;
} | 524 | memory_bytes | {'s_id': 's095274996', 'p_id': 'p00000', 'u_id': 'u174877860', 'date': '1461748027', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', '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#define N 9\n\nint main(){\n\tint i, j;\n\tfor(i=0;i<N;i++){\n\t\tfor(j=0;j<N;j++){\n\t\t\tprintf(\"%dx%d=%d\\n\"... |
CDSS_402179 | CDSS |
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<math.h>
int main(void) {
int i;
int num[5];
scanf("%d%d%d%d%d", &num[0], &num[1], &num[2], &num[3], &num[4]);
for (i = 1; i <= 5; i++) {
if ((num[i-1]!=i)&&(num[i-1]!=0)) {
return -1;
}
if (num[i-1]==0) {
printf("%d\n"... | 1,732 | memory_bytes | {'s_id': 's219648988', 'p_id': 'p02639', 'u_id': 'u357698450', 'date': '1592183324', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '1732', '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\n#include<stdio.h>\n#include<string.h>\n#include<stdlib.h>\n#include<math.h>\n\nint main(void) {\n\n int i;\n int num[5];\n\n sc... |
CDSS_134977 | CDSS | #include<stdio.h>
#define N 100
int G[N][N];
int main(){
int i,j,n,k,v,e,t;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d%d",&v,&e);
for(j=0;j<e;j++){
scanf("%d",&t);
G[i][t-1]=1;
}
}
for(i=0;i<n;i++){
for(j=0;j<n;j++){
printf("%d",G[i][j]);
if(j<n-1){
... | 636 | memory_bytes | {'s_id': 's350350738', 'p_id': 'p02237', 'u_id': 'u193103112', 'date': '1482717758', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '636', 'code_size': '383'} | [
{
"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 100\n \nint G[N][N];\n \n \nint main(){\n int i,j,n,k,v,e,t;\n scanf(\"%d\",&n);\n for(i=0;i<... |
CDSS_68188 | CDSS | #include<stdio.h>
int main(void){
int i,j;
char str[11];
int a[10][10];
while(scanf("%s ",str)!=EOF){
for(i=0;i<10;i++)a[0][i] = str[i] - '0';
for(i=1;i<10;i++){
for(j=0;j<10-i;j++){
a[i][j] = a[i-1][j] + a[i-1][j+1];
if(a[i][j]>9)a[i][j] -= 10;
}
}
printf("%d\n",a[9][0]);
... | 0 | memory_bytes | {'s_id': 's422354220', 'p_id': 'p00062', 'u_id': 'u914140574', 'date': '1293526840', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '337'} | [
{
"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 i,j;\n char str[11];\n int a[10][10];\n\n while(scanf(\"%s \",str)!=EOF){\n for(i=... |
CDSS_552393 | CDSS | #include <stdio.h>
int L = 0;
int R = 0;
int ans = 2018;
int c = 0;
int main(void){
if(scanf("%d%d",&L,&R) == 1);
if((R-L) >= 2019){
printf("0\n");
return 0;
}
for(int i = L;i < R;i++){
... | 128 | memory_bytes | {'s_id': 's328499775', 'p_id': 'p02983', 'u_id': 'u848129984', 'date': '1562787579', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '657'} | [
{
"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 int L = 0;\n int R = 0;\n int ans = 2018;\n int c = 0;\n \n ... |
CDSS_258261 | CDSS | #include<stdio.h>
int main(void)
{
int a,b,c,d;
scanf("%d%d",&a,&b);
c=a*b;
printf("%d ",c);
d=a*2+b*2;
printf("%d\n",d);
return 0;
}
| 2,044 | memory_bytes | {'s_id': 's836630411', 'p_id': 'p02389', 'u_id': 'u613386137', 'date': '1557993195', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2044', 'code_size': '135'} | [
{
"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{\nint a,b,c,d;\nscanf(\"%d%d\",&a,&b);\nc=a*b;\nprintf(\"%d \",c);\nd=a*2+b*2;\nprintf(\"%d\\n\"... |
CDSS_497125 | CDSS | #include<stdio.h>
int main(){
int n,m;
scanf("%d%d",&n,&m);
if(n==m)
puts("Yes");
else{
puts("No");
}
return 0;
} | 128 | memory_bytes | {'s_id': 's739966508', 'p_id': 'p02789', 'u_id': 'u188486233', 'date': '1579463950', '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(){\n int n,m;\n scanf(\"%d%d\",&n,&m);\n if(n==m)\n puts(\"Yes\");\n else{\n p... |
CDSS_645846 | CDSS | #include <stdio.h>
#define MAX(x,y) ((x)>(y)?(x):(y))
#define MAX3(x,y,z) ((x)>(MAX(y,z)) ? (x):(MAX(y,z)))
int main(){
int a, b, c, k, sum1=0, sum2=0;
scanf("%d%d%d%d", &a, &b, &c, &k);
sum1 = MAX3(a,b,c);
sum2 = (a+b+c) - sum1;
while(k>0){
sum1 *= 2;
k--;
}
printf("%d", sum1+sum2);
return 0;
... | 1,736 | memory_bytes | {'s_id': 's457692471', 'p_id': 'p03360', 'u_id': 'u858806530', 'date': '1595162005', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1736', 'code_size': '322'} | [
{
"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(x,y)\t((x)>(y)?(x):(y))\n#define MAX3(x,y,z)\t((x)>(MAX(y,z)) ? (x):(MAX(y,z)))\n\nint main(){\n in... |
CDSS_163196 | CDSS | #include "stdio.h"
int main(void){
int x,i;
long a,b,max,min,gap;
max = 0;
min = 0;
gap = -99999999999999;
scanf("%d", &x);
for(i = 0; i < x; i++){
scanf("%ld", &a);
if(i == 0){//初期化
max = a;
min = a;
}else{
if(a > max){
max = a;//最大値更新
b = max - min;
... | 2,104 | memory_bytes | {'s_id': 's198049375', 'p_id': 'p02258', 'u_id': 'u636643167', 'date': '1521249863', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '2104', 'code_size': '619'} | [
{
"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 x,i;\n long a,b,max,min,gap;\n max = 0;\n min = 0;\n gap = -99999999999999;\n sc... |
CDSS_673676 | CDSS | #include <stdio.h>
int main(void){
// Your code here!
int a;
int b;
int c;
scanf("%d %d %d",&a,&b,&c);
if(a*b >c){
printf("%d",c);
}
else{
printf("%d",a*b);
}
return 0;
}
| 128 | memory_bytes | {'s_id': 's961982423', 'p_id': 'p03501', 'u_id': 'u644100188', 'date': '1526173003', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '246'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\n // Your code here!\n int a;\n int b;\n int c;\n scanf(\"%d %d %d\",&a,&b,&c);\n... |
CDSS_636340 | CDSS | #include <stdio.h>
int main(){
int N,k,i,x,ans=0;
scanf("%d %d",&N,&k);
ans = (N-1)/(k-1);
if( (N-1)%(k-1)>0){
ans++;
}
printf("%d",ans);
return 0;
} | 128 | memory_bytes | {'s_id': 's115329785', 'p_id': 'p03317', 'u_id': 'u230853195', 'date': '1532546584', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '202'} | [
{
"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 \tint N,k,i,x,ans=0;\n \tscanf(\"%d %d\",&N,&k);\n \tans = (N-1)/(k-1);\n \tif... |
CDSS_36642 | CDSS | #include <stdio.h>
int main( void ) {
int a, b;
while ( scanf( "%d %d", &a, &b ) != EOF ) {
int i, min, gcd = 1, lcm = 1, start = 2;
while( 1 ) {
min = ( a > b ? b : a );
for ( i = start; i <= min / 2; i++ )
if ( a % i + b % i == 0 ) {
a /= i;
b /= i;
gcd = lcm *= i;
start = i;
... | 596 | memory_bytes | {'s_id': 's282278720', 'p_id': 'p00005', 'u_id': 'u340315059', 'date': '1367326277', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '524'} | [
{
"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\tint a, b;\n\n\twhile ( scanf( \"%d %d\", &a, &b ) != EOF ) {\n\t\tint i, min, gcd = 1, l... |
CDSS_660418 | CDSS | #include <stdio.h>
#include <stdlib.h>
int main()
{
int x,b,a;
scanf("%d",&x);
scanf("%d",&a);
scanf("%d",&b);
printf("%d",(x-a)%b);
return 0;
}
| 128 | memory_bytes | {'s_id': 's543258007', 'p_id': 'p03447', 'u_id': 'u353919145', 'date': '1517366440', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '128', 'code_size': '171'} | [
{
"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()\n{\n int x,b,a;\n scanf(\"%d\",&x);\n scanf(\"%d\",&a);\n scanf(\"... |
CDSS_548308 | CDSS | #include <stdio.h>
#include <stdlib.h>
int int_compare(const int* a, const int* b)
{
if (*a < *b) {
return 1;
}
if (*a > *b) {
return -1;
}
return 0;
}
int main(void)
{
int n;
scanf("%d", &n);
int a[n];
for (int i = 0; i < n; i++) {
scanf("%d", &a[i]);
... | 3,120 | memory_bytes | {'s_id': 's364476890', 'p_id': 'p02971', 'u_id': 'u083910207', 'date': '1567027730', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '64', 'memory': '3120', 'code_size': '666'} | [
{
"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 int_compare(const int* a, const int* b)\n{\n if (*a < *b) {\n return 1;\n ... |
CDSS_581409 | CDSS | #include <stdio.h>
int main(void){
char s[100000];
int i,ans;
int cnt0=0;
int cnt1=0;
scanf("%s",s);
for(i=0;s[i]!='\0';i++){
if(i%2==0){
if(s[i]=='0') cnt0++;}
if(i%2==1){
if(s[i]=='1') cnt0++;}
}
for(i=0;s[i]!='\0';i++){
if(i%2==1){
if(s[i]=='0') cnt1++;}
if(i%2==0){
if(s[i]=='1') cnt1++;}
}
if(cnt0>cnt... | 256 | memory_bytes | {'s_id': 's071059962', 'p_id': 'p03073', 'u_id': 'u835795156', 'date': '1562938675', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '256', 'code_size': '383'} | [
{
"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){\nchar s[100000];\n\n\n\nint i,ans;\nint cnt0=0;\nint cnt1=0;\nscanf(\"%s\",s);\n \nfor(i=0;s[i]... |
CDSS_326258 | CDSS | #include <stdio.h>
int main(void){
int n, con;
int inp;
long min, max, sum = 0;
do{
scanf("%d\n", &n);
if(n <= 0) break;
else{
for(con = 0; con < n; con++){
scanf("%d", &inp);
sum += inp;
if(con == 0) {min = inp; max = inp;}
if(inp < min) min = inp;
if(inp > max) max = inp;
}
}
printf("%ld %ld ... | 1,852 | memory_bytes | {'s_id': 's768137910', 'p_id': 'p02402', 'u_id': 'u043234694', 'date': '1507014631', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1852', 'code_size': '376'} | [
{
"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\tint n, con;\n\tint inp;\n\tlong min, max, sum = 0;\n\n\tdo{\n\tscanf(\"%d\\n\", &n);\n\n\ti... |
CDSS_131867 | CDSS | #include<stdio.h>
int count=100;
int min(int a,int b)
{
if(a<b)return a;
else return b;
}
int main()
{
int i,j,k,l,num,A[count+1],M[count+1][count+1];
scanf("%d",&num);
for(i=1;i<=num;i++)scanf("%d %d",&A[i-1],&A[i]);
for(i=1;i<=num;i++)M[i][i]=0;
for(j=2;j<=num;j++)
{
for(i=1;i<=num-j+1;i++)
... | 636 | memory_bytes | {'s_id': 's519664843', 'p_id': 'p02234', 'u_id': 'u163386631', 'date': '1499309586', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '636', 'code_size': '511'} | [
{
"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 count=100;\nint min(int a,int b)\n{\n if(a<b)return a;\n else return b;\n}\nint main()\n{\n int i,j,k,l,... |
CDSS_218796 | CDSS | #include<stdio.h>
#define MAX 10000
void depth(int, int);
void print(int);
int height(int);
int sibling(int);
struct node{
int parent;
int left;
int right;
};
struct node data[MAX];
int n,data2[MAX],data3[MAX];
int main(){
int i,id,left,right,root=0;
scanf("%d",&n);
for(i=0;i<n;i++)data[i].pa... | 2,056 | memory_bytes | {'s_id': 's513217309', 'p_id': 'p02280', 'u_id': 'u363577051', 'date': '1579187931', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2056', 'code_size': '1838'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#define MAX 10000\n\nvoid depth(int, int);\nvoid print(int);\nint height(int);\nint sibling(int);\n\nstruct node{... |
CDSS_77511 | CDSS | /**
* AOJ #0106: Discount of Buckwheat (PCK 2005)
*/
#include <stdio.h>
/**
* Return the best price for w grams of buckwheat.
*/
int price(int w)
{
double p, min;
int a, b, c, ad, bd, cd;
/* a price without discount, which must be the upper bound. */
min = (w / 200) * 380 + (w % 200 == 0 ? 0 : 550 - 380);... | 600 | memory_bytes | {'s_id': 's983891002', 'p_id': 'p00106', 'u_id': 'u320121447', 'date': '1441277856', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '958'} | [
{
"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 * AOJ #0106: Discount of Buckwheat (PCK 2005)\n */\n\n#include <stdio.h>\n\n/**\n * Return the best price for w grams of buckw... |
CDSS_509944 | CDSS | #include <stdio.h>
int main(){
int a,b,c;
scanf("%d %d %d", &a, &b, &c);
if(a+b+c >= 22){
printf("bust\n");
}
else{
printf("win\n");
}
} | 128 | memory_bytes | {'s_id': 's043836664', 'p_id': 'p02835', 'u_id': 'u692514846', 'date': '1575857086', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '177'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer 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,c;\n scanf(\"%d %d %d\", &a, &b, &c);\n if(a+b+c >= 22){\n printf(\"bust... |
CDSS_93287 | CDSS | #include <stdio.h>
int main( ){
int c1,c5,c10,c50,c100,c500;
scanf("%d%d%d%d%d%d",&c1,&c5,&c10,&c50,&c100,&c500);
if(c1*1+c5*5+c10*10+c50*50+c100*100+c500*500>=1000)
puts("1");
else
puts("0");
return 0;
} | 584 | memory_bytes | {'s_id': 's337731535', 'p_id': 'p00291', 'u_id': 'u267391019', 'date': '1492841717', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '584', 'code_size': '225'} | [
{
"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 c1,c5,c10,c50,c100,c500;\n \n scanf(\"%d%d%d%d%d%d\",&c1,&c5,&c10,&c50,&c100,&c500);\n\n ... |
CDSS_114091 | CDSS | #include<stdio.h>
int main(){
int d[50];
int a[50],b[50];
int i,j,k,l,m,o,q;
int n,r,p,c;
int A;
for(i=0; ;i++){
scanf("%d",&n);
scanf("%d",&r);
if(n == 0 && r == 0)
break;
A = n;
... | 600 | memory_bytes | {'s_id': 's410809609', 'p_id': 'p00710', 'u_id': 'u452212317', 'date': '1430135341', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '1107'} | [
{
"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 d[50];\n int a[50],b[50];\n int i,j,k,l,m,o,q;\n int n,r,p,c;\n ... |
CDSS_721482 | CDSS | #include <stdio.h>
int main(){
long x,tmp,result=0;
scanf("%ld",&x);
tmp=x;
result+=(tmp/11)*2;
tmp=tmp%11;
if(7<=tmp){
result+=2;
} else if(1<=tmp && tmp<7) {
result+=1;
}
printf("%ld",result);
} | 1,704 | memory_bytes | {'s_id': 's573705697', 'p_id': 'p03815', 'u_id': 'u731661595', 'date': '1592751322', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1704', 'code_size': '232'} | [
{
"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 long x,tmp,result=0;\n \n scanf(\"%ld\",&x);\n tmp=x;\n\n result+=(tmp/11)*2;\n tmp=tmp%11;\... |
CDSS_312557 | CDSS | #include<stdio.h>
#define PI 3.141592653589
int main(void){
double r,x,y;
scanf("%lf",&r);
x=r*r*PI;
y=2*r*PI;
printf("%f %f\n",x,y);
return 0;
}
| 2,056 | memory_bytes | {'s_id': 's917160720', 'p_id': 'p02400', 'u_id': 'u542576355', 'date': '1535950718', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2056', 'code_size': '172'} | [
{
"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 PI 3.141592653589\n \nint main(void){\n double r,x,y;\n scanf(\"%lf\",&r);\n x=r*r*PI;\n y=2*... |
CDSS_150534 | CDSS | #include<stdio.h>
#include<math.h>
int main(){
int a,b,g;
int i;
scanf("%d %d",&a,&b);
if(a>b){
a=a%b;
b=b%a;
for(i=1;i<=b;i++){
if(a%i==0&&b%i==0){
g=i;
}
}
}
else if(a<b){
b=b%a;
a=a%b;
for(i=1;i<=a;i++){
if(a%i==0&&b%i==0){
g=i;
}
}
}
else if(a==b){
g=a;
}
printf... | 592 | memory_bytes | {'s_id': 's269980505', 'p_id': 'p02256', 'u_id': 'u402773007', 'date': '1417139611', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '230', 'memory': '592', 'code_size': '344'} | [
{
"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(){\n\tint a,b,g;\n\tint i;\n\tscanf(\"%d %d\",&a,&b);\n\tif(a>b){\n\t\ta=a%b;\n\t\tb... |
CDSS_228437 | CDSS | #include <stdio.h>
#define MAX 500001
int heap[MAX];
int size;
int left(int i){
return 2*i;
}
int right(int i){
return 2*i+1;
}
int parent(int i){
return i/2;
}
void maxHeapify(int i){
int l, r, x, largest;
l = left(i);
r = right(i);
if( l < size && heap[l] > heap[i] ){
largest = l;
}
... | 2,552 | memory_bytes | {'s_id': 's986792288', 'p_id': 'p02288', 'u_id': 'u489166216', 'date': '1434675926', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '100', 'memory': '2552', 'code_size': '883'} | [
{
"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 500001\n\n\nint heap[MAX];\nint size;\n\n\nint left(int i){\n return 2*i;\n}\n\n\nint right(int i){... |
CDSS_606893 | CDSS | #include <stdio.h>
int main(int argc, char *argv[])
{
long long count;
int i, delta;
char s[200001];
int s_len;
int b_count;
scanf("%s", s);
count = 0;
b_count = 0;
for (i = 0; s[i] != 0; i++) {
if (s[i] == 'B') {b_count++;}
}
s_len = i;
for (i--; i > 0; ... | 384 | memory_bytes | {'s_id': 's962871766', 'p_id': 'p03200', 'u_id': 'u676699191', 'date': '1544926638', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '384', 'code_size': '484'} | [
{
"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(int argc, char *argv[])\n{\n long long count;\n int i, delta;\n char s[200001];\n int s_l... |
CDSS_291251 | CDSS | int main(int argc, const char * argv[]) {
int W,H,x,y,r;
scanf("%d %d %d %d %d",&W,&H,&x,&y,&r);
if(-100<=x&&x<=100&&-100<=y&&y<=100&&0<W&&W<=100&&0<H&&H<=100&&0<r&&r<=100){
if(0<=x-r&&x+r<=W&&0<=y-r&&y+r<=H){
printf("Yes\n");
}else{
printf("No\n");
}
... | 584 | memory_bytes | {'s_id': 's157738893', 'p_id': 'p02394', 'u_id': 'u677269303', 'date': '1491973254', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '584', 'code_size': '346'} | [
{
"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(int argc, const char * argv[]) {\n int W,H,x,y,r;\n scanf(\"%d %d %d %d %d\",&W,&H,&x,&y,&r);\n if(-100<=x&&x<=100... |
CDSS_200578 | CDSS | #include <stdio.h>
#include <string.h>
#define N 2000
int n, q, in;
char dp[2][40001];
void swap(int* a, int* b){
int tmp = *a;
*a = *b;
*b = tmp;
}
main(){
while(scanf("%d", &n) != EOF){
int i, j, next = 1, cur = 0;
for(i=0;i<2;i++) for(j=0;j<=40000;j++) dp[i][j] = 0;
dp[0][0] = 1;
for(i=0;i... | 0 | memory_bytes | {'s_id': 's186165230', 'p_id': 'p02271', 'u_id': 'u622083648', 'date': '1336997488', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '642'} | [
{
"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#define N 2000\n\nint n, q, in;\nchar dp[2][40001];\n\nvoid swap(int* a, int* b){\n int tm... |
CDSS_332627 | CDSS | #include <stdio.h>
int main(void){
// Your code here!
int H,W;
while(1){
scanf("%d %d",&H,&W);
if( (H+W)==0 )break;
for(int j=0; j<H; j++){
for(int i=0; i<W; i++){
printf("#");
} printf("\n");
} printf("\n");
}
}
| 1,928 | memory_bytes | {'s_id': 's195590387', 'p_id': 'p02403', 'u_id': 'u738622739', 'date': '1542417044', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1928', '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>\nint main(void){\n // Your code here!\n\n int H,W;\n \n while(1){\n scanf(\"%d %d\",&H,&W);\n ... |
CDSS_687344 | CDSS | U;i;j;w[9<<14];main(k){
for(;~scanf("%d",&k);)j++&&w[k]++;
for(;++i<1e5;)U=fmax(w[--i]+w[++i]+w[i+1],U);
printf("%d",U);} | 2,408 | memory_bytes | {'s_id': 's532039495', 'p_id': 'p03611', 'u_id': 'u944651767', 'date': '1600392084', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '19', 'memory': '2408', '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:\nU;i;j;w[9<<14];main(k){\nfor(;~scanf(\"%d\",&k);)j++&&w[k]++;\nfor(;++i<1e5;)U=fmax(w[--i]+w[++i]+w[i+1],U);\nprintf(\"%d\",U);}\nPr... |
CDSS_629554 | CDSS | #include <stdio.h>
#include <string.h>
int main(void) {
char s[11];
int i, n, num, count = 0, flag = 0;
scanf("%s", s);
n = strlen(s);
if (s[0] != 65) {
flag = 1;
}
for (i = 2; i < n-1; i++) {
if (s[i] == 67) {
count++;
num = i;
}
}
if (count != 1) {
flag = 1;
}
... | 128 | memory_bytes | {'s_id': 's581345759', 'p_id': 'p03289', 'u_id': 'u697382193', 'date': '1538756143', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '588'} | [
{
"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(void) {\n char s[11];\n int i, n, num, count = 0, flag = 0;\n\n scanf(\"%s\",... |
CDSS_299465 | CDSS | #include <stdio.h>
int main(void){
// Your code here!
int x,i;
i=1;
while(scanf("%d",&x) !=EOF)
{
if(x == 0)break;
printf("Case %d: %d\n",i,x);
i++;
}
return 0;
}
| 2,040 | memory_bytes | {'s_id': 's077848167', 'p_id': 'p02396', 'u_id': 'u487330611', 'date': '1533659615', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2040', 'code_size': '189'} | [
{
"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 // Your code here!\n int x,i;\n i=1;\n \n while(scanf(\"%d\",&x) !=EOF)\n {\n if(x =... |
CDSS_336986 | CDSS | #include <stdio.h>
int main(void)
{
int H = 1, W = 1, i, j;
while(H && W)
{
scanf("%d %d", &H, &W);
if (H == 0 && W == 0)
{
break;
}
for (i = 0; i < H; i++)
{
for (j = 0; j < W; j++)
{
if ((i % 2 == 0 && j % 2 ... | 2,052 | memory_bytes | {'s_id': 's324629735', 'p_id': 'p02405', 'u_id': 'u150900642', 'date': '1585021520', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2052', 'code_size': '596'} | [
{
"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 H = 1, W = 1, i, j;\n while(H && W)\n {\n scanf(\"%d %d\", &H, &W);\n ... |
CDSS_517786 | CDSS | #include<stdio.h>
int main(){
int a,b,result;
scanf("%d %d",&a,&b);
result=a*b;
if(a>=1 && a<=9){
if(b>=1 && b<=9) printf("%d\n",result);
else printf("-1\n");
}
else printf("-1\n");
return 0;
} | 128 | memory_bytes | {'s_id': 's529350468', 'p_id': 'p02879', 'u_id': 'u356553124', 'date': '1572274782', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '238'} | [
{
"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,result;\n scanf(\"%d %d\",&a,&b);\n result=a*b;\n if(a>=1 && a<=9){\n if... |
CDSS_105936 | CDSS | #include <stdio.h>
int main(void){
int pas[3], ju[2], i, total;
for (i = 0; i < 3; i++)
scanf("%d", &pas[i]);
for (i = 0; i < 2; i++)
scanf("%d", &ju[i]);
if (pas[0] < pas[1] && pas[0] < pas[2])
total = pas[0];
else if (pas[1] < pas[2]) total = pas[1];
else total = pas[2];
if (ju[0] < ju[1]) total +=... | 592 | memory_bytes | {'s_id': 's072787357', 'p_id': 'p00488', 'u_id': 'u135535178', 'date': '1462532670', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', 'code_size': '392'} | [
{
"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\tint pas[3], ju[2], i, total;\n\tfor (i = 0; i < 3; i++)\n\t\tscanf(\"%d\", &pas[i]);\n\tfor... |
CDSS_515798 | CDSS | #include <stdio.h>
#include <math.h>
#define sq(a) ((a)*(a))
double x[10], y[10];
int count = 0;
double length;
void dfs(int array[], int n, int flag){
if(array[0] == n){
count++;
double newlen = 0;
for(int i=2; i<=n; i++)
newlen = newlen + sqrt(sq(x[array[i]]-x[array[i-1]]) + sq(y[array[i]]-y[arr... | 128 | memory_bytes | {'s_id': 's204992671', 'p_id': 'p02861', 'u_id': 'u792720861', 'date': '1589750865', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '128', 'code_size': '746'} | [
{
"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#define sq(a) ((a)*(a))\n\ndouble x[10], y[10];\nint count = 0;\ndouble length;\n\nvoid dfs(i... |
CDSS_185070 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef struct node{
int key;
struct node* next;
struct node* prev;
}Node;
Node *NIL;
void init(void);
void printList(void);
Node* listSearch(int);
void insert(int);
void deleteNode(Node *);
void deleteLast(void);
void deleteKey(int);
void deleteFirst... | 31,788 | memory_bytes | {'s_id': 's113666795', 'p_id': 'p02265', 'u_id': 'u409954594', 'date': '1498113846', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '340', 'memory': '31788', 'code_size': '1643'} | [
{
"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 \ntypedef struct node{\n int key;\n struct node* next;\n struct no... |
CDSS_469140 | CDSS | #include <stdio.h>
#include <string.h>
int main(void){
long int x;
long int hp=0;
int voo=0;
int v=0;
scanf("%ld",&x);
while(x>=500){
x=x-500;
hp=hp+1000;
}
while(x>=5){
x=x-5;
hp=hp+5;
}
printf("%d",hp);
return 0;
} | 1,704 | memory_bytes | {'s_id': 's472822575', 'p_id': 'p02724', 'u_id': 'u996704180', 'date': '1598471917', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '1704', 'code_size': '257'} | [
{
"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>\nint main(void){\n long int x;\n long int hp=0;\n int voo=0;\n int v=0;\n scanf(\"%ld\"... |
CDSS_215290 | CDSS | /*
* Argorithms and Data Structures
* Lectuire 7
* Rooted Trees
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define N 100000
typedef struct{
int id_parent;
int depth;
int degree;
char type[15];
int *id_child;
} Node;
Node *node;
int depth(int);
int main(void){
int i,j;
int n_node, ... | 7,928 | memory_bytes | {'s_id': 's637850374', 'p_id': 'p02279', 'u_id': 'u694522766', 'date': '1465445613', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '80', 'memory': '7928', 'code_size': '1722'} | [
{
"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 *\tArgorithms and Data Structures\n *\tLectuire 7 \n *\tRooted Trees\n */\n\n#include <stdio.h>\n#include <stdlib.h>\n#include ... |
CDSS_112505 | CDSS | char*p;i,d;main(c,s){for(p=s;c=~getchar();)~c<33?*p++=48+d,d=0,~c<11?*p++=10:0:d++;p[-5]=0;i=!puts(s);} | 0 | memory_bytes | {'s_id': 's833259640', 'p_id': 'p00628', 'u_id': 'u399107199', 'date': '1295180506', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '103'} | [
{
"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:\nchar*p;i,d;main(c,s){for(p=s;c=~getchar();)~c<33?*p++=48+d,d=0,~c<11?*p++=10:0:d++;p[-5]=0;i=!puts(s);}\nPredict its memory footprin... |
CDSS_70073 | CDSS | #include <stdio.h>
int main(void) {
int h,m,s,hh,mm,ss,tsec,tsec3;
while(scanf("%d%d%d",&h,&m,&s) , h != -1){
tsec = h * 3600 + m * 60 + s;
tsec = 7200 - tsec;
tsec3 = tsec * 3;
hh = tsec / 3600;
tsec = tsec - hh * 3600;
mm = tsec / 60;
tsec = tsec - mm * 60;
ss = tsec;
printf("%02d:%02d:... | 612 | memory_bytes | {'s_id': 's134885227', 'p_id': 'p00074', 'u_id': 'u444407884', 'date': '1439186585', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '612', 'code_size': '510'} | [
{
"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\tint h,m,s,hh,mm,ss,tsec,tsec3;\n\t\twhile(scanf(\"%d%d%d\",&h,&m,&s) , h != -1){\n\t\t\tts... |
CDSS_665705 | CDSS | #include<stdio.h>
int main()
{
int N,Y;
int x,y,z;
int i,j;
int a;
scanf("%d%d",&N,&Y);
for(i=0;i<=N;i++){
for(j=0;j<=N-i;j++){
a=Y-10000*i-5000*j;
if(a==1000*(N-i-j)){
x=i;
y=j;
z=N-i-j;
printf("%d ",x);
printf("%d ",y);
printf("%d ",z);
... | 1,732 | memory_bytes | {'s_id': 's045168246', 'p_id': 'p03471', 'u_id': 'u287365470', 'date': '1593395181', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '8', 'memory': '1732', 'code_size': '426'} | [
{
"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 int N,Y;\n int x,y,z;\n int i,j;\n int a;\n scanf(\"%d%d\",&N,&Y);\n for(i=0;i<=N;i++){\n... |
CDSS_734847 | CDSS | #include<stdio.h>
int main(){
int N,K;
scanf("%d %d",&N,&K);
int i;
int num = K;
for(i=1;i<=N-1;i++)
num = num *(K-1);
printf("%d",num);
} | 128 | memory_bytes | {'s_id': 's816130146', 'p_id': 'p03963', 'u_id': 'u362444129', 'date': '1553381720', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '141'} | [
{
"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(){\nint N,K;\nscanf(\"%d %d\",&N,&K);\nint i;\nint num = K;\nfor(i=1;i<=N-1;i++)\n num = num *(K-1);\... |
CDSS_95795 | CDSS | #include <stdio.h>
int main(void)
{
int f;
scanf("%d",&f);
printf("%d\n",(f-30)/2);
return 0;
}
| 2,124 | memory_bytes | {'s_id': 's182033153', 'p_id': 'p00375', 'u_id': 'u280650954', 'date': '1581475550', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2124', 'code_size': '101'} | [
{
"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 f;\n\tscanf(\"%d\",&f);\n\tprintf(\"%d\\n\",(f-30)/2);\n\treturn 0;\n}\n\nPredict its... |
CDSS_563869 | CDSS | #include <stdio.h>
int main(void){
int n,m,a,i;
scanf("%d%d",&n,&m);
int dp[n+2],broken[n+1];
for(i=0;i<n;i++){
broken[i]=0;
dp[i]=0;
}
for(i=0;i<m;i++){
scanf("%d",&a);
broken[a] = 1;
}
dp[n]=1;
dp[n+1]=0;
const long MOD=1000000007;
for(i=n-1;... | 896 | memory_bytes | {'s_id': 's642781826', 'p_id': 'p03013', 'u_id': 'u592248346', 'date': '1590930173', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '11', 'memory': '896', 'code_size': '433'} | [
{
"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 n,m,a,i;\n scanf(\"%d%d\",&n,&m);\n int dp[n+2],broken[n+1];\n for(i=0;i<n;i++... |
CDSS_519591 | CDSS | main(){
long long n, i=1, min=10000000000013;
scanf("%lld",&n);
for(;i*i<=n;i++)
if(n%i==0){
min = (min<i+(n/i)?min:i+(n/i));
}
printf("%lld",min-2);
}
| 128 | memory_bytes | {'s_id': 's257486664', 'p_id': 'p02881', 'u_id': 'u356069145', 'date': '1573442313', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '11', 'memory': '128', 'code_size': '174'} | [
{
"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:\nmain(){\n long long n, i=1, min=10000000000013;\n scanf(\"%lld\",&n);\n for(;i*i<=n;i++)\n if(n%i==0){\n min = (min<i+(n/... |
CDSS_598307 | CDSS | #include <stdio.h>
int main(){
int i,n,l[11],sum=0,max=0;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d",&l[i]);
sum+=l[i];
if(l[i]>max){
max=l[i];
}
}
if(2*max<sum){
printf("Yes");
}else{
printf("No");
}
}
| 128 | memory_bytes | {'s_id': 's176007099', 'p_id': 'p03136', 'u_id': 'u061912210', 'date': '1549246123', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '252'} | [
{
"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,l[11],sum=0,max=0;\n scanf(\"%d\",&n);\n for(i=0;i<n;i++){\n scanf(\"%d\",&l[i]);\... |
CDSS_84352 | CDSS | #include <stdio.h>
int main(void) {
int sum;
int nownum;
int onenum;
int i;
char nextcode;
sum=0;
onenum=0;
while(1) {
scanf("%d%c",&nownum,&nextcode);
if(nownum>10)nownum=10;
sum+=nownum;
if(nownum==1)onenum++;
if(nextcode=='\n') {
if(sum==0)break;
for(i=0;i<onenum;i++) {
if(sum+10<=21)sum... | 0 | memory_bytes | {'s_id': 's960110233', 'p_id': 'p00169', 'u_id': 'u543521645', 'date': '1313885879', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '416'} | [
{
"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\tint sum;\n\tint nownum;\n\tint onenum;\n\tint i;\n\tchar nextcode;\n\tsum=0;\n\tonenum=0;\... |
CDSS_320821 | CDSS | #include <stdio.h>
int main()
{
int a,b;
char op;
while(1){
scanf("%d %c %d",&a,&op,&b);
if (op=='?') break;
if (op=='+'){
printf("%d\n",a + b);
} else if (op=='-'){
printf("%d\n",a - b);
} else if (op=='*'){
printf("%d\n",a * b);
... | 2,060 | memory_bytes | {'s_id': 's443644024', 'p_id': 'p02401', 'u_id': 'u308060746', 'date': '1539488036', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2060', 'code_size': '414'} | [
{
"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,b;\n char op;\n while(1){\n scanf(\"%d %c %d\",&a,&op,&b);\n if (op... |
CDSS_222535 | CDSS | #include<stdio.h>
#include<stdlib.h>
struct node{
struct node *right;
struct node *left;
struct node *parent;
int key;
};
typedef struct node * Node;
#define NIL NULL
Node root;
Node treeMinimum(Node x){
while( x -> left != NIL)
x = x -> left;
return x;
}
Node treeMaximum(Node x){
while( x->ri... | 25,220 | memory_bytes | {'s_id': 's848385827', 'p_id': 'p02283', 'u_id': 'u587288800', 'date': '1547643199', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '320', 'memory': '25220', 'code_size': '2471'} | [
{
"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\nstruct node{\n struct node *right;\n struct node *left;\n struct node *parent;\n int ke... |
CDSS_80942 | CDSS | s,i;main(n){for(;~scanf("%*d%d"+i,&s);)for(printf("Case %d:\n",n++),i=14;--i>3;)printf("%d\n",s=s*s/100%10000);} | 0 | memory_bytes | {'s_id': 's895305754', 'p_id': 'p00137', 'u_id': 'u399107199', 'date': '1289753980', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '112'} | [
{
"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:\ns,i;main(n){for(;~scanf(\"%*d%d\"+i,&s);)for(printf(\"Case %d:\\n\",n++),i=14;--i>3;)printf(\"%d\\n\",s=s*s/100%10000);}\nPredict it... |
CDSS_693209 | CDSS | #include <stdio.h>
int n;
void zjq()
{
printf("ABC%d\n",n);
}
void mzy()
{
scanf("%d",&n);
zjq();
}
int main()
{
mzy();
return 0;
}
| 128 | memory_bytes | {'s_id': 's292219950', 'p_id': 'p03643', 'u_id': 'u247366051', 'date': '1535817904', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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 n;\nvoid zjq()\n{\n printf(\"ABC%d\\n\",n);\n}\nvoid mzy()\n{\n scanf(\"%d\",&n);\n zjq();\n}\nint ... |
CDSS_491692 | CDSS | #include <stdio.h>
#include <stdlib.h>
int compare_int(const void *a, const void *b)
{
return *(int*)a - *(int*)b;
}
int main ()
{
int n,i,j;
int a[200010];
scanf("%d",&n);
for(i=0;i<n;i++)
{
scanf("%d",&a[i]);
}
qsort(a, n, sizeof(int), compare_int);
for(i=0;i<n;i++)
{
if(a[i]==a[i+1])
{
... | 1,788 | memory_bytes | {'s_id': 's198765341', 'p_id': 'p02779', 'u_id': 'u105100688', 'date': '1581286423', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '50', 'memory': '1788', 'code_size': '390'} | [
{
"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{\n return *(int*)a - *(int*)b;\n}\n\ni... |
CDSS_287851 | CDSS | #include<stdio.h>
void swap(int *a, int *b){
int tmp = *a;
*a = *b;
*b = tmp;
}
int main()
{
int a, b, c;
scanf("%d %d %d", &a, &b, &c);
if(a > b){
swap(&a, &b);
}
if(a > c){
swap(&a, &c);
}
if(b > c){
swap(&b, &c);
}
printf("%d %d %d\n", a, b, c);
return 0;
} | 596 | memory_bytes | {'s_id': 's417013988', 'p_id': 'p02393', 'u_id': 'u045912041', 'date': '1393851085', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', '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>\n\nvoid swap(int *a, int *b){\n\tint tmp = *a;\n\t*a = *b;\n\t*b = tmp;\n}\n\nint main()\n{\n\tint a, b, c;\n\tsca... |
CDSS_687341 | CDSS | U;i;j;w[9<<14];main(k){for(;~scanf("%d",&k);)j++&&w[k]++;for(i=1e5;i;)U=fmax(w[i+1]+w[i]+w[--i],U);printf("%d",U);} | 2,412 | memory_bytes | {'s_id': 's728743503', 'p_id': 'p03611', 'u_id': 'u944651767', 'date': '1600392486', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '26', 'memory': '2412', 'code_size': '115'} | [
{
"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:\nU;i;j;w[9<<14];main(k){for(;~scanf(\"%d\",&k);)j++&&w[k]++;for(i=1e5;i;)U=fmax(w[i+1]+w[i]+w[--i],U);printf(\"%d\",U);}\nPredict its... |
CDSS_353743 | CDSS | #include <stdio.h>
int main(void) {
int m,f,r;
while(1)
{
scanf("%d %d %d",&m, &f, &r);
if(m == -1 && f == -1 && r == -1) {
break;
}else if(m == -1 || f == -1){
printf("F\n");
}
else if(m+f<30){
printf("F\n");
}
else if(m+f>=80){
... | 2,044 | memory_bytes | {'s_id': 's553765006', 'p_id': 'p02411', 'u_id': 'u244997053', 'date': '1557450180', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2044', 'code_size': '629'} | [
{
"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\tint m,f,r;\n while(1)\n {\n scanf(\"%d %d %d\",&m, &f, &r);\n if(m == -1... |
CDSS_682797 | CDSS | #include <stdio.h>
int main(){
int a,r=0;
scanf("%d",&a);
for(;a;a/=10)r+=a%10;
printf("%d",r);
return 0;
} | 128 | memory_bytes | {'s_id': 's685223901', 'p_id': 'p03587', 'u_id': 'u855016901', 'date': '1561521200', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '117'} | [
{
"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,r=0;\n scanf(\"%d\",&a);\n for(;a;a/=10)r+=a%10;\n printf(\"%d\",r);\n return 0;\n}\nPr... |
CDSS_673819 | CDSS | #include <stdio.h>
int main()
{
int N;
int a,b;
int sum;
scanf("%d %d %d",&N,&a,&b);
sum = N * a;
if(sum > b)
printf("%d\n",b);
else
printf("%d\n",sum);
return 0;
} | 128 | memory_bytes | {'s_id': 's690132144', 'p_id': 'p03501', 'u_id': 'u050385891', 'date': '1512610505', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '212'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main()\n{\n int N;\n int a,b;\n int sum;\n scanf(\"%d %d %d\",&N,&a,&b);\n sum = N * a;\n ... |
CDSS_531938 | CDSS | #include<stdio.h>
int main(void)
{
char a[4],b[4];
int i,j;
scanf("%s",a);
scanf("%s",b);
j=0;
for(i=0;i<3;i++){
if(a[i]==b[i]){
j++;
}
}
printf("%d",j);
return 0;
} | 128 | memory_bytes | {'s_id': 's476603816', 'p_id': 'p02921', 'u_id': 'u876653122', 'date': '1575907503', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '180'} | [
{
"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\tchar a[4],b[4];\n\tint i,j;\n\tscanf(\"%s\",a);\n\tscanf(\"%s\",b);\n\tj=0;\n\tfor(i=0;i<3;i... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.