identifier string | space string | input string | target float64 | metric_type string | metadata string | messages list |
|---|---|---|---|---|---|---|
CDSS_707374 | CDSS | w[51],m,n,j;main(i){scanf("%d%d",&n,&m);for(m*=2;m--;w[i]++)scanf("%d",&i);while(j++-n)printf("%d\n",w[j]);} | 128 | memory_bytes | {'s_id': 's675135406', 'p_id': 'p03720', 'u_id': 'u302827412', 'date': '1494731013', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '108'} | [
{
"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:\nw[51],m,n,j;main(i){scanf(\"%d%d\",&n,&m);for(m*=2;m--;w[i]++)scanf(\"%d\",&i);while(j++-n)printf(\"%d\\n\",w[j]);}\nPredict its mem... |
CDSS_276703 | CDSS | #include <stdio.h>
int main(void)
{
int a, b, c;
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': 's448191537', 'p_id': 'p02392', 'u_id': 'u865699521', 'date': '1465026494', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', 'code_size': '186'} | [
{
"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 a, b, c;\n\tscanf(\"%d %d %d\", &a, &b, &c);\n\n\tif (a < b && b < c) \n\t{... |
CDSS_704292 | CDSS | #include <stdio.h>
#include <stdlib.h>
#define datatype lli
#define lli long long int
//比較関数
int compare(datatype a, datatype b){
if(a < b){
return -1;
}
else if(a > b){
return 1;
}
else{
return 0;
}
}
//昇順
lli inv_num_sub(datatype *origin, int left, int right, datatype *tmp){
lli ans = 0;
if(right - l... | 3,328 | memory_bytes | {'s_id': 's802226752', 'p_id': 'p03703', 'u_id': 'u208608367', 'date': '1497232551', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '41', 'memory': '3328', 'code_size': '1279'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\n#define datatype lli\n#define lli long long int\n\n//比較関数\nint compare(datatype a, dataty... |
CDSS_625653 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
int main() {
int n, divisores = 0, num=0;
scanf("%d", &n);
for (int i=1; i<=n; ++i) {
for (int j=1; j<=i; ++j) {
if(divisores>8) {
divisores = 0;
break;
}
... | 128 | memory_bytes | {'s_id': 's992938070', 'p_id': 'p03281', 'u_id': 'u058238394', 'date': '1571284350', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '626'} | [
{
"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#include <stdlib.h>\n\n#include <string.h>\n\n#include <math.h>\n\nint main() {\n\n int n, divisores = 0, n... |
CDSS_35896 | CDSS | #include<stdio.h>
int main() {
int a, b,c,A,B;
while (scanf("%d %d", &a, &b) != EOF) {
A = a;
B = b;
while (b != 0) {
c = a%b;
a = b;
b = c;
}
printf("%d %d\n", a, A / a*B);
}
return 0;
}
| 1,980 | memory_bytes | {'s_id': 's547340499', 'p_id': 'p00005', 'u_id': 'u043039307', 'date': '1520060731', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1980', 'code_size': '213'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main() {\n\tint a, b,c,A,B;\n\n\twhile (scanf(\"%d %d\", &a, &b) != EOF) {\n\t\tA = a;\n\t\tB = b;\n\t\twhi... |
CDSS_627580 | CDSS | #include <stdio.h>
int main(void)
{
int n,i,d,c,s,j;
scanf("%d",&n);
d=n/7;c=n/4;
for(i=0;i<=c;i++){
for(j=0;j<=d;j++){
if((i*4+j*7)==n) {
printf("Yes\n");
return 0;
... | 128 | memory_bytes | {'s_id': 's126719683', 'p_id': 'p03285', 'u_id': 'u048036733', 'date': '1590433776', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '404'} | [
{
"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,i,d,c,s,j;\n\n scanf(\"%d\",&n);\n\n d=n/7;c=n/4;\n for(... |
CDSS_495815 | CDSS | #include<stdio.h>
#include<stdlib.h>
int main(){
double H;
scanf("%lf",&H);
double t=2*pow(2,(int)log2(H))-1;
printf("%.0f",t);
return 0;
} | 128 | memory_bytes | {'s_id': 's854230736', 'p_id': 'p02786', 'u_id': 'u236468356', 'date': '1580423433', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '144'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\nint main(){\n\tdouble H;\n\tscanf(\"%lf\",&H);\n\tdouble t=2*pow(2,(int)log2(H))-1;\n\tprintf... |
CDSS_85370 | CDSS | #include <stdio.h>
#define N 1000000
int p[N+1];
void era(void){
int i,j;
for(i=2;i<N;i++){
p[i]=1;
}
for(i=2;i*i<=N;i++){
if(p[i]){
for(j=2*i;j<=N;j=j+i){
p[j]=0;
}
}
}
}
int main(void){
int n,ans,i;
era();
while(1){
scanf("%d",&n);
if(!n)
break;
ans=0;
for(i=3;i<=n/2;i++){
if(p[i... | 4,504 | memory_bytes | {'s_id': 's432568304', 'p_id': 'p00185', 'u_id': 'u505651850', 'date': '1479604188', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '4504', '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#define N 1000000\nint p[N+1];\nvoid era(void){\n\tint i,j;\n\tfor(i=2;i<N;i++){\n\t\tp[i]=1;\n\t}\n\tfor(i=2;i*... |
CDSS_363936 | CDSS | #include <stdio.h>
int main(void){
int sum , i;
char k[1000];
while(1){
scanf("%s",k);
if (k[0]=='0')break;
for (sum=0,i=0; k[i]!='\0'; i++) {
sum+=(k[i]-'0');
}
printf("%d\n",sum);
}
return 0;
} | 536 | memory_bytes | {'s_id': 's420922940', 'p_id': 'p02416', 'u_id': 'u416160908', 'date': '1481266510', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '536', 'code_size': '197'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\n\nint sum , i;\nchar k[1000];\n\nwhile(1){\nscanf(\"%s\",k);\nif (k[0]=='0')break;\nfor (sum=0,... |
CDSS_686107 | CDSS | #include <stdio.h>
int sort(const void *a, const void *b) {
return (*(int*)a - *(int*)b);
}
int main(void) {
int N;
int a[100000] = { 0 };
int ans = 0;
scanf("%d", &N);
for (int i = 0; i < N; i++) {
scanf("%d", &a[i]);
}
qsort(a, N, sizeof(int), sort);
for (int i = 0; i < N; i++) {
if (a[i] == a[i + 1]... | 892 | memory_bytes | {'s_id': 's208544050', 'p_id': 'p03607', 'u_id': 'u203927510', 'date': '1505317211', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '25', 'memory': '892', 'code_size': '380'} | [
{
"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 sort(const void *a, const void *b) {\n\treturn (*(int*)a - *(int*)b);\n}\n\nint main(void) {\n\tint N;\n\t... |
CDSS_622318 | CDSS |
#pragma warning(disable:4996)
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <float.h>
#pragma region 定義
#define i_cin(X) scanf("%d", &X)
#define i_cin2(X,Y) scanf("%d %d",&X,&Y)
#define i_cin4(X,Y,Z,W) scanf("%d %d %d %d",&X,&Y,&Z,&W)
#define i_cin3(X,Y,Z) scanf("%d %d %d",&X,... | 128 | memory_bytes | {'s_id': 's933374920', 'p_id': 'p03265', 'u_id': 'u918599282', 'date': '1589900760', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '4245'} | [
{
"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#pragma warning(disable:4996)\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <math.h>\n#include <float.... |
CDSS_548136 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#define ll long long
#define rep(i,l,r)for(ll i=(l);i<(r);i++)
#define repp(i,l,r,k)for(ll i=(l);i<(r);i+=(k))
#define INF ((1LL<<62)-(1LL<<31))
#define max(p,q)((p)>(q)?(p):(q))
#define min(p,q)((p)<(q)?(p):(q))
#define bit(n,m)(((n)>>(m))&1)... | 128 | memory_bytes | {'s_id': 's903284153', 'p_id': 'p02970', 'u_id': 'u382163500', 'date': '1563670873', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '850'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <math.h>\n#define ll long long\n#define rep(i,l,r)for(ll i=(l... |
CDSS_236244 | CDSS | #include <stdio.h>
#include <math.h>
int main(){
int i,n,s[1000];
double h,sum;
while(1){
scanf("%d",&n);
if(!n) break;
sum = 0;
h = 0;
for(i=0;i<n;i++){
scanf("%d",&s[i]);
sum += s[i];
}
sum /= n;
... | 2,044 | memory_bytes | {'s_id': 's080865678', 'p_id': 'p02381', 'u_id': 'u728027937', 'date': '1591194034', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2044', 'code_size': '496'} | [
{
"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 int i,n,s[1000];\n double h,sum;\n \n while(1){\n\n scanf(... |
CDSS_420130 | CDSS | #include <stdio.h>
int main(void)
{
int a, b, c, k;
scanf("%d", &a);
scanf("%d", &b);
scanf("%d", &c);
scanf("%d", &k);
if(k <= a){
printf("%d\n", k);
}
else if(k <= (a + b)){
printf("%d\n", a);
}
else{
printf("%d\n", a-(... | 1,736 | memory_bytes | {'s_id': 's166145466', 'p_id': 'p02682', 'u_id': 'u946346344', 'date': '1589677213', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '1736', 'code_size': '355'} | [
{
"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\nint main(void)\n{\n int a, b, c, k;\n scanf(\"%d\", &a);\n scanf(\"%d\", &b);\n scanf(\"%d\", &c... |
CDSS_141009 | CDSS | #include<stdio.h>
#include<string.h>
int moguru(int[][100],int);
int n,ans[100];
int main(){
int i,j,a[100][100],mita[100],now,to,leng;
scanf("%d",&n);
for(i=0;i<n;i++){
ans[i]=-1;
}
for(i=0;i<n;i++)
for(j=0;j<n;j++)
a[i][j] = -1;
for(i=0;i<n;i++){
scanf("%d",&now);
scanf("%d",&now);
... | 2,044 | memory_bytes | {'s_id': 's165290380', 'p_id': 'p02242', 'u_id': 'u087396673', 'date': '1580110705', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2044', 'code_size': '731'} | [
{
"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 moguru(int[][100],int);\nint n,ans[100];\nint main(){\n int i,j,a[100][100],mita[100],no... |
CDSS_509027 | CDSS | #include <stdio.h>
int main(){
int A1,A2,A3;
scanf("%d%d%d", &A1, &A2, &A3);
if(A1+A2+A3 >= 22)
{
printf("bust");
}
else {
printf("win");
}
return 0;
} | 1,708 | memory_bytes | {'s_id': 's612333391', 'p_id': 'p02835', 'u_id': 'u816631826', 'date': '1600220913', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1708', '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>\nint main(){\nint A1,A2,A3;\nscanf(\"%d%d%d\", &A1, &A2, &A3);\n\n\tif(A1+A2+A3 >= 22)\n{\n\t\tprintf(\"bust\");\... |
CDSS_620139 | CDSS | #include <stdio.h>
int
main(void)
{
int A, B;
scanf("%d %d", &A, &B);
puts(A % 2 && B % 2 ? "Yes" : "No");
return (0);
}
| 128 | memory_bytes | {'s_id': 's581633822', 'p_id': 'p03260', 'u_id': 'u874723578', 'date': '1561422661', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '126'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint\nmain(void)\n{\n\tint A, B;\n\tscanf(\"%d %d\", &A, &B);\n\tputs(A % 2 && B % 2 ? \"Yes\" : \"No\");\n\tre... |
CDSS_421409 | CDSS | #include <stdio.h>
#include <stdlib.h>
int main(void) {
int n,i,p=1,t=0;
int start=0;
long long int k;
long long int loop;
int a[300000]={};
int *b;
b=(int*)malloc(sizeof(int)*300000);
for(i=0;i<220000;i++){
b[i]=0;
}
b[1]=1;
(void)scanf("%d %lld",&n,&k);
for(i=1;i<=n;i++){
(void)scanf("%d",&a[i]);
}... | 3,688 | memory_bytes | {'s_id': 's917659985', 'p_id': 'p02684', 'u_id': 'u173404831', 'date': '1589170563', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '28', 'memory': '3688', 'code_size': '720'} | [
{
"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\tint n,i,p=1,t=0;\n int start=0;\n\tlong long int k;\n\tlong long int... |
CDSS_42507 | CDSS | #include <stdio.h>
int prime[999999];
int main() {
int i, k, n, N = 0;
for(i = 2; i <= 999999; i++) {
prime[i] = 1;
}
for(i = 2; i*i <= 999999; i++) {
if(prime[i]) {
for(k = 2 * i; k <= 999999; k += i) {
prime[k] = 0;
}
}
}
for(i = 2; i <= 999999; i++) {
if(prime[i] =... | 4,500 | memory_bytes | {'s_id': 's814943346', 'p_id': 'p00009', 'u_id': 'u536452247', 'date': '1449671246', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '4500', 'code_size': '496'} | [
{
"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 prime[999999];\n \nint main() {\n int i, k, n, N = 0;\n for(i = 2; i <= 999999; i++) {\n prime[i] = ... |
CDSS_376478 | CDSS | #include <stdio.h>
int main(void){
long long a,b,c,d,max;
scanf("%lld%lld%lld%lld",&a,&b,&c,&d);
max=a*c;
if(max<b*d) max=b*d;
if(max<a*d) max=a*d;
if(max<c*b) max=c*b;
printf("%lld\n",max);
return 0;
} | 1,696 | memory_bytes | {'s_id': 's267312231', 'p_id': 'p02553', 'u_id': 'u728662995', 'date': '1600029783', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '8', 'memory': '1696', 'code_size': '223'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n long long a,b,c,d,max;\n scanf(\"%lld%lld%lld%lld\",&a,&b,&c,&d);\n max=a*c;\n if(max<b... |
CDSS_303106 | CDSS | #include <stdio.h>
int main(void)
{
int x, y;
x = 1, y = 1;
while (1)
{
scanf("%d %d", &x, &y);
if ((0 <= x)&&(y <= 10000))
{
if ((x == 0) && (y == 0))
{
break;
}
else
{
if(x < y)
... | 1,980 | memory_bytes | {'s_id': 's544786281', 'p_id': 'p02397', 'u_id': 'u345942558', 'date': '1528987668', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1980', 'code_size': '555'} | [
{
"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 x, y;\n x = 1, y = 1;\n while (1)\n {\n scanf(\"%d %d\", &x, &y);\n ... |
CDSS_70601 | CDSS | #include <stdio.h>
typedef struct{
int no;
double w;
double h;
int flag;
}stu;
int main(void) {
stu a[500];
int i=0;
while( scanf("%d,%lf,%lf", &a[i].no, &a[i].w, &a[i].h) != EOF) {
double bmi=a[i].w/a[i].h/a[i].h;
a[i].flag=0;
if(bmi>=25.0) a[i].flag=1;
i++;
}
int j;
for(j=0; j<i; j++) {
... | 632 | memory_bytes | {'s_id': 's060702888', 'p_id': 'p00075', 'u_id': 'u979000952', 'date': '1403162822', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '632', 'code_size': '381'} | [
{
"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\tint no;\n\tdouble w;\n\tdouble h;\n\tint flag;\n}stu;\n\nint main(void) {\n\tstu a[500];\n\... |
CDSS_248134 | CDSS | #include <stdio.h>
int main(void){
int n;
scanf("%d",&n);
printf("%d\n",n * n * n);
return 0;
} | 596 | memory_bytes | {'s_id': 's274443250', 'p_id': 'p02388', 'u_id': 'u682037079', 'date': '1393007438', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '96'} | [
{
"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){\nint n;\nscanf(\"%d\",&n);\nprintf(\"%d\\n\",n * n * n);\nreturn 0;\n}\nPredict its memory foo... |
CDSS_48378 | CDSS | #include <stdio.h>
int main(void)
{
int i;
int area;
int n;
while (scanf("%d", &n) != EOF){
area = 0;
for (i = n; i < 600; i += n){
area += n * i * i;
}
printf("%d\n", area);
}
return (0);
} | 596 | memory_bytes | {'s_id': 's429162724', 'p_id': 'p00014', 'u_id': 'u409597161', 'date': '1403152076', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '213'} | [
{
"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 i;\n\tint area;\n\tint n;\n\n\twhile (scanf(\"%d\", &n) != EOF){\n\t\tarea = 0;\n\n\t... |
CDSS_305526 | CDSS | #include <stdio.h>
int main(void)
{
int a, b, c;
int divide, cnt = 0;
scanf("%d %d %d", &a, &b, &c);
for (divide = a; divide <= b; divide++){
if (c % divide == 0){
cnt++;
}
}
printf("%d\n", cnt);
return 0;
} | 596 | memory_bytes | {'s_id': 's803126452', 'p_id': 'p02398', 'u_id': 'u824148341', 'date': '1481181281', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '269'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n \nint main(void)\n{\n int a, b, c;\n int divide, cnt = 0;\n \n scanf(\"%d %d %d\", &a, &b, &c);\n f... |
CDSS_332400 | CDSS | #include<stdio.h>
int main()
{
int W,H,i,j;
for(i=1;;i++)
{
scanf("%d%d",&H,&W);
if(H==0 && W==0){break;}
for(i=1;i<=H;i++)
{
for(j=1;j<=W;j++)
{
printf("#");
}
printf("\n");
}
printf("\n");
... | 2,108 | memory_bytes | {'s_id': 's810828085', 'p_id': 'p02403', 'u_id': 'u274938043', 'date': '1586019007', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', '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>\nint main()\n{\n int W,H,i,j;\n for(i=1;;i++)\n {\n scanf(\"%d%d\",&H,&W);\n if(H==0 && W==... |
CDSS_651971 | CDSS | #include<stdio.h>
int main()
{ int A, B, C, D;
scanf("%d%d%d%d", &A,&B,&C,&D);
if(A<=B && C<=D ){printf("%d", (A+C));}
else if(B<=A && D<=C){printf("%d", (B+D));}
else if(A<=B && D<=C){printf("%d", (A+D));}
else{printf("%d", (B+C));}
return 0;
}
| 1,732 | memory_bytes | {'s_id': 's670090245', 'p_id': 'p03399', 'u_id': 'u863370423', 'date': '1596065149', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1732', 'code_size': '277'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{ int A, B, C, D;\n scanf(\"%d%d%d%d\", &A,&B,&C,&D);\n if(A<=B && C<=D ){printf(\"%d\", (A+C... |
CDSS_609345 | CDSS | #include<stdio.h>
main()
{
char s;
s = getchar();
if (s == '7' || s == '5' || s == '3')
printf("YES");
else
printf("NO");
} | 128 | memory_bytes | {'s_id': 's351976866', 'p_id': 'p03210', 'u_id': 'u682721153', 'date': '1545358387', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '165'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n main()\n {\n char s;\n s = getchar();\n if (s == '7' || s == '5' || s == '3')\n printf(\"YES\")... |
CDSS_339280 | CDSS | #include <stdio.h>
int main()
{
int i, n, x;
scanf("%d", &n);
for(i=1; i<=n; ++i){
x = i;
if(x%3 == 0){
printf(" %d", i);
} else {
while(x){
if(x%10 == 3){
printf(" %d", i);
break;
... | 600 | memory_bytes | {'s_id': 's999853559', 'p_id': 'p02406', 'u_id': 'u663449350', 'date': '1494567378', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', '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\nint main()\n{\n int i, n, x;\n \n scanf(\"%d\", &n);\n \n for(i=1; i<=n; ++i){\n x = i;\... |
CDSS_216041 | CDSS | #include<stdio.h>
#define N 100000
struct Node{int r,l,in;};
struct Node T[N];
int n, length[N];
int depth(int, int);
int main() {
int i,id,k,c,j,l,in;
scanf("%d",&n);
for(i = 0 ; i < n ; i++) {
T[i].r = -1;
T[i].l = -1;
T[i].in = -1;
}
for(i = 0 ; i < n ; i++) {
scanf("%d%d",&id,&k);
... | 5,300 | memory_bytes | {'s_id': 's638755277', 'p_id': 'p02279', 'u_id': 'u548515518', 'date': '1497494540', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '60', 'memory': '5300', 'code_size': '1081'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#define N 100000\n\nstruct Node{int r,l,in;};\nstruct Node T[N];\n\nint n, length[N];\n\nint depth(int, int);\n\n... |
CDSS_522952 | CDSS | N,M,L,Q;
D[301][301];
i,j,k;
a,b,c;
main()
{
scanf("%d%d%d",&N,&M,&L);
for(i=0;i<N;i++)for(j=0;j<N;j++)D[i][j]=1000000001;
for(i=0;i<M;i++)
{
scanf("%d%d%d",&a,&b,&c);
--a;
--b;
D[a][b]=D[b][a]=c;
}
for(k=0;k<N;k++)for(i=0;i<N;i++)for(j=0;j<N;j++)
if(D[i][j]>D[i][k]+D[k][j])D[i][j]=D[i][k]+D[k][j];
for... | 768 | memory_bytes | {'s_id': 's454071679', 'p_id': 'p02889', 'u_id': 'u657913472', 'date': '1571564853', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '84', 'memory': '768', 'code_size': '623'} | [
{
"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,M,L,Q;\nD[301][301];\ni,j,k;\na,b,c;\nmain()\n{\n\tscanf(\"%d%d%d\",&N,&M,&L);\n\tfor(i=0;i<N;i++)for(j=0;j<N;j++)D[i][j]=10000000... |
CDSS_682405 | CDSS | #include<stdio.h>
#include<string.h>
int main(void){
char s[51],t[51]={'0'};
scanf("%s",s);
strncpy(t,s,strlen(s)-8);
printf("%s",t);
return 0;
} | 128 | memory_bytes | {'s_id': 's038270680', 'p_id': 'p03577', 'u_id': 'u612175324', 'date': '1538685737', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '155'} | [
{
"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[51],t[51]={'0'};\n scanf(\"%s\",s);\n strncpy(t,s,strlen(s)-8);\n... |
CDSS_201505 | CDSS | #include<stdio.h>
#define MAX 500000
#define SENTINEL 2000000000
int L[MAX/2+2], R[MAX/2+2];
int c;
void merge(int e[], int n, int left, int mid, int right){
int i, j, k;
int x = mid - left;
int y = right - mid;
for ( i = 0; i < x; i++ ) L[i] = e[left + i];
for ( i = 0; i < y; i++ ) R[i] = e[mid + i];
L[... | 5,636 | memory_bytes | {'s_id': 's092900092', 'p_id': 'p02272', 'u_id': 'u961385580', 'date': '1530841169', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '110', 'memory': '5636', 'code_size': '1050'} | [
{
"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 500000\n#define SENTINEL 2000000000\n\nint L[MAX/2+2], R[MAX/2+2];\nint c;\n\nvoid merge(int e[], int... |
CDSS_419398 | CDSS | #include<stdio.h>
#include<string.h>
int main()
{
char arr[15],str[15];
scanf("%s",arr);
scanf("%s",str);
int ln=strlen(arr);
char sur[15];
str[ln]='\0';
int res=strcmp(arr,str);
if(res==0)
{
printf("Yes\n");
}
else
{
printf("No\n");
}
} | 1,664 | memory_bytes | {'s_id': 's958155058', 'p_id': 'p02681', 'u_id': 'u157145860', 'date': '1589160231', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '1664', 'code_size': '255'} | [
{
"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\tchar arr[15],str[15];\n\tscanf(\"%s\",arr);\n\tscanf(\"%s\",str);\n\tint ln=... |
CDSS_691632 | CDSS | #include <stdio.h>
int main(void) {
int n, m;
scanf("%d %d", &n, &m);
printf("%d\n", (n - 1)*(m - 1));
return 0;
} | 128 | memory_bytes | {'s_id': 's019934009', 'p_id': 'p03635', 'u_id': 'u203927510', 'date': '1506007271', '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 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, m;\n\n\tscanf(\"%d %d\", &n, &m);\n\n\tprintf(\"%d\\n\", (n - 1)*(m - 1));\n\n\tret... |
CDSS_54000 | CDSS | #include <stdio.h>
int main(void)
{
int n,i;
scanf("%d",&n);
for(i=0;i<n;i++){
float x1,x2,x3,x4,y1,y2,y3,y4,s1,s2;
scanf("%f %f %f %f %f %f %f %f",&x1,&y1,&x2,&y2,&x3,&y3,&x4,&y4);
s1=(y2-y1)/(x2-x1);
s2=(y4-y3)/(x4-x3);
if(s1==s2) puts("YES");
else puts("NO");
}
return 0;
} | 616 | memory_bytes | {'s_id': 's782573647', 'p_id': 'p00021', 'u_id': 'u700389021', 'date': '1410268095', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '616', 'code_size': '295'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void)\n{\n\tint n,i;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i<n;i++){\n\t\tfloat x1,x2,x3,x4,y1,y2,y3,y4,s1,s2... |
CDSS_638638 | CDSS | #include <stdio.h>
int main(){
int d,n;
scanf("%d %d",&d,&n);
if(n == 100)n=101;
switch(d){
case 0:
printf("%d\n",n);
break;
case 1:
printf("%d\n",n*100);
break;
case 2:
printf("%d\n",n*10000);
break;
}
return 0;
}
| 128 | memory_bytes | {'s_id': 's367904234', 'p_id': 'p03324', 'u_id': 'u303854313', 'date': '1530132645', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '276'} | [
{
"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,n;\n scanf(\"%d %d\",&d,&n);\n if(n == 100)n=101;\n switch(d){\n case 0:\n pri... |
CDSS_307510 | CDSS | #include<stdio.h>
int main(){
int a,b,c,temp;
scanf("%d %d %d",&a,&b,&c);
for(int i=a;i<=b;i++){
if(c%i==0) temp++;
}
printf("%d\n",temp);
return 0;
}
| 2,104 | memory_bytes | {'s_id': 's812389688', 'p_id': 'p02398', 'u_id': 'u037034101', 'date': '1545188274', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '195'} | [
{
"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 a,b,c,temp;\n\n scanf(\"%d %d %d\",&a,&b,&c);\n\n for(int i=a;i<=b;i++){\n i... |
CDSS_376783 | CDSS | #include <stdio.h>
int main(void){
long a, b, c, d;
scanf("%ld %ld %ld %ld ", &a, &b, &c, &d);
long max = a * c;
if(max < a * d) max = a * d;
if(max < b * c) max = b * c;
if(max < b * d) max = b * d;
printf("%ld\n",max);
}
| 2,156 | memory_bytes | {'s_id': 's035537466', 'p_id': 'p02553', 'u_id': 'u930207599', 'date': '1600024576', 'language': 'C', 'original_language': 'C (Clang 10.0.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '2156', '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 main(void){\n long a, b, c, d;\n scanf(\"%ld %ld %ld %ld \", &a, &b, &c, &d);\n long max = a * c;\n... |
CDSS_625390 | CDSS | #include<stdio.h>
int main(){
int a,b;
scanf("%d", &a);
scanf("%d", &b);
printf("%d\n", a*b-a-b+1);
return 0;
}
| 128 | memory_bytes | {'s_id': 's891808698', 'p_id': 'p03280', 'u_id': 'u156327988', 'date': '1534643191', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '125'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n int a,b;\n scanf(\"%d\", &a);\n scanf(\"%d\", &b);\n\n printf(\"%d\\n\", a*b-a-b+1);\n\n ret... |
CDSS_337785 | CDSS | #include "stdio.h"
int main(void)
{
int n,i,t;
scanf("%d",&n);
for(i=1;i<=n;i++)
{
if(i%3==0)
{
printf(" %d",i);
continue;
}
t=i;
while(t>2)
{
if(t%10==3)
{
printf(" %d",i);
break;
}
t /= 10;
}
}
printf("\n");
return 0;
} | 600 | memory_bytes | {'s_id': 's006982604', 'p_id': 'p02406', 'u_id': 'u983310902', 'date': '1417680417', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', '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(void)\n{\n\tint n,i,t;\n \tscanf(\"%d\",&n);\n \tfor(i=1;i<=n;i++)\n \t{\n \t\tif(i%3==0)\n \t\t{\n... |
CDSS_710348 | CDSS | #include <stdio.h>
int main()
{
char s1[100],s2[100],s3[100];
scanf("%s %s %s",&s1,&s2,&s3);
s1[0]=(s1[0]-32);
s2[0]=(s2[0]-32);
s3[0]=(s3[0]-32);
printf("%c%c%c\n", s1[0],s2[0],s3[0]);
return 0;
}
| 1,708 | memory_bytes | {'s_id': 's224322859', 'p_id': 'p03737', 'u_id': 'u018679195', 'date': '1593470812', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1708', 'code_size': '226'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main()\n{\n char s1[100],s2[100],s3[100];\n scanf(\"%s %s %s\",&s1,&s2,&s3);\n s1[0]=(s1[0]-32);\n ... |
CDSS_407828 | CDSS | #include<stdio.h>
int main()
{
int n;
scanf("%d", &n);
int zero = 0;
long long a[n];
int over = 0;
for (int i = 0; i < n; i++)
{
scanf("%lld", &a[i]);
if (a[i] == 0) zero = 1;
if (a[i] > 1000000000000000000) over = 1;
}
if (zero) printf("0\n");
else
{
long long result = 1;
for(int i = 0; i < n... | 2,456 | memory_bytes | {'s_id': 's530326571', 'p_id': 'p02658', 'u_id': 'u863370423', 'date': '1597449393', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '29', 'memory': '2456', 'code_size': '517'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main()\n{\n\tint n;\n\tscanf(\"%d\", &n);\n\tint zero = 0;\n\tlong long a[n];\n\t\n\t\tint over = 0;\n\tfor... |
CDSS_547120 | CDSS | #include<stdio.h>
int main(void)
{
int a;
scanf("%d",&a);
printf("%d\n",3*a*a);
return 0;
} | 128 | memory_bytes | {'s_id': 's315364838', 'p_id': 'p02969', 'u_id': 'u441823651', 'date': '1563674200', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '98'} | [
{
"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;\n scanf(\"%d\",&a);\n printf(\"%d\\n\",3*a*a);\n return 0;\n}\nPredict its memory ... |
CDSS_95635 | CDSS | #include<stdio.h>
int main(void){
int x, y, a, b, r, sum;
scanf("%d %d", &x, &y);
sum = x + y + 2;
a = x; b = y;
if (x < y) { b = x; a = y; }
r = a % b;
while ( r != 0) {
a = b;
b = r;
r = a % b;
}
sum -= ( b + 1);
printf("%d\n", sum);
return 0;
} | 1,828 | memory_bytes | {'s_id': 's107536835', 'p_id': 'p00356', 'u_id': 'u328199937', 'date': '1508634972', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1828', 'code_size': '298'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n int x, y, a, b, r, sum;\n scanf(\"%d %d\", &x, &y);\n sum = x + y + 2;\n a = x; b = y;\... |
CDSS_585221 | CDSS | #include <stdio.h>
#include <string.h>
int main(void)
{
int N;
int Red_count = 0;
int Blue_count = 0;
scanf("%d", &N);
char s[N], str[1];
scanf("%s", s);
for(int i = 0; i < N; i++){
if(s[i] == 'R'){
Red_count = Red_count + 1;
}
else if (s[i] == 'B')... | 128 | memory_bytes | {'s_id': 's903522084', 'p_id': 'p03080', 'u_id': 'u981518167', 'date': '1553993144', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '643'} | [
{
"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{\n int N;\n int Red_count = 0;\n int Blue_count = 0; \n s... |
CDSS_703105 | CDSS | #include <stdio.h>
int main(void)
{
int a,b,c,e;
char A[27]={1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1};
scanf("%s",A);
c=0;
e=26;
for(b=0;b<27;b++){
if(A[b]==1){
e=b-1;
b=1000;
}
}
for(a=0;a<e;a++){
for(b=0;b<e;b++){
... | 1,724 | memory_bytes | {'s_id': 's384070894', 'p_id': 'p03698', 'u_id': 'u655007941', 'date': '1592851765', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1724', '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(void)\n{\n int a,b,c,e;\n char A[27]={1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1};\n... |
CDSS_410821 | CDSS | #include<stdio.h>
int main()
{
long long a,b,c;
scanf("%lld %lld.%lld",&a,&b,&c);
printf("%lld\n",a*((b*100)+c)/100);
return 0;
} | 1,732 | memory_bytes | {'s_id': 's452414617', 'p_id': 'p02659', 'u_id': 'u785727223', 'date': '1598304442', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1732', 'code_size': '133'} | [
{
"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\tlong long a,b,c;\n\tscanf(\"%lld %lld.%lld\",&a,&b,&c);\n\tprintf(\"%lld\\n\",a*((b*100)+c)/100)... |
CDSS_545856 | CDSS | #include <stdio.h>
#include <stdlib.h>
int main(void) {
long n, sum=0;
scanf("%ld", &n);
int a[n+1], b[n];
for(int i = 0; i<=n; i++) scanf("%d", &a[i]);
for(int i = 0; i<n; i++) scanf("%d", &b[i]);
for(int i=n-1; i>=0; i--){
int nokoriTaoseru = b[i] - a[i+1];
if(nokoriTaoseru > 0... | 896 | memory_bytes | {'s_id': 's943443040', 'p_id': 'p02959', 'u_id': 'u699683008', 'date': '1564283434', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '26', 'memory': '896', 'code_size': '698'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\nint main(void) {\n long n, sum=0;\n scanf(\"%ld\", &n);\n int a[n+1], b[n];\n f... |
CDSS_252010 | CDSS | #include <stdio.h>
int main(void) {
int x,y,z,v;
scanf("%d %d\n",&x,&y);
z=x*y;
v=2*x+2*y;
printf("%d %d\n",z,v);
return 0;
} | 600 | memory_bytes | {'s_id': 's614808255', 'p_id': 'p02389', 'u_id': 'u107631366', 'date': '1461231131', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', '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\nint main(void) {\n\t\n\t int x,y,z,v;\n\t scanf(\"%d %d\\n\",&x,&y);\n\t z=x*y;\n\t v=2*x+2*y;\n\t printf(\"%d... |
CDSS_498667 | CDSS | #include<stdio.h>
int main(){
int n,i,j,count=0;
int a[11][11];
for(i=0;i<10;i++)
for(j=0;j<10;j++)
a[i][j]=0;
scanf("%d",&n);
for(i=1;i<=n;i++){
j=i;
while(j/10!=0)
j/=10;
a[j][i%10]++;
}
for(i=1;i<=9;i++){
for(j=i;j<=9;j++){
if(i==j)
count+=a[i][j]*a[i][j];
... | 128 | memory_bytes | {'s_id': 's642860595', 'p_id': 'p02792', 'u_id': 'u917851778', 'date': '1586901392', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '128', 'code_size': '413'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int n,i,j,count=0;\n int a[11][11];\n for(i=0;i<10;i++)\n for(j=0;j<10;j++)\n a[i][j]=0;... |
CDSS_116774 | CDSS | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
#define BUF_SIZE ROW_MAX*3
#define ROW_MAX 30
#define COL_MAX 30
int get_int2(int *a1, int *a2) {
#ifdef BUF_SIZE
char line[BUF_SIZE];
if(!fgets(line, BUF_SIZE, stdin)) return -1;
sscanf(line, "%d %d", a1, a2);
#else
#error
#endif
return 0;
}
// <arr... | 1,988 | memory_bytes | {'s_id': 's270979071', 'p_id': 'p00747', 'u_id': 'u933484853', 'date': '1584693813', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1988', 'code_size': '3378'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n\n#define BUF_SIZE ROW_MAX*3\n#define ROW_MAX 30\n#define COL_MAX 30\n... |
CDSS_193452 | CDSS | // Binary Search
#include <stdio.h>
int binarySearch(int*, int, int);
int main(){
int i, n, q, S[100000], T[50000], count=0;
// 数列Tに含まれる整数の数と、その内容を入力
scanf("%d", &n);
for(i=0; i < n; i++){
scanf("%d", &S[i]);
}
// 数列Sに含まれる整数の数と、その内容を入力
scanf("%d", &q);
for(i=0; i < q; i++){
scanf("%d", &T[i]... | 2,412 | memory_bytes | {'s_id': 's321414702', 'p_id': 'p02268', 'u_id': 'u610113905', 'date': '1529990753', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2412', 'code_size': '1068'} | [
{
"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// Binary Search\n#include <stdio.h>\n\nint binarySearch(int*, int, int);\n\nint main(){\n int i, n, q, S[100000], T[50000], count=... |
CDSS_312305 | CDSS | #include<stdio.h>
int main(void)
{
int a,b,d,r;
double f;
scanf("%d %d",&a,&b);
d=a/b;
r=a%b;
f=(double)a/b;
printf("%d %d %21.9f\n",d,r,f);
}
| 2,052 | memory_bytes | {'s_id': 's961178015', 'p_id': 'p02399', 'u_id': 'u411780044', 'date': '1561090493', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2052', 'code_size': '170'} | [
{
"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,d,r;\n double f;\n\n scanf(\"%d %d\",&a,&b);\n \n d=a/b;\n r=a%b;\n f=(double... |
CDSS_481917 | CDSS | #include <stdio.h>
#include <stdlib.h>
int main(void)
{
int N;
scanf("%d", &N);
printf("%d\n",(N+1)/2);
return (0);
}
| 128 | memory_bytes | {'s_id': 's727683892', 'p_id': 'p02759', 'u_id': 'u062865912', 'date': '1583114589', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '124'} | [
{
"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\t\tmain(void)\n{\n\tint N;\n\tscanf(\"%d\", &N);\n\tprintf(\"%d\\n\",(N+1)/2);\n\tret... |
CDSS_161714 | CDSS | #include <stdio.h>
#include <limits.h>
#define MAX_N 200000
typedef long long ll;
ll max(ll a, ll b) {
if(a < b) return b;
return a;
}
int main() {
ll n, R[MAX_N], mn = LLONG_MAX/2, ans = -LLONG_MAX;
int i;
scanf("%lld", &n);
for(i = 0; i < n; i++) scanf("%lld", R+i);
for(i = 0; i < n; i++) {
ans = ... | 2,160 | memory_bytes | {'s_id': 's125673417', 'p_id': 'p02258', 'u_id': 'u767369662', 'date': '1492051332', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '30', 'memory': '2160', '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>\n#include <limits.h>\n#define MAX_N 200000\ntypedef long long ll;\nll max(ll a, ll b) {\n if(a < b) return b;\n ... |
CDSS_651137 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<math.h>
typedef long long int int64;
#define MAX(a,b) ((a)>(b)?(a):(b))
#define MIN(a,b) ((a)<(b)?(a):(b))
#define ABS(a) ((a)>(0)?(a):-(a))
void run(void){
int a,b,k;
scanf("%d%d%d",&a,&b,&k);
int i;
if(a+k-1<b+1-k){
for(i=1;i<=k;i++) printf("%d\n",a+i-1);
... | 128 | memory_bytes | {'s_id': 's491921081', 'p_id': 'p03386', 'u_id': 'u425248533', 'date': '1541068124', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '460'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#include<math.h>\n\ntypedef long long int int64;\n\n#define MAX(a,b) ((a)>(b)?(a):(b))\n#defi... |
CDSS_656437 | CDSS | #include <stdio.h>
int main(void) {
int N;
int asumikana = 0;
int i;
if (scanf("%d", &N) != 1) return 1;
for (i = 0; i < N; i++) {
char S[4];
if (scanf("%3s", S) != 1) return 1;
switch (S[0]) {
case 'P': asumikana |= 1; break;
case 'W': asumikana |= 2; break;
case 'G': asumikana |= 4; break;
cas... | 128 | memory_bytes | {'s_id': 's168876074', 'p_id': 'p03424', 'u_id': 'u646118499', 'date': '1578571922', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '547'} | [
{
"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;\n\tint asumikana = 0;\n\tint i;\n\tif (scanf(\"%d\", &N) != 1) return 1;\n\tfor (i ... |
CDSS_387822 | CDSS | #include <stdio.h>
#include <stdlib.h>
#define rep(i,l,r)for(int i=(l);i<(r);i++)
#define W 700
typedef struct tuple{int x,y;}T;
int qidx[500010];
T query[500010];//[x,y]
int qcmp(const void*p,const void*q){
if(query[*(int*)p].x/W<query[*(int*)q].x/W)return -1;
if(query[*(int*)p].x/W>query[*(int*)q].x/W)return 1;
... | 15,244 | memory_bytes | {'s_id': 's730652283', 'p_id': 'p02599', 'u_id': 'u382163500', 'date': '1596392579', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '875', 'memory': '15244', 'code_size': '1185'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#define rep(i,l,r)for(int i=(l);i<(r);i++)\n#define W 700\n\ntypedef struct tuple{int x,y;}... |
CDSS_300829 | CDSS | #include <stdio.h>
int main(){
int x,y,i,a;
for(i = 0 ; 1 ; i++){
scanf("%d%d",&x,&y);
if(x == 0 && y == 0) break;
if(x > y){
a = x;
x = y;
y = a;
}
printf("%d %d\n",x,y);
}
return 0;
} | 600 | memory_bytes | {'s_id': 's521798538', 'p_id': 'p02397', 'u_id': 'u924084996', 'date': '1474082593', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '243'} | [
{
"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 x,y,i,a;\n \n for(i = 0 ; 1 ; i++){\n scanf(\"%d%d\",&x,&y);\n if(x == 0 && y =... |
CDSS_184989 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
typedef struct _node
{
int key;
struct _node *next;
struct _node *prev;
} node;
node *head;
node *makenode(int);
void insert(int);
void delete(int);
void deleteFirst();
void deleteLast();
int main()
{
int i, n, a;
char op[16];
node *x;
... | 31,784 | memory_bytes | {'s_id': 's907732757', 'p_id': 'p02265', 'u_id': 'u534407423', 'date': '1493309140', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '430', 'memory': '31784', 'code_size': '1881'} | [
{
"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{\n int key;\n struct _node *next;\n str... |
CDSS_468702 | CDSS | #include <stdio.h>
#include<string.h>
int main(){
char str[6];
scanf("%s", str);
if(str[2] == str[3] && str[4] == str[5]){
printf("Yes\n");
}else{
printf("No\n");
}
return 0;
} | 128 | memory_bytes | {'s_id': 's918164244', 'p_id': 'p02723', 'u_id': 'u416157051', 'date': '1585448914', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '217'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include<string.h>\n\nint main(){\n char str[6];\n scanf(\"%s\", str);\n if(str[2] == str[3] && str[4] ... |
CDSS_370588 | CDSS |
#include <stdio.h>
int main(void) {
char in[201], tmp[201];
int m, n, i, j;
while (1) {
scanf("%200s ", in);
if (in[0] == '-')
break;
scanf("%d ", &m);
while (m--) {
scanf("%d ", &n);
for (i = 0; in[i+n] != '\0'; i++) {
tmp[i] = in[i+n];
}
for (j = 0; j < n; j++) {
tmp[i+j] = in[j];... | 2,044 | memory_bytes | {'s_id': 's529630663', 'p_id': 'p02420', 'u_id': 'u500197648', 'date': '1530322932', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2044', 'code_size': '441'} | [
{
"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>\nint main(void) {\n\tchar in[201], tmp[201];\n\tint m, n, i, j;\n\n\twhile (1) {\n\t\tscanf(\"%200s \", in);\n\... |
CDSS_677065 | CDSS | #include <stdio.h>
#include <string.h>
int main (int argc,char **argv)
{
char x[2],y[2];
int a = 0;
scanf("%s %s",x,y);
a = strcmp(x,y);
if (a == 0)
{
printf("=\n");
}
else if (a < 0)
{
printf("<\n");
}
else
{
printf(">\n");
}
return 0;
} | 128 | memory_bytes | {'s_id': 's712428191', 'p_id': 'p03547', 'u_id': 'u746675075', 'date': '1524969246', '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 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 **argv)\n{\n\tchar x[2],y[2];\n\tint a = 0;\n\n\tscanf(\"%s %s\",... |
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 should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#include<math.h>\n#include<string.h>\n#include<stdbool.h>\ntypedef long long ll;\ntypedef lon... |
CDSS_490649 | CDSS | #include<stdio.h>
int main(){
char t[100]; scanf("%s",t); int i=0;
while(t[i]!='\0'){
printf("x"); i++;
}
printf("\n");
return 0;
} | 128 | memory_bytes | {'s_id': 's728684675', 'p_id': 'p02778', 'u_id': 'u757014735', 'date': '1584878533', '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\nint main(){\n char t[100]; scanf(\"%s\",t); int i=0;\n while(t[i]!='\\0'){\n printf(\"x\"); i++;\n }\n p... |
CDSS_534815 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#define input_i(x) scanf("%d", &x)
#define input_lli(x) scanf("%lld", &x)
#define input_s(x) scanf("%s", x)
#define BUFSIZE 100000
int main(int argc, char const *argv[]) {
long long int i, buf= 0, ans= 0;
long long int N;
input_... | 128 | memory_bytes | {'s_id': 's715086965', 'p_id': 'p02924', 'u_id': 'u571146948', 'date': '1567366746', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '619', 'memory': '128', 'code_size': '424'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <math.h>\n\n#define input_i(x) scanf(\"%d\", &x)\n#define inp... |
CDSS_340679 | CDSS |
#include <stdio.h>
#include <stdlib.h>
int** make2dArray(int x,int y){
int** array = (int**)malloc(sizeof(int*) * x);
for (int i = 0; i < x; i++) {
array[i] = (int*)malloc(sizeof(int) * y);
}
return array;
}
void printArray(int* a, int length) {
for (int i = 0; i < length; i++) {
printf("%d ", a[i]);
}
}
vo... | 2,096 | memory_bytes | {'s_id': 's221867585', 'p_id': 'p02406', 'u_id': 'u025170431', 'date': '1585224750', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2096', 'code_size': '1619'} | [
{
"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>\n\nint** make2dArray(int x,int y){\n\tint** array = (int**)malloc(sizeof(int*) * x);\n\tfo... |
CDSS_433594 | CDSS | #include <stdio.h>
int main(void){
int a,b,c,d;
scanf("%d%d%d%d",&a,&b,&c,&d);
while(1){
c-=b;
if(c<=0){printf("Yes\n");return 0;}
a-=d;
if(a<=0){printf("No\n");return 0;}
}
return 0;
} | 1,660 | memory_bytes | {'s_id': 's619738523', 'p_id': 'p02700', 'u_id': 'u112319905', 'date': '1588081282', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '1660', 'code_size': '226'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n int a,b,c,d;\n scanf(\"%d%d%d%d\",&a,&b,&c,&d);\n\n while(1){\n c-=b;\n if(c... |
CDSS_292376 | CDSS | #include<stdio.h>
int main(){
int W,H,x,y,r;
scanf("%d %d %d %d %d",&W,&H,&x,&y,&r);
if(x+r<=W && x-r>=0 && y+r<=H && y-r>=0){
printf("Yes\n");
}else{
printf("No\n");
}
} | 1,816 | memory_bytes | {'s_id': 's906531597', 'p_id': 'p02394', 'u_id': 'u381985271', 'date': '1511431279', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1816', '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>\n int main(){\n \tint W,H,x,y,r;\n \tscanf(\"%d %d %d %d %d\",&W,&H,&x,&y,&r);\n \tif(x+r<=W && x-r>=0 && y+r<=H &... |
CDSS_445690 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <string.h>
#include <unistd.h>
#include <math.h>
long long int ans=0;
long long sort(long long d[],int NumberArrays,int up){
int tmp;
for (int i = 0; i < NumberArrays-1; i++) {
if (up && d[i]<d[i+1]) {
d[i]=tmp;
d[i]=d[i+1];
d[i... | 3,296 | memory_bytes | {'s_id': 's979144077', 'p_id': 'p02707', 'u_id': 'u488417454', 'date': '1587347736', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '38', 'memory': '3296', 'code_size': '1188'} | [
{
"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 <time.h>\n#include <string.h>\n#include <unistd.h>\n#include <math.h>\nlong long i... |
CDSS_314756 | CDSS | #include<stdio.h>
int main(void){
double r,x,y;
scanf("%lf",&r);
x=3.14159265359*r*r;
y=2*3.14159265359*r;
printf("%lf %lf\n",x,y);
return 0;
} | 648 | memory_bytes | {'s_id': 's140668420', 'p_id': 'p02400', 'u_id': 'u883898008', 'date': '1481179200', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '648', '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(void){\n\ndouble r,x,y;\n\nscanf(\"%lf\",&r);\n\nx=3.14159265359*r*r;\n\ny=2*3.14159265359*r;\n\nprint... |
CDSS_288293 | CDSS | #include<stdio.h>
int main(){
int a,b,c,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;
}
p... | 2,056 | memory_bytes | {'s_id': 's016007645', 'p_id': 'p02393', 'u_id': 'u442295940', 'date': '1563613862', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2056', 'code_size': '363'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int a,b,c,tmp;\n scanf(\"%d %d %d\",&a,&b,&c);\n if ( a > b )\n {\n tmp = a;\n ... |
CDSS_424132 | CDSS | #include<stdio.h>
int main(void) {
int n, m, i,count=0;
int h[100000], a[100000], b[100000], max[100000] = {};
scanf("%d %d", &n, &m);
for (i = 0; i < n; i++) {
scanf("%d", &h[i]);
}
for (i = 0; i < m; i++) {
scanf("%d %d\n", &a[i], &b[i]);
if (max[a[i]-1] < h[b[i]-1]) max[a[i]-1] = h[b[i]-1];
if (max[b... | 3,700 | memory_bytes | {'s_id': 's393518370', 'p_id': 'p02689', 'u_id': 'u189521276', 'date': '1588614553', 'language': 'C', 'original_language': 'C (Clang 10.0.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '39', 'memory': '3700', 'code_size': '463'} | [
{
"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\nint main(void) {\n\tint n, m, i,count=0;\n\tint h[100000], a[100000], b[100000], max[100000] = {};\n\tscanf(\... |
CDSS_113932 | CDSS | #include <stdio.h>
int main(void){
int n;
int w,h;
int x,y;
int s,t;
int i,j,k,l;
int p,pmax;
for(;;){
scanf("%d",&n);
if(n==0)break;
scanf("%d %d",&w,&h);
int map[500][500]={0};
for(i=0;i<n;i++){
scanf("%d %d",&x,&y);
map[x-1][y-1]=1;
}
p=0;
... | 1,584 | memory_bytes | {'s_id': 's703186276', 'p_id': 'p00706', 'u_id': 'u536413778', 'date': '1444579445', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '1584', 'code_size': '555'} | [
{
"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;\n int w,h;\n int x,y;\n int s,t;\n int i,j,k,l;\n int p,pmax;\n \n for(;;... |
CDSS_362968 | CDSS | #include <stdio.h>
int main(){
char s[2048];
int i;
fgets(s, sizeof(s), stdin);
for(i = 0;s[i] != '\0';i++){
if('a' <= s[i] && s[i] <= 'z') s[i] += 'A' - 'a';
else if('A' <= s[i] && s[i] <= 'Z') s[i] += 'a' - 'A';
}
printf("%s",s);
return 0;
}
| 2,012 | memory_bytes | {'s_id': 's976849222', 'p_id': 'p02415', 'u_id': 'u763270653', 'date': '1533785890', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2012', 'code_size': '270'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n \nint main(){\n char s[2048];\n int i;\n fgets(s, sizeof(s), stdin);\n for(i = 0;s[i] != '\\0';i++){\n i... |
CDSS_50827 | CDSS | #include <stdio.h>
main(){
int kazu[6],i,j,tmp=0;
for(i=0;i<5;i++){
scanf("%d",&kazu[i]);
}
for(i=0;i<5;i++){
for(j=4;j>i;j--){
if(kazu[j]>kazu[j-1]){
tmp=kazu[j-1];
kazu[j-1]=kazu[j];
kazu[j]=tmp;
}
}
}
for(i=0;i<5;i++){
printf("%d",kazu[i]);
if(i!=4){
printf(" ");
... | 600 | memory_bytes | {'s_id': 's578412827', 'p_id': 'p00018', 'u_id': 'u857051250', 'date': '1406679741', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '379'} | [
{
"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>\nmain(){\n int kazu[6],i,j,tmp=0;\n for(i=0;i<5;i++){\n scanf(\"%d\",&kazu[i]);\n }\n for(i=0;i<5;i++){\n ... |
CDSS_684686 | CDSS | #include<stdio.h>
int main() {
int A, B, C, D, E, F;
scanf("%d%d%d%d%d%d", &A, &B, &C, &D, &E, &F);
//A = 1, B = 2, F = 200;
//C = 10, D = 20, E = 15;
int a, b, c, d, x, y;
double noudo = 0, noudomax = 0, noudolim = 0;
int ansa = 0, ansb = 0;
noudolim = (double)E / (100 + (double)E);
for (a = 0; a <= F / (10... | 128 | memory_bytes | {'s_id': 's761887794', 'p_id': 'p03601', 'u_id': 'u389185410', 'date': '1552144628', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '39', 'memory': '128', 'code_size': '1272'} | [
{
"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\tint A, B, C, D, E, F;\n\tscanf(\"%d%d%d%d%d%d\", &A, &B, &C, &D, &E, &F);\n\t//A = 1, B = 2, F = ... |
CDSS_521431 | CDSS | #include <stdio.h>
int main(void){
int N;
scanf("%d",&N);
int arr[N];
int i;
for(i=0;i<N;i++){
scanf("%d",&arr[i]);
}
int j,k, count=0;
for(j=0;j<N;j++){
for(k=j+1;k<N;k++){
count+=arr[j]*arr[k];
}
}
printf("%d\n",count);
return 0;
}
| 128 | memory_bytes | {'s_id': 's877784175', 'p_id': 'p02886', 'u_id': 'u776439373', 'date': '1582576314', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '274'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer 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;\n scanf(\"%d\",&N);\n int arr[N];\n int i;\n for(i=0;i<N;i++){\n scanf(\"%d... |
CDSS_385330 | CDSS | #include<stdio.h>
int main(void){
int X;
scanf("%d",&X);
if(X >= 30)
printf("Yes");
else
printf("No");
return 0;
} | 1,712 | memory_bytes | {'s_id': 's167970861', 'p_id': 'p02594', 'u_id': 'u929687758', 'date': '1600109008', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1712', 'code_size': '132'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n int X;\n scanf(\"%d\",&X);\n if(X >= 30)\n printf(\"Yes\");\n else\n printf(\"No\");\... |
CDSS_590713 | CDSS | #include<stdio.h>
#include<stdint.h>
//0からnまでのXOR
uint64_t XOR(uint64_t n){
if(n==-1) return 0;
else if(n%4==1){
return 1;
}
else if(n%4==3){
return 0;
}
else if(n%4==2){
return 1^n;
}
else{
return n;
}
}
int main(void){
uint64_t A,B;
scanf("%llu %llu",&A,&B);
printf("%llu",XOR(A-1)^XOR(B));
} | 128 | memory_bytes | {'s_id': 's998088647', 'p_id': 'p03104', 'u_id': 'u671687924', 'date': '1552164796', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '329'} | [
{
"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\n//0からnまでのXOR\nuint64_t XOR(uint64_t n){\n\tif(n==-1) return 0;\n\telse if(n%4==1){\n\t\tret... |
CDSS_514934 | CDSS | #include <stdio.h>
int main(){
int N;
scanf("%d", &N);
char S[N + 1];
scanf("%s", S);
if(N % 2 == 1){
puts("No");
}
else{
int flag = 1;
for(int i = 0; i < N / 2; i ++){
if(S[i] != S[i + N/2]){
flag = 0;
}
}
if... | 1,644 | memory_bytes | {'s_id': 's844188340', 'p_id': 'p02860', 'u_id': 'u863370423', 'date': '1596944843', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1644', '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>\n\n\nint main(){\n int N;\n scanf(\"%d\", &N);\n\n char S[N + 1];\n scanf(\"%s\", S);\n if(N % 2 =... |
CDSS_695957 | CDSS | #include <stdio.h>
#include <stdlib.h>
int dsc(const void *a, const void *b){
return *(int *)b - *(int *)a;
}
int main(){
int N, K, l[50], i, sum=0;
scanf("%d %d", &N, &K);
for(i=0; i<N; i++){
scanf("%d", &l[i]);
}
qsort(l, N, sizeof(int), dsc);
for(i=0; i<K; i++){
sum ... | 128 | memory_bytes | {'s_id': 's477985198', 'p_id': 'p03658', 'u_id': 'u097683098', 'date': '1562247641', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '377'} | [
{
"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 dsc(const void *a, const void *b){\n return *(int *)b - *(int *)a;\n}\n\nint main(... |
CDSS_361754 | CDSS | #include<stdio.h>
#include<ctype.h>
int main(void){
char c;
do{
c=getchar();
if(isalpha(c)){
if(isupper(c)) printf("%c",tolower(c));
else printf("%c",toupper(c));
}
else printf("%c",c);
}while(c!='\n');
return 0;
} | 524 | memory_bytes | {'s_id': 's937678416', 'p_id': 'p02415', 'u_id': 'u606893172', 'date': '1471264882', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', 'code_size': '287'} | [
{
"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<ctype.h>\nint main(void){\n char c;\n do{\n c=getchar();\n if(isalpha(c)){\n ... |
CDSS_60283 | CDSS | #include <stdio.h>
int main(){
int in, i, j, weight[] = {1, 2, 4, 8, 16, 32, 64, 128, 256, 512}, result[10];
while(scanf("%d", &in) != EOF){
j = 0;
for(i = 9;i >= 0;i--){
if(in == 0) break;
if(in >= weight[i]){
in -= weight[i];
result[j++] = weight[i];
}
}
for(i = j - 1;i >= ... | 612 | memory_bytes | {'s_id': 's275398735', 'p_id': 'p00031', 'u_id': 'u709185111', 'date': '1392125182', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '612', 'code_size': '431'} | [
{
"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 in, i, j, weight[] = {1, 2, 4, 8, 16, 32, 64, 128, 256, 512}, result[10];\n\n while(scanf(... |
CDSS_616154 | CDSS | #include<stdio.h>
int main(){
int N;
scanf("%d", &N)+
printf("%d", 1110-N);
return 0;
} | 128 | memory_bytes | {'s_id': 's193327380', 'p_id': 'p03242', 'u_id': 'u235231201', 'date': '1558748576', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '107'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n int N;\n\n scanf(\"%d\", &N)+\n\n printf(\"%d\", 1110-N);\n\n return 0;\n}\nPredict i... |
CDSS_123641 | CDSS | #include <stdio.h>
int main(){
int e,a,n,m,result;
while(1){
result=0;
scanf("%d",&e);
e *= 2;
if(e == 0) break;
for(n = 2; n < 50; n++){
a=e-n*n;
if(a > 0 && a%n == 0 && a/n%2 == 1) result++;
}
printf("%d\n",result);
}
return 0;
} | 596 | memory_bytes | {'s_id': 's300724183', 'p_id': 'p01314', 'u_id': 'u076398897', 'date': '1493628916', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '301'} | [
{
"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 e,a,n,m,result;\n \n while(1){\n \n result=0;\n scanf(\"%d\",&e);\n e *= 2;\n ... |
CDSS_478907 | CDSS | #include<stdio.h>
int main(void)
{
long n, a, b, m;
scanf("%ld%ld%ld",&n,&a,&b);
if(n%(a+b)==0)
m=a*(n/(a+b));
else if(n%(a+b)>=a)
m=a*(n/(a+b))+a;
else
m=a*(n/(a+b))+n%(a+b);
printf("%ld",m);
return 0;
}
| 128 | memory_bytes | {'s_id': 's454294903', 'p_id': 'p02754', 'u_id': 'u615336522', 'date': '1589364379', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '297'} | [
{
"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 long n, a, b, m;\n\n scanf(\"%ld%ld%ld\",&n,&a,&b);\n if(n%(a+b)==0)\n... |
CDSS_109267 | CDSS | #include <stdio.h>
int main(void)
{
int a[100], b[100], score[100]={0}, target, N, M, i, j;
scanf("%d", &N);
scanf("%d", &M);
for(i = 0; i < M; i++)
scanf("%d", &a[i]);
for(i = 0; i < M; i++){
target = a[i];
for(j = 0; j < N; j++){
scanf("%d", &b[j]);
if(target == b[j])
score[j]++... | 596 | memory_bytes | {'s_id': 's612641806', 'p_id': 'p00532', 'u_id': 'u577534987', 'date': '1488460601', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '432'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer 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[100], b[100], score[100]={0}, target, N, M, i, j;\n\n scanf(\"%d\", &N);\n scanf(... |
CDSS_114593 | CDSS | #include<stdio.h>
#include<stdlib.h>
int unit(int p,int q,double a,int n,int l)
{
int i,c=0;
if(n>0 && p>0){
for(i=l;i<=a;i++)
{
if(p*i==q)c++;
c += unit(p*i-q,q*i,a/i,n-1,i);
}
}
return(c);
}
int main(void)
{
int p,q,a,n;
while(1)
{
scanf("%d %d %d %d ",&p,&q,&a,&n);
if(p==0 && q==0 && a==0... | 408 | memory_bytes | {'s_id': 's977878769', 'p_id': 'p00712', 'u_id': 'u914140574', 'date': '1276524031', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '440', 'memory': '408', 'code_size': '393'} | [
{
"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 unit(int p,int q,double a,int n,int l)\n{\n\tint i,c=0;\n\n\tif(n>0 && p>0){\n\t\tfor(i... |
CDSS_580966 | CDSS | #include <stdio.h>
int main()
{
int n,h[20],a=1,i,m;
scanf("%d",&n);
scanf("%d",&h[0]);
m = h[0];
for(i=1;i<n;i++)
{
scanf("%d",&h[i]);
if(m<=h[i])
{
a++;
m=h[i];
}
}
printf("%d\n",a);
return 0;
}
| 128 | memory_bytes | {'s_id': 's593847660', 'p_id': 'p03072', 'u_id': 'u085526499', 'date': '1555183716', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '242'} | [
{
"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,h[20],a=1,i,m;\n scanf(\"%d\",&n);\n scanf(\"%d\",&h[0]);\n m = h[0];\n for(i=1;i<n... |
CDSS_348050 | CDSS | #include <stdio.h>
int main(void) {
int a[4][3][10], n;
int i, j, k, l;
int b, f, r, v;
for(i = 0; i < 4; i++) {
for(j = 0; j < 3; j++) {
for(k = 0; k < 10; k++) {
a[i][j][k] = 0;
}
}
}
scanf("%d", &n);
for(l = 0; l < n; l++) {
scanf("%d %d %d %d", &b, &f, &r, &v);
a... | 600 | memory_bytes | {'s_id': 's604579565', 'p_id': 'p02409', 'u_id': 'u752101659', 'date': '1433405645', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '623'} | [
{
"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[4][3][10], n;\n int i, j, k, l;\n int b, f, r, v;\n for(i = 0; i < 4; i++) {\... |
CDSS_237779 | CDSS | /* Includes */
#include <stdio.h>
/* Defines */
/* Variables */
int list_dice[6];
char list_direction[100];
/* Prototypes */
int RotDice(char directon, int list_val[6]);
/* Main */
int main()
{
for (int i = 0; i < 6; i++) {
scanf("%d", &list_dice[i]);
}
scanf("%s", &list_direction);
for (i... | 2,120 | memory_bytes | {'s_id': 's945716153', 'p_id': 'p02383', 'u_id': 'u246238278', 'date': '1583278334', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2120', 'code_size': '1818'} | [
{
"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/* Includes */\n#include <stdio.h>\n\n/* Defines */\n\n/* Variables */\nint list_dice[6];\nchar list_direction[100];\n\n/* Prototype... |
CDSS_62194 | CDSS | #include <stdio.h>
#include <string.h>
int main(void){
int i,j,tmp,n[5];
while(scanf("%d",&n[0])!=EOF){
for(i=1;i<5;i++){
scanf(",%d",&n[i]);
}
for(i=0;i<5;i++){
for(j=i;j<5;j++){
if(n[i]>n[j]){
tmp=n[i];
n[i]=n[j];
n[j]=tmp;
}
}
}
if(n[1]==n[2]&&n[2]==n[3]&&(n[3]==n[4]||n[3... | 580 | memory_bytes | {'s_id': 's837942256', 'p_id': 'p00038', 'u_id': 'u221679506', 'date': '1450584652', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', 'code_size': '926'} | [
{
"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\tint i,j,tmp,n[5];\n\twhile(scanf(\"%d\",&n[0])!=EOF){\n\t\tfor(i=1;i<5... |
CDSS_90807 | CDSS | #include <stdio.h>
int main(void){
int a,b,c;
a=0;
for(b=1;b<11;b++){
scanf("%d",&c);
a=a+c;
}
printf("%d\n",a);
return 0;
}
| 2,052 | memory_bytes | {'s_id': 's946978075', 'p_id': 'p00251', 'u_id': 'u188961355', 'date': '1579662346', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2052', 'code_size': '133'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\n\tint a,b,c;\n\ta=0;\n\tfor(b=1;b<11;b++){\n\tscanf(\"%d\",&c);\n\ta=a+c;\n\t}\n\tprintf(\"%d\\... |
CDSS_88254 | CDSS | #include<stdio.h>
int main (void){
int n,pm,pe,pj,i;
for(;;){
scanf("%d",&n);
if(n == 0) break;
for(i=0;i<n;i++){
scanf("%d %d %d",&pm,&pe,&pj);
if(pm == 100 || pe == 100 || pj == 100){
printf("A\n");
}else if((pm + pe)/2 >= 90){
printf("A\n");
}else if((pm + pe + pj)/3 >= 80){
p... | 584 | memory_bytes | {'s_id': 's193855557', 'p_id': 'p00218', 'u_id': 'u122964852', 'date': '1444147495', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '584', 'code_size': '525'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main (void){\n\t\n\tint n,pm,pe,pj,i;\n\t\n\tfor(;;){\n\t\tscanf(\"%d\",&n);\n\t\tif(n == 0) break;\n\t\t\n... |
CDSS_235725 | CDSS | #include <stdio.h>
#include <math.h>
int main(void){
int n,i;
double s[1001]={};
double ave,vari,sd,sum;
while(scanf("%d", &n) != EOF && n!=0){
for(i=0,sum=0;i<n;i++){
scanf("%lf",&s[i]);
sum += s[i];
}
ave = sum / n;
for(i=0,vari=0;i<n;i++) vari... | 664 | memory_bytes | {'s_id': 's108371379', 'p_id': 'p02381', 'u_id': 'u963402991', 'date': '1439533573', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '664', 'code_size': '435'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n\nint main(void){\n int n,i;\n double s[1001]={};\n double ave,vari,sd,sum;\n\n w... |
CDSS_189595 | CDSS | #include<stdio.h>
#define MAX 10000
int linearSearch(){
int i,j,count,k,l;
int s[MAX],t[MAX];
count = 0;
scanf("%d",&k);
for(i = 0; i < k; i++)
scanf("%d",&s[i]);
scanf("%d",&l);
for(i = 0; i < l; i++)
scanf("%d",&t[i]);
if(k > l){
for(i = 0; i < l; i++)
for(j = 0; j < k; j+... | 2,144 | memory_bytes | {'s_id': 's049143529', 'p_id': 'p02267', 'u_id': 'u426293744', 'date': '1529981857', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2144', 'code_size': '576'} | [
{
"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 MAX 10000\n\n\nint linearSearch(){\n int i,j,count,k,l;\n int s[MAX],t[MAX];\n\n count = 0;\n \n s... |
CDSS_142025 | CDSS | #include<stdio.h>
#define N 8 //8×8のマス
#define FREE -1
#define NOT_FREE 1
int row[N];
int col[N];
int dpos[2*N-1],dneg[2*N-1]; /*dpos:左下方向 dneg:右下方向*/
int Z[N][N];
void Initialize(void);
void PrintBoard(void);
void Recursive(int);
int main(){
int i, j;
int k, r, c;
/*1行目に整数 k 、続く k 行にクイーンが配置されているマスが2つの整数 r,... | 2,140 | memory_bytes | {'s_id': 's865953278', 'p_id': 'p02244', 'u_id': 'u779353543', 'date': '1581541014', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2140', 'code_size': '1916'} | [
{
"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 8 //8×8のマス\n#define FREE -1\n#define NOT_FREE 1\n\nint row[N];\nint col[N];\nint dpos[2*N-1],dneg[2*N... |
CDSS_566999 | CDSS | #include<stdio.h>
int main() {
int i, j, k, n, t, m, h, w, g;
int f = 0;
scanf("%d %d", &i, &j);
f = (3 * i + j) / 2;
printf("%d", f);
return 0;
} | 128 | memory_bytes | {'s_id': 's295366845', 'p_id': 'p03029', 'u_id': 'u133959444', 'date': '1558918942', '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() {\n\tint i, j, k, n, t, m, h, w, g;\n\tint f = 0;\n\n\n\n\tscanf(\"%d %d\", &i, &j);\n\n\tf = (3 * i... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.