identifier string | space string | input string | target float64 | metric_type string | metadata string | messages list |
|---|---|---|---|---|---|---|
CDSS_567872 | CDSS | #include <stdio.h>
int main(void){
int a, b;
scanf("%d %d", &a, &b);
if(a >= 13){
printf("%d", b);
}else if(a>=6 && a<=12){
printf("%d", b/2);
}else{
printf("%d", 0);
}
return 0;
} | 128 | memory_bytes | {'s_id': 's837875839', 'p_id': 'p03035', 'u_id': 'u313317027', 'date': '1578816145', '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 int a, b;\n scanf(\"%d %d\", &a, &b);\n \n if(a >= 13){\n printf(\"%d\", b);\n }else i... |
CDSS_83266 | CDSS | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
int i,j,k,h,r,mat[200][2][2],stk,ans;
int n,m;
int main(){
while(scanf("%d",&n)*n){
for(i=0;i<n;i++)scanf("%d %d",&mat[i][0][0],&mat[i][0][1]);
mat[n][0][0]=9999;mat[n][0][1]=9999;
scanf("%d",&m);
for(i=0;i<m;i++)scanf("%d %d",&mat[i][1][0],&mat[i][1... | 600 | memory_bytes | {'s_id': 's094103970', 'p_id': 'p00157', 'u_id': 'u263489624', 'date': '1375781790', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '988'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n\nint i,j,k,h,r,mat[200][2][2],stk,ans;\nint n,m;\n\nint main(){\n\twhil... |
CDSS_560601 | CDSS | #include <stdio.h>
int main() {
int N, X, i, result = 0;
int L[100];
int D[100];
scanf("%d",&N);
scanf("%d",&X);
for(i = 0; i < N; i++){
scanf("%d",&L[i]);
}
for(i = 0; i < N+1; i++){
if(i == 0){
D[i] = 0;
}else{
D[i] = D[i-1] + L[i-1]... | 128 | memory_bytes | {'s_id': 's425493674', 'p_id': 'p03000', 'u_id': 'u185935459', 'date': '1560712989', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '437'} | [
{
"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, X, i, result = 0;\n int L[100];\n int D[100];\n\n scanf(\"%d\",&N);\n scan... |
CDSS_623147 | CDSS | #include<stdio.h>
int main()
{
int n,p;
scanf("%d%d",&n,&p);
int i,j;
int arr[n];
int arr1[n];
for(i=n,j=1;i>0;i--,j++)
{
if(j==p)
printf("%d",i);
}
}
| 128 | memory_bytes | {'s_id': 's112406008', 'p_id': 'p03272', 'u_id': 'u018679195', 'date': '1587609621', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '204'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main()\n{\n int n,p;\n scanf(\"%d%d\",&n,&p);\n int i,j;\n int arr[n];\n int arr1[n];\n for... |
CDSS_662344 | CDSS | int main(int argc, char const *argv[])
{
int a, b, c;
// char s[101];
scanf("%d", &a);
scanf("%d", &b);
// scanf("%d", &c);
// scanf("%s", &s);
// printf("%d ", a+b+c);
// printf("%s\n", s);
c = a * b;
if (c%2 == 1)
{
printf("Odd\n");
}else{
printf("Even\n");
}
return 0;
} | 128 | memory_bytes | {'s_id': 's173087880', 'p_id': 'p03455', 'u_id': 'u471621916', 'date': '1559310121', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '290'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nint main(int argc, char const *argv[])\n{\n\tint a, b, c;\n//\tchar s[101];\n\n\tscanf(\"%d\", &a);\n\tscanf(\"%d\", &b);\n//\tscanf(\... |
CDSS_175720 | CDSS | #define _CRT_SECURE_NO_WARNINGS
#define _USE_MATH_DEFINES
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
int insertionSort(int A[], int N,int g,int cnt);
void shellSort(int A[], int n);
int main(){
int *A, n, i;
scanf("%d", &n);
A = (int *)malloc(sizeof(int)*n);
for (i = 0; i < n; ++i) scanf("%d", A + i);
... | 4,516 | memory_bytes | {'s_id': 's590451797', 'p_id': 'p02262', 'u_id': 'u078042885', 'date': '1479028672', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '350', 'memory': '4516', 'code_size': '1071'} | [
{
"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#define _CRT_SECURE_NO_WARNINGS\n#define _USE_MATH_DEFINES\n#include<stdio.h>\n#include<stdlib.h>\n#include<math.h>\nint insertionSort... |
CDSS_497731 | CDSS | #include <stdio.h>
int main(){
int i, a, b, c;
scanf("%d %d",&a,&b);
c = 0;
if(a>b){
for(i=0;i<a;i++){
b = b * 10;
c = c + b;
}
}else {
for(i=0;i<b;i++){
a = a * 10;
c = c + a;
}
}
printf("%d",c/10);
}
| 128 | memory_bytes | {'s_id': 's987077322', 'p_id': 'p02790', 'u_id': 'u697715013', 'date': '1579465127', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '237'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n\tint i, a, b, c;\n\tscanf(\"%d %d\",&a,&b);\n\tc = 0;\n\t\n\tif(a>b){\n\t\t\n\t\t\tfor(i=0;i<a;i++... |
CDSS_714261 | CDSS | #include<stdio.h>
int main(void){
int a,b;
scanf("%d%d",&a,&b);
printf("%d\n",(a+b)%24);
return 0;
} | 128 | memory_bytes | {'s_id': 's566099894', 'p_id': 'p03773', 'u_id': 'u721060623', 'date': '1490576635', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '105'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void){\n\tint a,b;\n\tscanf(\"%d%d\",&a,&b);\n\tprintf(\"%d\\n\",(a+b)%24);\n\treturn 0;\n}\nPredict its... |
CDSS_496974 | CDSS | #include <stdio.h>
int main(void){
int x,y;
scanf("%d",&x);
scanf("%d",&y);
if(x == y)
printf("Yes");
else
{
printf("No");
}
return 0;
} | 128 | memory_bytes | {'s_id': 's465354972', 'p_id': 'p02789', 'u_id': 'u996984701', 'date': '1579468793', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '194'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\n\nint main(void){\n int x,y;\n\n scanf(\"%d\",&x);\n scanf(\"%d\",&y);\n if(x == y)\n printf(... |
CDSS_20554 | CDSS | #include <stdio.h>
int main() {
int i, j;
for(i = 1; i <= 9; i ++) {
for(j = 1; j <= 9; j ++) {
printf("%dx%d=%d\n", i, j, i*j);
}
}
return 0;
} | 0 | memory_bytes | {'s_id': 's077126835', 'p_id': 'p00000', 'u_id': 'u693862667', 'date': '1320731584', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '168'} | [
{
"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 i, j;\n for(i = 1; i <= 9; i ++) {\n for(j = 1; j <= 9; j ++) {\n printf(\"%dx%d=%d... |
CDSS_171172 | CDSS | #include<stdio.h>
int main()
{
int i,j,n,a[100],t,s,mini,p;
while(scanf("%d",&n)!=EOF)
{
s=0;
for(i=0;i<n;i++)
scanf("%d",&a[i]);
for(i=0;i<n;i++)
{
mini=i;p=0;
for(j=i;j<n;j++)
if(a[j]<a[mini])
{mini=j;p... | 2,092 | memory_bytes | {'s_id': 's954922874', 'p_id': 'p02260', 'u_id': 'u011621222', 'date': '1521465760', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2092', 'code_size': '524'} | [
{
"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 i,j,n,a[100],t,s,mini,p;\n while(scanf(\"%d\",&n)!=EOF)\n {\n s=0;\n for... |
CDSS_317310 | CDSS | #include <math.h>
main(void){
double a;
scanf("%lf",&a);
printf("%f %f\n",a*a*M_PI,2*a*M_PI);
}
| 2,064 | memory_bytes | {'s_id': 's084590640', 'p_id': 'p02400', 'u_id': 'u491797307', 'date': '1568873835', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2064', 'code_size': '113'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <math.h>\nmain(void){\n double a;\n scanf(\"%lf\",&a);\n \n printf(\"%f %f\\n\",a*a*M_PI,2*a*M_PI);\n}\n\nPredict... |
CDSS_596674 | CDSS | #include<stdio.h>
int main(){
int i,a,b,c[5]={};
for(i=0;i<3;i++){
scanf("%d %d",&a,&b);
c[a]++;
c[b]++;
}
a=0;
for(i=1;i<5;i++)a+=c[i]%2;
printf("%s\n",a-2?"NO":"YES");
return 0;
}
| 128 | memory_bytes | {'s_id': 's666663484', 'p_id': 'p03130', 'u_id': 'u121922047', 'date': '1549764326', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '208'} | [
{
"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,a,b,c[5]={};\n for(i=0;i<3;i++){\n scanf(\"%d %d\",&a,&b);\n c[a]++;\n c[b]++;\n }\... |
CDSS_520265 | CDSS | #include <stdio.h>
#include <math.h>
int main(){
int length_x, length_y, water_v;
scanf("%d %d %d", &length_x, &length_y, &water_v);
long double thete;
if (water_v > length_x * length_x * length_y / 2){
thete = 180.0 * atan(2.0 * (long double) (length_x * length_x * length_y - water_v) / (long... | 128 | memory_bytes | {'s_id': 's607702311', 'p_id': 'p02882', 'u_id': 'u558493745', 'date': '1573622880', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '546'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n\nint main(){\n int length_x, length_y, water_v;\n scanf(\"%d %d %d\", &length_x, &length... |
CDSS_683593 | CDSS | #include<stdio.h>
int main(void)
{
int N,A;
scanf("%d",&N);
scanf("%d",&A);
printf("%d\n",N*N-A);
return 0;
}
| 128 | memory_bytes | {'s_id': 's446127087', 'p_id': 'p03597', 'u_id': 'u670199931', 'date': '1591213558', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '142'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n #include<stdio.h>\n int main(void)\n {\n int N,A;\n\n scanf(\"%d\",&N);\n scanf(\"%d\",&A);\n\n printf(\"%d\\n\",N*N-... |
CDSS_635483 | CDSS | #include<stdio.h>
int main()
{
int n,m,n1,total=0;
scanf("%d",&n);
n1=n;
while(n!=0){
m=n%10;
total=total+m;
n=n/10;
}
if(n1%total==0){
printf("Yes\n");
}
else{
printf("No\n");
}
return 0;
}
| 128 | memory_bytes | {'s_id': 's292137790', 'p_id': 'p03316', 'u_id': 'u018679195', 'date': '1575054511', '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 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,n1,total=0;\n scanf(\"%d\",&n);\n n1=n;\n while(n!=0){\n m=n%10;\n ... |
CDSS_241051 | 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': 's252385814', 'p_id': 'p02388', 'u_id': 'u915037133', 'date': '1443227552', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '107'} | [
{
"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;\n\tscanf(\"%d\", &n);\n\tprintf(\"%d\\n\", n * n * n);\n\n\treturn 0;\n}\nPredict ... |
CDSS_217279 | CDSS | #include <stdio.h>
#include <stdlib.h>
#define NIL -1
typedef struct node{
int left;
int right;
int parent;}node;
int getSibling(int);
int getDegree(int);
int getDepth(int);
int getHeight(int);
void printTree(void);
node *tree;
int n;
int main(){
int i,id,left,right;
scanf("%d",&n);
tree = (node *)mal... | 2,104 | memory_bytes | {'s_id': 's540361421', 'p_id': 'p02280', 'u_id': 'u071371564', 'date': '1531289929', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '1799'} | [
{
"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#define NIL -1\n\ntypedef struct node{\n int left;\n int right;\n int parent;}node;\n\nint... |
CDSS_421223 | CDSS | #include <stdio.h>
int main()
{
int i, N, A[200001];
long long K;
scanf("%d %lld", &N, &K);
for (i = 1; i <= N; i++) scanf("%d", &(A[i]));
int j, flag[200001] = {};
flag[1] = 1;
for (i = 2, j = 1; flag[A[j]] == 0; i++, j = A[j]) flag[A[j]] = i;
if ((long long)i - 1 > K) {
for (j = 1; flag[j] <= K; j = A[... | 3,252 | memory_bytes | {'s_id': 's479089953', 'p_id': 'p02684', 'u_id': 'u943800443', 'date': '1597348990', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '40', 'memory': '3252', 'code_size': '542'} | [
{
"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 i, N, A[200001];\n\tlong long K;\n\tscanf(\"%d %lld\", &N, &K);\n\tfor (i = 1; i <= N; i++)... |
CDSS_472116 | CDSS | #include <stdio.h>
int main(void) {
int N,M;
scanf("%d%d", &N, &M);
printf("%d\n", N*(N-1)/2 + M*(M-1)/2);
return 0;
}
| 128 | memory_bytes | {'s_id': 's931508555', 'p_id': 'p02729', 'u_id': 'u686007983', 'date': '1584925521', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '148'} | [
{
"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,M;\n \n scanf(\"%d%d\", &N, &M);\n \n printf(\"%d\\n\", N*(N-1)/2 + M*(M... |
CDSS_434724 | CDSS | #include <stdio.h>
int main(){
int i, j;
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,664 | memory_bytes | {'s_id': 's956090977', 'p_id': 'p02700', 'u_id': 'u136798224', 'date': '1587949509', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '8', 'memory': '1664', 'code_size': '282'} | [
{
"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 i, j;\n int a, b, c, d;\n scanf(\"%d%d%d%d\", &a, &b, &c, &d);\n \n while(1){\n c ... |
CDSS_471896 | CDSS | #include<stdio.h>
int main(void){
int N,M,factn=1,factm=1,a,b,i,v;
scanf("%d %d",&N,&M);
for(i=N;i>=N-1;i--){
factn=factn*i;
};
for(v=M;v>=M-1;v--){
factm=factm*v;
};
printf("%d",(factn/2)+(factm/2));
return 0;
} | 256 | memory_bytes | {'s_id': 's597815092', 'p_id': 'p02729', 'u_id': 'u143405027', 'date': '1584928677', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '256', 'code_size': '243'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void){\n\n int N,M,factn=1,factm=1,a,b,i,v;\n\n scanf(\"%d %d\",&N,&M);\n \n for(i=N;i>=N-1;i--){\n f... |
CDSS_548775 | CDSS | //atcoder clange
#include <stdio.h>
int main(void){
int N;
scanf("%d", &N);//数値の取得
int i= 0;
int A[N];
for(i=0;i<N;i++){
scanf("%d",&A[i]);
}
int save = 0;
int max1 = 0;
/*
for(i=0;i<N;i++){
save = A[i];
A[i] = 0;
nummax = max(A,N);
printf("%d\n",nummax);
A[i] = save;
... | 2,304 | memory_bytes | {'s_id': 's024910137', 'p_id': 'p02971', 'u_id': 'u845148770', 'date': '1563672277', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '39', 'memory': '2304', 'code_size': '661'} | [
{
"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//atcoder clange\n#include <stdio.h>\nint main(void){\n int N;\n scanf(\"%d\", &N);//数値の取得\n int i= 0;\n int A[N];\n for(i=... |
CDSS_220595 | CDSS | #include<stdio.h>
#define N 40
int n,pos;
int a[N],b[N];
void solve(int, int);
int main(){
int i;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d",&a[i]);
}
for(i=0;i<n;i++){
scanf("%d",&b[i]);
}
pos=0;
solve(0,n-1);
printf("\n");
return 0;
}
void solve(int l,int ... | 1,860 | memory_bytes | {'s_id': 's638442189', 'p_id': 'p02282', 'u_id': 'u309410141', 'date': '1513315479', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1860', 'code_size': '632'} | [
{
"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 40\n \nint n,pos;\nint a[N],b[N];\n \nvoid solve(int, int);\n \nint main(){\n \n int i;\n \n scanf(... |
CDSS_426246 | CDSS | #include<stdio.h>
int main()
{
int k,A,B;
scanf("%d",&k);
scanf("%d%d",&A,&B);
int i,j;
for(i=A;i<=B;i++)
{
j=i%k;
if(j==0)
break;
}
if(j==0)
printf("OK\n");
else
printf("NG\n");
return 0;
} | 1,616 | memory_bytes | {'s_id': 's706943831', 'p_id': 'p02693', 'u_id': 'u831365222', 'date': '1588473878', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1616', 'code_size': '250'} | [
{
"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 k,A,B;\n scanf(\"%d\",&k);\n scanf(\"%d%d\",&A,&B);\n int i,j;\n for(i=A;i<=B;i+... |
CDSS_20503 | CDSS | main(i,j){for(i=1;i<10;i++)for(j=1;j<10;j++)printf("%dx%d=%d\n",i,j,i*j);exit(0);} | 0 | memory_bytes | {'s_id': 's162052179', 'p_id': 'p00000', 'u_id': 'u739636574', 'date': '1320511770', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '82'} | [
{
"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:\nmain(i,j){for(i=1;i<10;i++)for(j=1;j<10;j++)printf(\"%dx%d=%d\\n\",i,j,i*j);exit(0);}\nPredict its memory footprint.",
"role": "us... |
CDSS_251162 | CDSS | #include<stdio.h>
int main(){
int a,b,s,t;
scanf("%d %d",&a,&b);
s = a*b;
t = (a*2)+(b*2);
printf("%d %d\n",s,t);
return 0;
} | 596 | memory_bytes | {'s_id': 's662990587', 'p_id': 'p02389', 'u_id': 'u823637889', 'date': '1447374436', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '150'} | [
{
"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,s,t;\n scanf(\"%d %d\",&a,&b);\n s = a*b;\n t = (a*2)+(b*2);\n printf(\"%d %... |
CDSS_345089 | CDSS | #include <stdio.h>
int main(void)
{
int n, i, j;
scanf("%d", &n);
int t_cards[4][14];
for (i = 0; i < 4; i++) {
for (j = 1; j < 14; j++) {
t_cards[i][j] = 0;
}
}
for (i = 0; i < n; i++) {
char suit;
int num;
scanf("%*c%c%*c%d", &suit, &num);
if (suit == 'S') t_cards[0][num] = 1;
else if (sui... | 596 | memory_bytes | {'s_id': 's572071960', 'p_id': 'p02408', 'u_id': 'u072053884', 'date': '1453907650', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '730'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n\tint n, i, j;\n\n\tscanf(\"%d\", &n);\n\n\tint t_cards[4][14];\n\n\tfor (i = 0; i < 4; i++) ... |
CDSS_82082 | CDSS | #include <stdio.h>
int main(void)
{
int m, n, i;
int number[100000] = {0};
m = 0;
while (scanf("%d", &n) != EOF)
{
for (i = 1; i <= 39; i++)
{
n--;
if (n == 0)
break;
if (i == 39)
i = 0;
}
number[m] = i;
m++;
}
for (i = 0; i < m; i++)
printf("3C%02d\n", number[i]);
return 0;
} | 1,004 | memory_bytes | {'s_id': 's153331847', 'p_id': 'p00148', 'u_id': 'u069649871', 'date': '1361100904', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1004', 'code_size': '318'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n\tint m, n, i;\n\tint number[100000] = {0};\n\n\tm = 0;\n\twhile (scanf(\"%d\", &n) != EOF)\n... |
CDSS_356365 | CDSS | #include <stdio.h>
int main(){
int i, j, k;
int n, x;
int count;
while(1){
scanf("%d %d ", &n, &x);
if(n==0&&x==0)break;
count=0;
for(i=1;3*i+3<=x;i++){
for(j=i+1;i+2*j+1<=x;j++){
for(k=n;k>j;k--){
if(x==i+j+k){
... | 2,104 | memory_bytes | {'s_id': 's992945556', 'p_id': 'p02412', 'u_id': 'u924938296', 'date': '1530578692', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '562'} | [
{
"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 i, j, k;\n int n, x;\n int count;\n\n while(1){\n scanf(\"%d %d \", &n, &x)... |
CDSS_136515 | CDSS | #include<stdio.h>
int d[101],f[101],g[101][101],n;
int t = 1 ;
void visit(int i){
int l,m;
d[i] = t++;
for(l = 1 ; l <= n ; l++ ){
if(g[i][l] == 1 && d[l] == 0){
visit(l);
}
}
f[i] = t++;
}
int main(void){
int i,j,u,k,x;
scanf("%d",&n);
// 初期化
for(i = 1 ; i <= n ; i++... | 636 | memory_bytes | {'s_id': 's697273152', 'p_id': 'p02238', 'u_id': 'u484756951', 'date': '1468376542', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '636', 'code_size': '1000'} | [
{
"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 d[101],f[101],g[101][101],n;\nint t = 1 ;\n\nvoid visit(int i){\n\n int l,m;\n \n d[i] = t++;\n \n for(l... |
CDSS_674220 | CDSS | #include <stdio.h>
#define ll long long
//(B)
int main(){
ll n, fn = 0;
scanf("%lld",&n);
ll tmp = n;
while(tmp){
fn += tmp%10;
tmp /= 10;
}
printf((n%fn==0) ? "Yes":"No");
return 0;
} | 128 | memory_bytes | {'s_id': 's758535789', 'p_id': 'p03502', 'u_id': 'u480472958', 'date': '1519062461', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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#define ll long long\n\n//(B)\nint main(){\n\tll n, fn = 0;\n\tscanf(\"%lld\",&n);\n\tll tmp = n;\n\twhile(tmp){\n... |
CDSS_599637 | CDSS | #include <stdio.h>
int main(void){
int a,b,c;
scanf("%d%d%d",&a,&b,&c);
printf("%d",a*b/2);
} | 128 | memory_bytes | {'s_id': 's160485023', 'p_id': 'p03145', 'u_id': 'u592248346', 'date': '1591574454', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '105'} | [
{
"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%d%d\",&a,&b,&c);\n printf(\"%d\",a*b/2);\n}\nPredict its memory... |
CDSS_662021 | CDSS | #include <stdio.h>
int main() {
int a,b;
scanf("%d %d",&a,&b);
if((a*b)%2==0)
{
printf("Even\n");
} else
{
printf("Odd\n");
}
return 0;
}
| 128 | memory_bytes | {'s_id': 's840875363', 'p_id': 'p03455', 'u_id': 'u225607881', 'date': '1580249700', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '187'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer 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)%2==0)\n {\n printf(\"Even\\n\");... |
CDSS_487546 | CDSS | #include<stdio.h>
#include<stdlib.h>
int main(){
int A,B,C;
scanf("%d",&A);
scanf("%d",&B);
scanf("%d",&C);
if( A==B && A != C){
printf("Yes\n");
}
else if(A==C && A != B){
printf("Yes\n");
}
else if(B==C && B != A){
printf("Yes\n");
}
else{
printf("No\n");
}
return 0;
} | 128 | memory_bytes | {'s_id': 's844143681', 'p_id': 'p02771', 'u_id': 'u174931884', 'date': '1581890506', '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 must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n\nint main(){\n\tint A,B,C;\n\n\tscanf(\"%d\",&A);\n\tscanf(\"%d\",&B);\n\tscanf(\"%d\",&C);\n\... |
CDSS_735016 | CDSS | #include<stdio.h>
int main(void)
{
int N,K,i,answer=1;
scanf("%d %d",&N,&K);
for(i=0; i < N-1; i++){
answer *= K-1;
}
answer *= K;
printf("%d",answer);
return 0;
} | 128 | memory_bytes | {'s_id': 's692332741', 'p_id': 'p03963', 'u_id': 'u810799221', 'date': '1476587692', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '183'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void)\n{\n\tint N,K,i,answer=1;\n\t\n\tscanf(\"%d %d\",&N,&K);\n\t\n\tfor(i=0; i < N-1; i++){\n\t\tanswe... |
CDSS_562999 | CDSS | #include <stdio.h>
#include <stdlib.h>
int main() {
char buffer[100];
char duffer[100];
char guffer[100];
int number1;
int number2;
int number3;
int a,b,c=0;
scanf("%s%s%s",buffer,duffer,guffer);
number1 = atoi(buffer);
number2 = atoi(duffer);
number3 = atoi(guffer);
if(1<=n... | 128 | memory_bytes | {'s_id': 's773637280', 'p_id': 'p03011', 'u_id': 'u917558625', 'date': '1560197073', '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 must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\nint main() {\n char buffer[100];\n char duffer[100];\n char guffer[100];\n int ... |
CDSS_353711 | CDSS | #include <stdio.h>
int main(void)
{
int m, f, r;
char seiseki;
while (1)
{
scanf("%d %d %d", &m, &f, &r);
if (m == -1 && f == -1 && r == -1)
break;
if ((0 <= m + f && m + f < 30) || m == -1 || f == -1)
{
seiseki = 'F';
}
else if (80 <= m + f && m + f <= 100)
{
seiseki = 'A';
}
else if ... | 2,112 | memory_bytes | {'s_id': 's352332650', 'p_id': 'p02411', 'u_id': 'u183363727', 'date': '1563174254', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '572'} | [
{
"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\n\tint m, f, r;\n\tchar seiseki;\n\twhile (1)\n\t{\n\t\tscanf(\"%d %d %d\", &m, &f, &r);\n\n\t... |
CDSS_496299 | CDSS | #include <stdio.h>
int main(){
int a;
int b;
scanf ("%d %d",&a,&b);
if (a==b){
printf ("Yes\n");
}
else {
printf ("No\n");
}
return 0;
} | 1,616 | memory_bytes | {'s_id': 's996393465', 'p_id': 'p02789', 'u_id': 'u018679195', 'date': '1600206091', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1616', 'code_size': '198'} | [
{
"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;\n int b;\n scanf (\"%d %d\",&a,&b);\n \n if (a==b){\n printf ... |
CDSS_539159 | CDSS | #include <stdio.h>
int main(){
int A,B,C,ret;
ret = scanf( "%d %d" , &A,&B );
if( ret == EOF ) {
return -1;
}
C= A+B;
if(A-B>C){
C=A-B;
}
if(A*B>C){
C=A*B;
}
printf("%d",C);
return 0;
}
| 128 | memory_bytes | {'s_id': 's883067655', 'p_id': 'p02945', 'u_id': 'u538694792', 'date': '1565498022', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '219'} | [
{
"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 A,B,C,ret;\n ret = scanf( \"%d %d\" , &A,&B );\n if( ret == EOF ) {\n return -1;\n }\n C... |
CDSS_159526 | CDSS | #include<stdio.h>
int isPrime(int);
int main()
{
int n,i,count,A[10000];
scanf("%d",&n);
for(i = 0; i < n; i++){
scanf("%d",&A[i]);
if(isPrime(A[i]) == 1)
count++;
}
printf("%d\n",count);
return 0;
}
int isPrime(int a)
{
int i=3;
if(a == 2) return 1;
if(a < 2 || a%2 == 0 ) return... | 2,104 | memory_bytes | {'s_id': 's760078220', 'p_id': 'p02257', 'u_id': 'u249971676', 'date': '1575963060', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '410'} | [
{
"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 isPrime(int);\nint main()\n{\n int n,i,count,A[10000];\n scanf(\"%d\",&n);\n for(i = 0; i < n; i++){\n... |
CDSS_384172 | CDSS | #include<stdio.h>
#include<string.h>
int main()
{
int n, counter = 0;
long long int l_array[100];
int l_array_num[100];
long long int answer = 0;
for (int i = 0; i<100; i++)
{
l_array_num[i] = 1;
}
scanf("%d", &n);
for (int i = 0; i<n; i++)
{
scanf("%lld", &l_array[counter]);
for (int j = 0; j<cou... | 1,724 | memory_bytes | {'s_id': 's124391261', 'p_id': 'p02583', 'u_id': 'u757753683', 'date': '1597520839', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1724', 'code_size': '987'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\n\n\nint main()\n{\n\tint n, counter = 0;\n\tlong long int l_array[100];\n\tint l_array_num[100]... |
CDSS_541019 | CDSS | #include <stdio.h>
int main(void)
{
int a,b,c;
scanf("%d%d%d",&a,&b,&c);
if((b+c)-a>0)printf("%d\n",(b+c)-a);
else printf("0\n");
return 0;
}
| 256 | memory_bytes | {'s_id': 's546604133', 'p_id': 'p02951', 'u_id': 'u048036733', 'date': '1591385565', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '256', 'code_size': '185'} | [
{
"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 a,b,c;\n\n scanf(\"%d%d%d\",&a,&b,&c);\n\n if((b+c)-a>0)printf(\"%d... |
CDSS_614270 | CDSS | #include<stdio.h>
int main(void)
{
int n,a,b;
scanf("%d",&n);
if(n==1){
printf("Hello World\n");
}
else{
scanf("%d %d",&a,&b);
printf("%d\n",a+b);
}
return 0;
} | 128 | memory_bytes | {'s_id': 's032869486', 'p_id': 'p03238', 'u_id': 'u490089586', 'date': '1547069314', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '173'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\n\tint n,a,b;\n\tscanf(\"%d\",&n);\n\tif(n==1){\n\t\tprintf(\"Hello World\\n\");\n\t}\n\telse{\n\... |
CDSS_681670 | CDSS | #include<stdio.h>
int main(void)
{
int A,B,C;
scanf("%d",&A);
scanf("%d",&B);
scanf("%d",&C);
if(A == B){
printf("%d",C);
}else if(A == C){
printf("%d",B);
}else{
printf("%d",A);
}
return 0;
}
| 128 | memory_bytes | {'s_id': 's456129955', 'p_id': 'p03573', 'u_id': 'u606407652', 'date': '1509382382', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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:\n#include<stdio.h>\n\nint main(void)\n{\n int A,B,C;\n\n scanf(\"%d\",&A);\n scanf(\"%d\",&B);\n scanf(\"%d\",&C);\n\n if(A == B){... |
CDSS_394723 | CDSS | // https://atcoder.jp/contests/abc172/tasks/abc172_a
#include <stdio.h>
#include <math.h>
int main() {
int a;
printf("\n");
scanf("%d", &a);
int b= pow (a, 2);
int c= pow (a, 3);
printf("%d\n", a+b+c);
return 0;
} | 2,512 | memory_bytes | {'s_id': 's634054766', 'p_id': 'p02621', 'u_id': 'u449352114', 'date': '1594445889', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '7', 'memory': '2512', 'code_size': '259'} | [
{
"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// https://atcoder.jp/contests/abc172/tasks/abc172_a\n\n#include <stdio.h>\n#include <math.h>\n\nint main() {\n \n int a;\n p... |
CDSS_562642 | CDSS | #include <stdio.h>
int main(void){
int P,Q,R;
int ans;
scanf("%d",&P);
scanf("%d",&Q);
scanf("%d",&R);
if(P>=Q && P>=R){
ans = Q+R;
}else if(Q>=P && Q>=R){
ans = P+R;
}else if(R>=P && R>=Q){
ans = P+Q;
}
printf("%d",ans);
return 0;
} | 128 | memory_bytes | {'s_id': 's137478782', 'p_id': 'p03011', 'u_id': 'u494182071', 'date': '1572028126', '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>\n\nint main(void){\n int P,Q,R;\n\n int ans;\n \n scanf(\"%d\",&P);\n scanf(\"%d\",&Q);\n scanf(\"%d\",&R);\n... |
CDSS_344772 | CDSS | #include <stdio.h>
int egara(char c){
if(c=='S')return 0;
if(c=='H')return 1;
if(c=='C')return 2;
if(c=='D')return 3;
return 0;
}
char Egara(int n){
if(n==0)return 'S';
if(n==1)return 'H';
if(n==2)return 'C';
if(n==3)return 'D';
return 'S';
}
int main(){
int n,a[4][13],i,j,m;
char c,d;
for(i=... | 600 | memory_bytes | {'s_id': 's275024350', 'p_id': 'p02408', 'u_id': 'u700120734', 'date': '1429927920', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '607'} | [
{
"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 egara(char c){\n if(c=='S')return 0;\n if(c=='H')return 1;\n if(c=='C')return 2;\n if(c=='D')return 3;\n... |
CDSS_583638 | CDSS | #include<stdio.h>
#include<string.h>
int main() {
int a[5], wait, temp, max;
for (int i = 0; i < 5; i++) scanf("%d", &a[i]);
max = 0;
wait = 0;
for (int i = 0; i < 5; i++) {
temp = a[i] % 10;
if (temp != 0) temp = 10 - temp;
if (max < temp) max = temp;
wait += a[i] + temp;
}
printf("%d", wait - max);
r... | 128 | memory_bytes | {'s_id': 's767949252', 'p_id': 'p03076', 'u_id': 'u300968187', 'date': '1557420854', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '330'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer 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() {\n\tint a[5], wait, temp, max;\n\tfor (int i = 0; i < 5; i++) scanf(\"%d\", &a[i]... |
CDSS_659626 | CDSS | #include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<math.h>
//for
#define REP(i,n) for(int i=0,i##_len=(int)(n);i<i##_len;i++)
#define REPS(i,n) for(int i=1,i##_len=(int)(n);i<=i##_len;i++)
#define RREP(i,n) for(int i=(int)(n)-1;i>=0;i--)
#define RREPS(i,n) for(int i=(int)(n);i>0;i--)
//printf
#define PR... | 128 | memory_bytes | {'s_id': 's860640081', 'p_id': 'p03437', 'u_id': 'u539339654', 'date': '1517717024', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '752'} | [
{
"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\n//for\n#define REP(i,n) for(int i=0,i##_len=(int)(n);i<... |
CDSS_234342 | CDSS | #include <stdio.h>
#include <math.h>
int main() {
double x1, y1, x2, y2;
scanf("%lf%lf%lf%lf", &x1, &y1, &x2, &y2);
printf("%.8lf\n", hypot(x1 - x2, y1 - y2));
return 0;
}
| 2,104 | memory_bytes | {'s_id': 's375190119', 'p_id': 'p02379', 'u_id': 'u470882452', 'date': '1589435237', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '189'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n\nint main() {\n double x1, y1, x2, y2;\n scanf(\"%lf%lf%lf%lf\", &x1, &y1, &x2, &y2);\n ... |
CDSS_690995 | CDSS | #include<stdio.h>
long long fun(long long n,long long m)
{
long long s;
if(n<m)
{
s=n;
n=m;
m=s;
}
s=1;
while(m!=0)
{
s=n%m;
n=m;
m=s;
}
return n;
}
int main()
{
int num;
long long s,y,n;
scanf("%d",&num);
s=1;
f... | 128 | memory_bytes | {'s_id': 's545929470', 'p_id': 'p03633', 'u_id': 'u089230684', 'date': '1514873040', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '479'} | [
{
"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 fun(long long n,long long m)\n{\n long long s;\n if(n<m)\n {\n s=n;\n n=m;\n ... |
CDSS_691984 | CDSS | // ABC069 B - i18n
#include <stdio.h>
#include <string.h>
int main(void) {
char s[101];
scanf("%s", s);
int slen = strlen(s);
printf("%c%d%c\n", s[0], slen - 2, s[slen-1]);
return 0;
} | 128 | memory_bytes | {'s_id': 's489491535', 'p_id': 'p03636', 'u_id': 'u291678294', 'date': '1587180428', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '207'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n// ABC069 B - i18n\n#include <stdio.h>\n#include <string.h>\n\nint main(void) {\n char s[101];\n scanf(\"%s\", s);\n int slen... |
CDSS_608005 | CDSS | #include<stdio.h>
int main(void){
int sum = 0,high = 0,amount = 0,num = 0,cnt;
scanf("%d",&num);
for(cnt = 1 ; cnt <= num ; cnt = cnt + 1){
scanf("%d",&amount);
sum += amount;
if(amount > high){
high = amount;
}
}
sum = sum - (high / 2);
printf("%d",sum);
return 0;
} | 128 | memory_bytes | {'s_id': 's275205010', 'p_id': 'p03207', 'u_id': 'u933623750', 'date': '1547745399', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '295'} | [
{
"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 sum = 0,high = 0,amount = 0,num = 0,cnt;\n\t\n\tscanf(\"%d\",&num);\n\tfor(cnt = 1 ; cnt... |
CDSS_504785 | CDSS | #include<stdio.h>
#include<string.h>
#include<math.h>
int main(){
unsigned long int a,b,k,i;
scanf("%ld %ld %ld",&a,&b,&k);
if(a>=k){
a=a-k;
}
else {
if(b<k-a){
b=0;
}else{
b=b-k+a;
}
a=0;
}
printf("%ld %ld",a,b);
}
| 128 | memory_bytes | {'s_id': 's589496078', 'p_id': 'p02818', 'u_id': 'u815247632', 'date': '1578870494', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '298'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\n#include<math.h>\n\nint main(){\n unsigned long int a,b,k,i;\n scanf(\"%ld %ld %ld\",&a,&b,&k);... |
CDSS_595433 | CDSS | #include<stdio.h>
int main(){
int n,m;
scanf("%d",&n);
scanf("%d",&m);
int q;
int a[m],count[m];
for(int i=0;i<m;i++){
count[i]=0;
}
for(int i=0;i<n;i++){
q=0;
scanf("%d",&q);
for(int j=0;j<q;j++){
scanf("%d",&a[j]);
for(int k=0;k<m;k++){
if(a[j]==k+1){
coun... | 128 | memory_bytes | {'s_id': 's071643163', 'p_id': 'p03126', 'u_id': 'u567480139', 'date': '1550373134', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '470'} | [
{
"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;\n scanf(\"%d\",&n);\n scanf(\"%d\",&m);\n int q;\n int a[m],count[m];\n for(int i=0;i<... |
CDSS_530950 | CDSS | #include<stdio.h>
int main(){
int n,a[21],b[21],c[21],i,sum=0,v[21]={0};
a[0]=10000;
scanf("%d",&n);
for(i=1;i<=n;i++){
scanf("%d",&a[i]);
if(a[i]==a[i-1]+1){
v[a[i-1]]++;
}
}
for(i=1;i<=n;i++){
scanf("%d",&b[i]);
sum+=b[i];
}
for(i=1;i<n;i++){
scanf("%d",&c[i]);
if(v[... | 128 | memory_bytes | {'s_id': 's953651832', 'p_id': 'p02916', 'u_id': 'u097182283', 'date': '1567908005', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '393'} | [
{
"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,a[21],b[21],c[21],i,sum=0,v[21]={0};\n a[0]=10000;\n scanf(\"%d\",&n);\n for(i=1;i<=n;i++... |
CDSS_708011 | CDSS | #include <stdio.h>
#include <stdlib.h>
typedef struct{
int num;
int count;
}NC;
int comp(NC *a, NC *b){
return a->num - b->num;
}
int main(void){
long long int n, k, pos = 0;
int i;
NC nc[100000];
scanf("%lld%lld", &n, &k);
for(i = 0; i < n; i++){
scanf("%d%d", &nc[i]... | 1,788 | memory_bytes | {'s_id': 's996595317', 'p_id': 'p03721', 'u_id': 'u811309788', 'date': '1494725485', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '31', 'memory': '1788', 'code_size': '600'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\ntypedef struct{\n int num;\n int count;\n}NC;\n\nint comp(NC *a, NC *b){\n return ... |
CDSS_116133 | CDSS | #include<stdio.h>
int P,Q,R;
int Not(int x){
if(x==0) return 2;
else if(x==1) return 1;
else return 0;
}
int seki(int x,int y){
if(x==0||y==0) return 0;
else if(x==1||y==1) return 1;
else return 2;
}
int wa(int x,int y){
if(x==2||y==2) return 2;
else if(x==1||y==1) return 1;
else ret... | 2,028 | memory_bytes | {'s_id': 's528354103', 'p_id': 'p00736', 'u_id': 'u952081851', 'date': '1527262985', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2028', 'code_size': '2437'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint P,Q,R;\nint Not(int x){\n if(x==0) return 2;\n else if(x==1) return 1;\n else return 0;\n}\nint seki(i... |
CDSS_48367 | CDSS | #include <stdio.h>
int main(void)
{
int d, s, x, y;
while (scanf("%d", &d) != EOF){
s = 0;
for (x = d; x < 600; x += d){
y = x * x;
s += y * d;
}
printf("%d\n", s);
}
return (0);
} | 596 | memory_bytes | {'s_id': 's810517919', 'p_id': 'p00014', 'u_id': 'u562800402', 'date': '1399020212', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '206'} | [
{
"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 d, s, x, y;\n\t\n\twhile (scanf(\"%d\", &d) != EOF){\n\t\ts = 0;\n\t\tfor (x = d; x < 6... |
CDSS_741095 | CDSS | #include<stdio.h>
#include<math.h>
#include<stdlib.h>
int main(){
int n, soma=0;
scanf("%d", &n);
for(int i=1; i<=n; ++i){
soma+= i;
}
printf("%d\n", soma);
return 0;
}
| 128 | memory_bytes | {'s_id': 's997744041', 'p_id': 'p04029', 'u_id': 'u132266749', 'date': '1588167926', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '203'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<math.h>\n#include<stdlib.h>\n\n\nint main(){\n int n, soma=0;\n scanf(\"%d\", &n);\n\n for(int i=... |
CDSS_177725 | CDSS | #include <stdio.h>
void push(int);
int pop();
int top=0,S[100];
int main(){
int m,n;
char x[7];
while(scanf("%s",x)!=EOF){
if(x[0]>=49&&x[0]<=57) push(atoi(x));
else{
m=pop();
n=pop();
if(x[0]==42) push(n*m);
else if(x[0]==43) push(n+m);
else push(n-m);
}
}
prin... | 548 | memory_bytes | {'s_id': 's686017606', 'p_id': 'p02263', 'u_id': 'u283560097', 'date': '1493172494', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '548', 'code_size': '437'} | [
{
"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 push(int);\nint pop();\n\nint top=0,S[100];\n\nint main(){\n int m,n;\n char x[7];\n\n while(scanf(\"%s\... |
CDSS_494072 | CDSS | #include<stdio.h>
int main(){
int h,n,i,count=0;
scanf("%d%d",&h,&n);
int a[n+1];
for(i=0;i<n;i++){
scanf("%d",&a[i]);
count+=a[i];
}
if(count>=h)
printf("Yes\n");
else
printf("No\n");
return 0;
}
| 512 | memory_bytes | {'s_id': 's780497684', 'p_id': 'p02784', 'u_id': 'u917851778', 'date': '1586861088', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '11', 'memory': '512', '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>\nint main(){\n int h,n,i,count=0;\n scanf(\"%d%d\",&h,&n);\n int a[n+1];\n for(i=0;i<n;i++){\n scanf(\"%d\",&... |
CDSS_19479 | CDSS | #include<stdio.h>
int MAX_X = 9;
int MAX_Y = 9;
int main ( int argc, char **argv )
{
int x,y = 0;
for ( x = 1; x <= MAX_X; x++ ) {
for ( y = 1; y <= MAX_Y; y++ ) {
printf("%dx%d=%d\n", x, y, ( x * y ));
}
}
return 0;
} | 524 | memory_bytes | {'s_id': 's660457911', 'p_id': 'p00000', 'u_id': 'u054375762', 'date': '1497842915', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', 'code_size': '267'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint MAX_X = 9;\nint MAX_Y = 9;\n\n\nint main ( int argc, char **argv )\n{\n\n int x,y = 0;\n for ( x = 1; x... |
CDSS_400108 | CDSS | #include<stdio.h>
int main()
{
long long int n,r=0,i=0,j;
char a[100];
scanf("%lld",&n);
while(1){
if(n==0) break;
n--;
r=n%26;
n=n/26;
a[i]='a'+r;
i++;
}
for(j=i-1;j>=0;j--){
printf("%c",a[j]);
}
return 0;
}
| 1,664 | memory_bytes | {'s_id': 's358226916', 'p_id': 'p02629', 'u_id': 'u621146716', 'date': '1598411090', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1664', '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>\nint main()\n{\n\tlong long int n,r=0,i=0,j;\n\tchar a[100];\n\tscanf(\"%lld\",&n);\n\twhile(1){\n\t\tif(n==0) break... |
CDSS_701029 | CDSS | #include <stdio.h>
int main(){
int r,g,b;
scanf("%d %d %d",&r,&g,&b);
if((100*r+10*g+b)%4 == 0){
printf("YES\n");
}else{
printf("NO\n");
}
} | 128 | memory_bytes | {'s_id': 's298574463', 'p_id': 'p03693', 'u_id': 'u042418462', 'date': '1502033157', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '128', 'code_size': '176'} | [
{
"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 r,g,b;\n scanf(\"%d %d %d\",&r,&g,&b);\n if((100*r+10*g+b)%4 == 0){\n printf(\"Y... |
CDSS_176534 | CDSS | #include <stdio.h>
#include <stdlib.h>
static int stack[100];
static int top = 0;
void push(int v) {
stack[++top] = v;
}
int pop(void) {
return stack[top--];
}
int main(void) {
int a, b;
char input[100];
while ( scanf("%s", input) != EOF ) {
switch (input[0]) {
case '+':
b = pop();
... | 2,020 | memory_bytes | {'s_id': 's422976482', 'p_id': 'p02263', 'u_id': 'u721564448', 'date': '1556761206', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2020', 'code_size': '633'} | [
{
"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\nstatic int stack[100];\nstatic int top = 0;\n\nvoid push(int v) {\n stack[++top] = v;\n}\n... |
CDSS_227445 | CDSS | #include <stdio.h>
int parent(int);
int left(int);
int right(int);
int main(){
int n,i,A[250],j;
scanf("%d",&n);
for(i=1;i<=n;i++){
scanf("%d",&A[i]);
}
for(j=1;j<=n;j++){
printf("node %d: ",j);
printf("key = %d, ",A[j]);
if(parent(j)>=1)
printf("parent key = %d, ",A[parent(j)]);
... | 2,052 | memory_bytes | {'s_id': 's620960033', 'p_id': 'p02287', 'u_id': 'u832523670', 'date': '1579582509', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2052', 'code_size': '601'} | [
{
"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 parent(int);\nint left(int);\nint right(int);\n\n\nint main(){\n int n,i,A[250],j;\n scanf(\"%d\",&n);\n ... |
CDSS_98203 | CDSS | #include <stdio.h>
int main( void ) {
while( 1 ) {
int i, j;
int n, m;
int quest[ 1000 ][ 100 ];
int count[ 100 ], pre[ 100 ], ans[ 100 ];
int cont;
scanf( "%d%d", &n, &m );
if( !n && !m ) break;
for( i = 0; i < n; i++ )
for( j = 0; j < m; j++ )
scanf( "%d", &quest[ i... | 0 | memory_bytes | {'s_id': 's908657949', 'p_id': 'p00428', 'u_id': 'u846661244', 'date': '1336870448', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '0', 'code_size': '1278'} | [
{
"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 while( 1 ) {\n int i, j;\n int n, m;\n int quest[ 1000 ][ 100 ];\n int count... |
CDSS_237292 | CDSS | #include<stdio.h>
main(){
int i,j,k,tmp,side[4];
char way;
scanf("%d %d %d %d %d %d\n",&side[1],&side[2],&side[3],&side[4],&side[5],&side[6]);
while(way!='\n'){
scanf("%c",&way);
if(way=='W'){
tmp=side[1];
side[1]=side[3];
side[3]=side[6];
side[6]=side[4];
side[4]=tmp;
... | 596 | memory_bytes | {'s_id': 's534422203', 'p_id': 'p02383', 'u_id': 'u197317857', 'date': '1405571435', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '773'} | [
{
"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 int i,j,k,tmp,side[4];\n char way;\n scanf(\"%d %d %d %d %d %d\\n\",&side[1],&side[2],&side[3],&side[4... |
CDSS_408909 | CDSS | #include <stdio.h>
int main()
{
long long int mul=1,a[100010];
int n,zero=0,i;
scanf("%d",&n);
for(i=0;i<n;i++)
{
scanf("%lld",&a[i]);
if(a[i]==0)
zero++;
}
if(zero>0)
{
mul=0;
goto tt;
}
else
{
for(i=0;i<n;i++)
{
... | 2,476 | memory_bytes | {'s_id': 's752001996', 'p_id': 'p02658', 'u_id': 'u892103871', 'date': '1591033731', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '28', 'memory': '2476', 'code_size': '557'} | [
{
"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 mul=1,a[100010];\n int n,zero=0,i;\n scanf(\"%d\",&n);\n for(i=0;i<n;i++... |
CDSS_93980 | CDSS | #include <stdio.h>
int main(void){
int w, three[12], k = 0, zero = 0;
scanf("%d", &w);
w += 265720;
while(k < 12){
three[k] = w % 3;
w /= 3;
k++;
}
for(k = 11; k >= 0; k--){
switch(three[k]){
case 0:
printf("-");
zero = 1;
break;
case 1:
if(zero == 1){
prin... | 568 | memory_bytes | {'s_id': 's696509865', 'p_id': 'p00301', 'u_id': 'u862498149', 'date': '1504273395', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '568', 'code_size': '449'} | [
{
"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 w, three[12], k = 0, zero = 0;\n\n scanf(\"%d\", &w);\n w += 265720;\n while(k < 12){\... |
CDSS_183774 | CDSS | #include <stdio.h>
#include <string.h>
#define N 100002
typedef struct A{
char name[100];
int time;
}Point;
Point hi[N];
int head=0,tail=0,n;
void in(Point x);
Point de();
int min(int a,int b){
if(a<b)
return a;
else return b;
}
int main(){
int s=0,c;
int i,p,t;
Point k;
scanf ("%d %d",&p,&t);
for... | 11,872 | memory_bytes | {'s_id': 's757077394', 'p_id': 'p02264', 'u_id': 'u637997769', 'date': '1576240977', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '11872', 'code_size': '738'} | [
{
"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 N 100002\ntypedef struct A{\n char name[100];\n int time;\n}Point;\nPoint hi[N];\ni... |
CDSS_395157 | CDSS | #include <stdio.h>
int main()
{
int a;
scanf("%d", &a);
printf("%d",a+a*a+a*a*a) ;
}
| 1,720 | memory_bytes | {'s_id': 's414866307', 'p_id': 'p02621', 'u_id': 'u692725142', 'date': '1593306747', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1720', 'code_size': '89'} | [
{
"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 a;\n scanf(\"%d\", &a);\n printf(\"%d\",a+a*a+a*a*a) ;\n}\n\nPredict its memory footprint.",... |
CDSS_64316 | CDSS | #include<stdio.h>
int main(){
double a,max,mni;
max=0;
mni=1000000;
while(scanf("%lf",&a)!=EOF){
if(max<a)max=a;
else if(mni>a)mni=a;
}
printf("%.1f\n",max-mni );
return 0;
} | 652 | memory_bytes | {'s_id': 's326382375', 'p_id': 'p00046', 'u_id': 'u949662480', 'date': '1400768997', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '652', 'code_size': '192'} | [
{
"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\t\n\tdouble a,max,mni;\n\n\n\tmax=0;\n\tmni=1000000;\n\n\twhile(scanf(\"%lf\",&a)!=EOF){\n\t\tif(max<... |
CDSS_174946 | CDSS | #include <stdio.h>
#include <string.h>
void bubbleSort(char a[][3],int n);
void selectSort(char a[][3],int n);
void sw(char a[],char b[]);
char A[200][3];
char B[200][3];
int main()
{
int n ;
scanf("%d",&n);
for(int i= 0;i<n;i++){
scanf("%s",A[i]);
strcpy(B[i],A[i... | 2,112 | memory_bytes | {'s_id': 's271826450', 'p_id': 'p02261', 'u_id': 'u954219015', 'date': '1563279248', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '1436'} | [
{
"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 void bubbleSort(char a[][3],int n);\n void selectSort(char a[][3],int n);\n \n void... |
CDSS_188719 | CDSS | #include<stdio.h>
#define N 100000
int serch(int a[], int b, int key){
int i;
for(i=0;i<=b-1;i++){
if(a[i] == key){
return 1;
}
}
return 0;
}
int main(){
int n, q, i, j, count = 0, discount = 0;
int S[N],T[N];
scanf("%d",&n);
for(i=0; i<=n-1;i++){
scanf("%d",&S[i]);
}
sc... | 648 | memory_bytes | {'s_id': 's211909776', 'p_id': 'p02267', 'u_id': 'u803109289', 'date': '1494385043', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '648', 'code_size': '511'} | [
{
"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 100000\n\nint serch(int a[], int b, int key){\n int i;\n for(i=0;i<=b-1;i++){\n if(a[i] == key){\n... |
CDSS_497370 | CDSS | #include<stdio.h>
int main()
{
int a,b;
scanf("%d %d",&a,&b);
if(a>b)
{
for(int i=1;i<a;i++)
{
printf("%d",b);
}
printf("%d\n",b);
}
else if(a<b)
{
for(int i=1;i<b;i++)
{
printf("%d",a);
}
printf("%d\n",a... | 128 | memory_bytes | {'s_id': 's398639938', 'p_id': 'p02790', 'u_id': 'u863370423', 'date': '1590865497', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '468'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n int a,b;\n scanf(\"%d %d\",&a,&b);\n if(a>b)\n {\n for(int i=1;i<a;i++)\n ... |
CDSS_248331 | CDSS | #include <stdio.h>
main(){
int x,ans;
scanf("%d",&x);
ans=x*x*x;
printf("%d\n",ans);
return 0;
} | 596 | memory_bytes | {'s_id': 's333166604', 'p_id': 'p02388', 'u_id': 'u857051250', 'date': '1403076282', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', '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>\nmain(){\n int x,ans;\n scanf(\"%d\",&x);\n ans=x*x*x;\n printf(\"%d\\n\",ans);\n return 0;\n}\nPredict its me... |
CDSS_91070 | CDSS | a,b,c;main(){scanf("%d%d%d",&a,&b,&c);puts(a*b+c?"Open":"Close");exit(0);} | 584 | memory_bytes | {'s_id': 's581302480', 'p_id': 'p00252', 'u_id': 'u363039534', 'date': '1385861336', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '584', 'code_size': '74'} | [
{
"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,b,c;main(){scanf(\"%d%d%d\",&a,&b,&c);puts(a*b+c?\"Open\":\"Close\");exit(0);}\nPredict its memory footprint.",
"role": "user"
... |
CDSS_611730 | CDSS | //b.c B-Palace
#include<stdio.h>
double iabs(double x){
if(x<0){
return -x;
}
return x;
}
int main(void){
int n,t,a;
scanf("%d",&n);
scanf("%d %d",&t,&a);
int h[n];
for(int i=0;i<n;++i){
scanf("%d",&h[i]);
}
double ans;
int num = 0;
ans = (double)t - (d... | 128 | memory_bytes | {'s_id': 's915404081', 'p_id': 'p03220', 'u_id': 'u043363214', 'date': '1586031441', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '586'} | [
{
"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//b.c B-Palace\n#include<stdio.h>\n\ndouble iabs(double x){\n if(x<0){\n return -x;\n }\n return x;\n}\n\nint main(voi... |
CDSS_583179 | CDSS | #include<stdio.h>
#include<math.h>
int main()
{
int i,j,a[6],t=0;
for(i=0;i<6;i++)
{
scanf("%d",&a[i]);
}
for(i=0;i<5;i++)
{
for(j=0;j<5;j++)
{
if(abs(a[i]-a[j])>a[5])
t=1;
}
}
if(t==1)
printf(":(\n");
else
printf("Yay!\n");
return 0;
}
| 128 | memory_bytes | {'s_id': 's117413511', 'p_id': 'p03075', 'u_id': 'u969572393', 'date': '1554579596', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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#include<math.h>\nint main()\n{\n\tint i,j,a[6],t=0;\n\tfor(i=0;i<6;i++)\n\t{\n\t\tscanf(\"%d\",&a[i]);\n\t}\n\tfor... |
CDSS_320550 | CDSS | #include<stdio.h>
int main(void)
{
int a,b;
char op;
while(1)
{
if(op=='?')
break;
scanf("%d %c %d",&a,&op,&b);
if(op=='+')
printf("%d\n",a+b);
if(op=='-')
printf("%d\n",a-b);
if(op=='*')
printf("%d\n",a*b);
if(op=='/')
printf("%d\n",a/b);
}
return 0;
}
... | 2,108 | memory_bytes | {'s_id': 's614485811', 'p_id': 'p02401', 'u_id': 'u840839224', 'date': '1586936232', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '321'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\n int a,b;\n char op;\n while(1)\n {\n if(op=='?')\n break;\n scanf(\"%d %c %d\",&... |
CDSS_230789 | CDSS | #include<stdio.h>
#define NIL -2000000001
#define INFTY 2000000001
int H=1;
int A[INFTY-1];
void maxHeapify(int i){
int l,r,largest,x;
l = 2*i;
r = 2*i+1;
if ((l <= H) &&( A[l] > A[i]))
largest = l;
else
largest = i;
if ((r<= H)&&( A[r] > A[largest]))
largest = r;
if (largest != i){
... | 5,708 | memory_bytes | {'s_id': 's441196493', 'p_id': 'p02289', 'u_id': 'u831730719', 'date': '1581540096', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '290', 'memory': '5708', 'code_size': '1194'} | [
{
"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 NIL -2000000001\n#define INFTY 2000000001\n\nint H=1;\nint A[INFTY-1];\n\nvoid maxHeapify(int i){\n int ... |
CDSS_623225 | CDSS | #include <stdio.h>
int main(){
int a,b;
scanf("%d%d",&a,&b);
a=a-b+1;
printf("%d",a);
return 0;
} | 128 | memory_bytes | {'s_id': 's259249446', 'p_id': 'p03272', 'u_id': 'u054263161', 'date': '1563685312', '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 must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(){\n int a,b;\n scanf(\"%d%d\",&a,&b);\n a=a-b+1;\n printf(\"%d\",a);\n return 0;\n}\nPredict its me... |
CDSS_685267 | CDSS | #include <stdio.h>
int main() {
int N;
scanf("%d", &N);
if ((N % 10) == 9 || (90 <= N)) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
}
| 128 | memory_bytes | {'s_id': 's687737104', 'p_id': 'p03605', 'u_id': 'u489251642', 'date': '1505021867', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', '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>\n\nint main() {\n int N;\n\n scanf(\"%d\", &N);\n\n if ((N % 10) == 9 || (90 <= N)) {\n printf(\"Yes\\n\");\n... |
CDSS_624122 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
int main()
{
int H, W;
scanf("%d%d", &H, &W);
char a[H+1][W+1];
int i, j, k;
for (i = 0; i < H; i++)
scanf("%s", a[i]);
int tate[W], yoko[H];
int judge;
for (i = 0; i < H; i++) {
for (j = 0, judge = 0; j < W; j++) {
if (a[i][... | 128 | memory_bytes | {'s_id': 's264449428', 'p_id': 'p03273', 'u_id': 'u390581401', 'date': '1582782622', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '768'} | [
{
"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()\n{\n\tint H, W;\n\tscanf(\"%d%d\", &H, &... |
CDSS_78928 | CDSS | /*
AizuOnline A0119
Title Taro's obsession
*/
#include <stdio.h>
// Select Below
//#include <stdlib.h>
//#include <string.h>
//#include <float.h>
//#include <math.h>
//#include <limits.h>
//Global data section
#define SHOUGENNO 100
#define NINZUU 20
int n,m;
int x[SHOUGENNO],y[SHOUGENNO];
int flag[NINZUU+1];
//
void sh... | 608 | memory_bytes | {'s_id': 's056045803', 'p_id': 'p00119', 'u_id': 'u708993917', 'date': '1364251869', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '608', 'code_size': '887'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n/*\nAizuOnline A0119\nTitle Taro's obsession\n*/\n#include <stdio.h>\n// Select Below\n//#include <stdlib.h>\n//#include <string.h>\n/... |
CDSS_719764 | CDSS | #include <stdio.h>
int main(void) {
int n,m;
scanf("%d %d", &n, &m);
int a[m],b[m];
for (int i = 0; i < m; i++) {
scanf("%d %d", &a[i], &b[i]);
}
int permutation[n];
for (int i = 0; i < n; i++) {
permutation[i] = i+1;
}
int check[n+1];
for (int j = 1; j <= n; j++) {
check[j] = 1;
}
... | 128 | memory_bytes | {'s_id': 's395889645', 'p_id': 'p03805', 'u_id': 'u581816556', 'date': '1591342786', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '128', 'code_size': '1477'} | [
{
"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,m;\n scanf(\"%d %d\", &n, &m);\n int a[m],b[m];\n for (int i = 0; i < m; i++) {\n... |
CDSS_577535 | CDSS | #include <stdio.h>
#include <stdlib.h>
int main(void)
{
int a, b, c, dis, flag;
scanf("%d %d %d", &a, &b, &c);
dis = abs(a - b);
if (a < b)
{
flag = (a < c) && (c < a + dis);
}
else
{
flag = (a > c) && (c > a - dis);
}
if (flag)
{
printf("Yes\n");
... | 128 | memory_bytes | {'s_id': 's295498961', 'p_id': 'p03067', 'u_id': 'u434812496', 'date': '1555813074', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '387'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\nint main(void)\n{\n int a, b, c, dis, flag;\n\n scanf(\"%d %d %d\", &a, &b, &c);\n\n ... |
CDSS_194555 | CDSS | #include <stdio.h>
#define N 100000
int n, A[N];
binarySearch(int key){
int left = 0;
int right = n;
while(left < right){
int mid = (left + right) / 2;
if (A[mid] == key) return mid;
else if(key < A[mid]) right = mid;
else left = mid + 1;
}
return 0;
}
int main(void... | 2,108 | memory_bytes | {'s_id': 's006119169', 'p_id': 'p02268', 'u_id': 'u531160833', 'date': '1576753672', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2108', 'code_size': '543'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#define N 100000\n\nint n, A[N];\nbinarySearch(int key){\n int left = 0;\n int right = n;\n while(left < ... |
CDSS_318348 | CDSS | #include<stdio.h>
int main(){
int a,b,op,ans=0;
while(1){
scanf("%d %c %df",&a,&op,&b);
if(op=='+'){
ans=a+b;
}
else if(op=='-'){
ans=a-b;
}
else if(op=='*'){
ans=a*b;
}
else if(op=='/'){
ans=a/b;
}
else if(op=='?') {
break;
}
printf("%d\n",ans);
}
return 0;
} | 600 | memory_bytes | {'s_id': 's155696384', 'p_id': 'p02401', 'u_id': 'u995116138', 'date': '1462965330', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', '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(){\n\t\nint a,b,op,ans=0;\n\t\n\nwhile(1){\n\nscanf(\"%d %c %df\",&a,&op,&b);\n\t\nif(op=='+'){\n\tans=a... |
CDSS_623694 | CDSS | /*ex7-3 B-Grid Compression
ryo_1129*/
#include <stdio.h>
#include <stdlib.h>
int main(void){
int height,width,i,j;
int *row,*col;
char **pixel;
//高さと幅の入力
scanf("%d %d",&height,&width);
//黒の含まれる行を記録する配列
row =(int*)calloc(height,sizeof(int));
if(row == NULL){
exit(1);
}
... | 1,640 | memory_bytes | {'s_id': 's676193192', 'p_id': 'p03273', 'u_id': 'u354198749', 'date': '1594617162', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1640', 'code_size': '1690'} | [
{
"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/*ex7-3 B-Grid Compression\nryo_1129*/\n#include <stdio.h>\n#include <stdlib.h>\n\nint main(void){\n int height,width,i,j;\n int... |
CDSS_80867 | CDSS | #include <stdio.h>
int main(){
double b;
int i,n,c,fl0=0,fl1=0,fl2=0,fl3=0,fl4=0,fl5=0;
scanf("%d",&n);
for(c=0;c<n;c++){
scanf("%lf",&b);
if(b < 165.0){
fl0++;
}
else if(b < 170.0){
fl1++;
}
else if(b < 175.0){
fl2++;
... | 624 | memory_bytes | {'s_id': 's214902520', 'p_id': 'p00136', 'u_id': 'u284889485', 'date': '1371296817', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '624', 'code_size': '965'} | [
{
"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 b;\n int i,n,c,fl0=0,fl1=0,fl2=0,fl3=0,fl4=0,fl5=0;\n scanf(\"%d\",&n);\n for(c=0... |
CDSS_579223 | CDSS | #include<stdio.h>
int main(void){
int A, B;
scanf("%d%d", &A, &B);
if(A>B){
printf("%d",2*A-1);
}else if(A==B){
printf("%d",2*B);
}else{
printf("%d",2*B-1);
}
return 0;
} | 128 | memory_bytes | {'s_id': 's731250401', 'p_id': 'p03071', 'u_id': 'u397953026', 'date': '1579154601', '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){\nint A, B;\nscanf(\"%d%d\", &A, &B);\nif(A>B){\nprintf(\"%d\",2*A-1);\n}else if(A==B){\nprintf(\"%d... |
CDSS_38810 | CDSS | #include<stdio.h>
int main(){
int i=0;
char a[20];
while(1){
scanf("%c",&a[i]);
if(a[i]=='\n')break;
i++;
}
i--;
while(i>=0){
printf("%c",a[i]);
i--;
}
printf("\n");
return 0;
} | 524 | memory_bytes | {'s_id': 's764883544', 'p_id': 'p00006', 'u_id': 'u068244524', 'date': '1354979473', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', 'code_size': '192'} | [
{
"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=0;\n\tchar a[20];\n\twhile(1){\n\tscanf(\"%c\",&a[i]);\n\tif(a[i]=='\\n')break;\n\ti++;\n\t}... |
CDSS_644658 | CDSS | #include<stdio.h>
#include<math.h>
int main(){
int x,i,j,ans=0;
scanf("%d",&x);
for(i=1;i<32;i++){
for(j=2;j<10;j++){
if(pow(i,j)<=x&&ans<pow(i,j)){
ans=(int)pow(i,j);
}
}
}
printf("%d",ans);
} | 128 | memory_bytes | {'s_id': 's890077230', 'p_id': 'p03352', 'u_id': 'u244203620', 'date': '1551335311', '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#include<math.h>\nint main(){\n int x,i,j,ans=0;\n scanf(\"%d\",&x);\n for(i=1;i<32;i++){\n for(j=2;j<10;j++)... |
CDSS_500290 | CDSS | #include <stdio.h>
#include <stdlib.h>
int main()
{
char a;
scanf("%c",&a);
if(a!='z')
printf("%c\n",a+1);
else
printf("%c\n",a);
return 0;
}
| 128 | memory_bytes | {'s_id': 's681969083', 'p_id': 'p02801', 'u_id': 'u327472682', 'date': '1578859681', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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>\n#include <stdlib.h>\n\nint main()\n{\n char a;\n scanf(\"%c\",&a);\n if(a!='z')\n printf(\"%c\\n\"... |
CDSS_566624 | CDSS | #include <stdio.h>
int main(){
int a,b,c;
scanf("%d%d",&a,&b);
c = a*3 + b;
printf("%d",c/2);
return 0;
} | 128 | memory_bytes | {'s_id': 's076503297', 'p_id': 'p03029', 'u_id': 'u820341516', 'date': '1561054557', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '125'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(){\n int a,b,c;\n scanf(\"%d%d\",&a,&b);\n c = a*3 + b;\n printf(\"%d\",c/2);\n return 0;\n \n \n ... |
CDSS_442441 | CDSS | #include<stdio.h>
int main(void){
int N,M,a=-1;
int A[10000];
int sum=0;
scanf("%d",&N);
scanf("%d",&M);
for(int i=0;i<M;i++){
scanf("%d",&A[i]);
sum=sum+A[i];
}
if(sum<=N){
printf("%d",N-sum);
}
else{
printf("%d",a);
}
return 0;
} | 1,732 | memory_bytes | {'s_id': 's230338513', 'p_id': 'p02706', 'u_id': 'u773378634', 'date': '1595874365', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1732', '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,a=-1;\n int A[10000];\n int sum=0;\n scanf(\"%d\",&N);\n scanf(\"%d\",&M);\n for... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.