identifier string | space string | input string | target float64 | metric_type string | metadata string | messages list |
|---|---|---|---|---|---|---|
CDSS_70941 | CDSS | c;main(n){while(~scanf("%d",&n)){int m[15][15]={0},x=n/2,y=x+1;for(;c<n*n;m[x++%n][y++%n]=++c)for(;m[x%n][y%n];y++)x--;for(y=-1;++y<n;putchar(10))for(c=x=0;x<n;)printf("%4d",m[x++][y]);}exit(0);} | 0 | memory_bytes | {'s_id': 's994934095', 'p_id': 'p00078', 'u_id': 'u399107199', 'date': '1287662893', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '195'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nc;main(n){while(~scanf(\"%d\",&n)){int m[15][15]={0},x=n/2,y=x+1;for(;c<n*n;m[x++%n][y++%n]=++c)for(;m[x%n][y%n];y++)x--;for(y=-1;++y<... |
CDSS_463371 | CDSS | #include <stdio.h>
int main(){
int a[4];
scanf("%d %d %d",&a[2],&a[3],&a[1]);
printf("%d %d %d\n",a[1],a[2],a[3]);
return 0;
} | 128 | memory_bytes | {'s_id': 's794472443', 'p_id': 'p02717', 'u_id': 'u543423402', 'date': '1586051216', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '131'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 a[4];\n\tscanf(\"%d %d %d\",&a[2],&a[3],&a[1]);\n\tprintf(\"%d %d %d\\n\",a[1],a[2],a[3]);\n\... |
CDSS_658450 | CDSS |
#include<stdio.h>
int main(void){
int N,i,j,A,B,tmp;
A=0;
B=0;
int a[N];
scanf("%d",&N);
for(i=0;i<N;i++){
scanf("%d",&a[i]);
}
for(i=0;i<N-1;i++){
for(j=i+1;j<N;j++){
if(a[j]>a[i]){
tmp = a[j];
a[j]=a[i];
a[i]=tmp;
}
}
}
for(i=0;i<N;i++){
if(i... | 1,724 | memory_bytes | {'s_id': 's803147956', 'p_id': 'p03434', 'u_id': 'u376142113', 'date': '1597159667', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1724', 'code_size': '415'} | [
{
"content": "Your task is to predict the memory 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>\nint main(void){\n int N,i,j,A,B,tmp;\n A=0;\n B=0;\n int a[N];\n scanf(\"%d\",&N);\n for(i=0;i<N;i++){\n ... |
CDSS_186582 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
struct node{
int key;
struct node *next;
struct node *pre;
};
typedef struct node * point;
point nil;
point search(int key){
for(point new=nil->next;new!=nil;new=new->next){
if(new->key==key){
return new;
}
}
return nil;
}
void init(){
... | 32,976 | memory_bytes | {'s_id': 's069146941', 'p_id': 'p02265', 'u_id': 'u400540667', 'date': '1532758377', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '220', 'memory': '32976', 'code_size': '1408'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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>\nstruct node{\n int key;\n struct node *next;\n struct node *pre;\n};\nty... |
CDSS_191885 | CDSS | #include<stdio.h>
int search(int);
int S[100000], q, key, count=0,i,n,mid;
int main(){
scanf("%d", &n);
for ( i = 0; i < n; i++ ){
scanf("%d", &S[i]);
}
scanf("%d", &q);
for ( i = 0; i < q; i++ ){
scanf("%d", &key);
if ( search(key)) count++;
}
printf("%d\n", count);
return ... | 988 | memory_bytes | {'s_id': 's219896092', 'p_id': 'p02268', 'u_id': 'u648375209', 'date': '1461814776', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '988', 'code_size': '574'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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);\n\nint S[100000], q, key, count=0,i,n,mid;\nint main(){\n\n \n\n scanf(\"%d\", &n);\n\n for (... |
CDSS_57312 | CDSS | #include<stdio.h>
int main(void){
int d1[4],d2[4];
short flag[4];
int i,j;
int h,b;
h = 0;
b = 0;
while(scanf(" %d %d %d %d",&d1[0],&d1[1],&d1[2],&d1[3]) != EOF){
scanf(" %d %d %d %d",&d2[0],&d2[1],&d2[2],&d2[3]);
for(i = 0;i < 4;i++){
if(d1[i] == d2[i]){
flag[i] = 1;
}
}
for(i = 0;i < 4;... | 596 | memory_bytes | {'s_id': 's100990131', 'p_id': 'p00025', 'u_id': 'u876735840', 'date': '1434359765', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', '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\nint main(void){\n\t\n\tint d1[4],d2[4];\n\tshort flag[4];\n\t\n\tint i,j;\n\tint h,b;\n\t\n\th = 0;\n\tb = 0;\n\t... |
CDSS_733453 | CDSS | a[3][1<<18],b[2],x,y,N[2][1<<18],i,j;main(n){scanf("%d",&n);for(;i<3;++i)for(j=0;j<n;++j){scanf("%d",&a[i][j]);--a[i][j];}for(j=0;j<n;++j){if(a[0][j]/3-a[1][j]/3||a[1][j]/3-a[2][j]/3||a[2][j]/3-a[0][j]/3||a[1][j]%3-1||a[1][j]/3-j&1){b[0]=1;break;}x=y=a[1][j]/3+1;while(x){b[j&1]-=N[j&1][x]%2;x-=x&-x;}b[j&1]+=j/2;while(y... | 3,664 | memory_bytes | {'s_id': 's217244144', 'p_id': 'p03955', 'u_id': 'u826189900', 'date': '1597852132', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '47', 'memory': '3664', 'code_size': '404'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\na[3][1<<18],b[2],x,y,N[2][1<<18],i,j;main(n){scanf(\"%d\",&n);for(;i<3;++i)for(j=0;j<n;++j){scanf(\"%d\",&a[i][j]);--a[i][j];}for(j=0;... |
CDSS_507836 | CDSS | //C-Snack
#include <stdio.h>
int main(void) {
long int a;
long int b;
scanf("%ld%ld", &a, &b);
//printf("%d%d\n", a, b);
long int i;
for (i = 1;i <= b + 1;i++) {
if ((a * i) % b == 0) {
printf("%ld\n", a * i);
break;
}
}
return 0;
}
| 1,732 | memory_bytes | {'s_id': 's897546369', 'p_id': 'p02831', 'u_id': 'u227075267', 'date': '1600004997', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1732', '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//C-Snack\n\n#include <stdio.h>\n\n\n\nint main(void) {\n long int a;\n long int b;\n scanf(\"%ld%ld\", &a, &b);\n //print... |
CDSS_634889 | CDSS | #include <stdio.h>
#define len_string_max 4
int calculate_points (char* data_string)
{
// constants for `calculate_points`
const char* sym_pls1 = '+';
const char* sym_mns1 = '-';
// variables for `calculate_points`
int points;
// STEP.01
// initialize the points
points = 0;
// S... | 128 | memory_bytes | {'s_id': 's582782217', 'p_id': 'p03315', 'u_id': 'u484703930', 'date': '1560095696', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '919'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 len_string_max 4\n\nint calculate_points (char* data_string)\n{\n // constants for `calculate_points`... |
CDSS_591714 | CDSS | #include<stdio.h>
int min(int A,int B){
if(A>=B){
return A;
}else{
return B;
}
};
int main(){
int A,B,K;
int i;
int result;
int count=0;
scanf("%d %d %d",&A,&B,&K);
for(i=min(A,B);i>=1;i--){
if(A%i==0 && B%i==0){
count+=1;
if(count==K... | 128 | memory_bytes | {'s_id': 's592894903', 'p_id': 'p03106', 'u_id': 'u414699019', 'date': '1562394715', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '425'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 min(int A,int B){\n if(A>=B){\n return A;\n }else{\n return B;\n }\n};\n\nint main(){\... |
CDSS_436695 | CDSS | #include<stdio.h>
#include<string.h>
#include<math.h>
#define N_MAX 200001
#define ll long long
#define MOD 2019
int main(){
int g=1,len;
ll ans=0;
char a[N_MAX];
scanf("%s",a);
len=strlen(a);
int T[N_MAX]={};
T[len]=0;
int counter[MOD]={};
counter[0]=1;
for(int k=len-1;k>=0;k--){
T[k]=(T[k+1... | 2,688 | memory_bytes | {'s_id': 's969315199', 'p_id': 'p02702', 'u_id': 'u214368228', 'date': '1588004508', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '2688', 'code_size': '497'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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#define N_MAX 200001\n#define ll long long\n#define MOD 2019\n\n\n\nint main(... |
CDSS_373761 | CDSS | #include <stdio.h>
typedef long long ll;
const ll MOD = 1000000007;
ll mlpow(ll x, ll p) { //(x^p) % MOD
ll tmp = 1;
if(p == 0) return 1;
while(p != 0) {
if(p & 1) tmp = tmp*x % MOD;
x = x*x % MOD;
p = p >> 1;
}
return tmp;
}
int main() {
ll m, n;
scanf("%lld%lld", ... | 2,080 | memory_bytes | {'s_id': 's914675901', 'p_id': 'p02468', 'u_id': 'u507087316', 'date': '1597376107', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2080', '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>\ntypedef long long ll;\nconst ll MOD = 1000000007;\n\nll mlpow(ll x, ll p) { //(x^p) % MOD\n ll tmp = 1;\n if... |
CDSS_219087 | CDSS | #include<stdio.h>
#include<stdlib.h>
#define MAX 10000
int parent[MAX], left[MAX], right[MAX];
int n, D[MAX], H[MAX];
int getDepth(int u){
int d = 0;
while(parent[u] != -1){
u = parent[u];
d++;
}
return d;
}
void setDepth(int u, int p){
D[u] = p;
if(right[u] != -1){
setDepth(right[u], p+1);
... | 2,104 | memory_bytes | {'s_id': 's956825109', 'p_id': 'p02280', 'u_id': 'u429684214', 'date': '1547096269', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '1739'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 MAX 10000\n\nint parent[MAX], left[MAX], right[MAX];\nint n, D[MAX], H[MAX];\n\nint get... |
CDSS_732603 | CDSS | #include <stdio.h>
int max(int a, int b){return a > b ? a : b;}
int main(void){
int w, h, n, x, y, a;
int sx = 0, ex, sy = 0, ey;
scanf("%d %d %d", &w, &h, &n);
ex = w; ey = h;
for(int i = 0; i < n; i++){
scanf("%d %d %d", &x, &y, &a);
switch(a){
case 1:
if(sx < x)sx = x;
break;
case 2:
if(... | 128 | memory_bytes | {'s_id': 's643473939', 'p_id': 'p03944', 'u_id': 'u576678086', 'date': '1548714790', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '529'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint max(int a, int b){return a > b ? a : b;}\n\nint main(void){\n\tint w, h, n, x, y, a;\n\tint sx = 0, ex, sy =... |
CDSS_673880 | CDSS | #include<stdio.h>
int main()
{
int n,m,k;
while(~scanf("%d %d %d",&n,&m,&k))
{
int s;
s=n*m;
if(s<k)
printf("%d\n",s);
else
printf("%d\n",k);
}
return 0;
} | 128 | memory_bytes | {'s_id': 's591431270', 'p_id': 'p03501', 'u_id': 'u540636572', 'date': '1512353738', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '128', '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>\nint main()\n{\n\tint n,m,k;\n\twhile(~scanf(\"%d %d %d\",&n,&m,&k))\n\t{\n\t\tint s;\n\t\ts=n*m;\n\t\tif(s<k)\n\t\t... |
CDSS_631191 | CDSS | #include<stdio.h>
#include<string.h>
int main()
{
char c,s[105],t[105];
int i,j,n,k;
k=0;
scanf("%s",&s);
scanf("%s",&t);
n=strlen(s);
for(i=0;i<n;i++)
{
if(strcmp(s,t)==0)
{
k=1;break;
}
c=s[n-1];
for(j=n-2;j>=0;j--)
s[... | 128 | memory_bytes | {'s_id': 's313819866', 'p_id': 'p03293', 'u_id': 'u012924257', 'date': '1532532342', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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<string.h>\n int main()\n {\n \tchar c,s[105],t[105];\n \tint i,j,n,k;\n \tk=0;\n ... |
CDSS_647181 | CDSS | #include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <inttypes.h>
#include <stdint.h>
#include <string.h>
char first[300][300];
bool isGoodBoard(const uint32_t N, const uint32_t A, const uint32_t B) {
for (uint32_t i = 0; i < N; i++) {
for (uint32_t j = i; j < N; j++) {
if (first[(A + i) % N][(B... | 256 | memory_bytes | {'s_id': 's775375719', 'p_id': 'p03364', 'u_id': 'u615782628', 'date': '1524969345', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '216', 'memory': '256', 'code_size': '927'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdbool.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <inttypes.h>\n#include <stdint.h>\n#include <string.h>\n\nchar... |
CDSS_373508 | CDSS | #include <stdio.h>
int big_mod(int b, int p, int m)
{
long long s = 1;
long long d;
d = b % m;
while (p > 0) {
if (p & 1) s = (s * d) % m;
p >>= 1;
d = (d * d) % m;
}
return (int)s;
}
int main()
{
int m, n;
scanf("%d%d", &m, &n);
printf("%d\n", big_mod(m, n, 1000000007));
re... | 2,104 | memory_bytes | {'s_id': 's318848889', 'p_id': 'p02468', 'u_id': 'u155649054', 'date': '1531718015', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '331'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 big_mod(int b, int p, int m)\n{\n long long s = 1;\n long long d;\n\n d = b % m;\n while (p > 0) {\n... |
CDSS_649335 | CDSS | #include <stdio.h>
int main(void){
int a, b, x;
scanf("%d%d%d", &a, &b, &x);
if (x >= a && x <= a + b) {
puts("YES");
} else {
puts("NO");
}
return 0;
}
| 128 | memory_bytes | {'s_id': 's782155305', 'p_id': 'p03377', 'u_id': 'u238041222', 'date': '1523764071', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '165'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer 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, x;\n\tscanf(\"%d%d%d\", &a, &b, &x);\n\tif (x >= a && x <= a + b) {\n\t\tputs(\"YES\"... |
CDSS_113848 | CDSS | #include <stdio.h>
#define N_MAX 50
#define DATE_MAX 100
int main(void)
{
char free_members[DATE_MAX];
int n, q, m, i, meeting_date, meeting_members;
while(scanf("%d %d", &n, &q), n + q)
{
for(i = 0; i < DATE_MAX; i++)
free_members[i] = 0;
while(n--)
{
... | 600 | memory_bytes | {'s_id': 's938157582', 'p_id': 'p00705', 'u_id': 'u655658530', 'date': '1428134713', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', '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#define N_MAX 50\n#define DATE_MAX 100\n\nint main(void)\n{\n char free_members[DATE_MAX];\n int n, q, m, i,... |
CDSS_729633 | CDSS | #include<stdio.h>
int main(void)
{
long long int a,b,x,ans1,ans2,result=0;
char str[128];
fgets(str,sizeof(str),stdin);
sscanf(str,"%lld %lld %lld",&a,&b,&x);
ans1 = b/x;
ans2 = (a-1)/x;
if(a == 0)ans2 = -1;
result = ans1 - ans2;
printf("%lld",result);
return 0;
} | 128 | memory_bytes | {'s_id': 's703378674', 'p_id': 'p03861', 'u_id': 'u298244614', 'date': '1575315013', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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>\n\nint main(void)\n{\n long long int a,b,x,ans1,ans2,result=0;\n char str[128];\n \n fgets(str,sizeof(str),stdin... |
CDSS_604797 | CDSS | m=1e9+7,P[3333][3333];
c,i;
f(j){
P[i][j]=~c?*P[i-1]-P[i-1][j]:P[i-1][j];
j<i&&f(j+1);
P[i][j]=(1L*P[i][j]+P[i][j+1]+m)%m;
}
main()
{
P[0][0]=1;
for(gets(&c);c=getchar(++i)%3-1;)f(0);
printf("%d",*P[i-1]);
} | 39,808 | memory_bytes | {'s_id': 's783212759', 'p_id': 'p03179', 'u_id': 'u657913472', 'date': '1546962050', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '100', 'memory': '39808', 'code_size': '213'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nm=1e9+7,P[3333][3333];\nc,i;\nf(j){\n\tP[i][j]=~c?*P[i-1]-P[i-1][j]:P[i-1][j];\n\tj<i&&f(j+1);\n\tP[i][j]=(1L*P[i][j]+P[i][j+1]+m)%m;\... |
CDSS_442522 | CDSS | #include<stdio.h>
#include<stdlib.h>
int main()
{
int m, n, sum=0;
scanf("%d%d", &m, &n);
int *p;
p=(int*)malloc(n*sizeof(int));
int i;
for(i=0; i<n; i++){
scanf("%d", &p[i]);
sum+=p[i];
}
int ans=m-sum;
if(ans>-1){
printf("%d\n", ans);
}
else{
... | 1,768 | memory_bytes | {'s_id': 's434305154', 'p_id': 'p02706', 'u_id': 'u319733040', 'date': '1594221995', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1768', 'code_size': '358'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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>\nint main()\n{\n int m, n, sum=0;\n scanf(\"%d%d\", &m, &n);\n int *p;\n p=(int*)mal... |
CDSS_76517 | CDSS | #include<stdio.h>
#include<string.h>
int main(){
int i,n,j,s;
int m[11][11];
char buf[500],*prev,*ind;
do{
fgets(buf,500,stdin);
n=atoi(buf);
if(!n) break;
for(j=0,i=0;i<n;i++,j=0){
fgets(buf,500,stdin);
prev=ind=buf;
while((ind=strchr(ind,' '))!=NULL){
*ind='\0';
ind++;
m[... | 0 | memory_bytes | {'s_id': 's314907887', 'p_id': 'p00102', 'u_id': 'u540597234', 'date': '1311736162', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '690'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 int i,n,j,s;\n int m[11][11];\n char buf[500],*prev,*ind;\n do{\n fgets(... |
CDSS_742159 | CDSS | /* ex9_1
Rikuta */
#include <stdio.h>
#include<stdlib.h>
//スタックに格納するデータの最大数
#define SIZE 10
//スタックの定義
typedef struct stack
{
int size;
int count;
char data[SIZE];
char *top;
} stack;
//スタックの初期化
void initialize_stack(stack *string);
//データの追加
void push(stack *string, char elem);
//データの取り出し
void pop(... | 1,592 | memory_bytes | {'s_id': 's010003495', 'p_id': 'p04030', 'u_id': 'u969618034', 'date': '1595109609', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1592', 'code_size': '2596'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n/* ex9_1\n Rikuta */\n#include <stdio.h>\n#include<stdlib.h>\n//スタックに格納するデータの最大数\n#define SIZE 10\n//スタックの定義\ntypedef struct stac... |
CDSS_25299 | CDSS | #include<stdio.h>
int main()
{
int list[10],i,j,temp;
for(i=0;i<10;i++)
{
scanf("%d",&list[i]);
}
for(i=0;i<10;i++)
{
for(j=i+1;j<10;j++)
{
if(list[i]>list[j])
{
temp=list[i];
list[i]=list[j];
list[j]=temp;
}
}
}
printf("%d\n",list[9]);
printf("%d\n",list[... | 600 | memory_bytes | {'s_id': 's287279417', 'p_id': 'p00001', 'u_id': 'u011621222', 'date': '1383069265', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '365'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 list[10],i,j,temp;\n\tfor(i=0;i<10;i++)\n\t{\n \tscanf(\"%d\",&list[i]);\n\t}\n\tfor(i=0;... |
CDSS_199901 | CDSS | #include <stdio.h>
int solve(int, int);
int n, A[2000];
int main(){
int q, m[2000], i;
scanf("%d", &n);
for(i=0; i<n; i++) scanf("%d", &A[i]);
scanf("%d", &q);
for(i=0; i<q; i++) scanf("%d", &m[i]);
for(i=0; i<q; i++){
if(solve(0, m[i]) == 1) printf("yes\n");
else printf("no\n");
}
retur... | 588 | memory_bytes | {'s_id': 's535184533', 'p_id': 'p02271', 'u_id': 'u921810101', 'date': '1496195065', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '580', 'memory': '588', '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 solve(int, int);\n\nint n, A[2000];\n\nint main(){\n int q, m[2000], i;\n\n scanf(\"%d\", &n);\n for(i=0;... |
CDSS_82013 | CDSS | #include <stdio.h>
int main(void)
{
int a,n,i;
while(scanf("%d",&a)!=EOF){
i=a%39;
if(i==0)
{
printf("3C39\n");
}
else if(i<=9)
{
printf("3C0%d\n");
}
else
{
printf("3C%d\n",i);
}
}
return 0;
} | 608 | memory_bytes | {'s_id': 's892618060', 'p_id': 'p00148', 'u_id': 'u135379638', 'date': '1494493103', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '608', 'code_size': '213'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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,n,i;\n\twhile(scanf(\"%d\",&a)!=EOF){\n\ti=a%39;\n\tif(i==0)\n\t{\n\tprintf(\"3C39\\n... |
CDSS_474578 | CDSS | #include <stdio.h>
int main(){
int K;
scanf("%d",&K);
int a[32]= {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51};
printf("%d\n",a[K-1]);
return 0;
} | 128 | memory_bytes | {'s_id': 's078192189', 'p_id': 'p02741', 'u_id': 'u908074393', 'date': '1584736440', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '208'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n\tint K;\n\tscanf(\"%d\",&K);\n\tint a[32]= {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5,... |
CDSS_237344 | CDSS | #include<stdio.h>
int main(){
int a,b,c,d,e,f;
int tempa,tempb;
int i,j;
char cc;
scanf("%d %d %d %d %d %d",&a,&b,&c,&d,&e,&f);
scanf("%c",&cc);
while(1){
scanf("%c",&cc);
if(cc=='\n')break;
if(cc=='S'){
tempa=a;
a=e;
e=f;
f=b;
b=tempa;
}
else if(cc=='N'){... | 596 | memory_bytes | {'s_id': 's875359452', 'p_id': 'p02383', 'u_id': 'u522516700', 'date': '1434013401', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '610'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int a,b,c,d,e,f;\n int tempa,tempb;\n int i,j;\n char cc;\n scanf(\"%d %d %d %d %d %d\",&a,&b,&c... |
CDSS_616643 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <stdbool.h>
#include <string.h>
/*以下便利なマクロを定義する。*/
#define rep(i, min, max) for(i=min; i<=max; i=i+1)
#define if_forall(i, min, max, prop)\
\
rep(i, min, max)\
{\
if(!(prop))\
{\
break;\
}\
}\
\
if(i==max+1)\
#define if_exists(i, m... | 128 | memory_bytes | {'s_id': 's106509324', 'p_id': 'p03243', 'u_id': 'u637653462', 'date': '1574921201', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '11349'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 <stdbool.h>\n#include <string.h>\n\n\n\n/*以下便利なマクロを定義する。*/\n\n#de... |
CDSS_386913 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
int main(void) {
int N;
double D2, x, y;
int i;
int result;
char buf[256], *ch;
fgets(buf, sizeof(buf), stdin);
ch = strtok(buf, " ");
N = atoi(ch);
ch = strtok(NULL, " ");
D2 = atof(ch);
D2 = D2 * D2;
result = 0;
for(i = 0; i < N; i += 1) {
fge... | 2,156 | memory_bytes | {'s_id': 's271800779', 'p_id': 'p02595', 'u_id': 'u724301837', 'date': '1596417755', 'language': 'C', 'original_language': 'C (Clang 10.0.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '54', 'memory': '2156', 'code_size': '522'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#include<string.h>\n\nint main(void) {\n\tint N;\n\tdouble D2, x, y;\n\tint i;\n\tint result;\n... |
CDSS_135617 | CDSS | #include <stdio.h>
int main(){
int i,j,n,u,k,v,g[100][100];
scanf("%d",&n);
for(i = 0; i < n; i++){
for(j = 0; j < n; j++) g[i][j] = 0;
}
for(i = 0; i < n; i++){
scanf("%d%d",&u,&k);
for(j = 0; j < k; j++){
scanf("%d",&v);
g[u - 1][v - 1]=1;
}
}
for(i = 0; i < n; i++){
for... | 2,036 | memory_bytes | {'s_id': 's426775116', 'p_id': 'p02237', 'u_id': 'u829676664', 'date': '1580660970', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2036', 'code_size': '437'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n int i,j,n,u,k,v,g[100][100];\n scanf(\"%d\",&n);\n for(i = 0; i < n; i++){\n for(j = 0; j < ... |
CDSS_724870 | CDSS | #include <stdio.h>
int main(void)
{
int k, s, i, j, z, cou=0;
scanf("%d %d", &k, &s);
for(i = 0; i <= k; i++){
for(j = 0; j <= k; j++){
z = s-i-j;
if(0 <= z && z <= k){
if(i+j+(s-i-j) == s) cou++;
}
}
}
printf("%d\n", cou);
return 0;
} | 128 | memory_bytes | {'s_id': 's757691471', 'p_id': 'p03835', 'u_id': 'u818983162', 'date': '1493489234', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '7', 'memory': '128', 'code_size': '275'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 k, s, i, j, z, cou=0;\n scanf(\"%d %d\", &k, &s);\n\n for(i = 0; i <= k; i++){\n for... |
CDSS_484109 | CDSS | #include<stdio.h>
int main()
{
int n,r;
scanf("%d%d",&n,&r);
if(n>=10)
{
printf("%d\n",r);
}
else
{
int s=r+100*(10-n);
printf("%d\n",s);
}
return 0;
}
| 1,708 | memory_bytes | {'s_id': 's260612233', 'p_id': 'p02765', 'u_id': 'u741828929', 'date': '1597036465', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '1708', 'code_size': '213'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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,r;\n scanf(\"%d%d\",&n,&r);\n if(n>=10)\n {\n printf(\"%d\\n\",r);\n }\... |
CDSS_182099 | CDSS | #include<stdio.h>
#include<string.h>
#define LEN 100005
typedef struct pp{
char name[100];
int t;
}P;
P Q[LEN+1];
int head=1, tail, n;
void enqueue(P x){
Q[tail] = x;
if(tail+1 == LEN)tail = 0;
else tail++;
}
P dequeue(){
P x;
x = Q[head];
if(head+1 ==LEN)head=0;
else head++;
return x;
}
int main(){
int e... | 10,756 | memory_bytes | {'s_id': 's130939333', 'p_id': 'p02264', 'u_id': 'u818203639', 'date': '1498489123', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '10756', 'code_size': '847'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 LEN 100005\n\ntypedef struct pp{\n char name[100];\n int t;\n}P;\n\nP Q[LEN+1];\nint ... |
CDSS_512655 | CDSS | #include<stdio.h>
int main(void){
char str[5];
int m;
scanf("%s",str);
if(strcmp(str,"SUN") == 0)
m = 7;
else if(strcmp(str,"MON") == 0)
m = 6;
else if(strcmp(str,"TUE") == 0)
m = 5;
else if(strcmp(str,"WED") == 0)
m = 4;
else if(strcmp(str,"THU") == 0)
m = 3;
else if(str... | 128 | memory_bytes | {'s_id': 's164104633', 'p_id': 'p02847', 'u_id': 'u866861266', 'date': '1574648495', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '430'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 str[5];\n int m;\n \n scanf(\"%s\",str);\n \n if(strcmp(str,\"SUN\") == 0)\n ... |
CDSS_616964 | CDSS | #include <stdio.h>
int main(void){
int num;
scanf("%d",&num);
if((100<=num)&&(num<=111))
printf("111");
if((112<=num)&&(num<=222))
printf("222");
if((223<=num)&&(num<=333))
printf("333");
if((334<=num)&&(num<=444))
printf("444");
if((445<=num)&&(num<=555))
printf("555");
if((556<=num)&&(num<=666))
printf("666");
i... | 128 | memory_bytes | {'s_id': 's097443019', 'p_id': 'p03243', 'u_id': 'u793892077', 'date': '1538270044', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '459'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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\t\nint num;\n\n\nscanf(\"%d\",&num);\n\nif((100<=num)&&(num<=111))\nprintf(\"111\");\nif((112<=n... |
CDSS_719464 | CDSS | #include <stdio.h>
int
main(int argc, char *argv[])
{
char a[50][51], b[50][51];
int n, m;
scanf("%d %d", &n, &m);
for(int i = 0; i < n; i++) scanf("%s", a[i]);
for(int j = 0; j < m; j++) scanf("%s", b[j]);
int l = n - m; int cnt; char flag = 0;
for(int i = 0; i <= l; i++){
for(int j = 0; j <= l; j+... | 128 | memory_bytes | {'s_id': 's383974590', 'p_id': 'p03804', 'u_id': 'u801102476', 'date': '1560598692', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '611'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\nmain(int argc, char *argv[])\n{\n char a[50][51], b[50][51];\n int n, m;\n scanf(\"%d %d\", &n, &m);\n ... |
CDSS_478202 | CDSS | #include<stdio.h>
int main(void){
char words[2];
//iがAの時はA,Bの時はBが管理
//区間間が違う会社の時はバス
scanf("%s",words);
if(words[0]==words[1] && words[1]==words[2]){
printf("No");
}else{
printf("Yes");
}
return 0;
} | 128 | memory_bytes | {'s_id': 's687984180', 'p_id': 'p02753', 'u_id': 'u637761509', 'date': '1584398575', '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(void){\n char words[2];\n //iがAの時はA,Bの時はBが管理\n //区間間が違う会社の時はバス\n scanf(\"%s\",words);\n i... |
CDSS_240815 | CDSS | #include <stdio.h>
int main(void)
{
int x;
scanf("%d", &x);
printf("%d\n", x * x * x);
return 0;
} | 596 | memory_bytes | {'s_id': 's862581220', 'p_id': 'p02388', 'u_id': 'u157826075', 'date': '1435157058', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '115'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 x;\n scanf(\"%d\", &x);\n printf(\"%d\\n\", x * x * x);\n return 0;\n}\nPred... |
CDSS_566363 | CDSS | #include <stdio.h>
int main (){
int a,p,pieces ;
scanf ("%d %d", &a,&p);
pieces= a*3+p;
printf ("%d", pieces/2);
return 0;
}
| 128 | memory_bytes | {'s_id': 's253247398', 'p_id': 'p03029', 'u_id': 'u018679195', 'date': '1581370315', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '161'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer 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,p,pieces ;\n\n scanf (\"%d %d\", &a,&p);\n pieces= a*3+p;\n\n printf (\"%d\",... |
CDSS_481730 | CDSS | #include<stdio.h>
int main(){
int N;
scanf("%d",&N);
if(N%2==0)printf("%d",N/2);
else printf("%d",N/2+1);
return 0;
} | 128 | memory_bytes | {'s_id': 's217722746', 'p_id': 'p02759', 'u_id': 'u321065001', 'date': '1583118990', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '136'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n int N;\n scanf(\"%d\",&N);\n \n if(N%2==0)printf(\"%d\",N/2);\n else printf(\"%d\",N/2+1);\n ... |
CDSS_568507 | CDSS | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdbool.h>
#define ll long long int
#define lim 100010
#define INF 1e9
#define MIN(x,y) ((x)<(y)?(x):(y))
#define MAX(x,y) ((x)<(y)?(y):(x))
#define ABS(x) ((x)>0?(x):-(x))
int main(void){
int a,b;
scanf("%d%d",&a,&b);
if(a>=13)printf("%d",b);
el... | 128 | memory_bytes | {'s_id': 's160241631', 'p_id': 'p03035', 'u_id': 'u853477575', 'date': '1558832504', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '382'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n#include <stdbool.h>\n#define ll long long int\n#define lim 100010\n#def... |
CDSS_74222 | CDSS | #include <stdio.h>
int main(){
int a, b;
double c, t;
scanf("%d%d", &a, &b);
c=a*b;
t=c/3.305785;
printf("%f\n", t);
return 0;
} | 632 | memory_bytes | {'s_id': 's090007077', 'p_id': 'p00094', 'u_id': 'u561607102', 'date': '1373443302', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '632', 'code_size': '136'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n\tint a, b;\n\tdouble c, t;\n\tscanf(\"%d%d\", &a, &b);\n\tc=a*b;\n\tt=c/3.305785;\n\tprintf(\"%f\\... |
CDSS_463703 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<string.h>
#include<stdbool.h>
typedef long long ll;
typedef long double ld;
#define rep(i,l,r)for(ll i=(l);i<(r);i++)
#define repp(i,l,r,k)for(ll i=(l);i<(r);i+=(k))
#define rrep(i,l,r)for(ll i=(l);i>=(r);i--)
#define INF (1LL<<60)
#define MOD1 1000000007
#... | 128 | memory_bytes | {'s_id': 's141605833', 'p_id': 'p02717', 'u_id': 'u004279520', 'date': '1586048523', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '1630'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#include<math.h>\n#include<string.h>\n#include<stdbool.h>\ntypedef long long ll;\ntypedef long ... |
CDSS_262285 | CDSS | #include<stdio.h>
int main(void){
int S, h, m, s;
printf("");
scanf("%d", &S);
if(S>=0 && S<86400){
h=S/3600;
m=(S%3600)/60;
s=(S%3600)%60;
printf("%d:%d:%d\n", h, m, s);
}
return 0;
} | 592 | memory_bytes | {'s_id': 's474721552', 'p_id': 'p02390', 'u_id': 'u764239839', 'date': '1496371540', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', '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\nint main(void){\n int S, h, m, s;\n printf(\"\");\n scanf(\"%d\", &S);\n if(S>=0 && S... |
CDSS_93659 | CDSS | #include <stdio.h>
main() {
int n;
scanf("%d\n", &n);
for(int i=1;i<=n;i++){
int k,p;
scanf("%d %d\n",&k,&p);
if(k>=p){
if(k%p==0){
printf("%d\n",p);
}else{
... | 2,104 | memory_bytes | {'s_id': 's952463481', 'p_id': 'p00292', 'u_id': 'u455877373', 'date': '1561353999', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', '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\nmain() {\n \n int n;\n \n scanf(\"%d\\n\", &n);\n \n for(int i=1;i<=n;i++){\n ... |
CDSS_541146 | CDSS | #include<stdio.h>
int main()
{
int a,b,c,d,e;
scanf("%d %d %d",&a,&b,&c);
if(20>=a && a>=b && b >=0 && 20 >= c &&c >= 0)
{
d = a - b;
if(d >= c)
{
printf("0\n");
}
else
{
printf("%d\n",c - d);
}
}
else
{
printf("エラー\n");
}
return 0;
} | 128 | memory_bytes | {'s_id': 's625498834', 'p_id': 'p02951', 'u_id': 'u596849669', 'date': '1573150995', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '270'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n\tint a,b,c,d,e;\n\tscanf(\"%d %d %d\",&a,&b,&c);\n\tif(20>=a && a>=b && b >=0 && 20 >= c &&c >= 0)\... |
CDSS_576130 | CDSS | #include<stdio.h>
#include<stdlib.h>
int main(){
int *V;
int *C;
int N,i;
int a=0;
scanf("%d",&N);
V=(int*)malloc(sizeof(int)*N);
C=(int*)malloc(sizeof(int)*N);
for(i=0;i<N;i++){
scanf("%d",&V[i]);
}
for(i=0;i<N;i++){
scanf("%d",&C[i]);
}
for(i=0;i<N;i++){
if(V[i]-C[i]>0)a+=V[i]-C[i];
}
printf("%d... | 128 | memory_bytes | {'s_id': 's490350371', 'p_id': 'p03060', 'u_id': 'u325279090', 'date': '1556414075', '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<stdlib.h>\n\nint main(){\n\tint *V;\n\tint *C;\n\tint N,i;\n\tint a=0;\n\tscanf(\"%d\",&N);\n\tV=(int*)mal... |
CDSS_658191 | CDSS | #include <stdio.h>
int main(void){
// Your code here!
int N,A;
scanf("%d %d",&N,&A);
while(N>=500){
N = N - 500;
}
if(N<=A){
printf("Yes");
}
else{
printf("No");
}
return 0;
} | 128 | memory_bytes | {'s_id': 's076045132', 'p_id': 'p03433', 'u_id': 'u644100188', 'date': '1527969184', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '244'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\n // Your code here!\n int N,A;\n scanf(\"%d %d\",&N,&A);\n while(N>=500){\n N ... |
CDSS_138651 | CDSS | #include <stdio.h>
#define N 100000
int CC[N] = {0};
void init() {
int i;
for (i = 0; i < N; ++i) {
CC[i] = i;
}
}
int find(int a) {
if (a == CC[a]) {
return a;
}
return CC[a] = find(CC[a]);
}
int isSame(int a, int b) {
if (find(a) == find(b)) {
return 1;
} else {
return ... | 2,104 | memory_bytes | {'s_id': 's283327870', 'p_id': 'p02240', 'u_id': 'u847370832', 'date': '1549685830', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2104', 'code_size': '771'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\n#define N 100000\n\nint CC[N] = {0};\n\nvoid init() {\n int i;\n for (i = 0; i < N; ++i) {\n CC[i] = i;\n ... |
CDSS_675695 | CDSS | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
typedef long long ll;
typedef char keytype;
int gcd(int a, int b){ return (a % b) ? gcd(b, a % b) : b;}
int lcm(int a, int b){ return (a / gcd(a, b)) * b;}
/* a[0], ..., a[n-1] の数の最大公約数 */
int ngcd(int n, int a[])
{
int i, d;
d = a[0];
for (i = ... | 1,716 | memory_bytes | {'s_id': 's689318306', 'p_id': 'p03544', 'u_id': 'u906918812', 'date': '1600906618', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1716', 'code_size': '2550'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\ntypedef long long ll;\ntypedef char keytype;\n\nint gcd(int a, int b){... |
CDSS_416719 | CDSS | /*ex4_2
series2*/
# include <stdio.h>
# include <math.h>
int main(void){
//各文字の箱を作って読み取り
int l_hand,s_hand,hour,minute;
scanf("%d %d %d %d",&l_hand,&s_hand,&hour,&minute);
//二本の針の差を0以上pi以下で計算
//2*M_PI*(60*hour+minute)/(12*60)は時針の進んだ角度
//2*M_PI*minute/60は分針の進んだ角度
double diff=2*M_PI*(60*hour+... | 2,596 | memory_bytes | {'s_id': 's945161870', 'p_id': 'p02677', 'u_id': 'u384804826', 'date': '1590691672', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '2596', 'code_size': '597'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n/*ex4_2\nseries2*/\n\n# include <stdio.h>\n# include <math.h>\nint main(void){\n //各文字の箱を作って読み取り\n int l_hand,s_hand,hour,minute... |
CDSS_629977 | CDSS | #include<stdio.h>
int main()
{
int d, g;
scanf("%d %d", &d, &g);
int i, j;
int p[11], c[11];
for (i = 0; i < d; i++)
scanf("%d %d", &p[i], &c[i]);
int ans = 1000000009;
int max = 1;
for (i = 0; i < d; i++)
max *= 2;
int q, count, s;
int v[11], pp[11];
for (i = 0; i < max; i++)
{
q = i;
s = 0;
coun... | 128 | memory_bytes | {'s_id': 's833464528', 'p_id': 'p03290', 'u_id': 'u600300412', 'date': '1569971665', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '128', 'code_size': '844'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 d, g;\n\tscanf(\"%d %d\", &d, &g);\n\tint i, j;\n\tint p[11], c[11];\n\tfor (i = 0; i < d; i++... |
CDSS_190892 | CDSS | #include <stdio.h>
Search(int[],int,int);
int main(){
int n,m,i,key,res = 0,num[10001];
scanf("%d",&n);
for(i = 0;i<n;i++){
scanf("%d",&num[i]);
}
scanf("%d",&m);
for(i = 0;i<m;i++){
scanf("%d",&key);
if(Search(num,n,key)){
res++;
}
}
... | 2,108 | memory_bytes | {'s_id': 's650566210', 'p_id': 'p02267', 'u_id': 'u187668737', 'date': '1576480633', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '489'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nSearch(int[],int,int);\n\nint main(){\n int n,m,i,key,res = 0,num[10001];\n \n scanf(\"%d\",&n);\n f... |
CDSS_31529 | CDSS | #include <stdio.h>
int check(int,int,int);
int main(){
int n,i;
int a,b,c;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d%d%d",&a,&b,&c);
if(check(a,b,c)==1)printf("YES\n");
else printf("NO\n");
}
return 0;
}
int check(int a,int b,int c){
int a2=a*a;
int b2 = b*b;
int c2 = c*c;
if(a2... | 1,924 | memory_bytes | {'s_id': 's108890673', 'p_id': 'p00003', 'u_id': 'u681371370', 'date': '1552380452', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1924', 'code_size': '403'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint check(int,int,int);\n\nint main(){\n int n,i;\n int a,b,c;\n scanf(\"%d\",&n);\n for(i=0;i<n;i++){\n ... |
CDSS_567154 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
typedef struct restaurant{
int number;
char city[10];
int point;
}RESTAURANT;
int compare(const void *a, const void *b){
RESTAURANT ra = *(RESTAURANT *)a;
RESTAURANT rb = *(RESTAURANT *)b;
int cmp = strcmp(ra.city,rb.city);
if(cmp==... | 128 | memory_bytes | {'s_id': 's407316315', 'p_id': 'p03030', 'u_id': 'u372310715', 'date': '1565112368', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '712'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 restaurant{\n int number;\n char city[10];\n int... |
CDSS_484416 | CDSS | #include <stdio.h>
int main(void)
{
int n, k, late;
scanf("%d %d", &n, &k);
if(n >= 10){
late = k;
}
else{
late = k + (100 * (10 - n));
}
printf("%d", late);
return 0;
} | 128 | memory_bytes | {'s_id': 's776667140', 'p_id': 'p02765', 'u_id': 'u196669204', 'date': '1582920471', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '189'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void)\n{\n\tint n, k, late;\n\t\n\tscanf(\"%d %d\", &n, &k);\n\t\n\tif(n >= 10){\n\t\tlate = k;\n\t}\n\te... |
CDSS_154751 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<math.h>
int judge(x) {
double i = 3;
if(x == 1) return 0;
if(x%2 == 0 && x != 2)
return 0;
while(i <= sqrt((double)x)) {
if((int)x%(int)i == 0) return 0;
i++;
}
return 1;
}
int main() {
int n, i;
int s = 0;
int *A;
scanf("%d", &n);
A =... | 628 | memory_bytes | {'s_id': 's500451178', 'p_id': 'p02257', 'u_id': 'u489140946', 'date': '1413032489', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '628', '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>\n#include<stdlib.h>\n#include<math.h>\n\nint judge(x) {\n double i = 3;\n \n if(x == 1) return 0;\n if(x%2 == 0 &... |
CDSS_239054 | CDSS | /* ITP1_11_C: Dice III */
/* 20181128 AOJ */
#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
enum Direction {top, front, right, left, back, bottom};
void RotateWE(int* Dice);
void RotateSN(int* Dice);
int main(void) {
int Dice[2][6];
int i, j, k, flag;
for(i = 0; i < 2; i++) {
for(j = 0; j < 6; j++) scanf(... | 2,144 | memory_bytes | {'s_id': 's795453655', 'p_id': 'p02385', 'u_id': 'u761232808', 'date': '1543614545', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2144', 'code_size': '1228'} | [
{
"content": "Your task is to predict the memory 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_11_C: Dice III */\n/* 20181128 AOJ */\n\n#define _CRT_SECURE_NO_WARNINGS\n#include <stdio.h>\n\nenum Direction {top, front, ri... |
CDSS_301715 | CDSS | #include <stdio.h>
int main(int argc, const char * argv[]) {
int x,y=0;
int a=0;
while(1){
scanf("%d %d",&x,&y);
if(x==0 && y==0){
break;
}
if(x > y){
a = x;
x = y;
y = a;
}
printf("%d %d\n",x,y);
}
retu... | 600 | memory_bytes | {'s_id': 's655328059', 'p_id': 'p02397', 'u_id': 'u811505515', 'date': '1495163072', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '327'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 x,y=0;\n int a=0;\n while(1){\n scanf(\"%d %d\",... |
CDSS_228668 | CDSS | #include <stdio.h>
#include <stdlib.h>
int left(int i){ return i*2; }
int right(int i){ return i*2 + 1; }
void swap(int *x, int *y){
int tmp;
tmp = *x;
*x = *y;
*y = tmp;
}
int n;
void maxHeapify(int *arr, int i){
int largest;
int l = left(i), r = right(i);
// choice largest key in this and parents
... | 2,556 | memory_bytes | {'s_id': 's367891188', 'p_id': 'p02288', 'u_id': 'u280555763', 'date': '1466657436', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '100', 'memory': '2556', 'code_size': '957'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 left(int i){ return i*2; }\n\nint right(int i){ return i*2 + 1; }\n\nvoid swap(int *x, ... |
CDSS_385241 | CDSS | #include <stdio.h>
#include <stdlib.h>
#define HASH 1000003
typedef struct List {
struct List *next;
char *s;
int l;
} list;
long long div_mod(long long x, long long y, long long z)
{
if (x % y == 0) return x / y;
else return (div_mod((1 + x / y) * y - x, (z % y), y) * z + x) / y;
}
long long pow_mod(int n, in... | 22,776 | memory_bytes | {'s_id': 's638173118', 'p_id': 'p02589', 'u_id': 'u943800443', 'date': '1597029768', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1713', 'memory': '22776', 'code_size': '2033'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 HASH 1000003\n\ntypedef struct List {\n\tstruct List *next;\n\tchar *s;\n\tint l;\n... |
CDSS_600728 | CDSS | #include<stdio.h>
int main(){
int n,i;
int h[101];
int ans=0;
scanf("%d",&n);
for(i=0;i<n;i++)scanf("%d",&h[i]);
ans+=h[0];
for(i=1;i<n;i++){
if(h[i]>h[i-1])ans+=(h[i]-h[i-1]);
}
printf("%d\n",ans);
return 0;
} | 128 | memory_bytes | {'s_id': 's837362057', 'p_id': 'p03147', 'u_id': 'u690655661', 'date': '1556585371', '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#include<stdio.h>\nint main(){\n int n,i;\n int h[101];\n int ans=0;\n scanf(\"%d\",&n);\n for(i=0;i<n;i++)scanf(\"%d\"... |
CDSS_693779 | CDSS | #include<stdio.h>
int main(void)
{
int n;
int i=1;
int num;
int count;
int max=1;
scanf("%d",&n);
if(n>=2)
max=2;
if(n>=4)
max=4;
if(n>=8)
max=8;
if(n>=16)
max=16;
if(n>=32)
max=32;
if(n>=64)
max=64;
printf("%d",max);
} | 128 | memory_bytes | {'s_id': 's556732655', 'p_id': 'p03644', 'u_id': 'u336943920', 'date': '1558377350', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '256'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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;\n int i=1;\n int num;\n int count;\n int max=1;\n scanf(\"%d\",&n);\n if(n>=2)\n max=... |
CDSS_741598 | CDSS | #include <stdio.h>
int main(void)
{
int n1;
int wa;
scanf("%d",&n1);
wa=n1*(n1+1)/2;
printf("%d\n",wa);
return 0;
}
| 128 | memory_bytes | {'s_id': 's726810226', 'p_id': 'p04029', 'u_id': 'u840993943', 'date': '1535687478', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '134'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 n1;\n int wa;\n scanf(\"%d\",&n1);\n \n wa=n1*(n1+1)/2;\n\n printf(\"%d\\n\",wa);\... |
CDSS_654514 | CDSS | #include<stdio.h>
#include<string.h>
int main(void){
int A,B,C,D,E,N,M,x,y,i,j,cou=0,cou2,v[1000000],w[1000000],min_i,en=0;
char S[100][100],W[100],s[10],X,Y;
for(i=0;i<3;i++){
scanf("%s",&S[i]);
}
printf("%c%c%c",S[0][0],S[1][1],S[2][2]);
return 0;
} | 128 | memory_bytes | {'s_id': 's337554148', 'p_id': 'p03415', 'u_id': 'u635508156', 'date': '1552571671', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '310'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 int main(void){\n int A,B,C,D,E,N,M,x,y,i,j,cou=0,cou2,v[1000000],w[1000000],min... |
CDSS_637648 | CDSS | #include<stdio.h>
int main( void )
{
int a , b;
scanf( "%d %d" , &a , &b );
if( a>8 || b>8 )
printf( ":(");
else
printf( "Yay!" );
} | 128 | memory_bytes | {'s_id': 's689123175', 'p_id': 'p03323', 'u_id': 'u785829893', 'date': '1529246016', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '140'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 \nscanf( \"%d %d\" , &a , &b );\n\nif( a>8 || b>8 )\n printf( \":(\");\nelse\n... |
CDSS_114456 | CDSS | /* ***************************
??????????§????
???????????????
????????????????????¨????????±???????????¢?´¢
*************************** */
#include<stdio.h>
#include<stdlib.h>
#define MAX 20
// ????????¨?????¨ ?§???????
typedef struct {
int row; // ?????????
int col; // ?... | 616 | memory_bytes | {'s_id': 's916812587', 'p_id': 'p00711', 'u_id': 'u821623370', 'date': '1498199055', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '616', 'code_size': '3712'} | [
{
"content": "Your task is to predict the memory 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 ???????????????\n ????????????????????¨????????±???????????¢?´¢\n *********... |
CDSS_616152 | CDSS | #include<stdio.h>
int main(void){
char X[4];scanf("%s",X);
for(int i=0;i<3;i++){
if(X[i]=='1'){
printf("9");
}else{
printf("1");
}
}
putchar('\n');
return 0;
}
| 128 | memory_bytes | {'s_id': 's653877931', 'p_id': 'p03242', 'u_id': 'u127063317', 'date': '1559749546', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '194'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n char X[4];scanf(\"%s\",X);\n for(int i=0;i<3;i++){\n if(X[i]=='1'){\n printf(\"9\");\n ... |
CDSS_43707 | CDSS | #include <stdio.h>
#include <math.h>
int n,i,j,sqrtn,sum,flag;
char number[1000000];
int hantei(int x){
if (number[x]==1){
return 0;
}
sqrtn=(int)sqrt(x);
flag=0;
for(j=1;j*6-1<sqrtn;j++){
if(x%(j*6+1)==0 || x%(j*6-1)==0){
flag=1;
break;
}
}
if(flag==0){ /*ツ素ツ青板つカツづ。ツづ按つ「ツづ個づ可フツδ可グツづーツ猟ァツづづつュツづヲ*... | 1,380 | memory_bytes | {'s_id': 's191679778', 'p_id': 'p00009', 'u_id': 'u775414834', 'date': '1301564644', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '890', 'memory': '1380', 'code_size': '741'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\nint n,i,j,sqrtn,sum,flag;\nchar number[1000000];\n\nint hantei(int x){\n\tif (number[x]==1)... |
CDSS_485670 | CDSS | #include <stdio.h>
#include <stdlib.h>
int power(int x, int p){
return (x-p) * (x-p);
}
int compar(const int *val1, const int *val2) {
if ( *val1 < *val2 ) {
return -1;
} else if ( *val1 == * val2 ) {
return 0;
} else {
return 1;
}
}
int main(){
int i, p;
int N, X[... | 128 | memory_bytes | {'s_id': 's265507372', 'p_id': 'p02767', 'u_id': 'u271743799', 'date': '1585355236', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '674'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 power(int x, int p){\n return (x-p) * (x-p);\n}\n\nint compar(const int *val1, const... |
CDSS_623936 | CDSS | /* kadai5_3
nabe9393 */
#include <stdio.h>
int main(void){
int height, width, i, j;
//タテとヨコのマスの数を入力
scanf("%d %d", &height, &width);
int row[height],column[width];
char square[height][width];
for(i=0;i<height;i++){
for(j=0;j<width;j++){
//文字列の入力 空白文字を飛ばす
scanf(" %c",&square[i][j]);
... | 128 | memory_bytes | {'s_id': 's112889766', 'p_id': 'p03273', 'u_id': 'u184596700', 'date': '1591297863', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '995'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n/* kadai5_3\n nabe9393 */\n \n#include <stdio.h>\n \nint main(void){\n int height, width, i, j;\n //タテとヨコのマスの数を入力\n scanf(\"%d %d... |
CDSS_190996 | CDSS | #include<stdio.h>
#define NOT_FOUND 0;
int linerSearch(int A[], int key, int n){
int i=0;
A[n] = key;
while(A[i] != key){
i++;
}
return i != n;
}
int main(void){
int n,i,q;
scanf("%d",&n);
int S[n];
for(i=0;i<n;i++){scanf("%d",&S[i]);}
scanf("%d\n",&q);
int T[q];
for(i=0;i<q;i++){scanf("%d",... | 2,088 | memory_bytes | {'s_id': 's910676669', 'p_id': 'p02267', 'u_id': 'u141529250', 'date': '1572429485', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2088', '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#include<stdio.h>\n#define NOT_FOUND 0;\n\nint linerSearch(int A[], int key, int n){\n\tint i=0;\n\tA[n] = key;\n\twhile(A[i] != key){... |
CDSS_57268 | CDSS | #include<stdio.h>
int main(){
int a[4],b[4];
int hit,blow,i,j;
while(1){
if(scanf("%d %d %d %d",&a[0],&a[1],&a[2],&a[3]) == EOF)break;
if(scanf("%d %d %d %d",&b[0],&b[1],&b[2],&b[3]) == EOF)break;
hit=0,blow=0;
for(i=0;i<4;i++){
for(j=0;j<4;j++){
if(a[i] == b[j] && i == j){
hit++;
}
el... | 596 | memory_bytes | {'s_id': 's318937244', 'p_id': 'p00025', 'u_id': 'u645134403', 'date': '1406511282', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '428'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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[4],b[4];\n int hit,blow,i,j;\n while(1){\n if(scanf(\"%d %d %d %d\",&a[0],&a[1],&a[2],&a[... |
CDSS_600586 | CDSS | #include <stdio.h>
int main(void){
int s,count=0,visited[1000000]={};
scanf("%d",&s);
visited[s]=1;
while(1){
count++;
if (s%2==0){
s/=2;
} else {
s=s*3+1;
}
if (visited[s]==1){
printf("%d\n",count+1);
break;
... | 4,096 | memory_bytes | {'s_id': 's203196740', 'p_id': 'p03146', 'u_id': 'u750028862', 'date': '1548037349', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '4096', 'code_size': '381'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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,count=0,visited[1000000]={};\n scanf(\"%d\",&s);\n visited[s]=1;\n while(1){... |
CDSS_220076 | CDSS | #include <stdio.h>
#define N 25
#define NIL -1
struct Node{
int right;
int left;
int parent;
};
struct Node T[N];
int n;
void preorder(int u){
if(u==NIL) return;
printf(" %d",u);
preorder(T[u].left);
preorder(T[u].right);
}
void inorder(int u){
if(u==NIL) return;
inorder(T[u].left);
printf(" %d"... | 2,140 | memory_bytes | {'s_id': 's905376668', 'p_id': 'p02281', 'u_id': 'u251133066', 'date': '1581486468', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2140', 'code_size': '925'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 25\n#define NIL -1\n\nstruct Node{\n int right;\n int left;\n int parent;\n};\n\nstruct Node T[N];\ni... |
CDSS_688843 | CDSS | #include <stdio.h>
#include <string.h>
int main(void)
{
char s[100001];
char c[256] = {};
fgets(s, sizeof(s), stdin);
size_t len = strlen(s);
for (int i = 0; i < len; i++) {
c[s[i]] |= 1;
}
char ans[5] = "None";
for (char j = 'a'; j <= 'z'; j++) {
if (c[j] == 0) {
ans[0] = j;
ans[... | 256 | memory_bytes | {'s_id': 's289561090', 'p_id': 'p03624', 'u_id': 'u081445141', 'date': '1538534010', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '256', 'code_size': '370'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 s[100001];\n char c[256] = {};\n\n fgets(s, sizeof(s), stdin);\... |
CDSS_277310 | 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': 's083900845', 'p_id': 'p02392', 'u_id': 'u987986368', 'date': '1478048891', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', '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(void)\n{\n\tint a,b,c;\t\n\n\tscanf(\"%d %d %d\",&a,&b,&c);\n\n\tif(a < b && b< c){\n\t\tprintf(\"Yes\\n... |
CDSS_65666 | CDSS | #include <stdio.h>
#include<string.h>
int main()
{
int i,j,k,len = 0,flag=0;
char buf[1000] = { 0 };
char stra[] = "apple", strp[] = "peach";
fgets(buf, 1001,stdin);
len = strlen(buf);
//printf("%d ",len);
for (i = 0; i < len - 1; i++)
{
if (buf[i] == 'p')
{
for (j = i + 1, k = 1; j < i + 5; j++, k++... | 524 | memory_bytes | {'s_id': 's882941632', 'p_id': 'p00050', 'u_id': 'u902207865', 'date': '1493904732', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', 'code_size': '874'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\tint i,j,k,len = 0,flag=0;\n\tchar buf[1000] = { 0 };\n\tchar stra[] = \"app... |
CDSS_134523 | CDSS | #include<stdio.h>
int main(){
int n,m,s,t,i,j;
scanf("%d",&n);
int Adj[n][n];
for(i = 0;i < n;i++){
for(j = 0;j < n;j++){
Adj[i][j] = 0;
}
}
for(i = 0;i < n;i++){
scanf("%d%d",&t,&m);
for(j = 0;j < m;j++){
scanf("%d",&s);
Adj[t-1][s-1] = 1;
}
}
for(i = 0;i < n;i++){... | 636 | memory_bytes | {'s_id': 's482826885', 'p_id': 'p02237', 'u_id': 'u356896389', 'date': '1435886928', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '636', '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(){\n int n,m,s,t,i,j;\n scanf(\"%d\",&n);\n int Adj[n][n];\n \n for(i = 0;i < n;i++){\n for(j = 0;j... |
CDSS_330202 | CDSS | #include<stdio.h>
int main(){
int H, W;
int i, j;
scanf("%d %d", &H, &W);
while(H!=0 || W!=0){
for(i=0;i<H;i++){
for(j=0;j<W;j++){
printf("#");
}
printf("\n");
}
printf("\n");
scanf("%d %d", &H, &W);
}
return 0;
} | 572 | memory_bytes | {'s_id': 's813540289', 'p_id': 'p02403', 'u_id': 'u227434008', 'date': '1492055946', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '572', 'code_size': '302'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n\n int H, W;\n int i, j;\n\n scanf(\"%d %d\", &H, &W);\n\n while(H!=0 || W!=0){\n for(i... |
CDSS_288278 | CDSS | #include<stdio.h>
int main(void){
int a,b,c,d;
scanf("%d %d %d", &a, &b, &c);
if ( a > b ) { d = 0; d = a ; a = b ; b = d; }
if ( b > c ) { d = 0; d = b ; b = c ; c = d; }
if ( a > b ) { d = 0; d = a ; a = b ; b = d; }
printf("%d %d %d\n", a, b, c);
return 0;
}
| 2,148 | memory_bytes | {'s_id': 's786452507', 'p_id': 'p02393', 'u_id': 'u885298790', 'date': '1565915107', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2148', 'code_size': '291'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void){\n int a,b,c,d;\n scanf(\"%d %d %d\", &a, &b, &c);\n if ( a > b ) { d = 0; d = a ; a = b ... |
CDSS_112749 | CDSS | a[51],i,j;main(n){for(;scanf("%d",&n)*n;){for(i=n;i;)scanf("%d",a+i--);for(i=n;i;i--){for(j=i;a[j-1]==a[j]+1;j--);i-j?printf("%d-",a[i]),i=j:0;printf("%d%c",a[i],i-1?32:10);}}} | 0 | memory_bytes | {'s_id': 's506080169', 'p_id': 'p00637', 'u_id': 'u399107199', 'date': '1295182876', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', '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:\na[51],i,j;main(n){for(;scanf(\"%d\",&n)*n;){for(i=n;i;)scanf(\"%d\",a+i--);for(i=n;i;i--){for(j=i;a[j-1]==a[j]+1;j--);i-j?printf(\"%d-... |
CDSS_260888 | CDSS | #include <stdio.h>
int main(void){
int S;
scanf("%d",&S);
printf("%d:%d:%d\n",S/3600,S%3600/60,S%3600%60);
return 0;
} | 592 | memory_bytes | {'s_id': 's731091281', 'p_id': 'p02390', 'u_id': 'u477515119', 'date': '1468797763', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', 'code_size': '134'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 S;\n scanf(\"%d\",&S);\n printf(\"%d:%d:%d\\n\",S/3600,S%3600/60,S%3600%60);\n r... |
CDSS_116485 | CDSS | #include<stdio.h>
int M[50][50];
void visit(int i, int j, int x, int y){
M[i][j] = 0;
if(M[i][j+1] == 1 && j+1<x){
visit(i,j+1,x ,y);
// M[i][j+1]=0;
}
if(M[i+1][j+1] == 1&& j+1<x && i+1<y){
visit(i+1,j+1,x,y);
// M[i+1][j+1]=0;
}
if(M[i+1][j] == 1 && i+1<y){
visit(i+1,j, x,... | 0 | memory_bytes | {'s_id': 's461148610', 'p_id': 'p00741', 'u_id': 'u125634664', 'date': '1310196609', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '1220'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 M[50][50];\n\nvoid visit(int i, int j, int x, int y){\n \n M[i][j] = 0; \n \n \n if(M[i][j+1] == 1 && j+... |
CDSS_539890 | CDSS | #include <stdio.h>
int main(int argc, char *argv[])
{
int k,x;
int i;
scanf("%d%d",&k,&x);
for(i=x-k+1;i<x+k-1;i++)
{
printf("%d ",i);
}
printf("%d\n",x+k-1);
return 0;
} | 128 | memory_bytes | {'s_id': 's838552323', 'p_id': 'p02946', 'u_id': 'u455152240', 'date': '1565488500', '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(int argc, char *argv[])\n{\n\tint k,x;\n\tint i;\n\tscanf(\"%d%d\",&k,&x);\n\tfor(i=x-k+1;i<x+k-1;i++)\n\... |
CDSS_151730 | CDSS | #include <stdio.h>
int main(){
int a, b, r, tmp;
scanf("%d%d", &a,&b);
if(a<b){
tmp = a;
a = b;
b = tmp;
}
r = a % b;
while(r!=0){
a = b;
b = r;
r = a % b;
}
printf("%d\n", b);
return 0;
} | 592 | memory_bytes | {'s_id': 's206575453', 'p_id': 'p02256', 'u_id': 'u360396638', 'date': '1491975307', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', '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\n\nint main(){\n \n int a, b, r, tmp;\n \n scanf(\"%d%d\", &a,&b);\n\n if(a<b){\n tmp = a;\n a = b;\n ... |
CDSS_216982 | CDSS | #include<stdio.h>
#define MAX 100005
#define NIL -1
struct Node_struct{int p, l, r;}; /*p: 親(parent), l: 一番左の子(left child), r:右の兄弟(right sibling)*/
typedef struct Node_struct Node;
Node T[MAX];
int D[MAX];
void print(int u){
int i,c;
printf("node %d: parent = %d, depth = %d, ",u,T[u].p,D[u]);
if(D[u]==0)printf(... | 6,416 | memory_bytes | {'s_id': 's911471615', 'p_id': 'p02279', 'u_id': 'u648561061', 'date': '1547126211', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '30', 'memory': '6416', 'code_size': '1513'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\nstruct Node_struct{int p, l, r;}; /*p: 親(parent), l: 一番左の子(left child), r:右の兄弟(... |
CDSS_618870 | CDSS | #include <stdio.h>
int main() {
int N, M, X, Y;
int tmp;
int max;
int min;
int i;
scanf("%d %d %d %d", &N, &M, &X, &Y);
max = X;
min = Y;
for (i = 0; i < N; i++) {
scanf("%d", &tmp);
if (tmp > max) {
max = tmp;
}
}
for (i = 0; i < M; i++) {
scanf("%d", &tmp);
if (t... | 128 | memory_bytes | {'s_id': 's013729642', 'p_id': 'p03251', 'u_id': 'u926449812', 'date': '1537751977', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '453'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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, M, X, Y;\n int tmp;\n\n int max;\n int min;\n\n int i;\n\n scanf(\"%d %d %d %d\", &N... |
CDSS_367614 | CDSS | #include<stdio.h>
#include<ctype.h>
#include<string.h>
int main(void){
char s[201];
char p[101];
int i,j;
int lp;
scanf("%s",s);
scanf("%s",p);
sprintf(s,"%s%s",s,s);
lp=strlen(p);
i=0;
while(i<200){
if(s[i]==p[0]){
for(j=0;j<lp;j++){
if(s[i+j]!=p[j]){
... | 552 | memory_bytes | {'s_id': 's077025241', 'p_id': 'p02418', 'u_id': 'u078762447', 'date': '1486626411', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '552', 'code_size': '517'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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#include<string.h>\nint main(void){\n char s[201];\n char p[101];\n int i,j;\n int lp;\n... |
CDSS_89071 | CDSS | #include<stdio.h>
int SOSU[10000001];
main(){
int i,j,a;
for(i=2;i<=5000000;i++){
if(SOSU[i]==0){
for(j=2;i*j<=10000000;j++)SOSU[i*j]++;
}
}
loop:
while(1){
scanf("%d",&a);
if(a==0)break;
for(;;a--){
if(SOSU[a]==0&&SOSU[a-2]==0&&SOSU[a-6]==0&&SOSU[a-8]==0){
printf("%d\n",a);
g... | 39,656 | memory_bytes | {'s_id': 's500782291', 'p_id': 'p00222', 'u_id': 'u095377734', 'date': '1372073213', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '210', 'memory': '39656', 'code_size': '361'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 SOSU[10000001];\nmain(){\n int i,j,a;\n for(i=2;i<=5000000;i++){\n if(SOSU[i]==0){\n for(j=2;i*j<=100... |
CDSS_693900 | CDSS | #include <stdio.h>
#include<math.h>
int main(void)
{
int N,i;
scanf("%d",&N);
for(i=1;i<10;i++){
if(pow(2,i)>N){
printf("%d\n",(int)pow(2,i-1));
break;
}
}
return 0;
}
| 384 | memory_bytes | {'s_id': 's586554255', 'p_id': 'p03644', 'u_id': 'u937747602', 'date': '1523816974', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '384', '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#include<math.h>\n\n\nint main(void)\n{\n\tint N,i;\n\t\n\t\n\t\n\tscanf(\"%d\",&N);\n\t\n\tfor(i=1;i<10;i++){\n\t... |
CDSS_326333 | CDSS | a,b,t,i,N;
main(){
long c=0;
for(scanf("%d",&N);N--;i++){
scanf("%d",&t);
if(!i||a>=t)a=t;
if(!i||b<=t)b=t;
c+=t;
}
printf("%d %d %ld\n",a,b,c);
} | 1,752 | memory_bytes | {'s_id': 's079482296', 'p_id': 'p02402', 'u_id': 'u601537279', 'date': '1508040563', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1752', '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:\na,b,t,i,N;\nmain(){\n long c=0;\n for(scanf(\"%d\",&N);N--;i++){\n scanf(\"%d\",&t);\n if(!i||a>=t)a=t;\n i... |
CDSS_92195 | CDSS | #include <stdio.h>
int main(void) {
int t, num, ticket[4] = {6000, 4000, 3000, 2000};
int i;
for (i=0; i<4; i++) {
scanf("%d %d", &t, &num);
printf("%d\n", num * ticket[t-1]);
}
return 0;
} | 600 | memory_bytes | {'s_id': 's397508798', 'p_id': 'p00272', 'u_id': 'u263887312', 'date': '1503549728', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '228'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 t, num, ticket[4] = {6000, 4000, 3000, 2000};\n int i;\n\n for (i=0; i<4; i++) {... |
CDSS_547248 | CDSS | #include <stdio.h>
int main()
{
int x;
scanf("%d",&x);
printf("%d\n",3*x*x);
return 0;
}
| 128 | memory_bytes | {'s_id': 's509694535', 'p_id': 'p02969', 'u_id': 'u065274776', 'date': '1563671038', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '105'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main()\n{\n int x;\n scanf(\"%d\",&x);\n printf(\"%d\\n\",3*x*x);\n return 0;\n}\n\nPredict its me... |
CDSS_134784 | CDSS | #include<stdio.h>
int main()
{
int i,j,k,l,m,n;
scanf("%d",&n);
int a[n][n];
for(i=0;i<n;i++){
for(j=0;j<n;j++){
a[i][j]=0;
}
}
for(i=0;i<n;i++){
scanf("%d%d",&k,&l);
for(j=0;j<l;j++){
scanf("%d",&m);
a[k-1][m-1]=1;
}
}
for(i=0;i<n;i++){
for(j=0;j<n;j++){
... | 640 | memory_bytes | {'s_id': 's796676463', 'p_id': 'p02237', 'u_id': 'u867344367', 'date': '1467867597', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '640', 'code_size': '426'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n int i,j,k,l,m,n;\n\n scanf(\"%d\",&n);\n int a[n][n];\n\n for(i=0;i<n;i++){\n for(j=0;j<n;j+... |
CDSS_122281 | CDSS | #include<stdio.h>
int minof(int min, int x) {
min = (min < x) ? min:x;
return min;
}
int slovei(int, int);
int slovei(int a, int b) {
int i, j, k, l, o, p, min, temp, d[4] = {};
min = 268435456;
for(i = 1; i <= a; i += 1) {
if(a % i == 0) {
for(k = 1; k <= b; k += 1) {
if(b % k == 0) {
... | 596 | memory_bytes | {'s_id': 's691313035', 'p_id': 'p01155', 'u_id': 'u427271952', 'date': '1350471171', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '220', 'memory': '596', 'code_size': '1049'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 minof(int min, int x) {\n min = (min < x) ? min:x;\n return min;\n}\n\nint slovei(int, int);\nint slovei(in... |
CDSS_536298 | CDSS | #include<stdio.h>
int main(){
int a;
char s[30];
scanf("%d%s",&a,s);
if(a<3200)puts("red");
else printf("%s\n",s);
return 0;
}
| 128 | memory_bytes | {'s_id': 's326352374', 'p_id': 'p02933', 'u_id': 'u946810083', 'date': '1566332319', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '140'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\tint a;\n\t\tchar s[30];\n\t\tscanf(\"%d%s\",&a,s);\n\t\tif(a<3200)puts(\"red\");\n\t\telse print... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.