identifier string | space string | input string | target float64 | metric_type string | metadata string | messages list |
|---|---|---|---|---|---|---|
CDSS_380205 | CDSS | #include <stdio.h>
#define N 1000001
int spf[N], u[N], s[17], d, i, k;
char* r = "pairwise";
int gcd(int a, int b) { return b ? gcd(b, a % b) : a; }
main(j) {
while (++i < N)spf[i] = i;
for (i = 2; i * i < N; i++) {
for (j = i * i; j < N; j += i) {
if (spf[j] == j)
spf[j] ... | 9,544 | memory_bytes | {'s_id': 's654208701', 'p_id': 'p02574', 'u_id': 'u021019433', 'date': '1598791553', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '225', 'memory': '9544', 'code_size': '646'} | [
{
"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 1000001\n\nint spf[N], u[N], s[17], d, i, k;\nchar* r = \"pairwise\";\n\nint gcd(int a, int b) { return ... |
CDSS_54554 | CDSS | #include<stdio.h>
int main(void){
int n, i;
float x1, x2, x3, x4, y1, y2, y3, y4, x, y;
scanf("%d", &n);
for ( i = 0; i < n; i++ ) {
scanf("%f %f %f %f %f %f %f %f", &x1, &y1, &x2, &y2, &x3, &y3, &x4, &y4);
if ( ( y2 - y1 ) / ( x2 - x1 ) == ( ( y4 - y3 ) / ( x4 - x3 ) ) )printf("YES\n");... | 1,732 | memory_bytes | {'s_id': 's669963188', 'p_id': 'p00021', 'u_id': 'u328199937', 'date': '1511769006', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1732', 'code_size': '371'} | [
{
"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 n, i;\n float x1, x2, x3, x4, y1, y2, y3, y4, x, y;\n scanf(\"%d\", &n);\n for ( ... |
CDSS_692758 | CDSS | // AtCoder Regular Contest 080 C - 4-adjacent
// 2018.1.11 bal4u
#include <stdio.h>
#include <string.h>
#define getchar_unlocked() getchar()
int in()
{
int n = 0;
int c = getchar_unlocked();
do n = (n<<3)+(n<<1) + (c & 0xf), c = getchar_unlocked();
while (c >= '0');
return n;
}
int main()
{
int N, a;
int i, ... | 128 | memory_bytes | {'s_id': 's628896089', 'p_id': 'p03639', 'u_id': 'u759237395', 'date': '1515728172', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '9', 'memory': '128', 'code_size': '591'} | [
{
"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 Regular Contest 080 C - 4-adjacent\n// 2018.1.11 bal4u\n\n#include <stdio.h>\n#include <string.h>\n\n#define getchar_unlock... |
CDSS_240994 | CDSS | #include <stdio.h>
int main() {
int x;
int y;
scanf("%d", &x);
y = x*x*x;
printf("%d\n", y);
return 0;
} | 596 | memory_bytes | {'s_id': 's786570101', 'p_id': 'p02388', 'u_id': 'u384787981', 'date': '1442199579', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '139'} | [
{
"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 x;\n int y;\n scanf(\"%d\", &x);\n y = x*x*x;\n printf(\"%d\\n\", y);\n ... |
CDSS_259257 | CDSS | #include <stdio.h>
int main(void){
int S;
scanf("%d", &S);
if (0 <= S && S < 86400)
printf("%d:%d:%d\n", S / 3600, (S % 3600) / 60, ((S % 3600) % 60));
return 0;
} | 592 | memory_bytes | {'s_id': 's563177370', 'p_id': 'p02390', 'u_id': 'u807503779', 'date': '1418315375', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', 'code_size': '188'} | [
{
"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 S;\n scanf(\"%d\", &S);\n if (0 <= S && S < 86400)\n printf(\"%d:%d:%d\\n\... |
CDSS_306250 | CDSS | #include<stdio.h>
int main(void){
int a,b,c,i,count=0;
scanf("%d %d %d",&a,&b,&c);
for(i=a;i<=b;i++){
if(c%i==0){
count++;
}
}
printf("%d\n",count);
return 0;
} | 596 | memory_bytes | {'s_id': 's317269876', 'p_id': 'p02398', 'u_id': 'u461145153', 'date': '1502863314', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '175'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n\tint a,b,c,i,count=0;\n\t\n\tscanf(\"%d %d %d\",&a,&b,&c);\n\tfor(i=a;i<=b;i++){\n\t\tif(c%i==0){... |
CDSS_508478 | CDSS |
#include<stdio.h>
int main(void)
{
int n,cnt=0;
scanf("%d",&n);
for(int i=0;i<n;i++){
int tmp;
scanf("%d",&tmp);
if(tmp==cnt+1) cnt++;
}
if(cnt==0) printf("-1");
else printf("%d",n-cnt);
return 0;
} | 128 | memory_bytes | {'s_id': 's108744850', 'p_id': 'p02832', 'u_id': 'u399091677', 'date': '1591659661', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '22', '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\n#include<stdio.h>\n\nint main(void)\n\n{\n\n int n,cnt=0;\n\n scanf(\"%d\",&n);\n\n for(int i=0;i<n;i++){\n\n int tmp;\n\n ... |
CDSS_41097 | CDSS | #include<stdio.h>
int sumOf4(int n){
int a, b, c, d, cout=0;
for(a=0; a<=9; a++){
for(b=0; b<=9; b++){
for(c=0; c<=9; c++){
for(d=0; d<=9; d++){
if(a+b+c+d == n){
cout += 1;
}
}
}
}
}
return cout;
}
int main(){
int n;
int cout;
while(sc... | 596 | memory_bytes | {'s_id': 's808064847', 'p_id': 'p00008', 'u_id': 'u373832724', 'date': '1484212026', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '406'} | [
{
"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 sumOf4(int n){\n int a, b, c, d, cout=0;\n for(a=0; a<=9; a++){\n for(b=0; b<=9; b++){\n for(c=0; c... |
CDSS_649775 | CDSS | #include<stdio.h>
int main(void) {
int N,M,X,A[200];
scanf("%d %d %d\n",&N,&M,&X);
/* if(N<0 || N>100 || M<0 || M>100 || X<0 || X>N-1){
return 0;
}*/
for(int i=0;i<200;i++){
A[i]=0;
}
for(int i=0; i<M; i++){
int data = 0;
if(scanf("%d", &data)==1){
A[data] = 1;
}
}... | 128 | memory_bytes | {'s_id': 's600366193', 'p_id': 'p03378', 'u_id': 'u303400519', 'date': '1523761560', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '604'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n \nint main(void) {\n \n int N,M,X,A[200];\n \n scanf(\"%d %d %d\\n\",&N,&M,&X);\n\n/* if(N<0 || N>100 || M<0 ... |
CDSS_76354 | CDSS | #include<stdio.h>
int main(){
int num[11][11];
int n,i,j;
while(1){
scanf("%d",&n);
if(n==0)break;
for(i=0;i<=n;i++){
for(j=0;j<=n;j++)num[i][j]=0;
}
for(i=0;i<n;i++){
for(j=0;j<n;j++)scanf("%d",&num[i][j]);
}
for(i=0;i<n;i++){
for(j=0;j<n;j++)num[i][n]+=num[i][j];
}
for(i=0;i<n;i++... | 604 | memory_bytes | {'s_id': 's880328411', 'p_id': 'p00102', 'u_id': 'u416593310', 'date': '1430601244', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '604', 'code_size': '803'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n\tint num[11][11];\n\tint n,i,j;\n\t\n\twhile(1){\n\t\tscanf(\"%d\",&n);\n\t\tif(n==0)break;\n\t\tfor(... |
CDSS_724110 | CDSS | #include<stdio.h>
int main()
{
char s[20];
scanf("%s", s);
s[5] = ' ';
s[13] = ' ';
printf("%s\n", s);
return 0;
} | 128 | memory_bytes | {'s_id': 's251060471', 'p_id': 'p03834', 'u_id': 'u538438162', 'date': '1502311013', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '127'} | [
{
"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 char s[20];\n scanf(\"%s\", s);\n s[5] = ' ';\n s[13] = ' ';\n printf(\"%s\\n\", s);\n retu... |
CDSS_673675 | CDSS | #include<stdio.h>
int main(){
int N,A,B,fst;
scanf("%d",&N);
scanf("%d",&A);
scanf("%d",&B);
fst=N*A;
if(fst<B){
printf("%d\n",fst);
}
else{
printf("%d\n",B);
}
return 0;
}
| 128 | memory_bytes | {'s_id': 's500712698', 'p_id': 'p03501', 'u_id': 'u089230684', 'date': '1528183746', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '229'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int N,A,B,fst;\n scanf(\"%d\",&N);\n scanf(\"%d\",&A);\n scanf(\"%d\",&B);\n fst=N*A;\... |
CDSS_179621 | CDSS | #include <stdio.h>
#include <stdlib.h>
int main(int argc,char*argv[]){
int j = 0;
int stac[99];
char str[16];
while(scanf("%s",str) != EOF){
switch(*str){
case '+':
j--;
stac[j-1] += stac[j];
break;
case '-':
j--;
stac[j-1] -= stac[j];
break;
case '*':
... | 548 | memory_bytes | {'s_id': 's405674905', 'p_id': 'p02263', 'u_id': 'u297602045', 'date': '1397525089', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '548', 'code_size': '472'} | [
{
"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(int argc,char*argv[]){\n\n int j = 0;\n int stac[99];\n char str[16];\n\n whil... |
CDSS_742505 | CDSS | #include <stdio.h>
#include <string.h>
int main(void) {
int i = 0;
int j = 0;
int count = 0;
char s[11];
char answer[11];
scanf("%s",s);
for(i = 0; i < 11; i++){
if(s[i] == '0'){
answer[j] = '0';
j++;
}
else if(s[i] == '1'){
answer[j] = '1';
j++;
}
else if(s[i] == 'B'){
... | 128 | memory_bytes | {'s_id': 's705807779', 'p_id': 'p04030', 'u_id': 'u414772150', 'date': '1549945293', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '464'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\nint main(void) {\n int i = 0;\n int j = 0;\n int count = 0;\n char s[11];\n char answer[... |
CDSS_612667 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
typedef struct{
int a;
int p;
int y;
int t;
}city_s;
int citysort(const void *a, const void *b){
int city = ((city_s*)a)->p - ((city_s*)b)->p;
int year = ((city_s*)a)->y - ((city_s*)b)->y;
if(city != 0){
return city;
}els... | 4,588 | memory_bytes | {'s_id': 's019941142', 'p_id': 'p03221', 'u_id': 'u235231201', 'date': '1561939348', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '121', 'memory': '4588', 'code_size': '1159'} | [
{
"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\ntypedef struct{\n int a;\n int p;\n int y;\n int t;\n}city_s;... |
CDSS_91228 | CDSS | // Aizu 0258: Kitchen Garden
// 2017.9.8 bal4u@uu
#include <stdio.h>
#include <stdlib.h>
typedef struct { int d, c; } T;
T tbl[4]; int len;
int h[103], d[103];
int cmp(T *a, T *b) { return b->c - a->c; }
int main()
{
int n, i, j, dd, ans;
while (scanf("%d", &n) && n) {
scanf("%d", h);
for (i = 1; i <= n; i+... | 1,860 | memory_bytes | {'s_id': 's457813581', 'p_id': 'p00253', 'u_id': 'u847467233', 'date': '1504903637', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1860', 'code_size': '964'} | [
{
"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// Aizu 0258: Kitchen Garden\n// 2017.9.8 bal4u@uu\n\n#include <stdio.h>\n#include <stdlib.h>\n\ntypedef struct { int d, c; } T;\nT tb... |
CDSS_637490 | CDSS | #include <stdio.h>
#include <string.h>
int main(void)
{
int a;
int b;
scanf("%d %d",&a,&b);
if(a<9 && b<9){
printf("Yay!");
}else{
printf(":(");
}
return 0;
} | 128 | memory_bytes | {'s_id': 's974506941', 'p_id': 'p03323', 'u_id': 'u538792943', 'date': '1532362343', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '178'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\nint main(void)\n{\n int a;\n int b;\n scanf(\"%d %d\",&a,&b);\nif(a<9 && b<9){\n pri... |
CDSS_325447 | CDSS | #include <stdio.h>
int main(int argc, const char * argv[]) {
int a,n,i,min=1000000,max=-1000000;
long sum=0;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d",&a);
sum+=a;
if(min>a)
min=a;
if(max<a)
max=a;
}
printf("%d %d %ld\n",min,max,sum);
... | 600 | memory_bytes | {'s_id': 's795881875', 'p_id': 'p02402', 'u_id': 'u315014509', 'date': '1495424182', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '334'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(int argc, const char * argv[]) {\n int a,n,i,min=1000000,max=-1000000;\n long sum=0;\n scanf(\... |
CDSS_135585 | CDSS | #include<stdio.h>
main(){
int i,n,top,k,v[101];
int a[101][101],j;
for(i=0;i<101;i++){
for(j=0;j<101;j++){
a[i][j]=0;
}
}
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d %d",&top,&k);
for(j=0;j<k;j++){
scanf("%d",&v[j]);
a[top-1][v[j]-1]=1;
}
}
for(i=0;i<n;i+... | 644 | memory_bytes | {'s_id': 's764631177', 'p_id': 'p02237', 'u_id': 'u292822538', 'date': '1373595339', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '644', 'code_size': '448'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nmain(){\n int i,n,top,k,v[101];\n int a[101][101],j;\n\n for(i=0;i<101;i++){\n for(j=0;j<101;j++){\n a... |
CDSS_634002 | CDSS | #include <stdio.h>
main(){
int max=-1e9;
int min=1e9;
int t;
int n;
scanf("%d",&n);
int i;
for(i=0;i<n;i++){
scanf("%d",&t);
if(max<t)
max=t;
if(min>t)
min=t;
}
printf("%d\n",max-min);
} | 128 | memory_bytes | {'s_id': 's658472909', 'p_id': 'p03308', 'u_id': 'u744344124', 'date': '1530492083', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '229'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nmain(){\n int max=-1e9;\n int min=1e9;\n int t;\n int n;\n scanf(\"%d\",&n);\n int i;\n for(i=0;i<n;i++){... |
CDSS_500293 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
int compare_int(const void *a, const void *b)
{
return *(int*)a - *(int*)b;
// return *(long long*)a - *(long long*)b;
}
// qsort(A, b, sizeof(int), compare_int);
long long factorial(long long n) {
if (n > 0) {
return n... | 256 | memory_bytes | {'s_id': 's310373742', 'p_id': 'p02801', 'u_id': 'u301843562', 'date': '1578859614', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '256', 'code_size': '1979'} | [
{
"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\n\nint compare_int(const void *a, const void *b)\n{\... |
CDSS_353771 | CDSS | /* ITP1_7_A: Grading*/
/* 20181123 AOJ */
#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
typedef struct {
int score[3];
int sum;
} Student;
int main(void) {
int i, n, m, f, r;
Student std[50] = {0};
i = 0;
while(1){
scanf("%d %d %d", &m, &f, &r);
if(m == -1 && f == -1 && r == -1) {
break;
} else... | 2,052 | memory_bytes | {'s_id': 's448749360', 'p_id': 'p02411', 'u_id': 'u761232808', 'date': '1542949904', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2052', 'code_size': '853'} | [
{
"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/* ITP1_7_A: Grading*/\n/* 20181123 AOJ */\n\n#define _CRT_SECURE_NO_WARNINGS\n\n#include <stdio.h>\n\ntypedef struct {\n\tint score[3... |
CDSS_569051 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<string.h>
//関数宣言
//int func(int x, int y);
int main(void){
//スカラー入力
int r,D,A;
scanf("%d %d %d", &r, &D, &A);
int ans=A;
for(int i=0; i<10; i++){
ans = ans*r - D;
printf("%d\n", ans);
}
return 0;
}
| 128 | memory_bytes | {'s_id': 's956372653', 'p_id': 'p03036', 'u_id': 'u004843292', 'date': '1558832806', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '309'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#include<math.h>\n#include<string.h>\n\n//関数宣言\n//int func(int x, int y);\n\nint main(void){\n\... |
CDSS_70954 | CDSS | #include <stdio.h>
#include <string.h>
int m[15][15];
int n,h,w;
void put(int i)
{
if(w>=n) w = 0;
else if(w<0) w = n-1;
if(h>=n) h = 0;
if(m[h][w] != 0) {
h++; w--;
put(i);
}else{
m[h][w] = i;
}
}
int main()
{
int k;
for(;;){
scanf("%d",&n);
if(n == 0) break;
memset(m,0,sizeof(m... | 0 | memory_bytes | {'s_id': 's265402583', 'p_id': 'p00078', 'u_id': 'u324171823', 'date': '1321238803', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', '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 <string.h>\nint m[15][15];\nint n,h,w;\nvoid put(int i)\n{\n if(w>=n) w = 0;\n else if(w<0) w = n-1;\n ... |
CDSS_367848 | CDSS | #include <stdio.h>
#include <string.h>
int main(void)
{
char a[256],b[256];
scanf("%s\n",a);
scanf("%s\n",b);
strncat(a,a,strlen(b));
if(strstr(a,b)){
printf("Yes\n");
}else{
printf("No\n");
}
return 0;
} | 1,820 | memory_bytes | {'s_id': 's475627981', 'p_id': 'p02418', 'u_id': 'u212318768', 'date': '1511887101', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1820', 'code_size': '224'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\nint main(void)\n{\n char a[256],b[256];\n\n scanf(\"%s\\n\",a);\n scanf(\"%s\\n\",b);\n\n s... |
CDSS_338346 | CDSS | #include<stdio.h>
void call(int n)
{
int i = 1;
for (; i <= n; i++){
int x = i;
if (x % 3 == 0){
printf(" %d", i);
continue;
}
do{
if (x % 10 == 3){
printf(" %d", i);
break;
}
x /= 10;
} while (x);
}
putchar('\n');
}
int main()
{
int n;
scanf("%d", &n);
call(n);
return 0;
} | 596 | memory_bytes | {'s_id': 's055240520', 'p_id': 'p02406', 'u_id': 'u004140766', 'date': '1450690201', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '319'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nvoid call(int n)\n{\n\tint i = 1;\n\t\n\tfor (; i <= n; i++){\n\t\tint x = i;\n\t\tif (x % 3 == 0){\n\t\t\tprintf... |
CDSS_640659 | CDSS | #include <malloc.h>
#include <math.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
//ABC99C
int main(void) {
int n, k, i, cou=0, tmp, six[10], nin[10];
scanf("%d", &n);
int dp[n+1];
for(i=0; i<10; i++){
six[i]=pow(6, i+1), nin[i]=pow(9, i+1);
}
for(i=0; i<=n; i++){
dp[i]=i;
}
for... | 512 | memory_bytes | {'s_id': 's502581042', 'p_id': 'p03329', 'u_id': 'u859946952', 'date': '1589491234', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '512', 'code_size': '641'} | [
{
"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 <malloc.h>\n#include <math.h>\n#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n\n//ABC99C\nint main(void) {\n ... |
CDSS_625005 | CDSS | #include<stdio.h>
int main(void){
int a, b;
scanf("%d %d", &a, &b);
printf("%d", a * b - (a + b - 1));
} | 128 | memory_bytes | {'s_id': 's049810188', 'p_id': 'p03280', 'u_id': 'u133385308', 'date': '1592018722', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '109'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void){\n\nint a, b;\n\nscanf(\"%d %d\", &a, &b);\n\nprintf(\"%d\", a * b - (a + b - 1));\n\n}\nPredict i... |
CDSS_550250 | CDSS | #include<stdio.h>
int main()
{
int n,a,b,t,T;
scanf("%d %d %d",&n,&a,&b);
T=n*a;
if(T==b)
printf("%d",T);
else if(T>b)
printf("%d",b);
else
printf("%d",T);
return 0;
}
| 128 | memory_bytes | {'s_id': 's135997541', 'p_id': 'p02981', 'u_id': 'u353919145', 'date': '1571379102', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '223'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n int n,a,b,t,T;\n scanf(\"%d %d %d\",&n,&a,&b);\n T=n*a;\n if(T==b)\n printf(\"%d... |
CDSS_203519 | CDSS | #include <stdio.h>
#include <limits.h>
#define ARRAY_SIZE 500000
#define DIV_SIZE 250001
int A[ARRAY_SIZE];
int L[DIV_SIZE];
int R[DIV_SIZE];
int count;
void merge(int left, int mid, int right)
{
int i, j, k, n1, n2;
n1 = mid - left;
n2 = right - mid;
count += right - left;
for (i = 0; i < n1; i++) L[i] = A[l... | 5,624 | memory_bytes | {'s_id': 's779813836', 'p_id': 'p02272', 'u_id': 'u641702731', 'date': '1513167737', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '100', 'memory': '5624', 'code_size': '946'} | [
{
"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 <limits.h>\n\n#define ARRAY_SIZE 500000\n#define DIV_SIZE 250001\n\nint A[ARRAY_SIZE];\nint L[DIV_SIZE];\... |
CDSS_65123 | CDSS | #include <stdio.h>
main(){
int s,a=0,b=0,ab=0,o=0;
char blood[3];
while(scanf("%d,%s",&s,blood) !=EOF){
if(blood[0]=='A'&&blood[1]=='B') ab++;
else if(blood[0]=='B') b++;
else if(blood[0]=='A') a++;
else if(blood[0]=='O') o++;
}
printf("%d\n%d\n%d\n%d\n",a,b,ab,o);
return 0;
} | 0 | memory_bytes | {'s_id': 's535874839', 'p_id': 'p00049', 'u_id': 'u915493477', 'date': '1273898897', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '307'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nmain(){\n int s,a=0,b=0,ab=0,o=0;\n char blood[3];\n while(scanf(\"%d,%s\",&s,blood) !=EOF){\n if(blood[0]==... |
CDSS_639901 | CDSS | main(){
int n;
scanf("%d", &n);
if (n<=999) puts("ABC");
else puts("ABD");
} | 128 | memory_bytes | {'s_id': 's713640633', 'p_id': 'p03327', 'u_id': 'u200381930', 'date': '1531602362', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '76'} | [
{
"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(){\nint n;\nscanf(\"%d\", &n);\nif (n<=999) puts(\"ABC\");\nelse puts(\"ABD\");\n}\nPredict its memory footprint.",
"role": "... |
CDSS_99447 | CDSS | #include <stdio.h>
int mem[35];
int main(void)
{
int i, s;
for (i = 0; i < 28; i++){
scanf("%d", &s);
mem[s - 1] = 1;
}
s = 1;
for (i = 0; i < 30; i++){
if (mem[i] == 0){
printf("%d\n",i + 1);
s++;
}
}
return (0);
} | 596 | memory_bytes | {'s_id': 's325459924', 'p_id': 'p00434', 'u_id': 'u135535121', 'date': '1380805991', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', '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 mem[35];\n\nint main(void)\n{\n\tint i, s;\n\t\n\tfor (i = 0; i < 28; i++){\n\t\tscanf(\"%d\", &s);\n\t\tmem... |
CDSS_251079 | CDSS | #include<stdio.h>
int main(){
int a, b;
int x, y;
scanf("%d", &x);
scanf("%d", &y);
a = x*y;
b = 2 * x + 2 * y;
printf("%d %d\n", a,b);
return 0;
} | 596 | memory_bytes | {'s_id': 's284863337', 'p_id': 'p02389', 'u_id': 'u041278197', 'date': '1445497912', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '157'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n\n\tint a, b;\n\tint x, y;\n\n\tscanf(\"%d\", &x);\n\tscanf(\"%d\", &y);\n\ta = x*y;\n\tb = 2 * x + 2 ... |
CDSS_259904 | CDSS | #include<stdio.h>
int main(void){
int h, m, s;
scanf("%d",&s);
m = s / 60;
s = s % 60;
h = m / 60;
m = m % 60;
printf("%d:%d:%d\n",h,m,s);
return 0;
} | 592 | memory_bytes | {'s_id': 's345172328', 'p_id': 'p02390', 'u_id': 'u878035281', 'date': '1445328521', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', 'code_size': '158'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n\tint h, m, s;\n\tscanf(\"%d\",&s);\n\tm = s / 60;\n\ts = s % 60;\n\th = m / 60;\n\tm = m % 60;\n\... |
CDSS_394057 | CDSS | #include<stdio.h>
int main(){
int i,j,k;
int d; //365
int c[26];
int score[9490];
int t[365] = {0};
int day1[365] = {0};
double x = 0.36787944117;
int tmp1=-99999,tmp2=-99999;
scanf("%d",&d);
for(i=0;i<26;i++){
scanf("%d ",&c[i]);
}
for(i=0;i<d*26;i++){
scanf("%d ",&score[i]);
}... | 2,208 | memory_bytes | {'s_id': 's696762544', 'p_id': 'p02618', 'u_id': 'u956872271', 'date': '1593394535', 'language': 'C', 'original_language': 'C (Clang 10.0.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '9', 'memory': '2208', 'code_size': '560'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int i,j,k;\n int d;\t//365\n int c[26];\n int score[9490];\n int t[365] = {0};\n int day1[365] ... |
CDSS_234651 | CDSS | //
// main.c
// Triangle
//
// Created by x17090xx on 2019/05/31.
// Copyright © 2019 AIT. All rights reserved.
//
#include <stdio.h>
#include <math.h>
int main(int argc, const char * argv[]) {
double a=0, b=0, c=0, s=0, l=0, h=0;
int deg=0;
double rad=0;
double PI = acos(-1);//円周率
s... | 2,076 | memory_bytes | {'s_id': 's243251325', 'p_id': 'p02380', 'u_id': 'u506224871', 'date': '1559298022', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2076', 'code_size': '681'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n//\n// main.c\n// Triangle\n//\n// Created by x17090xx on 2019/05/31.\n// Copyright © 2019 AIT. All rights reserved.\n//\n\n#inclu... |
CDSS_527296 | CDSS | #include <stdio.h>
int main(void)
{
char s[100];
scanf("%s",s);
if(s[0] == 'S'){
printf("Cloudy\n");
} else if(s[0] == 'C'){
printf("Rainy\n");
} else {
printf("Sunny\n");
}
return 0;
} | 128 | memory_bytes | {'s_id': 's171204763', 'p_id': 'p02909', 'u_id': 'u506314975', 'date': '1587084215', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '241'} | [
{
"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 char s[100];\n\n scanf(\"%s\",s);\n\n if(s[0] == 'S'){\n printf(\"Cloudy\\n\... |
CDSS_598392 | CDSS | #include <stdio.h>
#include <stdlib.h>
int cmpnum(const void * n1, const void * n2)
{
if (*(long *)n1 > *(long *)n2)
{
return -1;
}
else if (*(long *)n1 < *(long *)n2)
{
return 1;
}
else
{
return 0;
}
}
int main(void){
long n,m;
scanf("%ld %ld", &n, &m);
long x[m];
for (long i = 0; i < m; i++)... | 2,284 | memory_bytes | {'s_id': 's771540004', 'p_id': 'p03137', 'u_id': 'u581816556', 'date': '1587387404', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '31', 'memory': '2284', 'code_size': '696'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\nint cmpnum(const void * n1, const void * n2)\n{\n\tif (*(long *)n1 > *(long *)n2)\n\t{\n\t\... |
CDSS_145256 | CDSS | #include <stdio.h>
int main(){
int n, i, j, k, v;
int N = 100;
int a[N];
scanf("%d", &n);
for(i = 0;i < n;i++){
scanf("%d", &a[i]);
}
for(i = 0;i < n;i++){
printf("%d", a[i]);
if(i < n-1){
printf(" ");
}
}
printf("\n");
for(i = 1;i < n... | 604 | memory_bytes | {'s_id': 's022891649', 'p_id': 'p02255', 'u_id': 'u139212708', 'date': '1479791336', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '604', 'code_size': '665'} | [
{
"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, i, j, k, v;\n int N = 100;\n int a[N];\n scanf(\"%d\", &n);\n for(i = 0;i < ... |
CDSS_449646 | CDSS | #include<stdio.h>
#include<string.h>
int main(void)
{
char s[3];
scanf("%s",s);
int i=0;
while(s[i]){
if(s[i]=='7'){
printf("Yes\n");
return 0;
}
i++;
}
printf("No\n");
return 0;
}
| 1,660 | memory_bytes | {'s_id': 's796283626', 'p_id': 'p02711', 'u_id': 'u282902995', 'date': '1586742394', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1660', 'code_size': '257'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\nint main(void)\n{\n char s[3];\n scanf(\"%s\",s);\n int i=0;\n while(s[i]){\n ... |
CDSS_175516 | CDSS | #include <stdio.h>
#define ASIZE 1048576
#define GSIZE 524288
int m, cnt = 0;
int insertionSort(int *A, int n, int g){
int i, j, v;
for (i = g; i < n; i++) {
v = A[i];
j = i - g;
while (j >= 0 && A[j] > v) {
A[j + g] = A[j];
j -= g;
cnt++;
}
A[j + g] = v;
}
return cnt;
}
... | 6,768 | memory_bytes | {'s_id': 's759861238', 'p_id': 'p02262', 'u_id': 'u867613855', 'date': '1441342943', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '380', 'memory': '6768', 'code_size': '994'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\n#define ASIZE 1048576\n#define GSIZE 524288\n\nint m, cnt = 0;\nint insertionSort(int *A, int n, int g){\n int ... |
CDSS_704707 | CDSS | #include<stdio.h>
int main(){
long long a,b,c,i,r=0,p,ff,ss;
scanf("%lld%lld",&a,&b);
if(a==b){
printf("1\n");
return 0;
}
for(i=61;i>=0;i--){
if((a&(1ll<<i))!=(b&(1ll<<i))){p=i;break;}
if((a&(1ll<<i))!=0){
a^=(1ll<<i);
b^=(1ll<<i);
}
}
r+=((1ll<<p)-a);
ff=(1ll<<p);
fo... | 128 | memory_bytes | {'s_id': 's454840382', 'p_id': 'p03708', 'u_id': 'u721060623', 'date': '1565945265', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '565'} | [
{
"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 long long a,b,c,i,r=0,p,ff,ss;\n scanf(\"%lld%lld\",&a,&b);\n if(a==b){\n printf(\"1\\n\");\n... |
CDSS_149934 | CDSS | #include <stdio.h>
void insertion_sort(int a[], int n)
{
int i, tmp;
for(i = 0; i < n-1; i++)
printf("%d " ,a[i]);
printf("%d\n", a[n-1]);
for (i = 1; i < n; i++){
int j = i;
while (j >= 1 && a[j - 1] > a[j]) {
tmp = a[j-1];
a[j-1] = a[j];
a[j] =... | 2,108 | memory_bytes | {'s_id': 's075816052', 'p_id': 'p02255', 'u_id': 'u705661439', 'date': '1563111380', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '638'} | [
{
"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 insertion_sort(int a[], int n)\n{\n int i, tmp;\n for(i = 0; i < n-1; i++)\n \tprintf(\"%d \" ,a[i... |
CDSS_112454 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<math.h>
#define FOR(n) for(int i=0;i<n;i++)
#define FORJ(n) for(int j=0;j<n;j++)
#define PRN(n) printf("%d\n",n)
#define PRF(n) printf("%lf\n",n)
#define PRL(n) printf("%lld\n",n)
#define PRS(s) printf("%s\n",s)
#define PRC(c) printf("%c",c)
#define INF 1... | 2,036 | memory_bytes | {'s_id': 's116113682', 'p_id': 'p00627', 'u_id': 'u029152603', 'date': '1570247755', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2036', 'code_size': '1112'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#include<string.h>\n#include<math.h>\n#define FOR(n) for(int i=0;i<n;i++)\n#define FORJ(n) for(... |
CDSS_246763 | CDSS | #include <stdio.h>
int main(void) {
int x;
scanf("%d",&x);
printf("%d\n",x*x*x);
return 0;
}
| 2,036 | memory_bytes | {'s_id': 's709114436', 'p_id': 'p02388', 'u_id': 'u457600756', 'date': '1519537222', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2036', 'code_size': '117'} | [
{
"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 x;\n \n scanf(\"%d\",&x);\n printf(\"%d\\n\",x*x*x);\n return 0;\n}\n\nP... |
CDSS_527579 | CDSS | #include<stdio.h>
int main(){
int a=0;
scanf("%c",&a);
if(a=='S')
printf("Cloudy\n");
else if(a=='C')
printf("Rainy\n");
else
printf("Sunny\n");
return 0;} | 128 | memory_bytes | {'s_id': 's216969744', 'p_id': 'p02909', 'u_id': 'u188486233', 'date': '1570125373', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '180'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int a=0;\n scanf(\"%c\",&a);\n if(a=='S')\n printf(\"Cloudy\\n\");\n else if(a=='C')\n prin... |
CDSS_485977 | CDSS | #include <stdio.h>
#include <string.h>
#include <math.h>
#include <stdlib.h>
int main() {
int n, middle = 0, staminaP[3], aux1, aux2, aux3;
memset(staminaP, 0, sizeof(staminaP));
scanf("%d", &n);
int locale[n];
for(int i = 0; i < n; i++)
{
scanf("%d", &locale[i]);
middle += ... | 128 | memory_bytes | {'s_id': 's192313826', 'p_id': 'p02767', 'u_id': 'u692343914', 'date': '1582426301', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '941'} | [
{
"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#include <stdlib.h>\n\nint main() {\n int n, middle = 0, staminaP[3], a... |
CDSS_229094 | CDSS | #include <stdio.h>
#define N 500000
int A[N];
int n;
int parent(int);
int left(int);
int right(int);
void maxHeapify(int);
void buildMaxHeap();
int main(){
int i;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d",&A[i]);
}
buildMaxHeap();
for(i=0;i<n;i++){
printf(" %d",A[i]);
}printf("\n");
... | 2,552 | memory_bytes | {'s_id': 's056260490', 'p_id': 'p02288', 'u_id': 'u804743964', 'date': '1498711810', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '110', 'memory': '2552', 'code_size': '865'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\n#define N 500000\n\nint A[N];\nint n;\n\nint parent(int);\nint left(int);\nint right(int);\nvoid maxHeapify(int)... |
CDSS_208628 | CDSS | #include <stdio.h>
void CountingSort(int[], int[], int);
int n, A[2000001], B[2000001];
int main(){
int i;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d",&A[i]);
}
CountingSort(A, B, 10000);
for (i=1;i<=n;i++){
if (i>1) printf(" ");
printf("%d",B[i]);
}
printf("\n");
return 0;... | 16,264 | memory_bytes | {'s_id': 's935611297', 'p_id': 'p02275', 'u_id': 'u429172325', 'date': '1496372236', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '400', 'memory': '16264', 'code_size': '678'} | [
{
"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 CountingSort(int[], int[], int);\n\nint n, A[2000001], B[2000001];\n\nint main(){\n int i;\n \n scanf(\"... |
CDSS_305335 | CDSS | #include <stdio.h>
int main()
{
int a, b, c, cnt = 0, num = 0;
scanf("%d%d%d", &a, &b, &c);
for (; a <= b; a++)
{
num = c % a;
if (num == 0)
{
cnt++;
}
}
printf("%d\n", cnt);
return 0;
} | 596 | memory_bytes | {'s_id': 's707727883', 'p_id': 'p02398', 'u_id': 'u358840634', 'date': '1476362076', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', '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#include <stdio.h>\n\nint main()\n{\n\tint a, b, c, cnt = 0, num = 0;\n\tscanf(\"%d%d%d\", &a, &b, &c);\n\tfor (; a <= b; a++)\n\t{\n\... |
CDSS_116778 | CDSS | /*
* 1167.c: Pollock's conjecture
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/* constant */
#define MAX_N (1000000)
#define MAX_THN (200)
/* global variables */
static int sums[MAX_N + 1], osums[MAX_N + 1];
static int thns[MAX_THN], othns[MAX_THN];
/* subroutines */
void min_sums(int *sums, ... | 8,412 | memory_bytes | {'s_id': 's556332156', 'p_id': 'p00748', 'u_id': 'u137027976', 'date': '1419321511', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '210', 'memory': '8412', 'code_size': '1039'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n/*\n * 1167.c: Pollock's conjecture\n */\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\n/* constant */\n\n#define ... |
CDSS_686411 | CDSS | #include<stdio.h>
int main(){
int a,b;
scanf("%d %d",&a,&b);
int c=a-b;
if(c<=0)
c=0;
printf("%d",c);
return 0;
}
| 2,132 | memory_bytes | {'s_id': 's542792882', 'p_id': 'p03609', 'u_id': 'u818967913', 'date': '1599715948', 'language': 'C', 'original_language': 'C (Clang 10.0.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '2132', 'code_size': '136'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int a,b;\n scanf(\"%d %d\",&a,&b);\n int c=a-b;\n if(c<=0)\n c=0;\n \n \n printf(\"%d\",c);... |
CDSS_462885 | CDSS | #include <stdio.h>
void swap(int *a,int *b)
{
int tmp;
tmp=*a;
*a=*b;
*b=tmp;
}
int main (void)
{
int a,b,c;
scanf("%d",&a);
scanf("%d",&b);
scanf("%d",&c);
swap(&a,&b);
swap(&a,&c);
printf("%d %d %d",a,b,c);
return 0;
}
| 1,724 | memory_bytes | {'s_id': 's310539882', 'p_id': 'p02717', 'u_id': 'u506341449', 'date': '1590431357', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1724', 'code_size': '317'} | [
{
"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>\nvoid swap(int *a,int *b)\n{\n int tmp;\n tmp=*a;\n *a=*b;\n *b=tmp;\n}\n\n\n\nint main (void)\n{\n... |
CDSS_165224 | CDSS | #include<stdio.h>
int main(){
int num,A[100],i,j,k=0,tmp,flag;
scanf("%d",&num);
for(i=0;i<num;i++){
scanf("%d",&A[i]);
}
for(i=0;i<num;i++){
flag=1;
while(flag){
flag=0;
for(j=num-1;j>=i+1;j--){
if(A[j]<A[j-1]){
tmp=A[j];
A[j]=A[j-1];
A[j-1]=tmp;
flag=1;
k++;
... | 600 | memory_bytes | {'s_id': 's040685374', 'p_id': 'p02259', 'u_id': 'u411264309', 'date': '1460599637', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '452'} | [
{
"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 num,A[100],i,j,k=0,tmp,flag;\n\n scanf(\"%d\",&num);\n for(i=0;i<num;i++){\n scanf(\"%d... |
CDSS_547312 | CDSS | #include<stdio.h>
int main(void){
int r=0;
scanf("%d",&r);
printf("%d\n",3*r*r);
return 0;
} | 128 | memory_bytes | {'s_id': 's449945007', 'p_id': 'p02969', 'u_id': 'u069125420', 'date': '1563670899', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '109'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void){\n int r=0;\n scanf(\"%d\",&r);\n printf(\"%d\\n\",3*r*r);\n return 0;\n}\nPredict its... |
CDSS_543214 | CDSS | #include <stdio.h>
int main(void){
// Your code here!
int i,flag;
int N;
long H[100001];
flag = 0;
scanf("%d",&N);
for(i=1;N>=i;i++){
scanf("%ld",&H[i]);
if(i>1){
if(H[i]>H[i-1]) H[i]--;
}
}
for(i=2;N>=i;i++){
if(H[i-1]>H[i])... | 896 | memory_bytes | {'s_id': 's723098173', 'p_id': 'p02953', 'u_id': 'u288500561', 'date': '1564968027', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '13', 'memory': '896', 'code_size': '420'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\n // Your code here!\n int i,flag;\n int N;\n long H[100001];\n \n flag = 0;\n ... |
CDSS_112173 | CDSS | /*
AizuOnline A1032
Title:Course Planning for Lazy Students
*/
#include <stdio.h>
// Select Below
//#include <stdlib.h>
//#include <string.h>
//#include <float.h>
//#include <math.h>
#include <limits.h>
//Global data section
#define NOOFSUBJECT 20
int n;
int U;
struct subj_st
{int c;
int k;
int r[NOOFSUBJECT];
in... | 604 | memory_bytes | {'s_id': 's936920801', 'p_id': 'p00618', 'u_id': 'u708993917', 'date': '1362795698', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '360', 'memory': '604', 'code_size': '1917'} | [
{
"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 A1032\nTitle:Course Planning for Lazy Students\n*/\n#include <stdio.h>\n// Select Below\n//#include <stdlib.h>\n//#incl... |
CDSS_580283 | CDSS | #include<stdio.h>
int main()
{
int N,i,j,count=1, max;
scanf("%d", &N);
int H[N];
for(i=0; i<N;i++)
scanf("%d", &H[i]);
max = H[0];
for(j=1; j<N; j++)
{
if(H[j]>=max)
{
max = H[j];
count++;
}
}
printf("%d\n", count);
return ... | 1,688 | memory_bytes | {'s_id': 's559841744', 'p_id': 'p03072', 'u_id': 'u089230684', 'date': '1600214747', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1688', 'code_size': '326'} | [
{
"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,i,j,count=1, max;\n scanf(\"%d\", &N);\n int H[N];\n for(i=0; i<N;i++)\n sca... |
CDSS_718581 | CDSS | #include<stdio.h>
int main(void)
{
long long int n, m;
long long int ans;
scanf("%lld %lld", &n, &m);
if (n >= m/2) {
ans = m / 2;
}
else {
ans = n + (m - 2 * n) / 4;
}
printf("%lld\n", ans);
return 0;
} | 128 | memory_bytes | {'s_id': 's120371861', 'p_id': 'p03799', 'u_id': 'u993235301', 'date': '1492489745', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '220'} | [
{
"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\tlong long int n, m;\n\tlong long int ans;\n\tscanf(\"%lld %lld\", &n, &m);\n\n\tif (n >= m/2... |
CDSS_242561 | CDSS | #include<stdio.h>
int main(void){
int x, a;
scanf("%d", &x);
a = x* x* x;
printf("%d\n", a);
return 0;
} | 596 | memory_bytes | {'s_id': 's339260971', 'p_id': 'p02388', 'u_id': 'u127827580', 'date': '1462497809', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '117'} | [
{
"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\nint x, a;\n\n\nscanf(\"%d\", &x);\n\n\na = x* x* x;\n\n\nprintf(\"%d\\n\", a);\n\n\nreturn 0... |
CDSS_711369 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <math.h>
#include <limits.h>
#define Max(a, b) ((a) > (b) ? (a) : (b))
#define Min(a, b) ((a) > (b) ? (b) : (a))
#define abs(x) ((x) > 0 ? (x) : -(x))
#define MOD (ll)1000000007 //10^9 + 7
#define endl printf("\n")
typedef long lon... | 128 | memory_bytes | {'s_id': 's624643596', 'p_id': 'p03740', 'u_id': 'u801102476', 'date': '1566958716', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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#include <stdlib.h>\n#include <stdbool.h>\n#include <string.h>\n#include <math.h>\n#include <limits.h>\n#define Ma... |
CDSS_433070 | CDSS | #include<stdio.h>
int main(void){
int a,b,c,d,i;
int cnt1=0;
int cnt2=0;
scanf("%d %d %d %d", &a,&b,&c,&d);
for(i=0;i*b<c;i++){
cnt1++;
}
for(i=0;i*d<a;i++){
cnt2++;
}
if(cnt1 <= cnt2){
printf("Yes\n");
} else {
printf("No\n");
}
}
| 1,660 | memory_bytes | {'s_id': 's433659025', 'p_id': 'p02700', 'u_id': 'u511060113', 'date': '1595267344', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1660', '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:\n#include<stdio.h>\n\nint main(void){\n int a,b,c,d,i;\n int cnt1=0;\n int cnt2=0;\n scanf(\"%d %d %d %d\", &a,&b,&c,&d);\n f... |
CDSS_190035 | CDSS | #include <stdio.h>
int a[10500],n;
int linearSearch(int key){
int i;
a[n]=key;
for(i=0; i<n; i++)
if(key==a[i])
return 1;
return 0;
}
int main(){
int count=0,i,q,b;
scanf("%d",&n);
for(i=0; i<n; i++)
scanf("%d",&a[i]);
scanf("%d",&q);
for(i=0; i<q; i++){
scanf("%d",&b);
... | 2,104 | memory_bytes | {'s_id': 's503986602', 'p_id': 'p02267', 'u_id': 'u097555122', 'date': '1530499441', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '424'} | [
{
"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 a[10500],n;\n\nint linearSearch(int key){\n int i;\n \n a[n]=key;\n \n for(i=0; i<n; i++)\n if(key==... |
CDSS_383732 | CDSS | #include<stdio.h>
int main(void)
{
int i,t=0,f=0;
char s[10];
scanf("%s",s);
for(i=0;i<3;i++){
if(s[i]=='R'&&f==0){
t++;
}
else if(s[i]=='S'&&t>0){
f=1;
}
}
printf("%d\n",t);
return 0;
} | 1,724 | memory_bytes | {'s_id': 's893216485', 'p_id': 'p02582', 'u_id': 'u218315167', 'date': '1597519052', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1724', 'code_size': '230'} | [
{
"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 i,t=0,f=0;\n char s[10];\n scanf(\"%s\",s);\n for(i=0;i<3;i++){\n if(s[i]=='R'&&f==0... |
CDSS_276251 | 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': 's034443021', 'p_id': 'p02392', 'u_id': 'u283685418', 'date': '1461293240', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', 'code_size': '153'} | [
{
"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 a,b,c;\n\tscanf(\"%d %d %d\",&a,&b,&c);\n\tif(a<b&&b<c){\n\t\tprintf(\"Yes\\n\");\n\t}\n... |
CDSS_398570 | CDSS | #include <stdio.h>
int main(){
char name;
scanf("%c", &name);
if(name >= 'a' && name <= 'z') {
printf("a\n");
}
else {
printf("A\n");
}
} | 1,568 | memory_bytes | {'s_id': 's880376179', 'p_id': 'p02627', 'u_id': 'u089230684', 'date': '1595793678', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1568', 'code_size': '155'} | [
{
"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\tchar name;\n\n\tscanf(\"%c\", &name);\n\t\n\t\tif(name >= 'a' && name <= 'z') {\n\t\tprintf(\"a\\... |
CDSS_229181 | CDSS | #include<stdio.h>
#define MAX 2000001
int H, A[MAX];
void maxHeapify(int i){
int l,r,biggest,tmp;
l=2*i;
r=2*i+1;
if(l<=H&&A[l]>A[i])
biggest=l;
else
biggest=i;
if(r<=H&&A[r]>A[biggest])
biggest=r;
if(biggest!=i){
tmp=A[i];
A[i]=A[biggest];
A[biggest]=tmp;
maxHeapify(biggest)... | 2,552 | memory_bytes | {'s_id': 's278088444', 'p_id': 'p02288', 'u_id': 'u272355876', 'date': '1501898286', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '110', 'memory': '2552', 'code_size': '537'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#define MAX 2000001\n\nint H, A[MAX];\n\nvoid maxHeapify(int i){\n int l,r,biggest,tmp;\n l=2*i;\n r=2*i+1;\n i... |
CDSS_303371 | CDSS | #include<stdio.h>
main(){
int x;
int y;
while(1){
scanf("%d %d",&x,&y);
if(x==0 && y==0)break;
if(y<=x){
printf("%d %d\n",y,x);
}
else if(x<=y){
printf("%d %d\n",x,y);
}
}
return 0;
} | 600 | memory_bytes | {'s_id': 's555508694', 'p_id': 'p02397', 'u_id': 'u082259412', 'date': '1398668663', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '229'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nmain(){\n int x;\n int y;\n while(1){\n scanf(\"%d %d\",&x,&y);\n if(x==0 && y==0)break;\n if(y<=x){\n ... |
CDSS_53906 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
int main()
{
int c;
while ((c = getchar()) != EOF) {
putchar(toupper(c));
}
return 0;
}
| 2,032 | memory_bytes | {'s_id': 's694127466', 'p_id': 'p00020', 'u_id': 'u529337794', 'date': '1533648893', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2032', 'code_size': '174'} | [
{
"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 <ctype.h>\n \nint main()\n{\n int c;\n \n while ((c = getchar()) != EOF) {\n ... |
CDSS_509433 | CDSS | #include <stdio.h>
int main()
{
int A1,A2,A3,sum;
scanf("%d %d %d", &A1,&A2,&A3);
if((A1+A2+A3)>=22) {
printf("bust");
}
else {
printf("win");
}
return 0;
}
| 256 | memory_bytes | {'s_id': 's637639350', 'p_id': 'p02835', 'u_id': 'u018679195', 'date': '1581137588', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '256', 'code_size': '201'} | [
{
"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 A1,A2,A3,sum;\n scanf(\"%d %d %d\", &A1,&A2,&A3);\n if((A1+A2+A3)>=22) {\n pri... |
CDSS_23619 | CDSS | #include<stdio.h>
int main(){
int i,j,t,data[10];
for(i=0;i<10;i++)
{
scanf("%d",&data[i]);
}
for(i=0;i<9;i++)
{
for(j=0;j<9-i;j++)
{
if(data[j]<data[j+1])
{
t=data[j];
data[j]=data[j+1];
... | 600 | memory_bytes | {'s_id': 's074575402', 'p_id': 'p00001', 'u_id': 'u962970458', 'date': '1483419471', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '447'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n \nint main(){\n int i,j,t,data[10];\n \n for(i=0;i<10;i++)\n {\n scanf(\"%d\",&data[i]);\n ... |
CDSS_463504 | CDSS | #include<stdio.h>
int main() {
int x, y, z;
int bx, by, bz;
scanf("%d %d %d", &bx, &by, &bz);
x = bz;
y = bx;
z = by;
printf("%d %d %d", x, y, z);
return 0;
} | 128 | memory_bytes | {'s_id': 's530263090', 'p_id': 'p02717', 'u_id': 'u737015864', 'date': '1586049183', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '167'} | [
{
"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 x, y, z;\n\tint bx, by, bz;\n\tscanf(\"%d %d %d\", &bx, &by, &bz);\n\tx = bz;\n\ty = bx;\n\tz... |
CDSS_361475 | CDSS | #include<stdio.h>
#include<ctype.h>
int main(){
char ch;
while(1){
scanf("%c",&ch);
if(ch=='\n')break;
if(islower(ch)){
ch = toupper(ch);
}else if(isupper(ch)){
ch = tolower(ch);
}
printf("%c",ch);
}
printf("\n");
return 0;
}
| 524 | memory_bytes | {'s_id': 's167297608', 'p_id': 'p02415', 'u_id': 'u955830252', 'date': '1433594488', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', '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#include<ctype.h>\n\nint main(){\n char ch;\n\n while(1){\n scanf(\"%c\",&ch);\n if(ch=='\\n')break;\n\n ... |
CDSS_201365 | CDSS | #include <stdio.h>
int n, q, m;
int a[20], flgs[2001];
int solve(int i, int remain) {
if (remain == 0) return 1;
else if (i >= n) return 0;
return solve(i+1, remain-a[i]) || solve(i+1, remain);
}
int main(void){
scanf("%d", &n);
for (int i=0; i<n; i++) scanf("%d", &a[i]);
scanf("%d", &q)... | 2,120 | memory_bytes | {'s_id': 's111445930', 'p_id': 'p02271', 'u_id': 'u059999661', 'date': '1536556083', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '430', 'memory': '2120', 'code_size': '457'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint n, q, m;\nint a[20], flgs[2001];\n\nint solve(int i, int remain) {\n if (remain == 0) return 1;\n else... |
CDSS_367812 | CDSS | #include <stdio.h>
#include <string.h>
int main(){
int i,lenp;
char moji_s[202],moji_p[202],moji_x[202],moji_y[202],*sp,*p;
scanf("%s",moji_s);
scanf("%s",moji_p);
i=0;
lenp=strlen(moji_s);
sp=moji_s;
for (i=0;i<lenp;++i){
strcpy(moji_x,sp+1);
... | 540 | memory_bytes | {'s_id': 's447154142', 'p_id': 'p02418', 'u_id': 'u239600616', 'date': '1503040989', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '540', 'code_size': '589'} | [
{
"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\n int i,lenp;\n char moji_s[202],moji_p[202],moji_x[202],moji_y[202],*s... |
CDSS_340414 | CDSS | #include <stdio.h>
int main()
{
int x,i,n;
scanf("%d",&n);
for(i=1; i<=n; i++)
{
x = i;
if(x %3 == 0)
{
printf(" %d",i);
}
else if(x % 10 == 3)
{ printf(" %d",i);
}
else
{
while(x != 0)
{
x /=10;
if(x % 10 == 3)
{ printf(" %d",i);
break;
}
}
}
}
printf("\n");
return 0;
}
| 2,064 | memory_bytes | {'s_id': 's972941337', 'p_id': 'p02406', 'u_id': 'u477123882', 'date': '1528790050', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2064', 'code_size': '301'} | [
{
"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{ \nint x,i,n; \nscanf(\"%d\",&n); \nfor(i=1; i<=n; i++) \n{ \nx = i; \nif(x %3 == 0) \n{ \nprintf(\... |
CDSS_204011 | CDSS | #include <stdio.h>
#include <limits.h>
long c = 0;
void merge(long *a, long left, long mid, long right){
long n1, n2, i, j, k;
n1 = mid - left;
n2 = right - mid;
long l[n1 + 1], r[n2 + 1];
for(i = 0; i < n1; ++i) l[i] = a[left + i];
for(i = 0; i < n2; ++i) r[i] = a[mid + i];
l[n1] = LONG_MAX;
r[n2] = ... | 8,412 | memory_bytes | {'s_id': 's220107598', 'p_id': 'p02272', 'u_id': 'u709185111', 'date': '1394188969', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '160', 'memory': '8412', 'code_size': '896'} | [
{
"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 <limits.h>\n\nlong c = 0;\n\nvoid merge(long *a, long left, long mid, long right){\n long n1, n2, i, j, ... |
CDSS_392032 | CDSS | #include<stdio.h>
int main(void){
int n,c;
scanf("%d",&n);
for(c= 0; c < n;){
c = c + 1000;
}
printf("%d",c-n);
return 0;
} | 1,736 | memory_bytes | {'s_id': 's848010685', 'p_id': 'p02612', 'u_id': 'u382716774', 'date': '1593997529', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1736', 'code_size': '157'} | [
{
"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,c;\n scanf(\"%d\",&n);\n\n for(c= 0; c < n;){\n c = c + 1000;\n }\n ... |
CDSS_347034 | CDSS | #include <stdio.h>
int main(void){
int cards[128][14] = {{0}};
int i, N;
scanf("%d", &N);
for(i = 0; i < N; i++) {
char c; int cn;
scanf("%c", &c);
scanf("%c %d", &c, &cn);
cards[c][cn] = 1;
}
for(i = 1; i <= 13; i++) {
if(cards['S'][i] == 0) {
... | 2,100 | memory_bytes | {'s_id': 's842539291', 'p_id': 'p02408', 'u_id': 'u433250944', 'date': '1530578684', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2100', 'code_size': '697'} | [
{
"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 cards[128][14] = {{0}};\n int i, N;\n scanf(\"%d\", &N);\n for(i = 0; i < N; i++... |
CDSS_423693 | CDSS | #include<stdio.h>
int main(void)
{
int n,k,d,s,cnt=0;
int a[200]={0},i,j,l;
scanf("%d %d",&n,&k);
for(i=1;i<=k;i++){
scanf("%d",&d);
for(j=1;j<=d;j++){
scanf("%d",&s);
a[s]++;
}
}
for(i=1;i<=n;i++){
if(a[i]==0){
cnt++;
... | 1,736 | memory_bytes | {'s_id': 's014198878', 'p_id': 'p02688', 'u_id': 'u282902995', 'date': '1588556030', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1736', 'code_size': '367'} | [
{
"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 n,k,d,s,cnt=0;\n int a[200]={0},i,j,l;\n scanf(\"%d %d\",&n,&k);\n\n for(i=1;i<... |
CDSS_140494 | CDSS | #include<stdio.h>
#define MAX 100
#define INF 1000000
#define white 0
#define gray 1
#define black 2
int n,u,M[MAX][MAX];
void dijkstra(void);
int main(){
int i,j,k,v,c;
scanf("%d",&n);
for(i=0;i<n;i++){
for(j=0;j<n;j++){
M[i][j] = INF;
}
}
for(i=0;i<n;i++){
scanf("%d %d",&u,&k);
for(j=... | 636 | memory_bytes | {'s_id': 's900073618', 'p_id': 'p02242', 'u_id': 'u666494266', 'date': '1469435256', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '636', 'code_size': '998'} | [
{
"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\t\n#define MAX 100\n#define INF 1000000\n#define white 0\n#define gray 1\n#define black 2\n\t \nint n,u,M[MAX][MAX... |
CDSS_654901 | CDSS | #include<stdio.h>
int main(void)
{
int a,b,i,j,k,n,ans=0;
scanf("%d%d",&a,&b);
for(i=1;i<=9;i++){
for(j=0;j<=9;j++){
for(k=0;k<=9;k++){
n=10001*i+1010*j+100*k;
if(n>=a && n<=b)
ans++;
}
}
}
printf("%d",ans);
return 0;
} | 128 | memory_bytes | {'s_id': 's446707500', 'p_id': 'p03416', 'u_id': 'u151785909', 'date': '1587517095', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '249'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void)\n{\n\tint a,b,i,j,k,n,ans=0;\n\tscanf(\"%d%d\",&a,&b);\n\tfor(i=1;i<=9;i++){\n\t\tfor(j=0;j<=9;j++... |
CDSS_145834 | CDSS | #include <stdio.h>
int main(){
int n,v,i,j,k,A[100];
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d",&A[i]);
}
for(i=0;i<n;i++){
printf("%d",A[i]);
if(i!=n-1)printf(" ");
}
printf("\n");
for(i=1;i<=n-1;i++){
v=A[i];
j=i-1;
while(j>=0 && A[j]>v){
A[j+1]=A[j];
j--;
A[j+1]... | 604 | memory_bytes | {'s_id': 's341198928', 'p_id': 'p02255', 'u_id': 'u570450279', 'date': '1492051867', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '604', 'code_size': '445'} | [
{
"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(){\n int n,v,i,j,k,A[100];\n \n scanf(\"%d\",&n);\n \n for(i=0;i<n;i++){\n scanf(\"%d\",&A[i]... |
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 must 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] = 1;... |
CDSS_70424 | CDSS | #include <stdio.h>
main(){
int a;
double b,c;
while(1){
if(scanf("%d,%lf,%lf", &a, &b, &c)==EOF) break;
if(25.0<=b/c/c) printf("%d\n", a);
}
return 0;
} | 0 | memory_bytes | {'s_id': 's118658393', 'p_id': 'p00075', 'u_id': 'u622083648', 'date': '1283355514', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', '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>\n\nmain(){\n int a;\n double b,c;\n\n while(1){\n if(scanf(\"%d,%lf,%lf\", &a, &b, &c)==EOF) break;\n\n if... |
CDSS_593162 | CDSS | #include <stdio.h>
int main(void)
{
int y, m, d;
char a;
scanf("%d%c%d%c%d", &y, &a, &m, &a, &d);
if (m <= 4)
{
printf("Heisei");
}
else
{
printf("TBD");
}
return 0;
} | 128 | memory_bytes | {'s_id': 's131629617', 'p_id': 'p03109', 'u_id': 'u471251895', 'date': '1560254990', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '223'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void)\n{\n int y, m, d;\n char a;\n scanf(\"%d%c%d%c%d\", &y, &a, &m, &a, &d);\n if (m <= 4)\... |
CDSS_736046 | CDSS | r;
main(c){for(;(c=getchar())>10;)c-83?r&&--r:++r;printf("%d\n",r*2);} | 128 | memory_bytes | {'s_id': 's702669294', 'p_id': 'p03986', 'u_id': 'u280667879', 'date': '1475873988', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '128', 'code_size': '70'} | [
{
"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:\nr;\nmain(c){for(;(c=getchar())>10;)c-83?r&&--r:++r;printf(\"%d\\n\",r*2);}\nPredict its memory footprint.",
"role": "user"
},
... |
CDSS_403010 | CDSS | #include<stdio.h>
void main()
{
int n,c,i,j,s=0;
scanf("%d",&n);
scanf("%d",&c);
i=0;
j=n;
while(i<=n && j>=0)
{
s = 2*i+4*j;
if(s==c){
printf("Yes");
break;
}
i++;
j--;
}
if(i>n)
printf("No");
}
| 1,712 | memory_bytes | {'s_id': 's035795004', 'p_id': 'p02640', 'u_id': 'u973352616', 'date': '1592187071', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '9', 'memory': '1712', 'code_size': '230'} | [
{
"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>\nvoid main()\n{\nint n,c,i,j,s=0;\nscanf(\"%d\",&n);\nscanf(\"%d\",&c);\n i=0;\n j=n;\nwhile(i<=n && j>=0)\n{\n\ts... |
CDSS_187210 | CDSS | #include <stdio.h>
int search(int A[], int n, int key){
int i = 0;
A[n] = key;
while (A[i] != key) i++;
return i != n;
}
int main(void){
// Your code here!
int i, n, A[10000+1], q, key, sum=0;
scanf("%d", &n);
for( i = 0; i < n; i++ ) scanf("%d", &A[i]);
scanf("%d", &q);
... | 2,108 | memory_bytes | {'s_id': 's869764729', 'p_id': 'p02267', 'u_id': 'u794299088', 'date': '1545762306', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '469'} | [
{
"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 search(int A[], int n, int key){\n int i = 0;\n A[n] = key;\n while (A[i] != key) i++;\n return ... |
CDSS_161024 | CDSS | #include <stdio.h>
#define N 200000
int main(){
int n, i, j, maxv = 0, minv = 0;
int a[N];
scanf("%d", &n);
for(i = 0; i < n; i++){
scanf("%d", &a[i]);
}
minv = a[0];
maxv = a[1] - a[0];
for(j = 1; j < n; j++){
if(maxv < (a[j] - minv)) maxv = a[j] - minv;
if(minv > a[j]) minv = a[j];
}... | 1,376 | memory_bytes | {'s_id': 's268851968', 'p_id': 'p02258', 'u_id': 'u579466089', 'date': '1466753317', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '30', 'memory': '1376', 'code_size': '360'} | [
{
"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 200000\n\nint main(){\n int n, i, j, maxv = 0, minv = 0;\n int a[N];\n\n scanf(\"%d\", &n);\n for(... |
CDSS_614555 | CDSS | // programming education
#include <stdio.h>
int main(void){
int n;
scanf("%d", &n);
if(n == 1){
printf("Hello World\n");
}else{
int a, b;
scanf("%d %d", &a, &b);
printf("%d\n", a + b);
}
return 0;
} | 128 | memory_bytes | {'s_id': 's726748385', 'p_id': 'p03238', 'u_id': 'u078832908', 'date': '1538875363', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '258'} | [
{
"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// programming education\n\n#include <stdio.h>\n\nint main(void){\n int n;\n scanf(\"%d\", &n);\n\n if(n == 1){\n prin... |
CDSS_668650 | CDSS | #include <stdio.h>
int findSumOfDigits(int n) {
int sum = 0;
while (n > 0) {
sum += n % 10;
n /= 10;
}
return sum;
}
int main() {
int N,A,B;
scanf("%d%d%d",&N,&A,&B);
int total = 0;
for (int i = 1; i <= N; ++i) {
int sum = findSumOfDigits(i);
if (sum >= A... | 128 | memory_bytes | {'s_id': 's510601363', 'p_id': 'p03478', 'u_id': 'u225607881', 'date': '1580250818', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '419'} | [
{
"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 findSumOfDigits(int n) {\n int sum = 0;\n while (n > 0) {\n sum += n % 10;\n n /= 10;\n ... |
CDSS_487342 | CDSS | int main(void){
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
printf("%s",(a==b) + (b==c) + (a==c) == 1 ? "Yes" : "No" );
} | 128 | memory_bytes | {'s_id': 's446740165', 'p_id': 'p02771', 'u_id': 'u888734843', 'date': '1582567230', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '128'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nint main(void){\n int a,b,c;\n \n scanf(\"%d %d %d\",&a,&b,&c);\n \n printf(\"%s\",(a==b) + (b==c) + (a==c) == 1 ? \"Yes\" : \"No... |
CDSS_200888 | CDSS | #include<stdio.h>
int Exhaustive(int,int);
int n,A[100];
int main()
{
int yamagami,a,i;
scanf("%d",&n);
for(i=0;i<n;i++)
scanf("%d",&A[i]);
scanf("%d",&yamagami);
for(i=0;i<yamagami;i++)
{
scanf("%d",&a);
if(Exhaustive(0,a))
printf("yes\n");
else
... | 2,120 | memory_bytes | {'s_id': 's874953909', 'p_id': 'p02271', 'u_id': 'u353393057', 'date': '1577340274', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '500', 'memory': '2120', 'code_size': '541'} | [
{
"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 Exhaustive(int,int);\n\nint n,A[100];\n\nint main()\n{\n int yamagami,a,i;\n\n scanf(\"%d\",&n);\n for... |
CDSS_737005 | CDSS | #include<stdio.h>
int main()
{
int a,b,c,d;
scanf("%d%d%d",&a,&b,&c);
d=((a+b)*c)/2;
printf("%d\n",d);
return 0;
}
| 128 | memory_bytes | {'s_id': 's495172449', 'p_id': 'p03997', 'u_id': 'u816631826', 'date': '1589145863', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '135'} | [
{
"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,c,d;\n scanf(\"%d%d%d\",&a,&b,&c);\n d=((a+b)*c)/2;\n printf(\"%d\\n\",d);\n ... |
CDSS_348200 | CDSS | #include <stdio.h>
int main(void)
{
int a[4][3][10] = {0};
int n, i;
int bl, fl, ro;
scanf("%d", &n);
for (i = 0; i < n; i++) {
int b, f, r, v;
scanf("%d %d %d %d", &b, &f, &r, &v);
a[b - 1][f - 1][r - 1] += v;
}
for (bl = 1; bl < 5; bl++) {
for ( fl = 1; fl < 4; fl++) {
for ( ro = 1; ro < 11; ro+... | 612 | memory_bytes | {'s_id': 's092145305', 'p_id': 'p02409', 'u_id': 'u915037133', 'date': '1443361969', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '612', 'code_size': '462'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n\tint a[4][3][10] = {0};\n\tint n, i;\n\tint bl, fl, ro;\n\n\tscanf(\"%d\", &n);\n\n\tfor (i ... |
CDSS_95701 | CDSS | #include<stdio.h>
#include<math.h>
int main(){
int w,h;
char a;
char c[25][25];
scanf("%d %d %c",&h,&w,&a);
for(int i=0; i<w; i++){
for(int j=0; j<h; j++){
if(i==0 || i==w-1){
if(j==0 || j==h-1) c[i][j] = '+';
else c[i][j] = '-';
}
else{
if(j==0 || j==h-1) c[i][j... | 2,100 | memory_bytes | {'s_id': 's460290584', 'p_id': 'p00363', 'u_id': 'u851121794', 'date': '1527354918', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2100', 'code_size': '518'} | [
{
"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 w,h;\n char a;\n char c[25][25];\n\n scanf(\"%d %d %c\",&h,&w,&a);\n for(i... |
CDSS_595105 | CDSS | #include <stdio.h>
int main()
{
int i, j, N, M, K[31], A[31][31];
scanf("%d %d", &N, &M);
for (i = 1; i <= N; i++) {
scanf("%d", &(K[i]));
for (j = 1; j <= K[i]; j++) scanf("%d", &(A[i][j]));
}
int ans = 0, count[31] = {};
for (i = 1; i <= N; i++) {
for (j = 1; j <= K[i]; j++) count[A[i][j]]++;
}
for... | 128 | memory_bytes | {'s_id': 's268411343', 'p_id': 'p03126', 'u_id': 'u943800443', 'date': '1589077783', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '419'} | [
{
"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, j, N, M, K[31], A[31][31];\n\tscanf(\"%d %d\", &N, &M);\n\tfor (i = 1; i <= N; i++) {\n\... |
CDSS_622846 | CDSS | #include<stdio.h>
int main(){
int n,k;
unsigned long count=0;
unsigned long abs_s=0;
unsigned long abs_t=0, abs_u=0;
scanf("%d %d", &n, &k);
for(int a=1;a<n+1;a++){
if((2*a)%k==0){
abs_s++;
if(a%k==0)
abs_t++;
}
}
abs_u = abs_s - abs_t;
count = abs_s + (abs_u*(abs_u-1... | 128 | memory_bytes | {'s_id': 's653962813', 'p_id': 'p03266', 'u_id': 'u220272043', 'date': '1536255762', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '128', 'code_size': '450'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n int n,k;\n unsigned long count=0;\n unsigned long abs_s=0;\n unsigned long abs_t=0, abs_u=0;\n ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.