identifier string | space string | input string | target float64 | metric_type string | metadata string | messages list |
|---|---|---|---|---|---|---|
CDSS_65940 | CDSS | #include<stdio.h>
int n,x;
int main(){
scanf("%d",&n);
while(n!=0){
x=0;
while(n>=5)x+=n/5,n=n/5;
printf("%d\n",x);
scanf("%d",&n);
}
return 0;
} | 0 | memory_bytes | {'s_id': 's922481850', 'p_id': 'p00052', 'u_id': 'u435952407', 'date': '1301403058', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '161'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint n,x;\n\nint main(){\n\tscanf(\"%d\",&n);\n\twhile(n!=0){\n\t\tx=0;\n\t\twhile(n>=5)x+=n/5,n=n/5;\n\t\tprintf(... |
CDSS_599093 | CDSS | #include <stdio.h>
int main(void){
// Your code here!
int N,A,B;
scanf("%d %d %d",&N,&A,&B);
printf("%d %d\n",(A<B)? A:B,(N<A+B)? A+B-N:0);
}
| 128 | memory_bytes | {'s_id': 's998437740', 'p_id': 'p03139', 'u_id': 'u966921103', 'date': '1548642094', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '158'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\n // Your code here!\n int N,A,B;\n scanf(\"%d %d %d\",&N,&A,&B);\n printf(\"%d %d\\n\... |
CDSS_125196 | CDSS | #include<stdio.h>
int main(){
int i,j,k,l,n,m;
int q,w,e,r,t,y;
int a[100002];
//acwhile(1){
scanf("%d",&n);
//if(n==0)break;
for(i = 0;i < 100002;i++)a[i]=0;
for(i = 0;i < n;i++){
scanf("%d%d",&q,&w);
a[q]++;
a[w+1]--;
}
w = 0;
q = a[0];
for(i = 1;i < 100002;i++){
q += a[i];
if(q+1 >= i)w=i-1;
}... | 988 | memory_bytes | {'s_id': 's654964802', 'p_id': 'p01448', 'u_id': 'u221679506', 'date': '1465613501', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '988', 'code_size': '356'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n\tint i,j,k,l,n,m;\n\tint q,w,e,r,t,y;\n\tint a[100002];\n\n//acwhile(1){\n\tscanf(\"%d\",&n);\n//if... |
CDSS_313554 | CDSS | #include<math.h>
#include<stdio.h>
int main(void)
{
double r,s,l;
scanf("%lf",&r);
s=r*r*M_PI;
l=2*r*M_PI;
printf("%lf %lf",s,l);
return 0;
} | 648 | memory_bytes | {'s_id': 's371515885', 'p_id': 'p02400', 'u_id': 'u453616341', 'date': '1460683637', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '648', 'code_size': '172'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<math.h>\n#include<stdio.h>\nint main(void)\n{\n double r,s,l;\n \n scanf(\"%lf\",&r);\n s=r*r*M_PI;\n l=2*r*M_... |
CDSS_379043 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include <string.h>
int main(){
char s[1000],t[1000];
int tmp;
scanf("%s",s);
scanf("%s",t);
int ans =strlen(t);
for(int i=0;i<strlen(s)-strlen(t)+1;i++){
tmp=0;
for(int j=0;j<strlen(t);j++){
if(s[i+j]!=t[j]){
tmp++;
if(ans<=tmp){
... | 1,704 | memory_bytes | {'s_id': 's740008119', 'p_id': 'p02571', 'u_id': 'u955881349', 'date': '1598731540', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1704', 'code_size': '460'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#include <string.h>\nint main(){\n char s[1000],t[1000];\n int tmp;\n scanf(\"%s\",s);\n sc... |
CDSS_683222 | CDSS | #include <stdio.h>
int main(void){
char s[10];
scanf("%s",s);
if(s[0]=='Y'&&s[1]=='A'&&s[2]=='K'&&s[3]=='I') {printf("Yes");return 0;}
printf("No");
return 0;
} | 128 | memory_bytes | {'s_id': 's722950413', 'p_id': 'p03591', 'u_id': 'u185896732', 'date': '1548272914', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '170'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\n char s[10];\n scanf(\"%s\",s);\n if(s[0]=='Y'&&s[1]=='A'&&s[2]=='K'&&s[3]=='I') {printf(\"Yes... |
CDSS_279555 | CDSS | #include <stdio.h>
int main(void){
int a,b,c;
scanf("%d",&a);
scanf("%d",&b);
scanf("%d",&c);
if( a<b&&b<c )
puts("Yes");
else
puts("No");
return 0;
}
| 2,104 | memory_bytes | {'s_id': 's452369919', 'p_id': 'p02392', 'u_id': 'u421356972', 'date': '1525740201', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '169'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\n int a,b,c;\n scanf(\"%d\",&a);\n scanf(\"%d\",&b);\n scanf(\"%d\",&c);\n \n if( a<b&&b<c )\n ... |
CDSS_593560 | CDSS | #include<stdio.h>
#include<string.h>
int main(){
int n;
int i;
char temp[4];
double money = 0;
double sum = 0;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%lf %s",&money,temp);
if(strcmp(temp,"JPY") ==0){
sum+=money;
}else{
sum+=money*380000;
}
}
printf("%lf",sum);... | 128 | memory_bytes | {'s_id': 's194613649', 'p_id': 'p03110', 'u_id': 'u050978569', 'date': '1591628770', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '323'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\nint main(){\n int n;\n int i;\n char temp[4];\n \n \n \n \n double money = 0;\n double... |
CDSS_257494 | CDSS | #include <stdio.h>
int main(){
int a, b;
scanf("%d%d", &a, &b);
printf("%d %d\n", a * b, 2 * (a + b));
return 0;
} | 596 | memory_bytes | {'s_id': 's971781742', 'p_id': 'p02389', 'u_id': 'u709185111', 'date': '1393841112', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '123'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n int a, b;\n scanf(\"%d%d\", &a, &b);\n printf(\"%d %d\\n\", a * b, 2 * (a + b));\n return 0;\n... |
CDSS_607989 | CDSS | #include<stdio.h>
#include<stdlib.h>
int cmp(const void *a,const void *b){
return *(int*)a - *(int*)b;
}
int main(void){
int n,i,ans=0;
scanf("%d",&n);
int a[n];
for(i=0;i<n;i++){
scanf("%d",&a[i]);
}
qsort(a,n,sizeof(int),cmp);
a[n-1] = a[n-1]/2;
for(i=0;i<n;i++){
ans+=a[i];
}
printf("%... | 128 | memory_bytes | {'s_id': 's366595620', 'p_id': 'p03207', 'u_id': 'u992736202', 'date': '1549553037', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '344'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n\nint cmp(const void *a,const void *b){\n return *(int*)a - *(int*)b;\n}\n\nint main(void){\n ... |
CDSS_52263 | CDSS | #include <stdio.h>
int main(void){
long n,i,kaijo;
kaijo=1;
scanf("%ld",&n);
for(i=n;i>0;i--){
kaijo*=i;
}
printf("%ld\n",kaijo);
return 0;
}
| 2,036 | memory_bytes | {'s_id': 's896564878', 'p_id': 'p00019', 'u_id': 'u900764118', 'date': '1529985205', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2036', 'code_size': '179'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\n long n,i,kaijo;\n kaijo=1;\n scanf(\"%ld\",&n);\n for(i=n;i>0;i--){\n kaijo*=... |
CDSS_95671 | CDSS | #include <stdio.h>
int d[300005];
int check1(int s);
int check2(int s,int N);
int main(void) {
int N,i,f;
scanf("%d",&N);
for(i=0;i<N;i++){
scanf("%d",&d[i]);
}
f=check1(N-1);
if(f==0){printf("no\n");return 0;}
f=check2(0,N-1);
if(f==0){printf("no\n");return 0;}
else {printf("yes\n");}
return 0;
}
int ch... | 7,568 | memory_bytes | {'s_id': 's049920122', 'p_id': 'p00357', 'u_id': 'u993045812', 'date': '1526520429', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '30', 'memory': '7568', 'code_size': '660'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint d[300005];\n\nint check1(int s);\nint check2(int s,int N);\n\nint main(void) {\n\tint N,i,f;\n\tscanf(\"%d\",&... |
CDSS_693904 | CDSS | #include<stdio.h>
main()
{
int a;
scanf("%d",&a);
if(a==1) printf("1\n");
else if(a<=3) printf("2\n");
else if(a<=7) printf("4\n");
else if(a<=15) printf("8\n");
else if(a<=31) printf("16\n");
else if(a<=63) printf("32\n");
else if(a<=100) printf("64\n");
return 0;
} | 128 | memory_bytes | {'s_id': 's839955859', 'p_id': 'p03644', 'u_id': 'u353919145', 'date': '1518681766', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '277'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nmain()\n{\n\tint a;\n\tscanf(\"%d\",&a);\n\tif(a==1) printf(\"1\\n\");\n\telse if(a<=3) printf(\"2\\n\");\n\telse i... |
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 must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\n int n, m;\n scanf(\"%d%d\", &n, &m);\n \n int a[m], total = 0;\n for(int i = 0... |
CDSS_514095 | CDSS | #include<stdio.h>
#include<math.h>
int main(){
int n;
scanf("%d",&n);
printf("%d\n",n*n);
return 0;
} | 128 | memory_bytes | {'s_id': 's149708490', 'p_id': 'p02859', 'u_id': 'u576472702', 'date': '1588881863', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '122'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<math.h>\nint main(){\n int n;\n scanf(\"%d\",&n);\n printf(\"%d\\n\",n*n);\n return 0;\n \n... |
CDSS_569250 | CDSS | #include <stdio.h>
int main()
{
int n,m,l[100000],r[100000],liml,limr;
scanf("%d %d",&n,&m);
for (int i = 0; i < m; i++)
{
scanf("%d %d",&l[i],&r[i]);
}
liml = l[0];
limr = r[0];
for (int i = 1; i < m; i++)
{
if(liml < l[i])liml = l[i];
if(limr > r[i])... | 896 | memory_bytes | {'s_id': 's783922329', 'p_id': 'p03037', 'u_id': 'u494609869', 'date': '1563605024', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '18', 'memory': '896', 'code_size': '466'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main()\n{\n int n,m,l[100000],r[100000],liml,limr;\n\n scanf(\"%d %d\",&n,&m);\n for (int i = 0; i ... |
CDSS_119709 | CDSS | #include <stdio.h>
#include <string.h>
#define SMAX 4000
int next0[2][SMAX+2], next1[2][SMAX+2], dp[SMAX+2][SMAX+2];
int dfs(int aloc, int bloc);
void scns(int aloc, int bloc);
int main(void)
{
int i, alen, blen;
char a[SMAX+2], b[SMAX+2];
scanf("%s", a + 1);
scanf("%s", b + 1);
a[0] = b[0] = '?';
alen = s... | 64,468 | memory_bytes | {'s_id': 's622210708', 'p_id': 'p00971', 'u_id': 'u141038857', 'date': '1565757700', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '60', 'memory': '64468', 'code_size': '1725'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n#define SMAX 4000\nint next0[2][SMAX+2], next1[2][SMAX+2], dp[SMAX+2][SMAX+2];\n\nint dfs(int... |
CDSS_640314 | CDSS | #include<stdio.h>
int main(void)
{
int a,b,c,n;
scanf("%d%d",&a,&b);
c=b-a;
n=(1+c)*c/2;
printf("%d",n-b);
return 0;
} | 128 | memory_bytes | {'s_id': 's443174418', 'p_id': 'p03328', 'u_id': 'u151785909', 'date': '1587272695', '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 must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void)\n{\n\tint a,b,c,n;\n\tscanf(\"%d%d\",&a,&b);\n\tc=b-a;\n\tn=(1+c)*c/2;\n\tprintf(\"%d\",n-b);\n\tr... |
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 must 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\tel... |
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 must 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\",&x... |
CDSS_659537 | CDSS | #include <stdio.h>
#include <stdint.h>
int main(void)
{
int64_t X = 0, Y = 0;
int64_t answer;
scanf("%ld %ld", &X, &Y);
if (Y == 1 || X == Y || X % Y == 0) {
answer = -1;
} else {
answer = X * (Y - 1);
}
printf("%ld\n", answer);
return 0;
}
| 128 | memory_bytes | {'s_id': 's135534825', 'p_id': 'p03437', 'u_id': 'u880035319', 'date': '1517720366', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '291'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdint.h>\n\nint main(void)\n{\n int64_t X = 0, Y = 0;\n int64_t answer;\n scanf(\"%ld %ld\", &... |
CDSS_701324 | CDSS | #include <stdio.h>
int main (void)
{
int n , min = 10000 , max = 0;
scanf("%d",&n);
int a[n];
for(int i = 0;i < n; i ++){
scanf("%d",&a[i]);
if(min>a[i]){
min = a[i];
}
if(max<a[i]){
max = a[i];
}}
printf("%d",max - min);
return 0;
}
| 128 | memory_bytes | {'s_id': 's782961416', 'p_id': 'p03694', 'u_id': 'u391247609', 'date': '1588100336', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '283'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main (void)\n{\n int n , min = 10000 , max = 0;\n scanf(\"%d\",&n);\n int a[n];\n for(int i = 0;i < n; i... |
CDSS_646646 | CDSS | #include <stdio.h>
#define ll long long
#define rep(i,l,r)for(ll i=(l);i<(r);i++)
#define bool int
#define T 1
#define LIMIT 1000000
bool prime[LIMIT+10];
void makep(ll n){prime[0]=prime[1]=T;for(int i=2;i*i<=n;i++)if(!prime[i])for(int j=i*i;j<=n;j+=i)prime[j]=T;}
int main(){
makep(55555);
ll n;
scanf("%lld",&n);
... | 384 | memory_bytes | {'s_id': 's470399708', 'p_id': 'p03362', 'u_id': 'u382163500', 'date': '1532786348', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '384', 'code_size': '403'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#define ll long long\n#define rep(i,l,r)for(ll i=(l);i<(r);i++)\n\n#define bool int\n#define T 1\n#define LIMIT 10... |
CDSS_107438 | CDSS | a[210][9],i,j,n,k,s;main(x){for(;~scanf("%d",&x);j>2?j=1,++i:++j)!n?n=x:--a[a[i][j]=x][j+3];for(;j>3?s=!printf("%d\n",s),j=++k<n:1;)s+=!~a[x=a[k][j]][3+j++]*x;} | 600 | memory_bytes | {'s_id': 's722840622', 'p_id': 'p00500', 'u_id': 'u479246559', 'date': '1360299190', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '160'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\na[210][9],i,j,n,k,s;main(x){for(;~scanf(\"%d\",&x);j>2?j=1,++i:++j)!n?n=x:--a[a[i][j]=x][j+3];for(;j>3?s=!printf(\"%d\\n\",s),j=++k<n:... |
CDSS_635665 | CDSS | #include<stdio.h>
int main()
{
long long int n;
scanf("%lld",&n);
long long int a,i,s=0;
a=n;
while(a!=0)
{
s=s+a%10;
a=a/10;
}
if(n%s==0)
printf("Yes\n");
else printf("No\n");
}
| 128 | memory_bytes | {'s_id': 's849836674', 'p_id': 'p03316', 'u_id': 'u816631826', 'date': '1538017585', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '239'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n long long int n;\n scanf(\"%lld\",&n);\n long long int a,i,s=0;\n a=n;\n while(a!=0)... |
CDSS_308468 | CDSS | #include<stdio.h>
int main(){
int x,y,d,r;
double a,b,f;
scanf("%lf %lf",&a,&b);
x=a;
y=b;
d=a/b;
r=x%y;
f=a/b;
printf("%d %d %lf\n",d,r,f);
return 0;
} | 648 | memory_bytes | {'s_id': 's631887679', 'p_id': 'p02399', 'u_id': 'u518131138', 'date': '1453425835', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '648', 'code_size': '154'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\nint x,y,d,r;\ndouble a,b,f;\nscanf(\"%lf %lf\",&a,&b);\nx=a;\ny=b;\nd=a/b;\nr=x%y;\nf=a/b;\nprintf(\"%... |
CDSS_597931 | CDSS | #include <stdio.h>
int main()
{
int n, m = 0, s = 0, l[11];
scanf("%d", &n);
for (int i = 0; i < n; i++){
scanf("%d", &l[i]);
s += l[i];
if(m < l[i]){
m = l[i];
}
}
printf("%s\n", s - m > m ? "Yes" : "No");
} | 128 | memory_bytes | {'s_id': 's443362289', 'p_id': 'p03136', 'u_id': 'u785790611', 'date': '1556750791', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '279'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main()\n{\n int n, m = 0, s = 0, l[11];\n scanf(\"%d\", &n);\n \n for (int i = 0; i < n; i++){ \... |
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 must 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];\nchar ... |
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 must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#include<string.h>\n#include<math.h>\n\nint main(void) {\n\tint n, b[100001][2] = { 0 }, next =... |
CDSS_130820 | CDSS | #include <stdio.h>
#define NIL -1
int F[45];
int fibonacci(int n)
{
if(n == 0||n == 1){return F[n] = 1;}
if(F[n]!=NIL){return F[n];}
return F[n] = fibonacci(n-2)+fibonacci(n-1);
}
int main(int argc, const char * argv[]) {
int n;
for(int i = 0;i<45;i++){F[i]=NIL;}
scanf("%d", &n);
int num = f... | 2,112 | memory_bytes | {'s_id': 's467942291', 'p_id': 'p02233', 'u_id': 'u666548409', 'date': '1563514440', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '375'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#define NIL -1\nint F[45];\nint fibonacci(int n)\n{\n if(n == 0||n == 1){return F[n] = 1;}\n if(F[n]!=NIL){r... |
CDSS_546948 | CDSS | #include <stdio.h>
int main(void){
int r;
scanf("%d", &r);
printf("%d\n", 3*r*r);
return 0;
} | 128 | memory_bytes | {'s_id': 's883498044', 'p_id': 'p02969', 'u_id': 'u924527074', 'date': '1564942918', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '102'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n int r;\n scanf(\"%d\", &r);\n printf(\"%d\\n\", 3*r*r);\n return 0;\n}\nPredict its memory... |
CDSS_412821 | CDSS | #include <stdio.h>
#include <stdlib.h>
int cmpnum(const void * n1, const void * n2) {
if (*(long *)n1 > *(long *)n2)
{
return 1;
}
else if (*(long *)n1 < *(long *)n2)
{
return -1;
}
else
{
return 0;
}
}
int main(void) {
long n;
scanf("%ld", &n);
long a[n],b[n];
for (long i = 0; i < n; i++) {
... | 6,400 | memory_bytes | {'s_id': 's555878481', 'p_id': 'p02661', 'u_id': 'u581816556', 'date': '1591331510', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '94', 'memory': '6400', 'code_size': '664'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\nint cmpnum(const void * n1, const void * n2) {\n\tif (*(long *)n1 > *(long *)n2)\n\t{\n\t\t... |
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 must 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;i... |
CDSS_427488 | CDSS | #include<stdio.h>
int main(void)
{
long x,yokin,i=0;
scanf("%ld",&x);
yokin=100;
while(1) {
yokin=yokin*(1.01);
i++;
if(yokin>=x) {
printf("%ld",i);
break;
}
}
return 0;
}
| 1,716 | memory_bytes | {'s_id': 's584307664', 'p_id': 'p02694', 'u_id': 'u749012715', 'date': '1588754939', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '1716', 'code_size': '193'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\n\tlong x,yokin,i=0;\n\tscanf(\"%ld\",&x);\n\tyokin=100;\n\twhile(1) {\n\t\tyokin=yokin*(1.01);\n... |
CDSS_214983 | CDSS | #include <stdio.h>
#define N 100000
struct Node{
int p;
int left;
int right;
};
struct Node T[N];
int count =0;
int depth(int);
void degree(int);
int main(){
int i,j,n,k,left,right,node,m,c;
scanf("%d",&n);
for(i=0;i<n;i++) T[i].p = T[i].left = T[i].right = -1;
for(i=0;i<n;i++){
scanf("%d%d",&no... | 1,784 | memory_bytes | {'s_id': 's318202410', 'p_id': 'p02279', 'u_id': 'u533815780', 'date': '1433470385', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '60', 'memory': '1784', 'code_size': '1048'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#define N 100000\n\nstruct Node{\n int p;\n int left;\n int right;\n};\n\nstruct Node T[N];\nint count =0;\nint... |
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 must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <math.h>\n\nint main()\n{\n\tint N=0,M=0,i=0,sum=0;\n\tint A[10000];\n\t\n\tscanf(\"... |
CDSS_145245 | CDSS | #include <stdio.h>
int main(void) {
int i, j, n, v, a[100];
scanf("%d", &n); /*1 <= n <= 100*/
for (i = 0; i < n; i++)
scanf("%d", &a[i]);
for (j = 0; j < n - 1; j++)
printf("%d ", a[j]);
printf("%d\n", a[n-1]);
for (i = 1; i < n; i++) {
v = a[i];
j = i - 1;
while (j >= 0 && a[j] > v) {
a[j + 1] = a[... | 596 | memory_bytes | {'s_id': 's469968094', 'p_id': 'p02255', 'u_id': 'u877075445', 'date': '1479791227', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '448'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void) {\n\tint i, j, n, v, a[100];\n\tscanf(\"%d\", &n); /*1 <= n <= 100*/\n\tfor (i = 0; i < n; i++)\n\t... |
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 must 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 memor... |
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 must 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_648623 | CDSS | #include <stdio.h>
void Sub(int total, int total2, int total3);
int main(void) {
int a, b, c, x, y, total = 0, total2 = 0, total3 = 0;
scanf("%d %d %d %d %d", &a, &b, &c, &x, &y);
total = a * x + b * y;
total2 = c * 2 * (x > y ? x : y);
total3 = c * 2 * (x < y ? x : y) + a * (x - (x < y ? x : y)) + b * (y - (x < ... | 128 | memory_bytes | {'s_id': 's165860303', 'p_id': 'p03373', 'u_id': 'u892781647', 'date': '1524361497', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '573'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nvoid Sub(int total, int total2, int total3);\nint main(void) {\n\tint a, b, c, x, y, total = 0, total2 = 0, tota... |
CDSS_66585 | CDSS | #include <stdio.h>
int main(){
double a[11];
double s;
int i;
while(scanf("%lf",&a[1])!=EOF){
for(i=2;i<=10;i++){
a[i]=0;
if(i%2==0)a[i]=a[i-1]*2;
else a[i]=a[i-1]/3;
}
for(i=1;i<=10;i++)s+=a[i];
printf("%.8f\n",s);s=0;
}
return 0;
} | 652 | memory_bytes | {'s_id': 's875586747', 'p_id': 'p00055', 'u_id': 'u544325767', 'date': '1468485677', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '652', 'code_size': '279'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(){\n double a[11];\n double s;\n int i;\n while(scanf(\"%lf\",&a[1])!=EOF){\n for(i=2;i<=10;i++){\... |
CDSS_70951 | CDSS | #include <stdio.h>
#include <string.h>
int main(void)
{
int sq[15][15];
int size;
int i, x, y;
while (1){
scanf("%d", &size);
if (size == 0){
break;
}
memset(sq, 0, sizeof(sq));
x = size / 2;
y = x + 1;
for (i = 1; i <= size * size; i++){
sq[y][x] = i;
x++;
y++;
if (y... | 0 | memory_bytes | {'s_id': 's608692028', 'p_id': 'p00078', 'u_id': 'u032763525', 'date': '1316169253', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '655'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\nint main(void)\n{\n\tint sq[15][15];\n\tint size;\n\tint i, x, y;\n\t\n\twhile (1){\n\t\tsc... |
CDSS_728126 | CDSS | #include <stdio.h>
#define N 100
int main() {
static char s[N][N + 1];
int h, w, i;
scanf("%d%d", &h, &w);
for (i = 0; i < h; i++)
scanf("%s", s[i]);
for (i = 0; i < h; i++)
printf("%s\n%s\n", s[i], s[i]);
return 0;
}
| 128 | memory_bytes | {'s_id': 's711031281', 'p_id': 'p03853', 'u_id': 'u000120715', 'date': '1559274551', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '231'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\n#define N 100\n\nint main() {\n\tstatic char s[N][N + 1];\n\tint h, w, i;\n\n\tscanf(\"%d%d\", &h, &w);\n\tfor (... |
CDSS_273423 | CDSS | #include <stdio.h>
int main(void) {
int a,b;
scanf("%d %d", &a,&b);
if(a>b) printf("a > b\n");
else if(a<b) printf("a < b\n");
else printf("a == b\n");
return 0;
} | 580 | memory_bytes | {'s_id': 's493249037', 'p_id': 'p02391', 'u_id': 'u708195431', 'date': '1373300993', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', 'code_size': '199'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n \nint main(void) {\n int a,b;\n \n scanf(\"%d %d\", &a,&b);\n if(a>b) printf(\"a > b\\n\");\n else... |
CDSS_108271 | CDSS | #include <stdio.h>
int main(void)
{
int score;
int ave = 0;
int i;
for (i = 0; i < 5; i++){
scanf("%d", &score);
if (score < 40){
score = 40;
}
ave += score;
}
printf("%d\n", ave / 5);
return (0);
} | 600 | memory_bytes | {'s_id': 's430058559', 'p_id': 'p00515', 'u_id': 'u881668270', 'date': '1444986459', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '229'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n\tint score;\n\tint ave = 0;\n\tint i;\n\t\n\tfor (i = 0; i < 5; i++){\n\t\tscanf(\"%d\", &sc... |
CDSS_317471 | CDSS | #include <stdio.h>
#include <math.h>
#define PI M_PI
int main(void) {
double r, square, circum;
scanf("%lf", &r);
square = r * r * PI;
circum = r * PI * 2;
printf("%lf %lf\n", square, circum);
return 0;
}
| 2,064 | memory_bytes | {'s_id': 's026493691', 'p_id': 'p02400', 'u_id': 'u873514942', 'date': '1539258089', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2064', 'code_size': '225'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n\n#define PI M_PI\n\nint main(void) {\n\n double r, square, circum;\n\n scanf(\"%lf\", &r);\n... |
CDSS_639530 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <math.h>
#include <limits.h>
int sort(const void * a, const void * b)
{
if( *(long long int*)a - *(long long int*)b < 0 )
return 1;
if( *(long long int*)a - *(long long int*)b > 0 )
return -1;
return 0;... | 256 | memory_bytes | {'s_id': 's550239225', 'p_id': 'p03326', 'u_id': 'u750028862', 'date': '1533388820', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '256', 'code_size': '2383'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <stdbool.h>\n#include <math.h>\n#include <limits.h>\n\nint sort... |
CDSS_618646 | CDSS | #include<stdio.h>
int main() {
int N, M, X, Y;
scanf("%d %d %d %d", &N, &M, &X, &Y);
int x[N], y[M], i, j;
for (i = 0; i < N; i++) {
scanf("%d", &x[i]);
}
for (j = 0; j < M; j++) {
scanf("%d", &y[j]);
}
int flag = 1;
if (X < Y) {
flag = flag * 1;
}
else {
flag = flag * 0;
}
int maxx = X;
... | 128 | memory_bytes | {'s_id': 's532185249', 'p_id': 'p03251', 'u_id': 'u426397594', 'date': '1542474394', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '636'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main() {\n\n\tint N, M, X, Y;\n\n\tscanf(\"%d %d %d %d\", &N, &M, &X, &Y);\n\n\tint x[N], y[M], i, j;\n\n\tfor ... |
CDSS_483724 | CDSS | #include<stdio.h>
int main(void){
int n,m;
scanf("%d",&n);
scanf("%d",&m);
int ans[3];
switch(n){
case 1:
ans[0]=0;
break;
case 2:
ans[0]=1;
ans[1]=0;
break;
case 3:
ans[0]=1;
ans[1]=0;
ans[2]=0;
break;
}
int s,c;
int count[3]={0,0,0};
for(int i=0;i<m;i++){
sca... | 128 | memory_bytes | {'s_id': 's718112719', 'p_id': 'p02761', 'u_id': 'u734001128', 'date': '1583117267', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '570'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void){\n\tint n,m;\n\tscanf(\"%d\",&n);\n\tscanf(\"%d\",&m);\n\t\n\tint ans[3];\n\t\n\tswitch(n){\n\t\tc... |
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 must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n\nint compare_int(const void *a, const void *b){\n return *(int*)a - *(int*)b;\n}\n\nint mai... |
CDSS_420746 | CDSS | #include<stdio.h>
int main(void){
unsigned long long a , b , c , k;
scanf("%lld %lld %lld %lld",&a,&b,&c,&k);
if(a+b >= k){
if(a < k){
printf("%lld\n",a);
}
else if(a >= k){
printf("%lld\n",k);
}
}
else{
printf("%lld\n",2*a + b -k);
}
return 0;
}
| 1,736 | memory_bytes | {'s_id': 's969682461', 'p_id': 'p02682', 'u_id': 'u391247609', 'date': '1589160306', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '1736', 'code_size': '302'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void){\n unsigned long long a , b , c , k;\n scanf(\"%lld %lld %lld %lld\",&a,&b,&c,&k);\n \n if(a+b... |
CDSS_640557 | CDSS | #include <stdio.h>
int main(){
int a,b,c,d,e;
scanf("%d %d",&a,&b);
c=b-a;
for (int i = 0; i <= c; ++i)
{
d=d+i;
}
e=d-b;
printf("%d\n",e);
} | 128 | memory_bytes | {'s_id': 's091826684', 'p_id': 'p03328', 'u_id': 'u980659030', 'date': '1528681484', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '154'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(){\n\tint a,b,c,d,e;\n\tscanf(\"%d %d\",&a,&b);\n\tc=b-a;\n\tfor (int i = 0; i <= c; ++i)\n\t\t{\n\t\t\td... |
CDSS_645259 | CDSS | #include<stdio.h>
#include<string.h>
int main(){
char s[5010],c[10],d[5][5010]={{255,0},{255,0},{255,0},{255,0},{255,0}};
int i,j,k,m;
scanf("%s %d",s,&m);
for(i=0;s[i];i++){
for(j=0;j<5;j++){
c[j]=s[i+j];
c[j+1]=0;
for(k=0;k<5;k++){
if(strcmp(d[k],c)==0)goto NEXT;
}//printf("not\n"... | 128 | memory_bytes | {'s_id': 's048177939', 'p_id': 'p03355', 'u_id': 'u121922047', 'date': '1526175732', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '128', 'code_size': '523'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\nint main(){\n char s[5010],c[10],d[5][5010]={{255,0},{255,0},{255,0},{255,0},{255,0}};\n int ... |
CDSS_29249 | CDSS | #include<stdio.h>
int main()
{
int n,a,b,c,i;
while(scanf("%d",&n)!=EOF)
{
for(i=0;i<n;i++)
{
scanf("%d %d %d",&a,&b,&c);
if(a*a+b*b==c*c||a*a+c*c==b*b||b*b+c*c==a*a)
printf("YES\n");
else
printf("NO\n");
}
}
return 0;
} | 580 | memory_bytes | {'s_id': 's450757616', 'p_id': 'p00003', 'u_id': 'u011621222', 'date': '1409896606', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', 'code_size': '248'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n\tint n,a,b,c,i;\n\twhile(scanf(\"%d\",&n)!=EOF)\n\t{\n\t\tfor(i=0;i<n;i++)\n\t\t{\n\t\t\tscanf(\"%d... |
CDSS_278014 | CDSS | #include <stdio.h>
int main(void) {
int a= 0;
int b= 0;
int c= 0;
scanf("%d %d %d", &a, &b, &c);
if(a < b && b < c){
printf("Yes\n");
}
else{
printf("No\n");
}
return 0;
} | 580 | memory_bytes | {'s_id': 's763103371', 'p_id': 'p02392', 'u_id': 'u669124541', 'date': '1494225303', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', 'code_size': '196'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\n\nint main(void) {\n \n\tint a= 0;\n\tint b= 0;\n\tint c= 0;\n \n\t\n\tscanf(\"%d %d %d\", &a, &b, &c);\n\n\tif... |
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 must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\n int a;\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 must 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\",&ar... |
CDSS_729117 | CDSS | #include <stdio.h>
int main(){
char s[101];
scanf("%s",s);
scanf("%s",s);
printf("A%cC",s[0]);
return 0;
} | 128 | memory_bytes | {'s_id': 's051091880', 'p_id': 'p03860', 'u_id': 'u855016901', 'date': '1561322145', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '116'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(){\n char s[101];\n scanf(\"%s\",s);\n scanf(\"%s\",s);\n printf(\"A%cC\",s[0]);\n return 0;\n}\nPre... |
CDSS_503379 | CDSS | #include<stdio.h>
#include<string.h>
int main()
{
char str1[100],str2[100];
scanf("%s",str1);
scanf("%s",str2);
printf("%s%s\n",str2,str1);
return 0;
}
| 1,688 | memory_bytes | {'s_id': 's157617647', 'p_id': 'p02817', 'u_id': 'u916599468', 'date': '1599258047', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1688', 'code_size': '169'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\nint main()\n{\n char str1[100],str2[100];\n scanf(\"%s\",str1);\n scanf(\"%s\",str2);\n\n\... |
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 must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\n#define MAX_N 100000\n#define INFTY 1000000000\n\ntypedef struct{\n i... |
CDSS_583193 | CDSS | #include <stdio.h>
int main() {
int antena[5];
int k;
int i;
int count = 0;
for (i = 0; i < 5; i++) scanf("%d", &antena[i]);
scanf("%d", &k);
for (i = 0; i < 5; i++) {
for (int j = i + 1; j < 5; j++) {
if (antena[j] - antena[i] > k) count++;
}
}
if (count) printf(":(\n");
else printf("Yay!\n");
} | 128 | memory_bytes | {'s_id': 's479901298', 'p_id': 'p03075', 'u_id': 'u531812101', 'date': '1554579315', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '319'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main() {\n\n\tint antena[5];\n\tint k;\n\tint i;\n\tint count = 0;\n\n\tfor (i = 0; i < 5; i++) scanf(\"%d\"... |
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 must 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','i... |
CDSS_573759 | CDSS | #include <stdio.h>
#include <string.h>
int Check_AB(char *Moji, int length);
int Min(int A, int B);
int main(void) {
int N;
scanf("%d",&N);
char S[N][20];
int Length[N];
int i;
for (i = 0; i < N; i++) {
scanf("%s",S[i]);
Length[i] = strlen(S[i]);
}
int r_A = 0;
... | 384 | memory_bytes | {'s_id': 's817742922', 'p_id': 'p03049', 'u_id': 'u686007983', 'date': '1557627379', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '384', 'code_size': '1729'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\nint Check_AB(char *Moji, int length);\nint Min(int A, int B);\nint main(void) {\n \n in... |
CDSS_692144 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(void){
char s[101];
scanf("%s",s);
printf("%c%d%c",s[0],strlen(s)-2,s[strlen(s)-1]);
return 0;
} | 128 | memory_bytes | {'s_id': 's500006176', 'p_id': 'p03636', 'u_id': 'u853477575', 'date': '1537196949', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '128', 'code_size': '169'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\nint main(void){\n\tchar s[101];\n\tscanf(\"%s\",s);\n\tprintf(\"%c%d%c... |
CDSS_142057 | CDSS | #include <stdio.h>
void print(int a[8][8]){
int i,j;
for(i=0;i<8;i++){
for(j=0;j<8;j++){
if(a[i][j]==0){
printf(".");
}else{
printf("Q");
}
}
printf("\n");
}
}
int existT(int j,int a[8][8]){
int i;
for(i=0... | 2,148 | memory_bytes | {'s_id': 's613441071', 'p_id': 'p02244', 'u_id': 'u517012203', 'date': '1580829237', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2148', 'code_size': '2085'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nvoid print(int a[8][8]){\n int i,j;\n for(i=0;i<8;i++){\n for(j=0;j<8;j++){\n if(a[i][j]... |
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 must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n int n,k,cntr=0;\n scanf(\"%d %d\",&n,&k);\n for(int i=0;i<n;i++)\n {\n int temp;\n scanf(... |
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 must 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 for(... |
CDSS_411194 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#define MOD1 1000000007
#define MOD2 998244353
#define LIMIT1 200002
#define LIMIT2 500002
typedef long long ll;
typedef long double ld;
typedef const void cv;
#define rep(i,n) for((i)=0;(i)<(n);(i)++)
#define per(i,n) for((i)=(n)-1;(i)>=0;(i)... | 1,756 | memory_bytes | {'s_id': 's789115189', 'p_id': 'p02659', 'u_id': 'u091870478', 'date': '1591132501', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1756', 'code_size': '1693'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <math.h>\n#define MOD1 1000000007\n#define MOD2 998244353\n#def... |
CDSS_524955 | CDSS | #include<stdio.h>
int main(){
int n,k;
scanf("%d%d",&n,&k);
int h[n];
for(int i=0;i<n;i++){
scanf("%d",&h[i]);
}
int count=0;
for(int i=0;i<n;i++){
if(h[i]>=k){
count++;
}
}
printf("%d",count);
return 0;
} | 512 | memory_bytes | {'s_id': 's953838824', 'p_id': 'p02898', 'u_id': 'u808043578', 'date': '1581223927', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '9', 'memory': '512', 'code_size': '257'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n \nint main(){\n int n,k;\n scanf(\"%d%d\",&n,&k);\n \n int h[n];\n for(int i=0;i<n;i++){\n scanf(\"%d\",&h... |
CDSS_210848 | CDSS | #include<stdio.h>
int A[100000];
int partition(int A[],int p,int r){
int x = A[r-1];
int i = p,j;
for(j = p; j<r-1;j++){
if(A[j] <= x){
int temp = A[i];
A[i] = A[j];
A[j] = temp;
i++;
}
}
int temp = A[i];
A[i] = A[r-1];
A[r-1] = temp;
return i;
}
int main(){
int n,i,ip;
scanf("%d",&n);
for(i... | 2,104 | memory_bytes | {'s_id': 's886965574', 'p_id': 'p02276', 'u_id': 'u819816381', 'date': '1545966876', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2104', 'code_size': '519'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n\t#include<stdio.h>\n\n\tint A[100000];\n\n\tint partition(int A[],int p,int r){\n\tint x = A[r-1];\n\tint i = p,j;\n\tfor(j = p; j<r-... |
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 must 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(\"%d... |
CDSS_361940 | CDSS | #include <stdio.h>
#include <ctype.h>
int main(){
int c;
while((c = getchar()) != EOF){
if(isupper(c)){
putchar(tolower(c));
}
else if(islower(c)){
putchar(toupper(c));
}
else {
putchar(c);
}
}
... | 524 | memory_bytes | {'s_id': 's293283911', 'p_id': 'p02415', 'u_id': 'u457700826', 'date': '1490088953', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', 'code_size': '334'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <ctype.h>\n\nint main(){\n int c;\n \n while((c = getchar()) != EOF){\n if(isupper(c)){\n... |
CDSS_413624 | CDSS | #include <stdio.h>
long long int a[101010];
long long int num[101010];
long long int min(long long int a, long long int b){
if(a < b) return a;
else return b;
}
int main(){
int n; scanf("%d",&n);
for(int i=0; i<=n; i++) scanf("%lld",&a[i]);
num[0] = 1;
for(int i=0; i<=n; i++){
if(num[... | 3,296 | memory_bytes | {'s_id': 's888455328', 'p_id': 'p02665', 'u_id': 'u242679311', 'date': '1590897284', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '22', 'memory': '3296', 'code_size': '692'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nlong long int a[101010];\nlong long int num[101010];\n\nlong long int min(long long int a, long long int b){\n ... |
CDSS_164292 | CDSS | #include<stdio.h>
int main()
{
int values[200000],min,max;
int n,i,j,k;
scanf("%d",&n);
for(i=0;i<n;i++)
{
scanf("%d",&values[i]);
}
max=values[1]-values[0];
min=values[0];
for(i=1;i<n;i++)
{
max=max>values[i]-min?max:values[i]-min;
min=min<values[i]?min:values[... | 2,616 | memory_bytes | {'s_id': 's583688108', 'p_id': 'p02258', 'u_id': 'u775154517', 'date': '1587888620', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2616', 'code_size': '357'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n int values[200000],min,max;\n int n,i,j,k;\n scanf(\"%d\",&n);\n for(i=0;i<n;i++)\n ... |
CDSS_95335 | CDSS | int main() {
int a,b;
scanf("%d%d",&a,&b);
printf("%d\n", (a + b) / 2);
return 0;
}
| 2,104 | memory_bytes | {'s_id': 's165094795', 'p_id': 'p00352', 'u_id': 'u946882171', 'date': '1596178138', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '88'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nint main() {\n\tint a,b;\n\tscanf(\"%d%d\",&a,&b);\n\tprintf(\"%d\\n\", (a + b) / 2);\n\treturn 0;\n}\n\nPredict its memory footprint.... |
CDSS_115661 | CDSS | #include<stdio.h>
int main(){
int n,s;
int i;
int sum,max,min,result;
while(1){
sum=0;
result=0;
max=0;
min=1000;
scanf("%d",&n);
if(n==0){
break;
}
for(i=0;i<n;i++){
scanf("%d",&s);
s... | 596 | memory_bytes | {'s_id': 's113023835', 'p_id': 'p00728', 'u_id': 'u974521560', 'date': '1371472393', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '579'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int n,s;\n int i;\n int sum,max,min,result;\nwhile(1){\n sum=0;\n ... |
CDSS_651276 | CDSS | // ConsoleApplication21.cpp: 定义控制台应用程序的入口点。
//
#include<stdio.h>
int main()
{
int a, b;
int k;
int x[100];
int y[100];
int i;
int j;
scanf("%d%d%d",&a,&b,&k);
if (k >= b - a)
{
for (i = a; i <= b; i++)
printf("%d\n",i);
return 0;
}
for (i = 0; i < k; i++)
{
x[i] = a + i;
}
for (j = 0; j < k;... | 128 | memory_bytes | {'s_id': 's051135517', 'p_id': 'p03386', 'u_id': 'u076873188', 'date': '1523207307', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '536'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n// ConsoleApplication21.cpp: 定义控制台应用程序的入口点。\n//\n\n#include<stdio.h>\nint main()\n{\n\tint a, b;\n\tint k;\n\tint x[100];\n\tint y[100... |
CDSS_262148 | CDSS | #include<stdio.h>
#define MAX 10
int main(void){
int a;
scanf("%d",&a);
printf("%d:%d:%d\n",a/3600,a%3600/60,a%3600%60);
return 0;
} | 592 | memory_bytes | {'s_id': 's913918655', 'p_id': 'p02390', 'u_id': 'u517983348', 'date': '1495180138', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', 'code_size': '136'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#define MAX 10\nint main(void){\n\tint a;\n\tscanf(\"%d\",&a);\n\tprintf(\"%d:%d:%d\\n\",a/3600,a%3600/60,a%3600%60... |
CDSS_474180 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<string.h>
#include<stdbool.h>
typedef long long ll;
typedef long double ld;
#define rep(i,l,r)for(ll i=(l);i<(r);i++)
#define repp(i,l,r,k)for(ll i=(l);i<(r);i+=(k))
#define rrep(i,l,r)for(ll i=(l);i>=(r);i--)
#define INF (1LL<<60)
#define MOD1 1000000007
#... | 256 | memory_bytes | {'s_id': 's348711228', 'p_id': 'p02735', 'u_id': 'u004279520', 'date': '1585765613', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '256', 'code_size': '2236'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#include<math.h>\n#include<string.h>\n#include<stdbool.h>\ntypedef long long ll;\ntypedef long ... |
CDSS_541984 | CDSS | #include <stdio.h>
int main(){
int n;
scanf("%d",&n);
int count=0;
for(int a=1;a<=n;a++){
int count2;
int b;
count2=0;
b=1;
while(a/b>=1){count2++;b*=10;}
if(count2%2==1){count++;}
else{}
}
printf("%d\n",count);
return 0;
} | 128 | memory_bytes | {'s_id': 's159230918', 'p_id': 'p02952', 'u_id': 'u272131408', 'date': '1568386327', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '128', 'code_size': '307'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(){\n int n;\n scanf(\"%d\",&n);\n int count=0;\n for(int a=1;a<=n;a++){\n int count2;\... |
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 must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <math.h>\n\ntypedef struct {\n int num;\n int P;\n long long int Y;\n int y;\n} ... |
CDSS_722804 | CDSS | #include <stdio.h>
int main(void)
{
/*入力部分*/
int A,B,C,D;
scanf("%d %d %d %d",&A,&B,&C,&D);
//条件、出力
if(A*B>=C*D){
printf("%d\n",A*B);}
if(A*B<C*D){
printf("%d\n",C*D);}
return 0;
} | 128 | memory_bytes | {'s_id': 's642932697', 'p_id': 'p03826', 'u_id': 'u630250284', 'date': '1485576398', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '210'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n\t/*入力部分*/\n\tint A,B,C,D;\n\tscanf(\"%d %d %d %d\",&A,&B,&C,&D);\n\t//条件、出力\n\tif(A*B>=C*D){... |
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 must 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_339815 | CDSS | #include <stdio.h>
int main(void) {
int i,n,x;
scanf("%d",&n);
for(i=3;i<=n;i++){
if(i%3==0){
printf(" %d",i);
}
else{
x=i;
while(x!=0){
if(x%10==3){
printf(" %d",i);
break;
}
x/=10;
}
}
}
printf("\n");
return 0;
} | 600 | memory_bytes | {'s_id': 's591027224', 'p_id': 'p02406', 'u_id': 'u653442293', 'date': '1503997276', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '266'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\n\tint i,n,x;\n\n\tscanf(\"%d\",&n);\n\n\tfor(i=3;i<=n;i++){\n\t\tif(i%3==0){\n\t\t\tprintf(\" ... |
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 must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n int a,b;\n scanf(\"%d%d\",&a,&b);\n if(a==b)printf(\"a == b\\n\");\n if(a>b)printf(\"a... |
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 must 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_546922 | CDSS | #include<stdio.h>
int main(void)
{
int r;
scanf("%d",&r);
printf("%d",3*r*r);
return 0;
} | 128 | memory_bytes | {'s_id': 's614353940', 'p_id': 'p02969', 'u_id': 'u098101671', 'date': '1565375960', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '106'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void)\n{\n int r;\n scanf(\"%d\",&r);\n printf(\"%d\",3*r*r);\n return 0;\n}\nPredict its me... |
CDSS_177262 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
void push(int* , int);
int pop(int*);
int top=0;
int main(){
int i,time=0,y,x,in;
int num[200];
char s[200];
while(scanf("%s",s)!=EOF){
if(s[0]=='+'){
y=pop(num);
x=pop(num);
in=x+y;
push(num,in);
}
else if(s[0]... | 548 | memory_bytes | {'s_id': 's717191246', 'p_id': 'p02263', 'u_id': 'u767189333', 'date': '1461729583', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '548', 'code_size': '720'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#include<string.h>\n\nvoid push(int* , int);\n\nint pop(int*);\n\nint top=0;\n\nint main(){\n ... |
CDSS_517855 | CDSS | int main(void){
int a,b;
scanf("%d %d",&a,&b);
if(a>=10 || b>=10){
printf("%d\n",-1);
}else{
printf("%d\n",a*b);
}
return 0;
} | 128 | memory_bytes | {'s_id': 's759233204', 'p_id': 'p02879', 'u_id': 'u967356370', 'date': '1572228829', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '156'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nint main(void){\n int a,b;\n scanf(\"%d %d\",&a,&b);\n \n if(a>=10 || b>=10){\n printf(\"%d\\n\",-1);\n }else{\n printf... |
CDSS_482259 | CDSS | #include<stdio.h>
int main(){
int bingo[3][3];
int num,hit;
for(int i=0;i<3;i++)
scanf("%d %d %d",&bingo[i][0],&bingo[i][1],&bingo[i][2]);
scanf("%d",&num);
for(int i=0;i<num;i++){
scanf("%d",&hit);
for(int j=0;j<3;j++){
for(int k=0;k<3;k++){
if(hit==bingo[j][k])
bingo[... | 128 | memory_bytes | {'s_id': 's088096046', 'p_id': 'p02760', 'u_id': 'u600480888', 'date': '1585503844', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '644'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int bingo[3][3];\n int num,hit;\n for(int i=0;i<3;i++) \n scanf(\"%d %d %d\",&bingo[i][0],&bing... |
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 must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#include<string.h>\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 must 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_128419 | CDSS | #include <stdio.h>
int main()
{
int N, A, B, C;
scanf("%d %d %d %d", &N, &A, &B, &C);
printf("%d\n", N - (A + B - C));
return 0;
}
| 2,128 | memory_bytes | {'s_id': 's328294669', 'p_id': 'p02019', 'u_id': 'u492405338', 'date': '1574261878', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2128', 'code_size': '144'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main()\n{\n int N, A, B, C;\n\n scanf(\"%d %d %d %d\", &N, &A, &B, &C);\n\n printf(\"%d\\n\", N - (A + B ... |
CDSS_41211 | CDSS | #include<stdio.h>
int main( void )
{
int N ;
while( scanf( "%d" ,&N ) != EOF )
{
long cnt[ 4 + 1 ][ 50 + 1 ] = { 1 } ;
int i ,j ,k ;
for( i = 1 ; i <= 4 ; ++i )
{
for( j = 0 ; j <= N ; ++j )
{
if( cnt[ i - 1 ][ j ] > 0 )
{
for( k = 0 ; k <= 9 ; ++k )
{
if( j + k < 50 + 1 )
... | 1,972 | memory_bytes | {'s_id': 's655036310', 'p_id': 'p00008', 'u_id': 'u302788563', 'date': '1517215603', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1972', 'code_size': '460'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\n\nint main( void )\n{\n\tint N ;\n\twhile( scanf( \"%d\" ,&N ) != EOF )\n\t{\n\t\tlong cnt[ 4 + 1 ][ 50 + 1 ] = {... |
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 must 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--;)f... |
CDSS_92052 | CDSS | #include<stdio.h>
int main(void)
{
int i,n,t,x;
for(i=1;i<=4;i++) {
scanf("%d %d",&t,&n);
if(t==1) {
x=6000*n;
}
if(t==2) {
x=4000*n;
}
if(t==3) {
x=3000*n;
}
if(t==4) {
x=2000*n;
}
printf("%d\n",x);
}
return 0;
} | 600 | memory_bytes | {'s_id': 's745951698', 'p_id': 'p00272', 'u_id': 'u951106504', 'date': '1406618396', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '249'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\n\tint i,n,t,x;\n\tfor(i=1;i<=4;i++) {\n\t\tscanf(\"%d %d\",&t,&n);\n\t\tif(t==1) {\n\t\t\tx=6000... |
CDSS_439138 | CDSS | #include<stdio.h>
int main(){
int R;
scanf("%d",&R);
printf("%f",2*R*3.14159);
return 0;
} | 1,740 | memory_bytes | {'s_id': 's395099623', 'p_id': 'p02705', 'u_id': 'u329608654', 'date': '1587346578', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '1740', 'code_size': '108'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n int R;\n \n scanf(\"%d\",&R);\n \n printf(\"%f\",2*R*3.14159);\n \n return 0;\n}\nPredict it... |
CDSS_572374 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
typedef long long int lli;
int main() {
int i, j;
long long int N;
long long int K;
long long int t_k;
long long int p_k;
long long int c;
double sum;
// scanf("%d%d", &N, &K);
scanf("%lld%lld", &N, &K);
// printf("... | 128 | memory_bytes | {'s_id': 's320299560', 'p_id': 'p03043', 'u_id': 'u620555321', 'date': '1558318218', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '994'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <math.h>\ntypedef long long int lli;\n\nint main() {\n int i, ... |
CDSS_192769 | CDSS | #include<stdio.h>
int binarySearch(int n, int key, int *S){
int left=0,right=n,mid;
while(left<right){
mid=(left + right)/2;
if(S[mid]==key){
return mid;
}
else if(key<S[mid]){
right=mid;
}
else{
left=mid+1;
}
}
return 0;
}
int main(){
int i,n,q,key,coun... | 988 | memory_bytes | {'s_id': 's868578184', 'p_id': 'p02268', 'u_id': 'u872117643', 'date': '1494482156', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '988', 'code_size': '568'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint binarySearch(int n, int key, int *S){\n\n int left=0,right=n,mid;\n\n while(left<right){\n mid=(left + r... |
CDSS_493713 | CDSS | #include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<math.h>
#define PI 3.141592653589793
#define MOD 1000000007
int main(){
int h, a;
scanf("%d%d", &h, &a);
int count =0;
while(h>0){
h = h-a;
count++;
}
printf("%d\n", count);
return 0;
} | 128 | memory_bytes | {'s_id': 's544922988', 'p_id': 'p02783', 'u_id': 'u441470484', 'date': '1580069095', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '264'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\n#include<stdlib.h>\n#include<math.h>\n#define PI 3.141592653589793\n#define MOD 1000000007\n\n\... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.