identifier string | space string | input string | target float64 | metric_type string | metadata string | messages list |
|---|---|---|---|---|---|---|
CDSS_129311 | CDSS | #include<stdio.h>
#include<stdlib.h>
#define N 45
int F[N];
int fibonacci(int n){
int i;
F[0]=F[1]=1;
for(i = 2;i <= n;i++){
F[i] = F[i- 2] + F[i -1];
}
return F[n];
}
int main(){
int n;
scanf("%d",&n);
printf("%d\n",fibonacci(n));
return 0;
}
| 2,108 | memory_bytes | {'s_id': 's359959300', 'p_id': 'p02233', 'u_id': 'u983188948', 'date': '1532181119', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', '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\n\n#define N 45\nint F[N];\n\nint fibonacci(int n){\n int i;\n F[0]=F[1]=1;\n for(i =... |
CDSS_400550 | CDSS | #include <stdio.h>
#include <inttypes.h>
int main(void) {
uint64_t N;
uint64_t capacity = 26, pc = 0, delta = 1;
int gotiusanokokoa[1024];
int sumipe = 0;
int i;
int count = 0;
if (scanf("%" SCNu64, &N) != 1) return 1;
if (N > 26) {
int num;
while (capacity < N) {
pc = capacity;
delta *= 26;
capac... | 1,664 | memory_bytes | {'s_id': 's540454887', 'p_id': 'p02629', 'u_id': 'u646118499', 'date': '1592790584', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1664', '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#include <inttypes.h>\n\nint main(void) {\n\tuint64_t N;\n\tuint64_t capacity = 26, pc = 0, delta = 1;\n\tint goti... |
CDSS_716083 | CDSS | #include<stdio.h>
#include<stdlib.h>
int less(const void* a, const void* b){
return *(int*)a - *(int*)b;
}
int is_no_need(int i, const int* a, int K, int N){
int dp[K];
for(int k = 0; k < K; k++) dp[k] = 0;
for(int j = 1; j <= N; j++){
for(int k = K - 1; k >= 0; k--){
if(j != i && a[j] <= k && dp... | 252 | memory_bytes | {'s_id': 's506886412', 'p_id': 'p03780', 'u_id': 'u788717734', 'date': '1582223986', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '428', 'memory': '252', 'code_size': '1078'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 less(const void* a, const void* b){\n return *(int*)a - *(int*)b;\n}\n\nint is_no_need(i... |
CDSS_741756 | CDSS | #include<stdio.h>
int main(void)
{
int N, i;
int sum = 0;
scanf("%d", &N);
for(i = 0; i <= N; i++){
sum = sum + i;
}
printf("%d", sum);
return 0;
}
| 128 | memory_bytes | {'s_id': 's854437623', 'p_id': 'p04029', 'u_id': 'u200729311', 'date': '1492402546', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '151'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\nint N, i;\nint sum = 0;\nscanf(\"%d\", &N);\nfor(i = 0; i <= N; i++){\n sum = sum + i;\n}\nprint... |
CDSS_67290 | CDSS | #include <stdio.h>
int main(void){
int n;
while(scanf("%d",&n) != EOF){
printf("%d\n",1+n*(n+1)/2);
}
return 0;
} | 0 | memory_bytes | {'s_id': 's797451847', 'p_id': 'p00057', 'u_id': 'u642549559', 'date': '1254111639', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '126'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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;\n while(scanf(\"%d\",&n) != EOF){\n printf(\"%d\\n\",1+n*(n+1)/2);\n }\n return ... |
CDSS_372879 | CDSS | #include <stdio.h>
#include <stdlib.h>
int main()
{
int i, n, q, nq, t, x;
fscanf(stdin, "%d %d", &n, &nq);
int **queue = (int**)malloc(sizeof(int*)*n);
int *head = (int*)malloc(sizeof(int)*n);
int *tail = (int*)malloc(sizeof(int)*n);
for (i=0; i<n; i++) {
queue[i] = (int*)malloc(sizeof(int)*nq);
... | 6,532 | memory_bytes | {'s_id': 's171168212', 'p_id': 'p02436', 'u_id': 'u800534567', 'date': '1552624847', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '30', 'memory': '6532', 'code_size': '740'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 int i, n, q, nq, t, x;\n fscanf(stdin, \"%d %d\", &n, &nq);\n int **que... |
CDSS_45571 | CDSS | #include <stdio.h>
int main(void)
{
int number[30];
int i;
int w;
int n;
char conma;
int a1;
int a2;
int swap;
for (i = 0; i < 30; i++){
number[i] = i + 1;
}
scanf("%d", &w);
scanf("%d", &n);
for (i = 0; i < n; i++){
scanf("%d %c %d", &a1, &conma, &a2);
swap = number[a1 - 1];
number[a1 - 1] ... | 596 | memory_bytes | {'s_id': 's757270248', 'p_id': 'p00011', 'u_id': 'u374098633', 'date': '1412247579', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '440'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 number[30];\n\tint i;\n\tint w;\n\tint n;\n\tchar conma;\n\tint a1;\n\tint a2;\n\tint s... |
CDSS_162976 | CDSS | #include <stdio.h>
int main(void){
int i,n,temp;
int max,min,second;
scanf("%d",&n);
scanf("%d",&second);
scanf("%d",&temp);
max=temp;
if(temp<second){
min=temp;
}else{
min=second;
}
for(i=0;i<n-2;i++){
scanf("%d",&temp);
if(temp-min>max-second){
max=temp;
second=min;
}
if (temp>max){... | 1,852 | memory_bytes | {'s_id': 's407063019', 'p_id': 'p02258', 'u_id': 'u679955434', 'date': '1511849210', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '1852', 'code_size': '706'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n\tint i,n,temp;\n\tint max,min,second;\n\n\tscanf(\"%d\",&n);\n\n\tscanf(\"%d\",&second);\n\tsc... |
CDSS_318106 | CDSS | #include <stdio.h>
int main(void){
int a, b;
int sum, dif, mul, dev;
char op;
while(1){
scanf("%d %c %d",&a ,&op ,&b);
/*limit check*/
if (a>20001 || b>20001) break;
/*operator check*/
else if (op == '?') break;
else if (op != '+' && op != '-' && op != '*' && op != '/' ){ break;}
/*tashiza... | 600 | memory_bytes | {'s_id': 's611346161', 'p_id': 'p02401', 'u_id': 'u587295825', 'date': '1444527780', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '645'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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;\n int sum, dif, mul, dev;\n char op;\n\n while(1){\n\n scanf(\"%d %c %d\",&a ... |
CDSS_581173 | CDSS |
#pragma warning(disable:4996)
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <float.h>
#pragma region 定義
#define i_cin(X) scanf("%d", &X)
#define i_cin2(X,Y) scanf("%d %d",&X,&Y)
#define i_cin4(X,Y,Z,W) scanf("%d %d %d %d",&X,&Y,&Z,&W)
#define i_cin3(X,Y,Z) scanf("%d %d %d",&X,... | 256 | memory_bytes | {'s_id': 's860723683', 'p_id': 'p03073', 'u_id': 'u918599282', 'date': '1588967807', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '256', 'code_size': '3767'} | [
{
"content": "Your task is to predict the memory 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#pragma warning(disable:4996)\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <math.h>\n#include <float.h>... |
CDSS_511348 | CDSS | #include<stdio.h>
int main(){
int m1, d1;
int m2, d2;
scanf("%d%d", &m1, &d1);
scanf("%d%d", &m2, &d2);
if(m1 == m2){
printf("0");
}else{
printf("1");
}
return 0;
} | 128 | memory_bytes | {'s_id': 's410498656', 'p_id': 'p02841', 'u_id': 'u071680334', 'date': '1575252146', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '128', 'code_size': '214'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 m1, d1;\n int m2, d2;\n scanf(\"%d%d\", &m1, &d1);\n scanf(\"%d%d\", &m2, &d2);\n ... |
CDSS_180580 | CDSS | #include <stdio.h>
#include <stdlib.h>
#define STACK 1000
#define MAX 10
void push(int x);
int pop(void);
int stack[STACK];
int sp;
int main(void) {
int x, y;
char s[MAX];
while(scanf("%s", s) != EOF) {
if(s[0] == '+') {
x = pop(); y = pop();
push(y + x);
}else if(s[0] == '-') {
x =... | 2,112 | memory_bytes | {'s_id': 's218638111', 'p_id': 'p02263', 'u_id': 'u324261218', 'date': '1536496552', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '827'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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\n#define STACK 1000\n#define MAX 10\n\nvoid push(int x);\nint pop(void);\n\nint stack[STACK]... |
CDSS_316370 | CDSS | #include<stdio.h>
int main()
{
double r,area,circum;
scanf("%lf",&r);
area = 3.141592653589*r*r;
circum = 2*3.141592653589*r;
printf("%.6lf %.6lf\n",area,circum);
return 0;
}
| 2,128 | memory_bytes | {'s_id': 's824848356', 'p_id': 'p02400', 'u_id': 'u521330660', 'date': '1525274392', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2128', 'code_size': '199'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n double r,area,circum;\n scanf(\"%lf\",&r);\n area = 3.141592653589*r*r;\n circum = 2*3.... |
CDSS_228555 | CDSS | #include <stdio.h>
#define MAX 2000000
int h, a[MAX+1];
void maxHeapify(int);
int main(){
int i;
scanf("%d", &h);
for(i = 1;i <= h;i++){
scanf("%d", &a[i]);
}
for(i = h/2;i >= 1;i--){
maxHeapify(i);
}
for(i = 1;i <= h;i++){
printf(" %d", a[i]);
}
printf("\n");
return 0;
}
void ... | 2,552 | memory_bytes | {'s_id': 's306202680', 'p_id': 'p02288', 'u_id': 'u816389695', 'date': '1435224462', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '100', 'memory': '2552', 'code_size': '628'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 2000000\n \nint h, a[MAX+1];\n \nvoid maxHeapify(int);\n \nint main(){\n int i;\n \n scanf(\"%d\", &... |
CDSS_421973 | CDSS | #include <stdio.h>
int main(void) {
char s[10];
scanf("%s", s);
if (s[1] == 'B')
{
printf("ARC");
}
else
{
printf("ABC");
}
return 0;
} | 1,700 | memory_bytes | {'s_id': 's670036672', 'p_id': 'p02687', 'u_id': 'u101906085', 'date': '1598057210', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1700', 'code_size': '151'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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\tchar s[10];\n\tscanf(\"%s\", s);\n\n\tif (s[1] == 'B')\n\t{\n\t\tprintf(\"ARC\");\n\t}\n\tel... |
CDSS_22194 | CDSS | #include<stdio.h>
int main()
{
for (int i=1 ; i<=9 ; i++)
{
for (int j=1 ; j<=9 ; j++)
{
printf("%dx%d=%d\n", i, j, i*j);
}
}
return 0;
}
| 2,060 | memory_bytes | {'s_id': 's329260131', 'p_id': 'p00000', 'u_id': 'u492038791', 'date': '1551061170', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2060', '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()\n{\n for (int i=1 ; i<=9 ; i++)\n {\n for (int j=1 ; j<=9 ; j++)\n ... |
CDSS_158861 | CDSS | #include <stdio.h>
#include<math.h>
int main(){
int i,j,n,x[10000],a=0;
scanf("%d", &n);
if(n >= 1 && n <= 100000){
for(i = 0 ; i < n ; i++){
scanf("%d",&x[i]);
}
for(i = 0 ; i < n ; i++){
for(j = 2; j <=sqrt(x[i] ) ;j++){
if(x[i] % j == 0){
... | 2,068 | memory_bytes | {'s_id': 's024731516', 'p_id': 'p02257', 'u_id': 'u578234050', 'date': '1529912567', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '2068', 'code_size': '443'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 i,j,n,x[10000],a=0;\n \n scanf(\"%d\", &n);\n \n if(n >= 1 && n <= 100000... |
CDSS_68736 | CDSS | #include <stdio.h>
#define N 1001
int main(){
int i,num,deal;
int data1[N],data2[N];
char buf[256];
for (i=0;i<N;i++)
data1[i]=data2[i]=0;
while(strcmp(fgets(buf,256,stdin),"\n")){
sscanf(buf,"%d,%d",&num,&deal);
data1[num]++;
}
while(scanf("%d,%d",&num,&deal)!=EOF)
data2[num]++;
for... | 616 | memory_bytes | {'s_id': 's880499302', 'p_id': 'p00065', 'u_id': 'u290605490', 'date': '1356237888', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '616', 'code_size': '427'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 1001\n\nint main(){\n int i,num,deal;\n int data1[N],data2[N];\n char buf[256];\n for (i=0;i<N;i++)\... |
CDSS_186368 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
struct node{
unsigned int key;
struct node *next;
struct node *prev;
};
typedef struct node * NodePointer;
NodePointer nil;
NodePointer listSearch(int key){
NodePointer cur = nil->next;
while(cur != nil && cur->key != key)
{
cur = cur->next;
}
... | 32,948 | memory_bytes | {'s_id': 's825277822', 'p_id': 'p02265', 'u_id': 'u648225325', 'date': '1570778059', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '210', 'memory': '32948', 'code_size': '1596'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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\nstruct node{\n unsigned int key;\n struct node *next;\n struct node... |
CDSS_433202 | CDSS | #include<stdio.h>
int main(void){
int a,b,c,d,i=1;
scanf("%d %d %d %d",&a,&b,&c,&d);
while(i==1){
c-=b;
if(c<=0){
printf("Yes");
i=0;
}
else{
a-=d;
if(a<=0){
printf("No");
i=0;
}
}
}
} | 1,736 | memory_bytes | {'s_id': 's174845297', 'p_id': 'p02700', 'u_id': 'u406971825', 'date': '1592245985', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '1736', '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>\n\nint main(void){\n int a,b,c,d,i=1;\n scanf(\"%d %d %d %d\",&a,&b,&c,&d);\n while(i==1){\n c-=b;\n if... |
CDSS_18531 | CDSS | #include<stdio.h>
#define N 9
int main(){
int i, j;
for(i=0;i<N;i++){
for(j=0;j<N;j++){
printf("%dx%d=%d\n",i+1, j+1, (i+1)*(j+1));
}
}
return 0;
} | 524 | memory_bytes | {'s_id': 's095274996', 'p_id': 'p00000', 'u_id': 'u174877860', 'date': '1461748027', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', 'code_size': '159'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#define N 9\n\nint main(){\n\tint i, j;\n\tfor(i=0;i<N;i++){\n\t\tfor(j=0;j<N;j++){\n\t\t\tprintf(\"%dx%d=%d\\n\",i... |
CDSS_714187 | CDSS | #include <stdio.h>
int main(){
int A,B;
scanf("%d%d",&A,&B);
if((A+B)>=24){
printf("%d",A+B-24);
}else{
printf("%d",A+B);
}
return 0;
} | 128 | memory_bytes | {'s_id': 's528270532', 'p_id': 'p03773', 'u_id': 'u595804757', 'date': '1491336099', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '146'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer 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)>=24){\n printf(\"%d\",A+B-24);\n }else{\n printf(\"... |
CDSS_611893 | CDSS | #include<stdio.h>
#include<math.h>
int main(){
int N;
float T, A;
int H[1100];
int i;
float def=0.006;
float min=10000;
float tmp;
int num;
scanf("%d", &N);
scanf("%f %f", &T, &A);
for(i=0; i<N; i++){
scanf("%d", &H[i]);
tmp = fabs(A- (T - (def*H[i])));
... | 256 | memory_bytes | {'s_id': 's359332909', 'p_id': 'p03220', 'u_id': 'u235231201', 'date': '1558576921', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '256', 'code_size': '439'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 N;\n float T, A;\n int H[1100];\n int i;\n float def=0.006;\n ... |
CDSS_524107 | CDSS | #include <stdio.h>
int main(void){
int N;
scanf("%d",&N);
if (N%2 == 0){
printf ("%f",0.5);
}else{
printf ("%f",(((N*0.5)+0.5)/N));
}
return 0;
} | 128 | memory_bytes | {'s_id': 's419766581', 'p_id': 'p02897', 'u_id': 'u244416763', 'date': '1572484248', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '182'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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;\n scanf(\"%d\",&N);\n if (N%2 == 0){\n printf (\"%f\",0.5);\n }else{... |
CDSS_492959 | CDSS | #include <stdio.h>
int main(void){
long h,a;
scanf("%ld %ld", &h, &a);
long answer = h/a;
if (h%a != 0) {
answer++;
}
printf("%ld\n", answer);
return 0;
} | 128 | memory_bytes | {'s_id': 's570031414', 'p_id': 'p02783', 'u_id': 'u581816556', 'date': '1586641944', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', '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>\n\nint main(void){\n\n long h,a;\n scanf(\"%ld %ld\", &h, &a);\n long answer = h/a;\n if (h%a != 0) {\n answ... |
CDSS_99296 | CDSS | #include<stdio.h>
int main(void)
{
int a[28],i,j,b[30];
for(i=1;i<31;i++){
b[i-1]=i;
}
for(i=0;i<28;i++){
scanf("%d",&a[i]);
for(j=0;j<30;j++){
if(a[i]==b[j]){
b[j]=0;
}
}
}
for(i=0;i<30;i++){
if(b[i]!=0){
printf("%d\n",b[i]);
}
}
return 0;
}
| 2,104 | memory_bytes | {'s_id': 's436828869', 'p_id': 'p00434', 'u_id': 'u935589944', 'date': '1525936965', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', '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(void)\n{\n\tint a[28],i,j,b[30];\n\tfor(i=1;i<31;i++){\n\t\tb[i-1]=i;\n\t}\n\tfor(i=0;i<28;i++){\n\t\tscan... |
CDSS_512228 | CDSS | #include <stdio.h>
int main(void){
char s[3];
scanf("%s", s);
if (s[0] == 'S' && s[1] == 'A' && s[2] == 'T') {
printf("1\n");
}
if (s[0] == 'F' && s[1] == 'R' && s[2] == 'I') {
printf("2\n");
}
if (s[0] == 'T' && s[1] == 'H' && s[2] == 'U') {
printf("3\n");
}
if (s[0] == 'W' && s[1] == ... | 128 | memory_bytes | {'s_id': 's431435456', 'p_id': 'p02847', 'u_id': 'u581816556', 'date': '1586682847', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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 main(void){\n\n char s[3];\n scanf(\"%s\", s);\n\n if (s[0] == 'S' && s[1] == 'A' && s[2] == 'T') {\n ... |
CDSS_371245 | CDSS | #include<stdio.h>
#include<string.h>
#define N 1000
int main(void)
{
int i, j, n, t = 0, h = 0, len_t = 0, len_h = 0, len = 0;
char T[N][101], H[N][101];
scanf("%d", &n);
for(i = 0; i < n; i++) {
scanf("%s %s", T[i], H[i]);
len_t = strlen(T[i]);
len_h = strlen(H[i]);
if(strcmp(T[i], H[i]) == ... | 808 | memory_bytes | {'s_id': 's438478466', 'p_id': 'p02421', 'u_id': 'u022660966', 'date': '1496380592', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '808', 'code_size': '563'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 1000\n\nint main(void)\n{\n int i, j, n, t = 0, h = 0, len_t = 0, len_h = 0, len = 0... |
CDSS_656017 | CDSS | #include<stdio.h>
int main(void)
{
int n;
scanf("%d",&n);
printf("%d",n/3);
return 0;
} | 128 | memory_bytes | {'s_id': 's002994226', 'p_id': 'p03423', 'u_id': 'u652139959', 'date': '1567101860', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '97'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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;\n\t\n\tscanf(\"%d\",&n);\n\t\n\tprintf(\"%d\",n/3);\n\t\n\treturn 0;\n}\nPredict its me... |
CDSS_534092 | CDSS | #include <stdio.h>
int main()
{
int N, count = 0, maxcount = 0;
scanf("%d", &N);
int H[N];
for (int i = 0; i < N; i++)
{
scanf("%d", &H[i]);
}
for (int i = 0; i < N - 1; i++)
{
if (H[i] >= H[i + 1])
{
count++;
}
if (H[i] < H[i + 1])
... | 640 | memory_bytes | {'s_id': 's658760502', 'p_id': 'p02923', 'u_id': 'u517672978', 'date': '1568309859', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '14', 'memory': '640', 'code_size': '490'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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, count = 0, maxcount = 0;\n scanf(\"%d\", &N);\n int H[N];\n for (int i = 0; i <... |
CDSS_288261 | CDSS | #include<stdio.h>
int main()
{
int a, b,c;
scanf("%d %d %d",&a, &b, &c);
int t;
if(a > b){
t = a; a = b; b = t;
}
if(a > c){
t = a; a = c; c = t;
}
if(b > c){
t = b; b = c; c = t;
}
printf("%d %d %d\n",a, b, c);
}
//時分秒(a<b<c 3 2 1 1 2 2
| 2,072 | memory_bytes | {'s_id': 's902251966', 'p_id': 'p02393', 'u_id': 'u435394733', 'date': '1568809556', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2072', 'code_size': '274'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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\n\tint a, b,c;\n\t\n\tscanf(\"%d %d %d\",&a, &b, &c);\n\tint t;\n\tif(a > b){\n\t\tt = a; a = b; ... |
CDSS_743418 | CDSS | #pragma GCC optimize("Ofast")
#include <stdio.h>
int arr1[10][10] = {
{0,0,0,0,0,0,0,0,0,0},
{0,100000,0,9029,0,0,0,7519,7572,1},
{0,0,0,0,9527,0,0,13336,0,0},
{0,14416,0,0,0,0,0,0,0,0},
{0,0,3,0,0,0,16971,0,18448,0},
{50000,342,0,0,0,0,0,0,0,50000},
{0,20398,0,0,7169,0,0,5300,0,0},
{0,... | 1,468 | memory_bytes | {'s_id': 's408392912', 'p_id': 'p04034', 'u_id': 'u959888075', 'date': '1597251777', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1468', 'code_size': '1168'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#pragma GCC optimize(\"Ofast\")\n#include <stdio.h>\n\nint arr1[10][10] = {\n {0,0,0,0,0,0,0,0,0,0},\n {0,100000,0,9029,0,0,0,75... |
CDSS_593059 | CDSS | #include<stdio.h>
int main(void){
char a[11];
scanf("%s",a);
if((a[5]=='0') && (a[6]<'5')){
printf("Heisei\n");
}else{
printf("TBD\n");
}
return 0;
} | 128 | memory_bytes | {'s_id': 's611562113', 'p_id': 'p03109', 'u_id': 'u716903426', 'date': '1588096587', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '169'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n char a[11];\n scanf(\"%s\",a);\n if((a[5]=='0') && (a[6]<'5')){\n printf(\"Heisei\\n\");\n ... |
CDSS_599661 | CDSS | #include <stdio.h>
int main(void){
int a,b,c;
scanf("%d %d %d", &a, &b, &c);
int max = a;
if (b > max) {
max = b;
}
if (c > max) {
max = c;
}
int area = a*b*c/max;
area /= 2;
printf("%d\n", area);
return 0;
} | 128 | memory_bytes | {'s_id': 's404192855', 'p_id': 'p03145', 'u_id': 'u581816556', 'date': '1586977685', '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 int a,b,c;\n scanf(\"%d %d %d\", &a, &b, &c);\n int max = a;\n if (b > max) {\n max =... |
CDSS_688418 | CDSS | #include <stdio.h>
int main(void){
int a,b,c,x,y;
scanf("%d %d %d",&a,&b,&c);
x = a - b;
y = a - c;
if(abs(x) > abs(y)){
printf("B\n");
} else {
printf("A\n");
}
return 0;
} | 128 | memory_bytes | {'s_id': 's909666765', 'p_id': 'p03623', 'u_id': 'u384161668', 'date': '1528514655', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '191'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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\t\n\tint a,b,c,x,y;\n\t\n\tscanf(\"%d %d %d\",&a,&b,&c);\n\t\n\tx = a - b;\n\ty = a - c;\n\ti... |
CDSS_210585 | CDSS | #include <stdio.h>
#include <stdlib.h>
int partition(int *, int, int);
int main(){
int *A;
int n, i, q;
scanf("%d",&n);
A = malloc(n * sizeof(int));
for(i = 0; i < n; i++){
scanf("%d",&A[i]);
}
q = partition(&A[0], 0, n - 1);
for(i = 0; i < n; i++){
if(i){
printf(" ");
}
if(i... | 2,104 | memory_bytes | {'s_id': 's558485610', 'p_id': 'p02276', 'u_id': 'u379941870', 'date': '1545388826', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2104', 'code_size': '742'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 partition(int *, int, int);\n\nint main(){\n int *A;\n int n, i, q;\n \n scanf(\"%d... |
CDSS_215935 | CDSS | #include<stdio.h>
#define MAX 100000
#define NIL -1
typedef struct{
int parent;
int left;
int right;
}Node;
Node T[MAX];
int n;
int Depth[MAX];
int getDepth(int i)
{
int count=0;
while(T[i].parent!=NIL){
i=T[i].parent;
count++;
}
return count;
}
void print(int i)
{
in... | 2,172 | memory_bytes | {'s_id': 's610677701', 'p_id': 'p02279', 'u_id': 'u443036055', 'date': '1497416197', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '60', 'memory': '2172', 'code_size': '1227'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 100000\n#define NIL -1\n\ntypedef struct{\n int parent;\n int left;\n int right;\n}Node;\n\nNo... |
CDSS_83447 | CDSS | #include <stdio.h>
#include <math.h>
#define STANDARD (22.0)
double BMI(double h, double w)
{
return (w / ((h / 100) * (h / 100)));
}
typedef struct {
int id;
double bmi;
} SUPER;
int main(void)
{
int number, i, n;
double h, w;
SUPER super;
while (scanf("%d", &n), n){
super.bmi = 10000.0;
for (i = 0... | 628 | memory_bytes | {'s_id': 's669661056', 'p_id': 'p00159', 'u_id': 'u334031393', 'date': '1410714214', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '628', 'code_size': '553'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n\n#define STANDARD (22.0)\n\ndouble BMI(double h, double w)\n{\n\treturn (w / ((h / 100) * (h /... |
CDSS_110273 | CDSS | #include <stdio.h>
int main (void){
int a,b,c,d=0,e=0;
scanf("%d %d %d",&a,&b,&c);
do{
d++;
e+=a;
if(d%7==0)e+=b;
}while(e<c);
printf("%d\n",d);
return 0;
}
| 1,976 | memory_bytes | {'s_id': 's363255023', 'p_id': 'p00575', 'u_id': 'u559287836', 'date': '1556280207', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1976', 'code_size': '170'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main (void){\n\tint a,b,c,d=0,e=0;\n\tscanf(\"%d %d %d\",&a,&b,&c);\n\tdo{\n\t\td++;\n\t\te+=a;\n\t\tif(d%7==0... |
CDSS_589403 | CDSS | #include<stdio.h>
#include<string.h>
int main()
{
int n,x,y,a,b,qq;
while(scanf("%d",&x)!=EOF){
scanf("%d%d%d",&y,&a,&b);
qq=x*y-a*y-b*x+a*b;
printf("%d\n",qq);
}
return 0;
} | 128 | memory_bytes | {'s_id': 's908013943', 'p_id': 'p03101', 'u_id': 'u744904191', 'date': '1552162164', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '184'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\nint main()\n{\n\tint n,x,y,a,b,qq;\n\twhile(scanf(\"%d\",&x)!=EOF){\n\t\tscanf(\"%d%d%d\",&y,&a... |
CDSS_325285 | CDSS | #include <stdio.h>
int main(void) {
int n = 0; //1???????????´??°???????´????????????°
int i = 0; //for????????????????????????????????°
int j = 0;
int k = 0; //???????????????????????????????????°
long long int sum = 0; //????¨????
scanf("%d", &n);
int num[n]; //n??????????´??????????int????????????... | 640 | memory_bytes | {'s_id': 's721207104', 'p_id': 'p02402', 'u_id': 'u460894838', 'date': '1494304671', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '140', 'memory': '640', 'code_size': '740'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 = 0;\t\t\t//1???????????´??°???????´????????????°\n\tint i = 0;\t\t\t//for??????????... |
CDSS_319541 | CDSS | #include <stdio.h>
int main(){
int a, b, ans;
char op;
while(1){
scanf("%d %c %d",&a,&op,&b);
if(op == '?')break;
switch(op){
case '+':ans = a + b;break;
case '-':ans = a - b;break;
case '*':ans = a * b;break;
case '/':ans = a / b;break;
default:break;
}
printf("%... | 1,852 | memory_bytes | {'s_id': 's272714840', 'p_id': 'p02401', 'u_id': 'u532960088', 'date': '1511436319', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1852', 'code_size': '348'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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, ans;\n char op;\n while(1){\n scanf(\"%d %c %d\",&a,&op,&b);\n if(op == '?')break... |
CDSS_218575 | CDSS | #include<stdio.h>
#define MAX 100005
#define NIL -1
struct Node{
int p,l,r;
};
struct Node T[MAX];
int depth(int u){
if(T[u].p==NIL)return 0;
else{
return 1+depth(T[u].p);
}
}
int degree(int u){
if(T[u].l!=NIL && T[u].r!=NIL)return 2;
else if(T[u].l!=NIL || T[u].r!=NIL)return 1;
else return 0;
}... | 612 | memory_bytes | {'s_id': 's582225528', 'p_id': 'p02280', 'u_id': 'u022028544', 'date': '1402618035', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '612', 'code_size': '1210'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 100005\n#define NIL -1\n\nstruct Node{ \n int p,l,r;\n};\n\nstruct Node T[MAX]; \n\nint depth(int u){\... |
CDSS_375162 | CDSS | #include <stdio.h>
int main(void){
int gyo;
int a[100], b[100];
scanf("%d", &gyo);
int count = 0;
for(int i = 0; i < gyo; i++) {
scanf("%d %d", &a[i], &b[i]);
// printf("%d %d\n", a[i], b[i]);
if(a[i] == b[i]) {
count = count + 1;
}
if(count >= 3)
break;
if(a[i] != b[... | 2,156 | memory_bytes | {'s_id': 's561808974', 'p_id': 'p02547', 'u_id': 'u511330701', 'date': '1600544108', 'language': 'C', 'original_language': 'C (Clang 10.0.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '7', 'memory': '2156', 'code_size': '431'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 gyo;\nint a[100], b[100];\n\nscanf(\"%d\", &gyo);\n\nint count = 0;\n \nfor(int i = 0; i < ... |
CDSS_514474 | CDSS | #include <stdio.h>
int main(){
unsigned int r;
scanf("%d",&r);
printf("%d\n",r*r);
} | 128 | memory_bytes | {'s_id': 's297300135', 'p_id': 'p02859', 'u_id': 'u900235041', 'date': '1574319814', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '99'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 \tunsigned int r; \n \tscanf(\"%d\",&r); \n \tprintf(\"%d\\n\",r*r); \n \n}\nPredict its memory... |
CDSS_391274 | CDSS | #include <stdio.h>
int main()
{
int a;
scanf("%d", &a);
if (a % 1000 == 0)
printf("0");
else printf("%d", 1000-(a%1000));
return 0;
}
| 1,712 | memory_bytes | {'s_id': 's128852411', 'p_id': 'p02612', 'u_id': 'u741183122', 'date': '1594371870', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1712', 'code_size': '165'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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\n if (a % 1000 == 0)\n printf(\"0\");\n else pr... |
CDSS_644848 | CDSS | //set many funcs template
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<stdbool.h>
#include<time.h>
#define inf 1072114514
#define llinf 4154118101919364364
#define mod 1000000007
#define pi 3.1415926535897932384
int max(int a,int b){if(a>b){return a;}return b;}
int min(int a,int b){if(a<b){return a... | 128 | memory_bytes | {'s_id': 's327385574', 'p_id': 'p03352', 'u_id': 'u721060623', 'date': '1526183302', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '128', 'code_size': '3308'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n//set many funcs template\n#include<stdio.h>\n#include<string.h>\n#include<stdlib.h>\n#include<stdbool.h>\n#include<time.h>\n#define i... |
CDSS_104966 | CDSS | #include<stdio.h>
int main(){
int x = 0, i, t;
for(i = 0;i < 4;i++){
scanf("%d", &t);
x += t;
}
printf("%d\n%d\n", x / 60, x % 60);
return 0;
} | 596 | memory_bytes | {'s_id': 's216067600', 'p_id': 'p00477', 'u_id': 'u611853667', 'date': '1348235682', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '162'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 x = 0, i, t;\n for(i = 0;i < 4;i++){\n scanf(\"%d\", &t);\n x += t;\n }\n printf(\"%d... |
CDSS_60339 | CDSS | #include <stdio.h>
int main (void){
int a,b,c,tyou=0,hisi=0;
while(scanf("%d,%d,%d",&a,&b,&c)!=EOF){
if(a*a+b*b==c*c){
tyou++;
}
else if(a==b){
hisi++;
}
}
printf("%d\n%d\n",tyou,hisi);
return 0;
} | 596 | memory_bytes | {'s_id': 's415972250', 'p_id': 'p00032', 'u_id': 'u810660681', 'date': '1416023289', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '269'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer 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,tyou=0,hisi=0;\n while(scanf(\"%d,%d,%d\",&a,&b,&c)!=EOF){\n if(a*a+b*b=... |
CDSS_709204 | CDSS | #include<stdio.h>
int main(){
char a[9];
char b[9];
char c[9];
int s,t;
scanf("%s %s %s",a,b,c);
s = -1;
while(a[s+1] != '\0')s++;
t = -1;
while(b[t+1] != '\0')t++;
if(a[s] == b[0] && b[t] == c[0]){
printf("YES\n");
} else {
printf("NO\n");
}
return 0;
} | 128 | memory_bytes | {'s_id': 's231421508', 'p_id': 'p03729', 'u_id': 'u143367943', 'date': '1499722945', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '280'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 a[9];\n\tchar b[9];\n\tchar c[9];\n\tint s,t;\n\t\n\tscanf(\"%s %s %s\",a,b,c);\n\t\n\ts = -1... |
CDSS_687668 | CDSS | #include <stdio.h>
int main(void){
long N,p;
scanf("%ld",&N);
int flag[N+1];
long ans = 0;
for(int i = 0;i < N+1;i++) flag[i] = 0;
for(int i = 1;i < N+1;i++){
scanf("%ld",&p);
if(i == p) flag[i-1] = 1;
}
for(int i = 0;i < N;i++){
if(flag[i]){
ans++;
flag[i+1] = 0;
}
}
... | 512 | memory_bytes | {'s_id': 's711581863', 'p_id': 'p03612', 'u_id': 'u812973725', 'date': '1549833928', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '11', 'memory': '512', 'code_size': '356'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n long N,p;\n scanf(\"%ld\",&N);\n int flag[N+1];\n long ans = 0;\n\n for(int i = 0;i < N+1... |
CDSS_490369 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<string.h>
#include <time.h>
typedef long long ll;
typedef long double ld;
#define INF (1LL<<60)
/*swap 交換*/
void swap(ll *a, ll *b){ll c;c=*b;*b=*a;*a=c;}
/*2つのうち大きい数を返す*/
ll max2(ll a,ll b){return a>=b?a:b;}
/*2つのうち小さい数を返す*/
ll min2(ll a,ll b){return a>=b?... | 128 | memory_bytes | {'s_id': 's658360202', 'p_id': 'p02777', 'u_id': 'u004279520', 'date': '1581278962', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '1196'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#include<math.h>\n#include<string.h>\n#include <time.h>\ntypedef long long ll;\ntypedef long do... |
CDSS_220841 | CDSS | #include<stdio.h>
#include<string.h>
#include<stdlib.h>
#define L 100
#define Gard NULL
typedef struct Tree{
int nodekey;
struct Tree *parent;
struct Tree *leftch;
struct Tree *rightch;
}Tree;
typedef struct Tree *Search;
Search road;
void Insert(int );
void Pre(Search );
void In(Search );
int main(){
... | 25,128 | memory_bytes | {'s_id': 's956262595', 'p_id': 'p02283', 'u_id': 'u468339351', 'date': '1531318279', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '340', 'memory': '25128', 'code_size': '1529'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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\n#define L 100\n#define Gard NULL\n\ntypedef struct Tree{\n int nodekey;\... |
CDSS_604924 | CDSS | #define _[2<<17]
n,i;A _,B _,T _,F _;long M,D _,P _,R _;s(u,p,i,I){D[u]=1;for(i=F[u];I=B[i];i=T[i])I-p?s(I,u),D[u]=D[u]*-~D[I]%M:0;}S(u,x,p,i,I){for(m(i=F[u],p);I=B[i];I-p?S(I,R[i]*x%M+1,u),x=x*-~D[I]%M:0)i=T[i];P[u]=x%M;}m(i,p){i?m(T[i],p),R[i]=R[T[i]]*(B[i]-p?-~D[B[i]]:1)%M:0;}main(u,v){for(;~scanf("%d%d",&u,&v);)i++... | 14,592 | memory_bytes | {'s_id': 's672620216', 'p_id': 'p03181', 'u_id': 'u657913472', 'date': '1546936767', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '49', 'memory': '14592', 'code_size': '442'} | [
{
"content": "Your task is to predict the memory 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 _[2<<17]\nn,i;A _,B _,T _,F _;long M,D _,P _,R _;s(u,p,i,I){D[u]=1;for(i=F[u];I=B[i];i=T[i])I-p?s(I,u),D[u]=D[u]*-~D[I]%M:0;}S... |
CDSS_647430 | CDSS | #include <stdio.h>
int main(){
char s[4];
int a=0,i;
scanf("%s",s);
for(i=0;i<4;i++){
if(s[i]=='o')a++;
}
printf("%d",700+a*100);
return 0;
} | 128 | memory_bytes | {'s_id': 's852240744', 'p_id': 'p03369', 'u_id': 'u993046043', 'date': '1540578856', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '177'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(){\n char s[4];\n int a=0,i;\n scanf(\"%s\",s);\n for(i=0;i<4;i++){\n if(s[i]=='o')a++... |
CDSS_120069 | CDSS | #include <stdio.h>
int main(void)
{
int m; /* ????¨??????° */
int n_min, n_max; /* ?????????????????° ????°?, ?????§ */
int data[200];
int i;
int max = 0;
int through;
/* ??\??? */
while (scanf("%d %d %d", &m, &n_min, &n_max) == 3) {
if (m == 0 && n_min == 0 && n_max == 0)
break;
for (i = 0; i < m; i... | 600 | memory_bytes | {'s_id': 's871065606', 'p_id': 'p01085', 'u_id': 'u640736814', 'date': '1499414265', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', '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\tint m;\t/* ????¨??????° */\n\tint n_min, n_max;\t /* ?????????????????° ????°?, ?????§ */\n... |
CDSS_259779 | CDSS | #include<stdio.h>
int main (void) {
int time_by_sec;
scanf("%d", &time_by_sec);
int hour, minute;
hour = time_by_sec / 3600;
time_by_sec = time_by_sec % 3600;
minute = time_by_sec / 60;
time_by_sec = time_by_sec % 60;
printf("%d:%d:%d\n", hour, minute, time_by_sec);
return 0;
} | 592 | memory_bytes | {'s_id': 's626829931', 'p_id': 'p02390', 'u_id': 'u651428295', 'date': '1441355891', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', 'code_size': '319'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main (void) {\n int time_by_sec;\n scanf(\"%d\", &time_by_sec);\n\n int hour, minute;\n\n hour = ... |
CDSS_212081 | CDSS | #include<stdio.h>
#define N 100000
int partition(int *A,int c,int d){
int x,y,i,j;
x=A[d];
i=c-1;
for(j=c;j<d;j++){
if(A[j]<=x){
i++;
y=A[i];
A[i]=A[j];
A[j]=y;
}
}
y=A[i+1];
A[i+1]=A[d];
A[d]=y;
return i+1;
}
int main(){
int A[N+1],b,n,i;
scanf("%d",&n);
for(... | 2,172 | memory_bytes | {'s_id': 's509399691', 'p_id': 'p02276', 'u_id': 'u044004600', 'date': '1577343237', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2172', 'code_size': '575'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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\n\nint partition(int *A,int c,int d){\n int x,y,i,j;\n x=A[d];\n i=c-1;\n for(j=c;j<d;j++){\... |
CDSS_258470 | CDSS | #include<stdio.h>
int main()
{
int a,b,x,y;
scanf("%d",&a);
scanf("%d",&b);
x=a*b;
y=2*(a+b);
printf("%d %d\n",x,y);
return 0;
}
| 2,140 | memory_bytes | {'s_id': 's441743772', 'p_id': 'p02389', 'u_id': 'u725665620', 'date': '1539566568', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2140', 'code_size': '177'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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,x,y;\n \n scanf(\"%d\",&a);\n scanf(\"%d\",&b);\n \n x=a*b;\n y=2*(a+b... |
CDSS_632468 | CDSS | #include <math.h>
#include <stdio.h>
#include <string.h>
void swap_int(int* x, int* y) {
int temp;
temp = *x;
*x = *y;
*y = temp;
}
void swap_char(char* x, char* y) {
char temp;
temp = *x;
*x = *y;
*y = temp;
}
void asc_sort(int* array, int n) {
int i, j;
for (i = 0; i < n - 1; ... | 128 | memory_bytes | {'s_id': 's835791359', 'p_id': 'p03303', 'u_id': 'u679951803', 'date': '1559624892', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '1154'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <math.h>\n#include <stdio.h>\n#include <string.h>\nvoid swap_int(int* x, int* y) {\n int temp;\n temp = *x;\n *x = *... |
CDSS_301903 | CDSS | #include<stdio.h>
int main(){
int x,y,a;
for(a=0;a<3000;a++){
scanf("%d %d",&x,&y);
if(x==0&&y==0){
break;
}
else if(x<y){
printf("%d %d\n",x,y);
}
else{
printf("%d %d\n",y,x);
}
}
return 0;
} | 600 | memory_bytes | {'s_id': 's983848749', 'p_id': 'p02397', 'u_id': 'u985519761', 'date': '1498727083', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '300'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int x,y,a;\n for(a=0;a<3000;a++){\n scanf(\"%d %d\",&x,&y);\n if(x==0&&y==0){\n ... |
CDSS_305534 | CDSS |
#include <stdio.h>
int main()
{
int a, b, c;
scanf("%d%d%d", &a, &b, &c);
int i, cnt = 0;
for( i = a; i <= b; ++i )
if( c % i == 0 )
++cnt;
printf("%d\n", cnt);
return 0;
} | 596 | memory_bytes | {'s_id': 's369373065', 'p_id': 'p02398', 'u_id': 'u968537027', 'date': '1481182429', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', '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\n\n#include <stdio.h>\n \nint main()\n{\n int a, b, c;\n scanf(\"%d%d%d\", &a, &b, &c);\n \n int i, cnt = 0;\n for( i =... |
CDSS_524943 | CDSS | int main(void){
int n,k,a;
scanf("%d %d",&n,&k);
int i,c=0;
for(i=0; i<n; i++){
scanf("%d",&a);
if(a >= k)
c ++;
}
printf("%d",c);
} | 128 | memory_bytes | {'s_id': 's499174717', 'p_id': 'p02898', 'u_id': 'u888734843', 'date': '1582971824', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '9', '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:\nint main(void){\n int n,k,a;\n \n scanf(\"%d %d\",&n,&k);\n \n int i,c=0;\n \n for(i=0; i<n; i++){\n scanf(\"%d\",&a);\n ... |
CDSS_735433 | CDSS | #include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(void) {
int i, N;
long long A[1010], T[1010];
long long V, VA, VA1, VA2, VT, VT1, VT2;
scanf("%d", &N);
for (i=0;i<N;i++) scanf("%lld%lld", &T[i], &A[i]);
VA = A[0];
VT = T[0];
// printf("%lld %lld\n", VT, VA);
for (i=1;i<N... | 128 | memory_bytes | {'s_id': 's652505469', 'p_id': 'p03966', 'u_id': 'u677149117', 'date': '1476583615', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '128', 'code_size': '835'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <math.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\nint main(void) {\n\tint i, N;\n\tlong long A[1010],... |
CDSS_37456 | CDSS | #include<stdio.h>
#include<string.h>
#define L 200
int main(){
int i, j;
char str[L];
scanf("%s",str);
j = strlen(str);
for(i=0;i<j;i++){
printf("%c",str[j-i-1]);
}
printf("\n");
return 0;
} | 524 | memory_bytes | {'s_id': 's661295575', 'p_id': 'p00006', 'u_id': 'u174877860', 'date': '1461748864', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', '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>\n#include<string.h>\n#define L 200\n\nint main(){\n\tint i, j;\n\tchar str[L];\n\tscanf(\"%s\",str);\n\tj = strlen(s... |
CDSS_350442 | CDSS | #include<stdio.h>
main()
{
int n,m;
scanf("%d %d",&n,&m);
int a[n][m];
int b[m];
long c[n];
int i,j;
for(i=0;i<n;i++){
for(j=0;j<m;j++){
scanf(" %d",&a[i][j]);
}
}
for(i=0;i<m;i++){
scanf(" %d",&b[i]);
}
for(i=0;i<n;i++){
c[i] = 0;
for(j=0;j<m;j++){
c[i] += a[i][j]*b[j];
}
printf... | 636 | memory_bytes | {'s_id': 's204120148', 'p_id': 'p02410', 'u_id': 'u548155360', 'date': '1405246433', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '636', 'code_size': '350'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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{\n\tint n,m;\n\tscanf(\"%d %d\",&n,&m);\n\t\n\tint a[n][m];\n\tint b[m];\n\tlong c[n];\n\t\n\tint i,j;\n... |
CDSS_199820 | CDSS | #include<stdio.h>
int n,S[50];
int combi(int,int);
int main()
{
int num,key,i;
scanf("%d",&n);
for(i=0;i<n;i++)
{
scanf("%d",&S[i]);
}
scanf("%d",&num);
for(i=0;i<num;i++)
{
scanf("%d",&key);
if(combi(0,key)) printf("yes\n");
else printf("no\n");
}
return 0;
}
int c... | 580 | memory_bytes | {'s_id': 's667612340', 'p_id': 'p02271', 'u_id': 'u163386631', 'date': '1495075388', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '660', 'memory': '580', 'code_size': '456'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 n,S[50];\nint combi(int,int);\n\nint main()\n{\n int num,key,i;\n scanf(\"%d\",&n);\n for(i=0;i<n;i++)\n ... |
CDSS_385330 | CDSS | #include<stdio.h>
int main(void){
int X;
scanf("%d",&X);
if(X >= 30)
printf("Yes");
else
printf("No");
return 0;
} | 1,712 | memory_bytes | {'s_id': 's167970861', 'p_id': 'p02594', 'u_id': 'u929687758', 'date': '1600109008', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1712', 'code_size': '132'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n int X;\n scanf(\"%d\",&X);\n if(X >= 30)\n printf(\"Yes\");\n else\n printf(\"No\");\n ... |
CDSS_565811 | CDSS | #include <stdio.h>
int main(void)
{
int n;
scanf("%d%d", &n);
printf("%d\n", 180 * (n - 2));
return 0;
} | 128 | memory_bytes | {'s_id': 's416529183', 'p_id': 'p03023', 'u_id': 'u785790611', 'date': '1559437406', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '123'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n int n;\n scanf(\"%d%d\", &n);\n\n printf(\"%d\\n\", 180 * (n - 2));\n\n return 0... |
CDSS_153792 | CDSS | #include <stdio.h>
int main()
{
int a,b,n,m;
scanf("%d%d",&a,&b);
if (a<b)
{
n = a;
a = b;
b = n;
}
m = a%b;
while(m != 0)
{
a = b;
b = m;
m = a%b;
}
printf("%d\n",b);
return 0;
}
| 2,100 | memory_bytes | {'s_id': 's253978883', 'p_id': 'p02256', 'u_id': 'u184049209', 'date': '1575872140', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2100', 'code_size': '293'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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,b,n,m;\n \n scanf(\"%d%d\",&a,&b);\n \n if (a<b)\n {\n n = a;\n ... |
CDSS_701472 | CDSS | #include <stdio.h>
#include <stdlib.h> ... | 128 | memory_bytes | {'s_id': 's024626173', 'p_id': 'p03694', 'u_id': 'u903116796', 'date': '1503601008', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '6818'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h> ... |
CDSS_221353 | CDSS | #include<stdio.h>
#include<stdlib.h>
struct node{
struct node *right;
struct node *left;
struct node *parent;
int key;
};
typedef struct node * Node;
#define NIL NULL
Node root;
/*
Node treeMinimum(Node x){
}
*/
Node treeSearch(Node u, int k){
if(u==NIL || k==u->key) return u;
if(k<u->key)return tree... | 24,040 | memory_bytes | {'s_id': 's801730576', 'p_id': 'p02283', 'u_id': 'u146842448', 'date': '1466043515', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '400', 'memory': '24040', 'code_size': '1840'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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\nstruct node{\n struct node *right;\n struct node *left;\n struct node *parent;\n int key;... |
CDSS_727457 | CDSS | #include<stdio.h>
int main()
{
char c;
scanf("%c",&c);
if(c=='a'||c=='e'||c=='i'||c=='o'||c=='u')
printf("vowel\n");
else
printf("consonant\n");
return 0;
}
| 1,576 | memory_bytes | {'s_id': 's070683481', 'p_id': 'p03852', 'u_id': 'u089230684', 'date': '1592585474', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1576', '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>\nint main()\n{\n char c;\n scanf(\"%c\",&c);\n if(c=='a'||c=='e'||c=='i'||c=='o'||c=='u')\n printf(\... |
CDSS_206126 | CDSS | #include<stdio.h>
#include<stdlib.h>
#define N 200000
#define SENTINEL 1000000001
long long merge(int[],int,int,int);
long long mergeSort(int[],int,int);
int main(void)
{
int i;//counter
int n;//the number of integers
int arr[N];
scanf("%d",&n);
for(i=0;i<n;i++) scanf("%d",&arr[i]);
printf("%ld\n",mergeSort... | 2,984 | memory_bytes | {'s_id': 's050106681', 'p_id': 'p02274', 'u_id': 'u090372546', 'date': '1530076675', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '50', 'memory': '2984', 'code_size': '1596'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 N 200000\n#define SENTINEL 1000000001\nlong long merge(int[],int,int,int);\nlong long m... |
CDSS_142160 | CDSS | #include<stdio.h>
#define N 8
#define N_FREE 1
#define FREE 0
int Gyo[N],Retu[N],kesa[2*N-1],Gkesa[2*N-1];
int Board[N][N];
void putQueen(int);
void printBoard(){
int i,j;
for(i=0;i<N;++i){
for(j=0;j<N;++j){
if(Board[i][j]){if(Retu[i] != j) return;}
}
}
for(i=0;i<N;++i){
for(j=0;j<N;++j){
... | 2,108 | memory_bytes | {'s_id': 's739321941', 'p_id': 'p02244', 'u_id': 'u182530169', 'date': '1580368737', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '1145'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 8\n#define N_FREE 1\n#define FREE 0\n\nint Gyo[N],Retu[N],kesa[2*N-1],Gkesa[2*N-1];\nint Board[N][N];\n\n... |
CDSS_142344 | CDSS | #include <stdio.h>
#define N 8
#define FREE -1
#define NOT_FREE 1
void initialize(void);
void printBoard(void);
void recursive(int);
int row[N],col[N],dpos[2*N-1],dneg[2*N-1],X[N][N];
int main(){
initialize();
int i,j,k,l,m;
for(i=0;i<N;i++){
for(j=0;j<N;j++){
X[i][j]=0;
}
}
scanf("%d",&k);
... | 2,112 | memory_bytes | {'s_id': 's100926469', 'p_id': 'p02244', 'u_id': 'u468105130', 'date': '1533268196', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '1154'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 8\n#define FREE -1\n#define NOT_FREE 1\n\nvoid initialize(void);\nvoid printBoard(void);\nvoid recursive... |
CDSS_466014 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
#define ll long long
#define INF 1<<31-1
#define LNF 9223372036854775807
#define PI 3.14159265358979
#define MIN(x,y) ((x)<(y)?(x):(y))
#define MAX(x,y) ((x)<(y)?(y):(x))
#define FOR(i,a,n) for(i=a;i<n;i++)
#define MOD 1000000007
//#define MOD 998244353
#define N... | 128 | memory_bytes | {'s_id': 's114181675', 'p_id': 'p02718', 'u_id': 'u471411790', 'date': '1586049066', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '684'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#include<string.h>\n\n#define ll long long\n#define INF 1<<31-1\n#define LNF 922337203685477580... |
CDSS_531164 | CDSS | #include<stdio.h>
int main(){
int n; scanf("%d",&n);
int mae; scanf("%d",&mae);
int s=mae;
if(n==2) printf("%d\n",2*mae);
else{
for(int i=0; i<n-1; i++){
int usi; scanf("%d",&usi);
if( mae<usi) s+=mae;
else s+=usi;
mae=usi;
}
printf("%d\n",s);
}
return 0;
} | 128 | memory_bytes | {'s_id': 's625175105', 'p_id': 'p02917', 'u_id': 'u757014735', 'date': '1585797218', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '294'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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; scanf(\"%d\",&n);\n int mae; scanf(\"%d\",&mae);\n int s=mae;\n if(n==2) printf(\"%d\\n\... |
CDSS_142749 | CDSS | #include <stdio.h>
#include <math.h>
#define N 3
int search(int board[N][N], int min, int limit, int r_0, int c_0);
int main(int argc, char *argv[])
{
int board[N][N];
int md;
int i, j, r, c, r_0, c_0, found;
int res;
for (i = 0; i < N; i++) {
for (j = 0; j < N; j++) scanf("%d", &board[i][j]);
}
... | 2,088 | memory_bytes | {'s_id': 's809938951', 'p_id': 'p02245', 'u_id': 'u785362309', 'date': '1532660267', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '100', 'memory': '2088', 'code_size': '3377'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n\n#define N 3\n\nint search(int board[N][N], int min, int limit, int r_0, int c_0);\n\nint main... |
CDSS_142070 | CDSS | #include <stdio.h>
#include <stdbool.h>
#define N 8
#define NFR -1
#define FR 1
int row[N], col[N], dpos[2 * N - 1], dneg[2 * N - 1];
bool A[N][N];
void initialize()
{
int i; //
for (i = 0; i < N; i++)
{
row[i] = FR;
col[i] = FR;
}
for (i = 0; i < 2 * N - 1; i++)
{
dpos... | 2,036 | memory_bytes | {'s_id': 's631609352', 'p_id': 'p02244', 'u_id': 'u447039604', 'date': '1580689002', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2036', 'code_size': '1618'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 <stdbool.h>\n#define N 8\n#define NFR -1\n#define FR 1\n\nint row[N], col[N], dpos[2 * N - 1], dneg[2 * N... |
CDSS_41379 | CDSS | main(a,i,j){for(;~scanf("%d",&i);printf("%d\n",j))for(a=j=0;a<1e4;)a%10+a/10%10+a/100%10+a++/1000-i||j++;} | 0 | memory_bytes | {'s_id': 's302133049', 'p_id': 'p00008', 'u_id': 'u746184552', 'date': '1316615622', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', '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:\nmain(a,i,j){for(;~scanf(\"%d\",&i);printf(\"%d\\n\",j))for(a=j=0;a<1e4;)a%10+a/10%10+a/100%10+a++/1000-i||j++;}\nPredict its memory fo... |
CDSS_536833 | CDSS | #include<stdio.h>
int main(void)
{
double n,a,p=0,i;
scanf("%lf", &n);
for(i=0; i<n; i++)
{
scanf("%lf", &a);
p+=1.0/a;
}
printf("%f\n", 1.0/p);
return 0;
} | 128 | memory_bytes | {'s_id': 's964519529', 'p_id': 'p02934', 'u_id': 'u550605178', 'date': '1570138565', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '169'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\n\tdouble n,a,p=0,i;\n\tscanf(\"%lf\", &n);\n\tfor(i=0; i<n; i++)\n\t{\n\t\tscanf(\"%lf\", &a);\n... |
CDSS_31186 | CDSS | #include <stdio.h>
int main( void ) {
int n, a, b, c;
for ( scanf( "%d", &n ); n--; scanf( "%d %d %d", &a, &b, &c ), puts( a * a + b * b == c * c || b * b + c * c == a * a || c * c + a * a == b * b ? "YES" : "NO" ) ) ;
return 0;
} | 580 | memory_bytes | {'s_id': 's836414770', 'p_id': 'p00003', 'u_id': 'u340315059', 'date': '1373247150', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', 'code_size': '236'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main( void ) {\n\tint n, a, b, c;\n\n\tfor ( scanf( \"%d\", &n ); n--; scanf( \"%d %d %d\", &a, &b, &c ), pu... |
CDSS_149943 | CDSS | #include <stdio.h>
#define N 100
int n;
//function to sort and print array using insertion
void insertionSort (int arr[], int n)
{
int i, key, j, print;
for (i=1; i<n; i++){
key = arr[i];
j = i-1;
while (j>=0 && arr[j]>key){
arr[j+1] = arr[j];
... | 2,108 | memory_bytes | {'s_id': 's978610718', 'p_id': 'p02255', 'u_id': 'u162489819', 'date': '1561437741', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '916'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 100\nint n;\n\n//function to sort and print array using insertion\nvoid insertionSort (int arr[], int n)... |
CDSS_106725 | CDSS | // x;main(l,m,n){for(;~scanf("%*[^J]");){n=0;scanf("%*[J]%n%*[O]%n%*[I]%n",&l,&m,&n);n-=m;m-=l;if(l>=m&&m<=n)if(x<m)x=m;}x=!printf("%d\n",x);}
// x;main(l,m,n){for(;~scanf("%*[^J]");){n=0;scanf("%*[J]%n%*[O]%n%*[I]%n",&l,&m,&n);n-=m;m-=l;l>=m&&m<=n&&(x=x<m?m:x);}x=!printf("%d\n",x);}
// x;main(l,m,n){for(;~scanf("%*[^J... | 540 | memory_bytes | {'s_id': 's457650945', 'p_id': 'p00494', 'u_id': 'u340315059', 'date': '1376519118', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '90', 'memory': '540', 'code_size': '4704'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n// x;main(l,m,n){for(;~scanf(\"%*[^J]\");){n=0;scanf(\"%*[J]%n%*[O]%n%*[I]%n\",&l,&m,&n);n-=m;m-=l;if(l>=m&&m<=n)if(x<m)x=m;}x=!printf... |
CDSS_467941 | CDSS | #include <stdio.h>
int main(){
char s[8];
scanf("%s", &s);
getchar();
if (s[2]==s[3] && s[4]==s[5])
{
printf("Yes");
}
else{
printf("No");
}
return 0;
} | 2,152 | memory_bytes | {'s_id': 's053426214', 'p_id': 'p02723', 'u_id': 'u353919145', 'date': '1600472067', 'language': 'C', 'original_language': 'C (Clang 10.0.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '2152', '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\tchar s[8];\n\tscanf(\"%s\", &s);\n\tgetchar();\n\t\n\tif (s[2]==s[3] && s[4]==s[5])\n\t{\n\t\tprint... |
CDSS_640371 | CDSS | #include <stdio.h>
int main(void) {
int a, b, n;
scanf("%d %d", &a, &b);
n=b-a-1;
printf("%d", n*(n+1)/2-a);
return 0;
} | 256 | memory_bytes | {'s_id': 's514323953', 'p_id': 'p03328', 'u_id': 'u279160680', 'date': '1559863831', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '256', 'code_size': '141'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\n int a, b, n;\n scanf(\"%d %d\", &a, &b);\n n=b-a-1;\n printf(\"%d\", n*(n+1)/2-a)... |
CDSS_62827 | CDSS | #define _CRT_SECURE_NO_WARNINGS
//#define _USE_MATH_DEFINES
#include<stdio.h>
//#include<stdlib.h>
//#include<math.h>
#include<string.h>
//#include<time.h>
//#define pi acos(-1.0)
#define P(type,x) fprintf(stdout,"%"#type"\n",x)
#define max(a,b) a>b?a:b
int dp[1001][1001];
int main() {
int w[1001], v[1001];
int i, j,... | 4,532 | memory_bytes | {'s_id': 's989273522', 'p_id': 'p00042', 'u_id': 'u078042885', 'date': '1482909028', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '4532', 'code_size': '799'} | [
{
"content": "Your task is to predict the memory 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>\n#include<st... |
CDSS_413562 | CDSS | #include <stdio.h>
#include <string.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main(void)
{
char t[200001];
int n;
scanf("%s", t);
n = strlen(t);
rep(i, n) if (t[i] == '?')
t[i] = 'D';
printf("%s\n", t);
return 0;
} | 1,840 | memory_bytes | {'s_id': 's975142164', 'p_id': 'p02664', 'u_id': 'u032004842', 'date': '1590887539', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1840', 'code_size': '271'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 rep(i, n) for (int i = 0; i < (int)(n); i++)\n\nint main(void)\n{\n char t[200001]... |
CDSS_675210 | CDSS | #include<stdio.h>
#include<string.h>
int main(void){
int A,B,C,D,E,X,cou=0,v[3];
char S[10];
scanf("%d",&A);
B=A/1000;
C=A/100-B*10;
D=A/10-A/100*10;
E=A%10;
if((B==C)&&(C==D)){
printf("Yes");
}else if((C==D)&&(D==E)){
printf("Yes");
}else{
printf("No");
... | 128 | memory_bytes | {'s_id': 's162455321', 'p_id': 'p03543', 'u_id': 'u635508156', 'date': '1552074151', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '340'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 A,B,C,D,E,X,cou=0,v[3];\n char S[10];\n scanf(\"%d\",&A);\n B... |
CDSS_187540 | CDSS | #include <stdio.h>
#define S_SIZE 10000
#define T_SIZE 500
int main(void)
{
long S[S_SIZE];
int n;
int i;
long T[T_SIZE];
int q;
int found = 0;
scanf("%5d", &n);
for(i=0; i < n; i++) scanf("%10ld", &S[i]);
scanf("%3d", &q);
for(i=0; i < q; i++) scanf("%10ld", &T[i]);
for(i=0; i < q; i++){
... | 680 | memory_bytes | {'s_id': 's531213361', 'p_id': 'p02267', 'u_id': 'u827214117', 'date': '1436670836', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '680', 'code_size': '473'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 S_SIZE 10000\n#define T_SIZE 500\nint main(void)\n{\n long S[S_SIZE];\n int n;\n int i;\n long T[T_S... |
CDSS_676193 | CDSS | #include<stdio.h>
#include<math.h>
int main() {
int a[4],s;
scanf("%d", &s);
for (int i = 0; i < 4; i++) {
a[i] = s / (int)pow(10,3-i);
s %= (int)pow(10, 3-i);
#ifdef DEBUG
printf("%d\n",a[i]);
#endif DEBUG
}
for (int mask = 0; mask < pow(2, 3); mask++) {
int sum = a[0] + a[1] + a[2] +... | 128 | memory_bytes | {'s_id': 's577189217', 'p_id': 'p03545', 'u_id': 'u189521276', 'date': '1590549404', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '592'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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\tint a[4],s;\n\tscanf(\"%d\", &s);\n\tfor (int i = 0; i < 4; i++) {\n\t\ta[i] = ... |
CDSS_250916 | CDSS | #include <stdio.h>
int main(int argc, const char * argv[]) {
// insert code here...
double a, b;
scanf("%lf %lf", &a, &b);
printf("%.0f %.0f\n", a*b, 2*(a+b));
return 0;
} | 644 | memory_bytes | {'s_id': 's948865801', 'p_id': 'p02389', 'u_id': 'u007749073', 'date': '1443293362', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '644', 'code_size': '202'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 // insert code here...\n double a, b;\n \n scanf(\"%lf %... |
CDSS_728321 | CDSS | #include <stdio.h>
#include <string.h>
int is_substr(char s[], char t[], int i){
int flag = 1;
if(s[i] == '\0') flag = 0;
for(int j = 0; j < strlen(t); ++j, ++i){
if(s[i] != t[j]){
flag = 0;
break;
}
}
return flag;
}
int main(){
char s[100010];
in... | 2,148 | memory_bytes | {'s_id': 's086898056', 'p_id': 'p03854', 'u_id': 'u906918812', 'date': '1597172974', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '7', 'memory': '2148', 'code_size': '683'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 is_substr(char s[], char t[], int i){\n int flag = 1;\n\n if(s[i] == '\\0') flag ... |
CDSS_91001 | CDSS | #include <stdio.h>
int main(void)
{
int b1, b2, b3;
scanf("%d %d %d", &b1, &b2, &b3);
if (b1 == 1 && b2 == 0 && b3 == 0 || b1 == 0 && b2 == 1 && b3 == 0 || b1 == 0 && b2 == 0 && b3 == 0)
printf("Close\n");
else
printf("Open\n");
return 0;
}
| 2,144 | memory_bytes | {'s_id': 's475952191', 'p_id': 'p00252', 'u_id': 'u853655072', 'date': '1529423301', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2144', 'code_size': '252'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 b1, b2, b3;\n\tscanf(\"%d %d %d\", &b1, &b2, &b3);\n\tif (b1 == 1 && b2 == 0 && b3 == 0 ... |
CDSS_243659 | CDSS | #include<stdio.h>
int main(){
int a;
scanf("%d", &a);
a = a * a * a;
printf("%d\n",a);
return 0;
} | 596 | memory_bytes | {'s_id': 's805675053', 'p_id': 'p02388', 'u_id': 'u077277777', 'date': '1475802100', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', '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(){\n\tint a;\n\tscanf(\"%d\", &a);\t\t\n\ta = a * a * a;\n\tprintf(\"%d\\n\",a);\n\treturn 0;\n}\nPredict ... |
CDSS_63122 | CDSS | #include<stdio.h>
#define AGARI 14
#define TENPAI 13
enum{
FAIL,
SUCCESS,
};
int fanc(int a[])
{
int i = 0;
int j = 0;
int k = 0;
int l = 0;
int flag = 0;
int count = 0;
int count1[10];
int ans[10];
int keep[AGARI];
for(i=0;i<10;i++)
{
count1[i] = 0;
ans[i] = 0;
}
for(i=0;i<AGARI;i++)
{
for(k=1;... | 548 | memory_bytes | {'s_id': 's005370441', 'p_id': 'p00043', 'u_id': 'u832413980', 'date': '1468455533', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '548', 'code_size': '8269'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 AGARI 14\n#define TENPAI 13\nenum{\n\tFAIL,\n\tSUCCESS,\n\t};\n\nint fanc(int a[])\n{\n\tint i = 0;\n\tint ... |
CDSS_142205 | CDSS | #include <stdio.h>
#define FREE -1
#define NOT_FREE 1
#define N 8
int row[N],col[N],dpos[2*N-1],dneg[2*N-1];
int X[N][N];
void initialize(){
int i;
for(i=0;i<N;i++){
row[i]=FREE;
col[i]=FREE;
}
for(i=0;i<2*N-1;i++){
dpos[i]=FREE;
dneg[i]=FREE;
}
}
void printBord(){
... | 2,108 | memory_bytes | {'s_id': 's233539695', 'p_id': 'p02244', 'u_id': 'u615819161', 'date': '1549498038', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '1323'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 FREE -1\n#define NOT_FREE 1\n#define N 8\nint row[N],col[N],dpos[2*N-1],dneg[2*N-1];\nint X[N][N];\n\nvoid... |
CDSS_180176 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
void push(int);
int pop();
int top,s[1000];
int main(){
int x,y;
char a[100];
top=0;
while(scanf("%s",a)!=EOF){
if(a[0]=='+'){
x=pop();
y=pop();
push(x+y);
}
else if(a[0]=='-'){
y=pop();
x=pop();
push(x-y... | 2,104 | memory_bytes | {'s_id': 's911010302', 'p_id': 'p02263', 'u_id': 'u737300138', 'date': '1576134060', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '569'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#include<string.h>\n\nvoid push(int);\nint pop();\n\nint top,s[1000];\n\nint main(){\n int x,y... |
CDSS_417671 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <inttypes.h>
int main(void){
int a,b,h,m;
double ans=0;
int b_an;
double a_an;
double angle;
scanf("%d %d %d %d",&a,&b,&h,&m);
b_an=6*m;
a_an=30*h+0.5*m;
if(b_an>a_an){
angle=b_an-a_an;
}else{
angle=a_an-b_an;
}
if(a... | 2,524 | memory_bytes | {'s_id': 's808931685', 'p_id': 'p02677', 'u_id': 'u607307520', 'date': '1589767088', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '2524', 'code_size': '549'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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#include <inttypes.h>\n\nint main(void){\n\tint a,b,h... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.