identifier string | space string | input string | target float64 | metric_type string | metadata string | messages list |
|---|---|---|---|---|---|---|
CDSS_653836 | CDSS | #include<stdio.h>
#include<string.h>
int main(void){
int i,j,n,m,max=0,ans;
scanf("%d",&n);
char s[n][10];
for(i=0;i<n;i++){
scanf("%s",s[i]);
}
scanf("%d",&m);
char t[m][10];
for(i=0;i<m;i++){
scanf("%s",t[i]);
}
for(i=0;i<n;i++){
ans=0;
for(j=0;j<n;j++){
if(strcmp(s[i],s[j])... | 128 | memory_bytes | {'s_id': 's889589804', 'p_id': 'p03408', 'u_id': 'u992736202', 'date': '1549732397', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '470'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\n\nint main(void){\n int i,j,n,m,max=0,ans;\n scanf(\"%d\",&n);\n char s[n][10];\n for(i=0;i... |
CDSS_600263 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<stdbool.h>
#include<limits.h>
#include<float.h>
#define RANGE 1000001
bool exist[RANGE];
int f(int n){
if(n%2) return 3 * n + 1;
else return n / 2;
}
int a(int s, int i){
if(i == 1) return s;
else return f(a(s, i-1));
}
int main(){
int s;
scanf("%d\n", &s);
for(... | 1,152 | memory_bytes | {'s_id': 's493805135', 'p_id': 'p03146', 'u_id': 'u870205469', 'date': '1583872498', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '1152', 'code_size': '513'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#include<stdbool.h>\n#include<limits.h>\n#include<float.h>\n\n#define RANGE 1000001\n\nbool exi... |
CDSS_357323 | CDSS | #include <stdio.h>
int main(){
int r, c, i, j, v[101][101] = {};
scanf("%d %d", &r, &c);
for(i = 0; i < r; i++) for(j = 0; j < c; j++){
scanf("%d", &v[i][j]);
v[i][c] += v[i][j];
v[r][j] += v[i][j];
v[r][c] += v[i][j];
}
for(i = 0; i <= r; i++) for(j = 0; j <= c; j++... | 648 | memory_bytes | {'s_id': 's560857490', 'p_id': 'p02413', 'u_id': 'u902851676', 'date': '1462235548', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '648', 'code_size': '385'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 r, c, i, j, v[101][101] = {};\n scanf(\"%d %d\", &r, &c);\n for(i = 0; i < r; i++) fo... |
CDSS_436397 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
int cmp(const void* x, const void* y) {
return strcmp(x, y);
}
int N;
char S[222222][12];
int main(void) {
int i;
int count = 1;
if (scanf("%d", &N) != 1) return 1;
for (i = 0; i < N; i++) {
if (scanf("%11s", S[i]) != 1) return 1;
}
qsort(S, N, size... | 6,264 | memory_bytes | {'s_id': 's577254552', 'p_id': 'p02701', 'u_id': 'u646118499', 'date': '1587949311', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '74', 'memory': '6264', 'code_size': '445'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\nint cmp(const void* x, const void* y) {\n\treturn strcmp(x, y);\n}\n\n... |
CDSS_116784 | CDSS | #include<stdio.h>
int min(int a, int b){
if(a<b)return a;
else return b;
}
int dp[2000000];
int DP[2000000];
int main(){
int i,j,x;
for(i=1;i<=1000000;i++){
dp[i]=i;
DP[i]=i;
for(j=1;;j++){
x=j*(j+1)*(j+2)/6;
if(i-x<0)break;
dp[i]=min(dp[i],dp[i-x]+1);
if(x%2==1){
DP... | 10,836 | memory_bytes | {'s_id': 's540904670', 'p_id': 'p00748', 'u_id': 'u923320778', 'date': '1434618181', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '620', 'memory': '10836', 'code_size': '469'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint min(int a, int b){\n if(a<b)return a;\n else return b;\n}\n\nint dp[2000000];\nint DP[2000000];\n\nint main... |
CDSS_58802 | CDSS | #include <stdio.h>
int main(void){
int a[102],i,x,n,max=0;
for (i=0; i<102; i++) {
a[i]=0;
}
while(1){
x=scanf("%d",&n);
if(x==EOF)
break;
a[n]++;
if(a[n]>max)
max=a[n];
}
for (i=0; i<100; i++) {
if(a[i]==max)
p... | 596 | memory_bytes | {'s_id': 's298540505', 'p_id': 'p00028', 'u_id': 'u833852588', 'date': '1418894334', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', '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\nint main(void){\n int a[102],i,x,n,max=0;\n for (i=0; i<102; i++) {\n a[i]=0;\n }\n while(1){... |
CDSS_174723 | CDSS | #include <stdio.h>
struct card{
char mark;
char num;
};
void bubble (struct card [],int );
void selection( struct card [] , int);
int judge (struct card [],struct card [],int );
void print (struct card [],int);
int main()
{
struct card A[100],B[100];
int n,i;
scanf("%d",&n);
for(i=0;i<n;i++)
{
... | 2,124 | memory_bytes | {'s_id': 's211265061', 'p_id': 'p02261', 'u_id': 'u509849380', 'date': '1581517206', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2124', 'code_size': '1514'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nstruct card{\n char mark;\n char num;\n};\nvoid bubble (struct card [],int );\nvoid selection( struct card [] ... |
CDSS_464230 | CDSS | #include<stdio.h>
int main()
{
int n,i,j,m;
double w,sum=0;
scanf("%d%d",&n,&m);
int a[n];
for(i=0;i<n;i++){
scanf("%d",&a[i]);
sum=sum+a[i];
}
//降順ソート
for(i=0;i<n;i++){
for(j=i+1;j<n;j++){
if(a[i]<a[j]){
int temp=a[i];
... | 1,724 | memory_bytes | {'s_id': 's677579773', 'p_id': 'p02718', 'u_id': 'u151236434', 'date': '1594084086', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1724', '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,i,j,m;\n double w,sum=0;\n scanf(\"%d%d\",&n,&m);\n int a[n];\n for(i=0;i<n;i+... |
CDSS_137975 | CDSS | #include<stdio.h>
#define N 101
int G[N][N], X[N], Y[N], n;
void find(int x, int y){
int i;
X[x] = y;
for(i = 1; i <= Y[x]; i++)
if(y + 1 < X[G[x][i]]) find(G[x][i], y + 1);
}
int main(){
int i, j, m;
scanf("%d", &n);
for(i = 1; i <= n; i++){
X[i] = 100000000;
sc... | 640 | memory_bytes | {'s_id': 's250404623', 'p_id': 'p02239', 'u_id': 'u119662895', 'date': '1502288402', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '640', 'code_size': '586'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n #include<stdio.h>\n \n #define N 101\n \n int G[N][N], X[N], Y[N], n;\n \n void find(int x, int y){\n int i;\n X[x] = y;\n f... |
CDSS_499919 | CDSS | #include<stdio.h>
int main(void){
char c;
scanf("%s",&c);
if(c=='a'){
printf("b");
}else if(c=='b'){
printf("c");
}else if(c=='c'){
printf("d");
}else if(c=='d'){
printf("e");
}else if(c=='e'){
printf("f");
}else if(c=='f'){
printf("g");
}else if(c=='g'){
printf("h");
}else if(c=='h'){
printf... | 128 | memory_bytes | {'s_id': 's539707184', 'p_id': 'p02801', 'u_id': 'u027519288', 'date': '1583245822', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '955'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 c;\n\tscanf(\"%s\",&c);\n\tif(c=='a'){\n\t\tprintf(\"b\");\n\t}else if(c=='b'){\n\t\tprin... |
CDSS_587507 | CDSS | /* Coached by rainboy */
#include <stdio.h>
#define N 100000
int main() {
static char s[N + 1];
static int dp[N], aa[N];
int n, q, i;
scanf("%d%d%s", &n, &q, s);
for (i = 1; i < n; i++)
aa[i] = (s[i - 1] == 'A' && s[i] == 'C');
dp[0] = aa[0];
for (i = 1; i < n; i++)
dp[i] = dp[i - 1] + aa[i];
while (q--)... | 1,664 | memory_bytes | {'s_id': 's809572324', 'p_id': 'p03087', 'u_id': 'u000120715', 'date': '1565573966', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '29', 'memory': '1664', 'code_size': '420'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n/* Coached by rainboy */\n#include <stdio.h>\n\n#define N 100000\n\nint main() {\n\tstatic char s[N + 1];\n\tstatic int dp[N], aa[N];\... |
CDSS_632428 | CDSS | #include <stdio.h>
int main(int argc, const char * argv[]) {
int a = 0;
int b = 0;
scanf("%d %d",&a,&b);
if (a + b == 15) {
printf("+");
}else if(a * b == 15){
printf("*");
}else{
printf("x");
}
return 0;
}
| 128 | memory_bytes | {'s_id': 's328449689', 'p_id': 'p03302', 'u_id': 'u375234305', 'date': '1531011813', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '284'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 \n int a = 0;\n int b = 0;\n \n scanf(\"%d %d\",&a,&b... |
CDSS_204530 | CDSS | #include<stdio.h>
#define MAX 500000
#define SENTINEL 1000000001
int S[MAX+1],n,cnt;
int L[(MAX/2)+1],R[(MAX/2)+1];
void merge( int left, int mid, int right ){
int i,j,k;
int n1=mid-left;
int n2=right-mid;
for( i = 0; i < n1; i++ ) {
L[i]=S[left+i];
}
for( i = 0; i < n2; i++ ) {
R[i]=S[mid+i];
... | 5,604 | memory_bytes | {'s_id': 's468250010', 'p_id': 'p02272', 'u_id': 'u587288800', 'date': '1549345636', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '100', 'memory': '5604', 'code_size': '930'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 500000\n#define SENTINEL 1000000001\n\nint S[MAX+1],n,cnt;\nint L[(MAX/2)+1],R[(MAX/2)+1];\n\nvoid merg... |
CDSS_141900 | CDSS | #include <stdio.h>
#define N 8
#define Free -1
#define nFree 1
void recursive(int);
void printBoard();
int row[N], col[N], dpos[2*N-1], dneg[2*N-1];
int b[N][N], k;
int main(){
int i, j, r, c;
for(i=0; i<N; i++) {
row[i]=Free, col[i]=Free;
}
for(j=0; j<2*N-1; j++) {
... | 572 | memory_bytes | {'s_id': 's856073252', 'p_id': 'p02244', 'u_id': 'u500209199', 'date': '1501044729', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '572', 'code_size': '1255'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 nFree 1\nvoid recursive(int);\nvoid printBoard();\n\n\nint row[N], col[N], d... |
CDSS_531684 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#define ll long long
#define rep(i,l,r)for(ll i=(l);i<(r);i++)
#define repp(i,l,r,k)for(ll i=(l);i<(r);i+=(k))
#define INF ((1LL<<62)-(1LL<<31))
#define max(p,q)((p)>(q)?(p):(q))
#define min(p,q)((p)<(q)?(p):(q))
#define bit(n,m)(((n)>>(m))&1)... | 2,560 | memory_bytes | {'s_id': 's540432572', 'p_id': 'p02919', 'u_id': 'u382163500', 'date': '1567954267', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1157', 'memory': '2560', 'code_size': '2668'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <math.h>\n#define ll long long\n#define rep(i,l,r)for(ll i=(l);... |
CDSS_303863 | CDSS | #include <stdio.h>
int main(void)
{
int a[3000];
int b[3000];
int c = 0;
int i = 0;
while (i == 0)
{
scanf("%d", &a[c]);
scanf("%d", &b[c]);
if (a[c] != 0 || b[c] != 0)
{
if (a[c] >= b[c])
printf("%d %d\n", b[c], a[c]);
else
printf("%d %d\n", a[c], b[c]);
}
if (a[c] == 0 && b[c] == 0)
... | 2,064 | memory_bytes | {'s_id': 's578570416', 'p_id': 'p02397', 'u_id': 'u717768923', 'date': '1539945112', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2064', '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\nint main(void)\n\n{\n\n int a[3000];\n int b[3000];\n int c = 0;\n int i = 0;\n\n while (i == 0)\n{\n\n scanf(\"... |
CDSS_178352 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<ctype.h>
#define NUM 100
static int *s;
static int N;
void STACK(int maxN);
void push(int x);
int pop(void);
int main(void){
char x;
int a,b;
int e = 0;
int i = 0, p = 0;
STACK(NUM);
while((x = getchar()) != EOF){
if(isdigit(x)){
i = i * 10 + (x - '0'); ... | 1,808 | memory_bytes | {'s_id': 's838940514', 'p_id': 'p02263', 'u_id': 'u949393052', 'date': '1511854637', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1808', 'code_size': '1252'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#include<ctype.h>\n\n#define NUM 100\n\nstatic int *s;\nstatic int N;\n\nvoid STACK(int maxN);\... |
CDSS_338474 | CDSS | #include <stdio.h>
int main(void) {
int n = 0;
int i = 1;
int x = 0;
scanf("%d", &n);
do {
x = i;
if ((x % 3) == 0) {
printf(" %d", i);
continue;
}
do {
if ((x % 10) == 3) {
printf(" %d", i);
break;
}
x /= 10;
} while (x);
} while (++i <= n);
prin... | 600 | memory_bytes | {'s_id': 's006551466', 'p_id': 'p02406', 'u_id': 'u212165333', 'date': '1463097465', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '346'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 = 0;\n int i = 1;\n int x = 0;\n\n scanf(\"%d\", &n);\n\n do {\n x = i;\n\n ... |
CDSS_224731 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
struct node {
struct node *right;
struct node *left;
struct node *parent;
int val;
};
typedef struct node Node;
Node *root;
void insert(Node *cur, int curVal) {
if (cur->val == -1) {
cur->val = curVal;
}
else if (curVal < cur->val) {
i... | 20,456 | memory_bytes | {'s_id': 's222272192', 'p_id': 'p02285', 'u_id': 'u620516796', 'date': '1524099353', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '320', 'memory': '20456', 'code_size': '3068'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 struct node *right;\n struct node *left;\n struct n... |
CDSS_735303 | CDSS | #include <stdio.h>
char s[114514];
int main(void) {
int i;
int score = 0;
if (scanf("%114513s", s) != 1) return 1;
for (i = 0; s[i] != '\0'; i++) {
if (i % 2 == 0) {
/* g */
if (s[i] == 'p') score--;
} else {
/* p */
if (s[i] == 'g') score++;
}
}
printf("%d\n", score);
return 0;
}
/*
パーのストッ... | 256 | memory_bytes | {'s_id': 's597274759', 'p_id': 'p03965', 'u_id': 'u646118499', 'date': '1574836512', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '256', 'code_size': '577'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nchar s[114514];\n\nint main(void) {\n\tint i;\n\tint score = 0;\n\tif (scanf(\"%114513s\", s) != 1) return 1;\n\... |
CDSS_539769 | CDSS | #include <stdio.h>
int main()
{
int k,x;
scanf("%d%d",&k,&x);
for(int i=-k+1;i<k;i++)
printf("%d ",x+i);
return 0;
}
| 128 | memory_bytes | {'s_id': 's288806542', 'p_id': 'p02946', 'u_id': 'u993046043', 'date': '1565987944', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '142'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main()\n{ \n int k,x;\n scanf(\"%d%d\",&k,&x);\n for(int i=-k+1;i<k;i++)\n printf(\"%d \",x+i)... |
CDSS_218333 | CDSS | #include <stdio.h>
#include <string.h>
#define N 25
typedef struct{
int par, left, right, status, depth, sibling, degree, height;
}Node;
Node tree[N];
int n;
char root[N];
void calc_depth(int p, int d){
tree[p].depth = d;
if(tree[p].right != -1) calc_depth(tree[p].right, d + 1);
if(tree[p].left != -1) c... | 620 | memory_bytes | {'s_id': 's258998498', 'p_id': 'p02280', 'u_id': 'u159204823', 'date': '1497973674', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '620', 'code_size': '1782'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n \n#define N 25\n \ntypedef struct{\n int par, left, right, status, depth, sibling, degree, ... |
CDSS_688260 | CDSS | #include <math.h>
#include <stdio.h>
int main() {
int a, b, x;
scanf("%d%d%d", &x, &a, &b);
printf("%c\n", abs(x - a) < abs(x - b) ? 'A' : 'B');
return 0;
} | 256 | memory_bytes | {'s_id': 's925901320', 'p_id': 'p03623', 'u_id': 'u030504180', 'date': '1586702368', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '256', 'code_size': '160'} | [
{
"content": "Your task is to predict the memory footprint (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>\nint main() {\n\tint a, b, x;\n\tscanf(\"%d%d%d\", &x, &a, &b);\n\tprintf(\"%c\\n\", abs(x - a) ... |
CDSS_419878 | CDSS | #include <stdio.h>
int main(void) {
int A,B,C,K;
scanf("%d%d%d%d",&A,&B,&C,&K);
if(K<=A)
printf("%d",K);
else if(A<K&&K<=A+B)
printf("%d",A);
else
printf("%d",A-(K-(A+B)));
return 0;
}
| 1,728 | memory_bytes | {'s_id': 's634560004', 'p_id': 'p02682', 'u_id': 'u115841686', 'date': '1596748194', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1728', '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\tint A,B,C,K;\n\tscanf(\"%d%d%d%d\",&A,&B,&C,&K);\n\tif(K<=A)\n\tprintf(\"%d\",K);\n\telse if(A... |
CDSS_234914 | CDSS | /* ITP1_10_B */
#include <stdio.h>
#include <math.h>
/* ??¢???????¨????????????¢??° */
double calc_equivalent(short e1, short e2, short angle);
/* ??¨????????????????¨????????????¢??° */
double calc_length(short e1, short e2, short angle);
/* ??????????¨????????????¢??° */
double calc_height(short e, short angle);
/* ... | 684 | memory_bytes | {'s_id': 's271864406', 'p_id': 'p02380', 'u_id': 'u349069653', 'date': '1487920262', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '684', 'code_size': '1409'} | [
{
"content": "Your task is to predict the memory 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_10_B */\n#include <stdio.h>\n#include <math.h>\n\n/* ??¢???????¨????????????¢??° */\ndouble calc_equivalent(short e1, short e2... |
CDSS_221809 | 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;
void insert(int k){
Node y = NIL;
Node x = root;
Node z;
z = malloc(sizeof(struct node));
z->key = k;
z->left = NIL;
... | 24,040 | memory_bytes | {'s_id': 's206715832', 'p_id': 'p02283', 'u_id': 'u801535964', 'date': '1498097556', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '400', 'memory': '24040', 'code_size': '1087'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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_484809 | CDSS | /* ex3-3
Sagzar1993 */
#include <stdio.h>
int main(void) {
//表す整数と基数を定義
int num, numBase;
//入力を受け取る
scanf("%d %d", &num, &numBase);
//桁数
int digit = 0;
//整数を基数で割っていき、桁数を1足していく
while(num >= 1){
num = num / numBase;
digit++;
}
//結果を出力
printf("%d\n", d... | 128 | memory_bytes | {'s_id': 's358160091', 'p_id': 'p02766', 'u_id': 'u574211979', 'date': '1590091759', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '437'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n/* ex3-3\n Sagzar1993 */\n\n\n#include <stdio.h>\n\nint main(void) {\n //表す整数と基数を定義\n int num, numBase;\n\n //入力を受け取る\n ... |
CDSS_627580 | CDSS | #include <stdio.h>
int main(void)
{
int n,i,d,c,s,j;
scanf("%d",&n);
d=n/7;c=n/4;
for(i=0;i<=c;i++){
for(j=0;j<=d;j++){
if((i*4+j*7)==n) {
printf("Yes\n");
return 0;
... | 128 | memory_bytes | {'s_id': 's126719683', 'p_id': 'p03285', 'u_id': 'u048036733', 'date': '1590433776', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '404'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer 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,i,d,c,s,j;\n\n scanf(\"%d\",&n);\n\n d=n/7;c=n/4;\n for(i=... |
CDSS_642830 | CDSS | #include <limits.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
// 内部定数
#define D_HUMAN_MAX 300000 // 最大人数
// 内部変数
static char sc1Human[D_HUMAN_MAX + 5]; // 人
static int siHCnt; // 人数
static int si1W[D_HUMAN_MAX + 5]; // 西側の西向きの人数
sta... | 2,816 | memory_bytes | {'s_id': 's143197551', 'p_id': 'p03339', 'u_id': 'u088333128', 'date': '1529682440', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '2816', 'code_size': '2548'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <limits.h>\n#include <math.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <time.h>\n\n// 内部定数\n#d... |
CDSS_126260 | CDSS | // AOJ 2442: ConvexCut
// 2017.11.17 bal4u@uu
#include <stdio.h>
#include <string.h>
int x[51], y[51];
long long norm(int dx, int dy)
{
return (long long)dx*dx + (long long)dy*dy;
}
int parallel(int x1, int y1, int x2, int y2, int x3, int y3, int x4, int y4)
{
return (long long)(y2-y1)*(long long)(x4-x3) == (long... | 1,820 | memory_bytes | {'s_id': 's568077284', 'p_id': 'p01556', 'u_id': 'u847467233', 'date': '1510923432', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1820', 'code_size': '829'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n// AOJ 2442: ConvexCut\n// 2017.11.17 bal4u@uu\n\n#include <stdio.h>\n#include <string.h>\n\nint x[51], y[51];\n\nlong long norm(int d... |
CDSS_28842 | CDSS | #include<stdio.h>
int main()
{
int i,num[3],flag,keta;
while(scanf("%d %d",&num[0],&num[1])!= EOF)
{
keta = 0;
flag = 1;
num[2] = num[0] + num[1];
while(flag)
{
num[2] = num[2] / 10;
keta++;
if(num[2] == 0)
flag = 0;
}
printf("%d\n",keta);
}
return 0;
} | 600 | memory_bytes | {'s_id': 's023052420', 'p_id': 'p00002', 'u_id': 'u819442759', 'date': '1386753282', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '309'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main()\n{\t\n\tint i,num[3],flag,keta;\n\t\n\twhile(scanf(\"%d %d\",&num[0],&num[1])!= EOF)\n\t{\n\t\tketa = ... |
CDSS_92916 | CDSS | #include <stdio.h>
int main() {
int d,c;
int a;
scanf("%d %d",&d,&c);
a = d*c;
printf("%d\n",a);
return 0;
} | 596 | memory_bytes | {'s_id': 's306423271', 'p_id': 'p00290', 'u_id': 'u952951927', 'date': '1431146021', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '127'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main() {\n\n int d,c;\n int a;\n\n scanf(\"%d %d\",&d,&c);\n\n a = d*c;\n\n printf(\"%d\\n\",a);\n\n r... |
CDSS_39692 | CDSS | #include<stdio.h>
int main(void){
int n,k=100000;
scanf("%d",&n);
while(n>0){
n--;
k*=1.05;
if(k%1000>0)k=(k/1000+1)*1000;
}
printf("%d\n",k);
return 0;
} | 592 | memory_bytes | {'s_id': 's156778376', 'p_id': 'p00007', 'u_id': 'u302788563', 'date': '1468643476', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', 'code_size': '166'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 n,k=100000;\n\tscanf(\"%d\",&n);\n\twhile(n>0){\n\t\tn--;\n\t\tk*=1.05;\n\t\tif(k%1000>0)k=(... |
CDSS_201497 | CDSS | #include<stdio.h>
#define Max 500000
#define term 1000000000
int Left[(Max/2)+2], Right[(Max/2)+2];
int c=0;
void merge(int e[], int n, int left, int mid, int right){
int i,j,k;
int x = (mid-left);
int y = (right-mid);
for ( i=0; i<x; i++ )
Left[i] = e[left+i];
for ( i=0; i<y; i++ )
Right[i] = e[mi... | 5,628 | memory_bytes | {'s_id': 's881971558', 'p_id': 'p02272', 'u_id': 'u961385580', 'date': '1530840886', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '100', 'memory': '5628', 'code_size': '1052'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 500000\n#define term 1000000000\n\nint Left[(Max/2)+2], Right[(Max/2)+2];\nint c=0;\n\n\nvoid merge(int... |
CDSS_426769 | CDSS | #include "stdio.h"
int main()
{
int k, a, b;
scanf ("%d",&k);
scanf ("%d",&a);
scanf ("%d",&b);
int i,j;
int c=0;
for (i=1; i<=1000; i++)
{
for (j=a; j<=b; j++)
{
if ((k*i)==j)
{
c++;
break;
}
}
if (c == 0)
... | 1,660 | memory_bytes | {'s_id': 's599359706', 'p_id': 'p02693', 'u_id': 'u695001769', 'date': '1588468923', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '1660', '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()\n{\n int k, a, b;\n scanf (\"%d\",&k);\n scanf (\"%d\",&a);\n scanf (\"%d\",&b);\n int i,j;\n ... |
CDSS_306840 | CDSS | #include <stdio.h>
int main() {
int a, b, c;
int n = 0;
scanf("%d %d %d", &a, &b, &c);
for (int i = a; i <= b; i++) {
if (c % i == 0) {
n++;
}
}
printf("%d\n", n);
}
| 2,104 | memory_bytes | {'s_id': 's043455125', 'p_id': 'p02398', 'u_id': 'u625172425', 'date': '1527199845', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', '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>\n\nint main() {\n int a, b, c;\n int n = 0;\n\n scanf(\"%d %d %d\", &a, &b, &c);\n\n fo... |
CDSS_306657 | CDSS | #include <stdio.h>
int main(void){
int a,b,c,i,k=0;
scanf("%d %d %d",&a,&b,&c);
for(i=a;i<=b;i++){
if(c%i==0) k++;
}
printf("%d\n",k);
return 0;
}
| 2,128 | memory_bytes | {'s_id': 's972604900', 'p_id': 'p02398', 'u_id': 'u038159486', 'date': '1525437428', '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(void){\n \n int a,b,c,i,k=0;\n \n scanf(\"%d %d %d\",&a,&b,&c);\n \n for(i=a;i<=b;i++){\n ... |
CDSS_68188 | CDSS | #include<stdio.h>
int main(void){
int i,j;
char str[11];
int a[10][10];
while(scanf("%s ",str)!=EOF){
for(i=0;i<10;i++)a[0][i] = str[i] - '0';
for(i=1;i<10;i++){
for(j=0;j<10-i;j++){
a[i][j] = a[i-1][j] + a[i-1][j+1];
if(a[i][j]>9)a[i][j] -= 10;
}
}
printf("%d\n",a[9][0]);
... | 0 | memory_bytes | {'s_id': 's422354220', 'p_id': 'p00062', 'u_id': 'u914140574', 'date': '1293526840', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '337'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 i,j;\n char str[11];\n int a[10][10];\n\n while(scanf(\"%s \",str)!=EOF){\n for(i=0;... |
CDSS_385332 | CDSS | #include <stdio.h>
int main() {
int X;
scanf("%d", &X);
if (X >= 30) {
printf("Yes");
}
else {
printf("No");
}
return 0;
} | 1,720 | memory_bytes | {'s_id': 's727156113', 'p_id': 'p02594', 'u_id': 'u885844436', 'date': '1600021352', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1720', '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() {\n\tint X;\n\tscanf(\"%d\", &X);\n\tif (X >= 30) {\n\t\tprintf(\"Yes\");\n\t}\n\telse {\n\t\tprintf(... |
CDSS_128710 | CDSS | // AOJ 3047 Shiritori
// 2019.8.13 bal4u
#include <stdio.h>
#include <string.h>
//// 入出力関係
#if 1
#define gc() getchar_unlocked()
#define pc(x) putchar_unlocked(x)
#else
#define gc() getchar()
#define pc(x) putchar(x)
#endif
int in() { // 非負整数の入力
int n = 0, c = gc();
do n = 10 * n + (c & 0xf), c = gc(); while (c >=... | 2,148 | memory_bytes | {'s_id': 's495410484', 'p_id': 'p02145', 'u_id': 'u847467233', 'date': '1565699184', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2148', 'code_size': '2498'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n// AOJ 3047 Shiritori\n// 2019.8.13 bal4u\n\n#include <stdio.h>\n#include <string.h>\n\n//// 入出力関係\n#if 1\n#define gc() getchar_unlock... |
CDSS_586683 | CDSS | #include<stdio.h>
#include<string.h>
int main(){
int max=0,len,i;
char s[11];
scanf("%s",s);
len=strlen(s);
int count=0;
for(i=0;i<len;i++){
if(s[i]=='A' || s[i]=='G' || s[i]=='T' || s[i]=='C'){
count++;
if(count>max)
max=count;
}
else
count=0;
}
printf("%d\n",max);... | 128 | memory_bytes | {'s_id': 's195756590', 'p_id': 'p03086', 'u_id': 'u917851778', 'date': '1589981381', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '335'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 int max=0,len,i;\n char s[11];\n scanf(\"%s\",s);\n len=strlen(s);\n int cou... |
CDSS_554314 | CDSS | #include<stdio.h>
#include<stdlib.h>
int main(void){
char s[4];
int i,count=1,ans=0,j;
scanf("%s",&s);
for(i=1;i<=3;i++){
if(s[0]==s[i]){
count +=1;
j=i;
}
}
if(count==2){
if(j==1){
if(s[2]==s[3]){
printf("Yes\n");
... | 128 | memory_bytes | {'s_id': 's791581718', 'p_id': 'p02987', 'u_id': 'u331464808', 'date': '1561858890', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '128', 'code_size': '667'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\nint main(void){\n char s[4];\n int i,count=1,ans=0,j;\n scanf(\"%s\",&s);\n for... |
CDSS_231936 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#define INF_P 1100000000
#define INF_M -1100000000
#define MAX(a,b) a<b?b:a
#define MIN(a,b) a>b?b:a
struct item{
int weight;
int value;
};
int max(int a, int b);
int n, w;
int dp[101][10001];
struct item goods[101];
int main(void... | 4,504 | memory_bytes | {'s_id': 's550092996', 'p_id': 'p02316', 'u_id': 'u648717067', 'date': '1454242940', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '4504', 'code_size': '1092'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <math.h>\n\n#define INF_P 1100000000\n#define INF_M -1100000000... |
CDSS_57957 | CDSS | f[168],z[]={23,24,25,12,36,11,13,35,37,22,26,48,0},x,s,m,i=23,c=100;main(y){for(;s?++f[y*12+x+z[--s]]:~scanf("%d,%d,%d",&x,&y,&s)?s=s*4+1:++i<142?i%12<10?m=fmax(m,f[i]),f[i]?c--:1:1:!printf("%d\n%d\n",c,m););} | 0 | memory_bytes | {'s_id': 's937412795', 'p_id': 'p00026', 'u_id': 'u479246559', 'date': '1321063817', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '209'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nf[168],z[]={23,24,25,12,36,11,13,35,37,22,26,48,0},x,s,m,i=23,c=100;main(y){for(;s?++f[y*12+x+z[--s]]:~scanf(\"%d,%d,%d\",&x,&y,&s)?s=... |
CDSS_41665 | CDSS | #include <stdio.h>
int main(void)
{
int i, j, k, l, n, cnt;
while(scanf("%d", &n) != EOF){
cnt = 0;
for(i=0; i<=9; i++){
for(j=0; j<=9; j++){
for(k=0; k<=9; k++){
for(l=0; l<=9; l++){
if(i+j+k+l == n){ cnt++; break; }
}
}
}
}
printf("%d\n", cnt);
}
return 0;
} | 596 | memory_bytes | {'s_id': 's249700249', 'p_id': 'p00008', 'u_id': 'u388019234', 'date': '1371949547', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '307'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n\tint i, j, k, l, n, cnt;\n\n\twhile(scanf(\"%d\", &n) != EOF){\n\t\tcnt = 0;\n\t\tfor(i=0; i... |
CDSS_534287 | CDSS | #include <stdio.h>
int main(void)
{
int n,m,max=0,nowMove=0,nowH=0,preH=-1;
scanf("%d",&n);
while(n>0)
{
scanf("%d",&nowH);
if(preH>=nowH) nowMove++;
else
{
if(nowMove>max) max=nowMove;
nowMove=0;
}
preH=nowH;
n--;
}
... | 128 | memory_bytes | {'s_id': 's995251115', 'p_id': 'p02923', 'u_id': 'u763410402', 'date': '1567368498', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '13', 'memory': '128', 'code_size': '390'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n int n,m,max=0,nowMove=0,nowH=0,preH=-1;\n scanf(\"%d\",&n);\n while(n>0)\n {\n ... |
CDSS_583381 | CDSS | #include<stdio.h>
int main(){
int a,b,c,d,e,k;
scanf("%d %d %d %d %d %d",&a,&b,&c,&d,&e,&k);
if(e-a > k)
printf(":(");
else printf("Yay!");
} | 128 | memory_bytes | {'s_id': 's676827451', 'p_id': 'p03075', 'u_id': 'u362444129', 'date': '1554577647', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '154'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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,c,d,e,k;\n scanf(\"%d %d %d %d %d %d\",&a,&b,&c,&d,&e,&k);\n if(e-a > k)\n printf(\":... |
CDSS_600304 | CDSS | /*
submission # - User: herp_sy
https://atcoder.jp/contests/
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <stdbool.h>
#define _CRT_SECURE_NO_WARNINGS
#define TLong long long
#define TBMod 1000000007
int collatzProblem(int n){
return ((n % 2) ? (3 * n + 1) : (n / 2));
}
... | 128 | memory_bytes | {'s_id': 's342609947', 'p_id': 'p03146', 'u_id': 'u185464141', 'date': '1564097618', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '590'} | [
{
"content": "Your task is to predict the memory 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\tsubmission # - User: herp_sy\n\thttps://atcoder.jp/contests/\n*/\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>... |
CDSS_531396 | CDSS | #include <stdio.h>
int main(){
int n,a,b;
scanf("%d",&n);
scanf("%d",&a);
int sum=a;
for(int i=1;i<n-1;i++){
scanf("%d",&b);
if(b>=a)
sum+=a;
else
sum+=b;
a=b;
}
sum+=a;
printf("%d",sum);
return 0;
}
| 128 | memory_bytes | {'s_id': 's036843862', 'p_id': 'p02917', 'u_id': 'u380970556', 'date': '1567908676', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '313'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n\n int n,a,b;\n scanf(\"%d\",&n);\n scanf(\"%d\",&a);\n int sum=a;\n for(int i=1;i<n... |
CDSS_536221 | CDSS | #include<stdio.h>
char str[20];
int main(){
int n;
scanf("%d", &n);
scanf("%s", str);
if(n >= 3200) printf("%s\n", str);
else printf("%s\n", "red");
} | 128 | memory_bytes | {'s_id': 's428771176', 'p_id': 'p02933', 'u_id': 'u871472869', 'date': '1566598051', '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>\n\nchar str[20];\n\nint main(){\n\tint n;\n \tscanf(\"%d\", &n);\n \tscanf(\"%s\", str);\n \tif(n >= 3200) printf... |
CDSS_94290 | CDSS | #include <stdio.h>
int main(void){
int D,L,N,sum;
scanf ("%d",&D);
scanf ("%d",&L);
printf ("%d\n",(D/L) + (D%L));
return 0;
} | 596 | memory_bytes | {'s_id': 's034115279', 'p_id': 'p00312', 'u_id': 'u725100494', 'date': '1502237504', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '154'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 D,L,N,sum;\n \n scanf (\"%d\",&D);\n scanf (\"%d\",&L);\n\n printf (\"%d\\n... |
CDSS_633939 | CDSS | #include <stdio.h>
#include <math.h>
int main(void)
{
int N;
int A[N];
int i,j;
int ans = 0;
int diff;
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++) {
diff = abs(A[i]-A[j]);
if(diff > ans)... | 128 | memory_bytes | {'s_id': 's558952822', 'p_id': 'p03308', 'u_id': 'u580725438', 'date': '1530494231', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '390'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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(void)\n{\n int N;\n int A[N];\n int i,j;\n int ans = 0;\n int diff;\n... |
CDSS_440102 | CDSS | #include<stdio.h>
int main()
{
long long int a,b,c=0,d,e,f,i,j,k,l,m,n;
double r;
scanf("%lld",&c);
r=(double)2*3.1416*c;
printf("%lf\n",r);
return 0;
}
| 1,748 | memory_bytes | {'s_id': 's573254230', 'p_id': 'p02705', 'u_id': 'u457287850', 'date': '1587345067', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '1748', '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()\n {\n long long int a,b,c=0,d,e,f,i,j,k,l,m,n;\n double r;\n\nscanf(\"%lld\",&c);\nr=(double)2*3.1... |
CDSS_670529 | CDSS | #include <stdio.h>
#include <string.h>
int main(void)
{
int smin=123, smax=0, tmax=0, i, slen, tlen;
char s[200], t[200];
scanf("%s", s);
scanf("%s", t);
slen = strlen(s);
tlen = strlen(t);
for (i = 0; i < slen; i++){
if(s[i] < smin){
smin = s[i];
}
if... | 128 | memory_bytes | {'s_id': 's896609575', 'p_id': 'p03486', 'u_id': 'u506314975', 'date': '1513477815', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '878'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\nint main(void)\n{\n int smin=123, smax=0, tmax=0, i, slen, tlen;\n char s[200], t[200... |
CDSS_425692 | CDSS | #include<stdio.h>
int main(){
int k;
int a,b;
scanf("%d",&k);
scanf("%d %d",&a,&b);
for(int i=a;i<=b;i++){
if(i%k==0){
printf("OK\n");
return 0;
}
else{
continue;
}
}
printf("NG\n");
return 0;
} | 2,068 | memory_bytes | {'s_id': 's027523576', 'p_id': 'p02693', 'u_id': 'u863370423', 'date': '1597515569', 'language': 'C', 'original_language': 'C (Clang 10.0.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2068', 'code_size': '221'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 k;\n\tint a,b;\n\tscanf(\"%d\",&k);\n\tscanf(\"%d %d\",&a,&b);\n\tfor(int i=a;i<=b;i++){\n\t\tif... |
CDSS_576087 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(void)
{
int N,V[20],C[20],index, answer;
scanf("%d", &N);
answer = 0;
for (index = 0; index < N; ++index) {
scanf("%d", &V[index]);
}
for (index = 0; index < N; ++index) {
scanf("%d", &C[index]);
if (C[index]<V[index]) answ... | 128 | memory_bytes | {'s_id': 's750061361', 'p_id': 'p03060', 'u_id': 'u578496933', 'date': '1556414628', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '395'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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{\n int N,V[20],C[20],index, answer;\n scanf(\"%d\",... |
CDSS_643453 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<math.h>
typedef long long int int64;
#define MAX(a,b) ((a)>(b)?(a):(b))
#define MIN(a,b) ((a)<(b)?(a):(b))
#define ABS(a) ((a)>(0)?(a):-(a))
void run(void){
int a,b,c;
scanf("%d%d%d",&a,&b,&c);
int64 k;
scanf("%lld",&k);
printf("%d\n",(a-b)*(k%2==0?1:-1));
/*... | 128 | memory_bytes | {'s_id': 's154122143', 'p_id': 'p03345', 'u_id': 'u425248533', 'date': '1527146141', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '524'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#include<math.h>\n\ntypedef long long int int64;\n\n#define MAX(a,b) ((a)>(b)?(a):(b))\n#define... |
CDSS_705733 | CDSS | #include <stdio.h>
int main(void)
{
int h, w, i, j;
char p[101][101], q[102][102];
scanf("%d %d", &h, &w);
for(i = 0; i < h; i++)
scanf("%s", p[i]);
for(i = 0; i < h+2; i++){
for(j = 0; j < w+2; j++)
q[i][j] = '#';
}
for(i = 1; i <= h; i++){
for(j = 1; j <= w; j++)
q[i][j] = p[i... | 128 | memory_bytes | {'s_id': 's971091543', 'p_id': 'p03712', 'u_id': 'u818983162', 'date': '1495500489', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '464'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void)\n{\n int h, w, i, j;\n char p[101][101], q[102][102];\n\n scanf(\"%d %d\", &h, &w);\n for(i = 0... |
CDSS_159598 | CDSS | #include <stdio.h>
#include <math.h>
int PrimeNumber(int x);
int main() {
int N,i,a=0;
int X[10000];
scanf("%d", &N);
for (i = 0; i < N; i++) {
/* code */
scanf("%d", &X[i]);
}
for ( i = 0; i < N; i++) {
/* code */
if(PrimeNumber(X[i])==1){
a++;
}
}
printf("%d\n", a);
... | 2,068 | memory_bytes | {'s_id': 's871135759', 'p_id': 'p02257', 'u_id': 'u576373644', 'date': '1575535868', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2068', 'code_size': '544'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 PrimeNumber(int x);\n\nint main() {\n int N,i,a=0;\n int X[10000];\n\n\n scanf(\"%d\",... |
CDSS_566316 | CDSS | #include <stdio.h>
#define lop(i, n) for(i=0; i<n; i++)
int main()
{
int a, p, b;
scanf("%d %d", &a, &p);
b=3*a;
printf("%d", (b+p)/2);
return 0;
} | 128 | memory_bytes | {'s_id': 's624333120', 'p_id': 'p03029', 'u_id': 'u034323841', 'date': '1586363633', '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#define lop(i, n) for(i=0; i<n; i++)\n\nint main()\n{\n\tint a, p, b;\n\t\n\tscanf(\"%d %d\", &a, &p);\n\t\n\tb=3*... |
CDSS_369787 | CDSS | #include <stdio.h>
#include <string.h>
#include <ctype.h>
#define ARR_LIMIT 1001
#define END "END_OF_TEXT"
int counting(char* sentence, char* word);
int main(void) {
int count = 0;
char word[11];
char sentence[ARR_LIMIT];
scanf("%s", word);
while (1) {
memset(sentence, 0, sizeof(sentence));
scanf(" %s", se... | 2,108 | memory_bytes | {'s_id': 's973191587', 'p_id': 'p02419', 'u_id': 'u603747343', 'date': '1586746991', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '804'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 <ctype.h>\n\n#define ARR_LIMIT 1001\n#define END \"END_OF_TEXT\"\n\nint counting(cha... |
CDSS_160838 | CDSS | #include <stdio.h>
int main(){
int max,first,tmp,num,i;
scanf("%d",&num);
scanf("%d",&first);
scanf("%d",&tmp);
max = tmp - first;
if(tmp<first){
first = tmp;
}
for(i=2;i<num;i++){
scanf("%d",&tmp);
if(max<tmp-first) max=tmp-first;
if(tmp<first){
first=tmp;
}
}
printf("... | 596 | memory_bytes | {'s_id': 's090523742', 'p_id': 'p02258', 'u_id': 'u056119951', 'date': '1460439226', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '40', 'memory': '596', '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>\n\nint main(){\n\n int max,first,tmp,num,i;\n\n scanf(\"%d\",&num);\n scanf(\"%d\",&first);\n scanf(\"%d\",&tmp... |
CDSS_597688 | CDSS | #include<stdio.h>
void sort(int *a, int n);
void sort(int *a, int n){
int i, j, max, index;
for(i=0; i<n-1; i++){
max = a[i]; index = i;
for(j=i+1; j<n; j++){
if(max < a[j]){
max = a[j]; index = j;
}
}
a[index] = a[i]; a[i] = max;
}
}
int main(void){
int n, l[10], i;
scanf("%d", &n);
for(i... | 1,664 | memory_bytes | {'s_id': 's171757237', 'p_id': 'p03136', 'u_id': 'u005542640', 'date': '1597959984', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1664', '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\nvoid sort(int *a, int n);\n\nvoid sort(int *a, int n){\n\tint i, j, max, index;\n\n\tfor(i=0; i<n-1; i++){\n\t\tm... |
CDSS_160893 | CDSS | #include<stdio.h>
#include<math.h> // add option -lm
int main() {
int minv,maxv,n;
int i, j ;
scanf("%d",&n);
int r[n];
for(i = 0 ; i < n ; i++) {
scanf("%d",&r[i]);
}
minv = r[0];
maxv = r[1]-r[0] ;
for(j = 1; j < n ; j++) {
maxv = fmax(maxv, r[j]-minv);
minv = fmin(minv, ... | 1,384 | memory_bytes | {'s_id': 's436333828', 'p_id': 'p02258', 'u_id': 'u484756951', 'date': '1460524990', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '40', 'memory': '1384', 'code_size': '371'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<math.h> // add option -lm\nint main() {\n \n int minv,maxv,n;\n int i, j ;\n \n scanf(\"%d\",&n);\n ... |
CDSS_583376 | CDSS | #include <stdio.h>
int main() {
int a,b,c,dd,e,k;
scanf("%d %d %d %d %d %d",&a,&b,&c,&dd,&e,&k);
if (e - a > k) {
printf(":(\n");
} else {
printf("Yay!\n");
}
return 0;
} | 128 | memory_bytes | {'s_id': 's237152531', 'p_id': 'p03075', 'u_id': 'u824217496', 'date': '1554577657', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '190'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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,dd,e,k;\n scanf(\"%d %d %d %d %d %d\",&a,&b,&c,&dd,&e,&k);\n if (e - a > k) {\n pri... |
CDSS_90096 | CDSS | #include <stdio.h>
typedef struct{
int name;
int p;
int q;
int r;
int cal;
}sweet;
int main(void){
while(1){
int n, i, a, b, c;
int s, t, u, v;
sweet sw[1000];
scanf(" %d", &n);
if(n==0) break;
for(i=0; i<n; i++){
scanf(" %d %d %d %d", &sw[i].name, &sw[i].p, &sw[i].q, &sw[i].r);
sw[i]... | 632 | memory_bytes | {'s_id': 's600457118', 'p_id': 'p00239', 'u_id': 'u231562319', 'date': '1412693966', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '632', 'code_size': '615'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\ntypedef struct{\n\tint name;\n\tint p;\n\tint q;\n\tint r;\n\tint cal;\n}sweet;\n\nint main(void){\n\twhile(1){\... |
CDSS_492639 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<stdbool.h>
#include<string.h>
#include<math.h>
#include<inttypes.h>
#define mprint(x) printf(FORMATCONVERSION(x),(x))
#define FORMATCONVERSION(x) _Generic((x),\
int:"%d",unsigned int:"%u",\
double:"%lf"... | 128 | memory_bytes | {'s_id': 's663859106', 'p_id': 'p02781', 'u_id': 'u491343140', 'date': '1581623090', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '1341'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#include<stdbool.h>\n#include<string.h>\n#include<math.h>\n#include<inttypes.h>\n#define mprint... |
CDSS_202746 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<limits.h>
#define M 500000
void merge(int *,int,int,int);
void mergeSort(int *,int,int);
int count=0;
int S[M];
int main(){
int n,i;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d",&S[i]);
}
mergeSort(S,0,n);
for(i=0;i<n;i++){
if(i<n-1) printf("%d ",... | 63,340 | memory_bytes | {'s_id': 's266580310', 'p_id': 'p02272', 'u_id': 'u430590334', 'date': '1464153762', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '190', 'memory': '63340', 'code_size': '1081'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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<limits.h>\n\n#define M 500000\n\nvoid merge(int *,int,int,int);\nvoid mergeSort(int *,... |
CDSS_673064 | CDSS | #include <stdio.h>
int main(void)
{
int min = 1000000001;
int n;
int a[201];
int i;
int t;
scanf("%d", &n);
for ( i=0; i<n; i++ ) {
t = 0;
scanf("%d", &a[i]);
while ( a[i] > 0 && a[i] % 2 == 0 ) {
a[i] >>= 1;
t++;
}
if ( min > t ) {
min = t;
}
}
printf("%d\n"... | 128 | memory_bytes | {'s_id': 's307410645', 'p_id': 'p03494', 'u_id': 'u091552971', 'date': '1512958321', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '341'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 min = 1000000001;\n int n;\n int a[201];\n int i;\n int t;\n scanf(\"%d\", &n);\n ... |
CDSS_399909 | CDSS | #include<stdio.h>
int main(){
int N, K, p[1000], sum=0, min=0, trans;
scanf("%d%d", &N, &K);
for(int i=0; i<N; i++){
scanf("%d", &p[i]);
}
for(int i=0; i<N; i++){
for(int j=0; j<N-1; j++){
if(p[j]>p[j+1]){
trans = p[j];
p[j] = p[j+1];
p[j+1] = t... | 1,732 | memory_bytes | {'s_id': 's988691456', 'p_id': 'p02628', 'u_id': 'u108378185', 'date': '1592789396', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1732', 'code_size': '464'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n int N, K, p[1000], sum=0, min=0, trans;\n scanf(\"%d%d\", &N, &K);\n for(int i=0; i<N; i++){\n ... |
CDSS_152174 | CDSS | #include<stdio.h>
int main()
{
int x, y, i, X, Y;
scanf("%d %d", &x, &y);
if(x > y){
X = x%y;
for(i=X; i>=1; i--){
if(X%i == 0){
if(y%i == 0){
printf("%d\n", i);
return 0;
}
}
}
}
else if(x < y){
Y = y%x;
... | 1,848 | memory_bytes | {'s_id': 's252948690', 'p_id': 'p02256', 'u_id': 'u589139267', 'date': '1508331838', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '280', 'memory': '1848', 'code_size': '545'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main()\n{\n int x, y, i, X, Y;\n\n scanf(\"%d %d\", &x, &y);\n\n if(x > y){\n X = x%y;\n for(... |
CDSS_32512 | CDSS | #include <math.h>
#include <stdio.h>
int main() {
int a, b, c, d, e, f;
while (scanf("%d%d%d%d%d%d", &a, &b, &c, &d, &e, &f) != EOF) {
double det = a * e - b * d;
double x = (c * e - b * f) / det;
double y = (a * f - c * d) / det;
if (x == 0) {
x = fabs(x);
}
if (y == 0) {
y = f... | 636 | memory_bytes | {'s_id': 's516300047', 'p_id': 'p00004', 'u_id': 'u881310147', 'date': '1467468622', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '636', 'code_size': '386'} | [
{
"content": "Your task is to predict the memory footprint (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\nint main() {\n int a, b, c, d, e, f;\n while (scanf(\"%d%d%d%d%d%d\", &a, &b, &c, &d, &e, &... |
CDSS_319320 | CDSS | #include <stdio.h>
#include <math.h>
int main(void){
int i=100,x,y,ans;
char m;
for(i=0;i<=1000;i++){
scanf("%d %c %d",&x,&m,&y);
if(m=='+'){
ans=x+y;
printf("%d\n",ans);
}
if(m=='-'){
ans=x-y;
printf("%d\n",ans);
}
if(m=='*'){
ans=x*y;
printf("%d\n",ans);
}
if... | 600 | memory_bytes | {'s_id': 's825096643', 'p_id': 'p02401', 'u_id': 'u709451793', 'date': '1502296493', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', '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#include <math.h>\n\nint main(void){\n int i=100,x,y,ans;\n char m;\n for(i=0;i<=1000;i++){\n scanf(\"%d %c %d... |
CDSS_375100 | CDSS | #include <stdio.h>
int main(int argc, char const *argv[])
{
int n,i,j;
scanf("%d",&n );
int a[n],b[n],c=0,l=0;
for( i=1,j=1; i<=n,j<=n; i++,j++)
{
scanf("%d %d",&a[i],&b[j]);
if (a[i]==b[j])
{
c++;
if (c>=3)
{
l++;
}
... | 1,664 | memory_bytes | {'s_id': 's543833269', 'p_id': 'p02547', 'u_id': 'u555085813', 'date': '1600545438', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1664', 'code_size': '661'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(int argc, char const *argv[]) \n{\n int n,i,j;\n scanf(\"%d\",&n );\n int a[n],b[n],c=0,l=0;\n for( i... |
CDSS_111390 | CDSS | #include <stdio.h>
int gcd(int a, int b)
{
if (!b){
return (a);
}
return (gcd(b, a % b));
}
int main(void)
{
int a, b;
while (scanf("%d%d", &a, &b) != EOF){
if (a < b){
a ^= b;
b ^= a;
a ^= b;
}
printf("%d\n", gcd(a, b));
}
return (0);
} | 0 | memory_bytes | {'s_id': 's604494157', 'p_id': 'p00595', 'u_id': 'u032763525', 'date': '1320059481', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', '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>\n\nint gcd(int a, int b)\n{\n\tif (!b){\n\t\treturn (a);\n\t}\n\treturn (gcd(b, a % b));\n}\n\nint main(void)\n{\n\... |
CDSS_672987 | CDSS | #include<stdio.h>
#include<limits.h>
int main() {
int n, min = INT_MAX;
scanf("%d", &n);
for (int i = 0; i < n; ++i) {
int x, cnt = 0;
scanf("%d", &x);
while (x % 2 == 0 && x>0) {
x = x / 2;
++cnt;
}
min = cnt < min ? cnt : min;
}
printf("%d", min);
} | 128 | memory_bytes | {'s_id': 's897136270', 'p_id': 'p03494', 'u_id': 'u604818425', 'date': '1513202929', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '128', 'code_size': '273'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<limits.h>\n\nint main() {\n\tint n, min = INT_MAX;\n\tscanf(\"%d\", &n);\n\tfor (int i = 0; i < n; ++i) {\... |
CDSS_183992 | CDSS | #include<stdio.h>
typedef struct {
int num;
char name[10];
}QUEUE;
int main() {
int i, time = 0, n, q, head = 0, tail;
char s[10];
QUEUE a[500000];
scanf("%d", &n);
scanf("%d", &q);
for (i = 0; i < n; i++) {
scanf("%s %d", a[i].name, &a[i].num);
}
tail = n;
i = 1;
while (head != tail) {
if (a[head].nu... | 4,696 | memory_bytes | {'s_id': 's755026739', 'p_id': 'p02264', 'u_id': 'u635348322', 'date': '1545063693', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '4696', '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\ntypedef struct {\n\tint num;\n\tchar name[10];\n}QUEUE;\n\nint main() {\n\tint i, time = 0, n, q, head = 0, tail;... |
CDSS_586283 | CDSS | main(c){c=getchar();putchar(c&2?138-c:149-c);} | 128 | memory_bytes | {'s_id': 's815712523', 'p_id': 'p03085', 'u_id': 'u657913472', 'date': '1553462944', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '46'} | [
{
"content": "Your task is to predict the 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(c){c=getchar();putchar(c&2?138-c:149-c);}\nPredict its memory footprint.",
"role": "user"
},
{
"content": "128.0",
... |
CDSS_631455 | CDSS | #include<stdio.h>
int main(void)
{
int i,n,a;
int sum=0;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d",&a);
sum+=a;
}
printf("%d",sum-n);
return 0;
} | 128 | memory_bytes | {'s_id': 's237527831', 'p_id': 'p03294', 'u_id': 'u151785909', 'date': '1587241602', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '160'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 i,n,a;\n\tint sum=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i<n;i++){\n\t\tscanf(\"%d\",&a);\n\... |
CDSS_381179 | CDSS | #include <stdio.h>
#include <string.h>
int main(){
char N[200001];
scanf("%s",N);
int S=0;
int k=0;
int L=strlen(N);
while(k<L){
S=S+N[k]-'0';
k++;
}
if(S%9==0) printf("Yes\n");
else printf("No\n");
return 0;
} | 1,856 | memory_bytes | {'s_id': 's672789967', 'p_id': 'p02577', 'u_id': 'u533708854', 'date': '1599149512', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '1856', 'code_size': '254'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 char N[200001];\n scanf(\"%s\",N);\n int S=0;\n \n int k=0;\n \n int L... |
CDSS_44128 | CDSS | #include <stdio.h>
int main(void){
int hantei[1000000],n,i,j,count;
while(1){
scanf("%d",&n);
if(feof(stdin))break;
count=0;
if(n==2)count=0;
for(i=0;i<=n;i++){
hantei[i]=i;
}
for(i=2;i<=n;i++){
if(hantei[i]!=0){
for... | 4,316 | memory_bytes | {'s_id': 's251730834', 'p_id': 'p00009', 'u_id': 'u174623154', 'date': '1342788614', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '160', 'memory': '4316', '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>\nint main(void){\n int hantei[1000000],n,i,j,count;\n while(1){\n scanf(\"%d\",&n);\n if(feof(s... |
CDSS_729853 | CDSS | #include <stdio.h>
int main(){
long a,b,x;
scanf("%ld %ld %ld",&a,&b,&x);
long answer;
answer = b / x - (a + x - 1) / x + 1;
printf("%ld\n",answer);
return 0;
} | 128 | memory_bytes | {'s_id': 's377431709', 'p_id': 'p03861', 'u_id': 'u245851904', 'date': '1556135629', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '173'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n long a,b,x;\n scanf(\"%ld %ld %ld\",&a,&b,&x);\n long answer;\n answer = b / x - (a + x - 1) /... |
CDSS_632744 | CDSS | main(){
double c;int n,m,d;
scanf("%d%d%d",&n,&m,&d);
c=(m-1.0)/n;
if(d==0)printf("%.12lf\n",c);else
printf("%.12lf\n",2.0*(n-d)/n*c);
return 0;
}
| 128 | memory_bytes | {'s_id': 's735505131', 'p_id': 'p03304', 'u_id': 'u647940094', 'date': '1531012252', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '154'} | [
{
"content": "Your task is to predict the 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(){\n\tdouble c;int n,m,d;\n\tscanf(\"%d%d%d\",&n,&m,&d);\n\tc=(m-1.0)/n;\n\tif(d==0)printf(\"%.12lf\\n\",c);else\n\t\tprintf(\"%.... |
CDSS_420078 | CDSS | #include <stdio.h>
int main(){
int a,b,c,k;
scanf("%d%d%d%d",&a,&b,&c,&k);
int max = 0;
for(;;){
if(k==0) break;
if(a==0) break;
max++;
a--;
k--;
}
for(;;){
if(k==0) break;
if(b==0) break;
b--;
k--;
}
for(;;){
if(k==0) break;
if(c==0) break;
... | 1,712 | memory_bytes | {'s_id': 's019635814', 'p_id': 'p02682', 'u_id': 'u815628714', 'date': '1590613534', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1189', 'memory': '1712', 'code_size': '378'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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,c,k;\n scanf(\"%d%d%d%d\",&a,&b,&c,&k);\n \n int max = 0;\n \n for(;;){\n if(k==0... |
CDSS_469868 | CDSS | #include <stdio.h>
int main()
{
int n;
scanf("%d", &n);
int a, b, i;
a=n/500;
b=(n-a*500)/5;
i=a*1000+b*5;
printf("%d", i);
return 0;
} | 128 | memory_bytes | {'s_id': 's097613230', 'p_id': 'p02724', 'u_id': 'u537676206', 'date': '1585445796', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', '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>\n \nint main()\n{\n int n;\n scanf(\"%d\", &n);\n \n int a, b, i;\n a=n/500;\n b=(n-a*500)/5;\n ... |
CDSS_490891 | CDSS | #include <stdio.h>
#include <string.h>
int main(void) {
char s[100];
int i;
scanf("%s", s);
for (i = 0; s[i] != '\0'; i ++) {
s[i] = 'x';
}
printf("%s", s);
return 0;
}
| 128 | memory_bytes | {'s_id': 's322479567', 'p_id': 'p02778', 'u_id': 'u386794654', 'date': '1581280051', '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#include <string.h>\n\nint main(void) {\n\tchar s[100];\n\tint i;\n\n\tscanf(\"%s\", s);\n\n\tfor (i = 0; s[i] != ... |
CDSS_227031 | CDSS | #include <stdio.h>
#define H 250
int parent(int);
int left(int);
int right(int);
int main(){
int i;
int n;
int p;
int l;
int r;
int A[H];
scanf("%d",&n);
for(i=1;i<=n;i++){
scanf("%d",&A[i]);
}
for(i=1;i<=n;i++){
printf("node %d: key = %d, ",i,A[i]);
p = parent(i);
if(p!=0){
printf("par... | 600 | memory_bytes | {'s_id': 's185884920', 'p_id': 'p02287', 'u_id': 'u654812493', 'date': '1498703353', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '629'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 H 250\n \nint parent(int);\nint left(int);\nint right(int);\n \nint main(){\n \n int i;\n int n;\n int ... |
CDSS_459521 | CDSS | #include <stdio.h>
//#include <stdlib.h>
//#include <string.h>
//#include <stdbool.h>
//#include <limits.h>
//#include <math.h>
//GCD
int gcd(int a, int b)
{
if (b == 0)
return a;
return gcd(b, a % b);
}
int main() {
int k;
scanf("%d", &k);
long ans = 0;
for (int i=0; i<k; i++) {
for (int j=0; j<k... | 1,736 | memory_bytes | {'s_id': 's387389605', 'p_id': 'p02713', 'u_id': 'u599895318', 'date': '1586741305', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '61', 'memory': '1736', 'code_size': '478'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 <stdbool.h>\n//#include <limits.h>\n//#include <math.h>\n... |
CDSS_701338 | CDSS | int main(){
int N,i;
int a[1001]={0};
scanf("%d",&N);
for(i=0;i<N;i++){
scanf("%d",&a[i]);
}
int min,max;
min=a[0];
min=a[0];
for(i=0;i<N;i++){
if(min>a[i]){
min=a[i];
}
}
for(i=0;i<N;i++){
if(max<a[i]){
max=a[i];
}
}
printf("%d",max-min);
}
| 128 | memory_bytes | {'s_id': 's270038559', 'p_id': 'p03694', 'u_id': 'u052185335', 'date': '1586578318', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '303'} | [
{
"content": "Your task is to predict the 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(){\n int N,i;\n int a[1001]={0};\n scanf(\"%d\",&N);\n for(i=0;i<N;i++){\n scanf(\"%d\",&a[i]);\n }\n int min,max;\n... |
CDSS_421062 | CDSS | #include<stdio.h>
#define rep(i,n) for(int i=0; i<n; ++i)
int a[12][12];
int min(int a,int b){
int temp;
if(a>b)return b;
if(a<=b)return a;
}
int main(){
int n,m,x;
scanf("%d%d%d",&n,&m,&x);
int c[n];
rep(i,n){
scanf("%d",&c[i]);
rep(j,m) scanf("%d",&a[i][j]);
}
int result;
int ... | 1,708 | memory_bytes | {'s_id': 's964563392', 'p_id': 'p02683', 'u_id': 'u759675243', 'date': '1589333889', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '1708', 'code_size': '884'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 rep(i,n) for(int i=0; i<n; ++i)\n \n\n int a[12][12];\n\nint min(int a,int b){\n int temp;\n if(a>b)ret... |
CDSS_654794 | CDSS | #include<stdio.h>
int main()
{
char a[4],b[4],c[4];
gets(a);
gets(b);
gets(c);
printf("%c%c%c\n",a[0],b[1],c[2]);
return 0;
}
| 128 | memory_bytes | {'s_id': 's769802416', 'p_id': 'p03415', 'u_id': 'u626825586', 'date': '1520817644', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '150'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n char a[4],b[4],c[4];\n gets(a);\n gets(b);\n gets(c);\n printf(\"%c%c%c\\n\",a[0],b[... |
CDSS_139072 | CDSS | #include <stdio.h>
#define MAX 100
#define INFTY (1<<21)
#define BLACK 2
#define GRAY 1
int n;
int a[MAX][MAX];
int omomi(void);
int main(){
int i,j,e;
scanf("%d",&n);
for(i=0;i<n;i++){
for(j=0;j<n;j++){
scanf("%d",&e);
if(e == -1)a[i][j] = INFTY;
else a[i][j] = e;
}
}
printf("%d\n",omomi());
retu... | 636 | memory_bytes | {'s_id': 's249877081', 'p_id': 'p02241', 'u_id': 'u753809902', 'date': '1468470895', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '636', 'code_size': '900'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 100\n#define INFTY (1<<21)\n#define BLACK 2\n#define GRAY 1\nint n;\nint a[MAX][MAX];\n\nint omomi(voi... |
CDSS_432465 | CDSS | #include <stdio.h>
int main(){
int a, b;
scanf("%d %d", &a, &b);
if(a > b) puts("safe");
else puts("unsafe");
return 0;
} | 1,620 | memory_bytes | {'s_id': 's434627942', 'p_id': 'p02699', 'u_id': 'u228413842', 'date': '1587949279', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '1620', '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>\n\nint main(){\n int a, b;\n scanf(\"%d %d\", &a, &b);\n if(a > b) puts(\"safe\");\n else puts(\"unsafe\");\n ... |
CDSS_127240 | CDSS | // AOJ 2618: Trip to Kyoto
// 2018.1.25 bal4u@uu
#include <stdio.h>
#define ABS(a) ((a)>=0?(a):-(a))
#define MIN(a,b) ((a)<=(b)?(a):(b))
int x1[10002], y1[10002], x2[10002], y2[10002];
char *msg[2] = { "%d.0\n", "%d.5\n" };
//#define getchar_unlocked() getchar()
int in()
{
int n = 0;
int c = getchar_unlocked... | 2,080 | memory_bytes | {'s_id': 's041284631', 'p_id': 'p01730', 'u_id': 'u847467233', 'date': '1516890057', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '50', 'memory': '2080', 'code_size': '1876'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n// AOJ 2618: Trip to Kyoto\n// 2018.1.25 bal4u@uu\n\n#include <stdio.h>\n\n#define ABS(a) ((a)>=0?(a):-(a))\n#define MIN(a,b) ((a)... |
CDSS_559991 | CDSS | #include<stdio.h>
int main(){
int n,x;
scanf("%d%d",&n,&x);
int l[n+1];
for(int i=1;i<=n;i++) scanf("%d",&l[i]);
int ans=1,sum=0;
for(int i=1;i<=n;i++){
sum+=l[i];
if(sum<=x)
ans++;
}
printf("%d\n",ans);
return 0;
} | 128 | memory_bytes | {'s_id': 's302242741', 'p_id': 'p03000', 'u_id': 'u188486233', 'date': '1582232005', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '128', 'code_size': '279'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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,x;\n scanf(\"%d%d\",&n,&x);\n int l[n+1];\n for(int i=1;i<=n;i++) scanf(\"%d\",&l[i... |
CDSS_625644 | CDSS | # include <stdio.h>
int main(){
int n;
int a = 1;
scanf("%d", &n);
int num = 0;
for (int i = 105; i <= n; i = i+2){
int cont = 0;
for (int j = 1; j <= i; ++j){
if (i%j == 0)
cont += 1;
}
if (cont == 8)
num += 1;
}
printf("%d\n", num);
return 0;
}
| 128 | memory_bytes | {'s_id': 's308585058', 'p_id': 'p03281', 'u_id': 'u109867600', 'date': '1571293090', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '278'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 n;\n\tint a = 1;\n\tscanf(\"%d\", &n);\n\n\tint num = 0;\n\tfor (int i = 105; i <= n; i = ... |
CDSS_260188 | CDSS | #include <stdio.h>
int main( void ) {
int sec,h,m,s;
scanf( "%d", &sec );
h = sec / 3600;
m = ( sec % 3600 ) / 60;
s = sec % 60;
printf( "%d:%d:%d\n", h, m, s );
return 0;
} | 592 | memory_bytes | {'s_id': 's317867286', 'p_id': 'p02390', 'u_id': 'u472907951', 'date': '1456517855', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', 'code_size': '189'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main( void ) {\n int sec,h,m,s;\n scanf( \"%d\", &sec );\n h = sec / 3600;\n m = ( sec % 3600 ) / 60;\n ... |
CDSS_507869 | CDSS | #include <stdio.h>
int main(void){
long long int X,Y,r,z,tmp;
scanf("%lld %lld ",&X,&Y);
z = X * Y;
if (X < Y){
tmp = X;
X = Y;
Y = tmp;
}
r = X % Y;
while (r != 0){
X = Y;
Y = r;... | 1,732 | memory_bytes | {'s_id': 's457651559', 'p_id': 'p02831', 'u_id': 'u497715246', 'date': '1594869565', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1732', 'code_size': '413'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 long int X,Y,r,z,tmp;\n\n scanf(\"%lld %lld \",&X,&Y);\n\n z = X * Y... |
CDSS_407188 | CDSS | #include<stdio.h>
int main(){
int a,b;
scanf("%d %d",&a,&b);
printf("%d",a*b);
return 0;
}
| 1,736 | memory_bytes | {'s_id': 's567158714', 'p_id': 'p02657', 'u_id': 'u363321546', 'date': '1590973437', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '1736', 'code_size': '100'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 printf(\"%d\",a*b);\n return 0;\n}\n\nPredict its memory f... |
CDSS_659150 | CDSS |
#include <stdio.h>
int is_true(int c[3][3])
{
int i, j;
for (i = 0; i < 2; i++) {
for (j = 0; j < 2; j++) {
if (c[i][j] - c[i + 1][j] != c[i][j + 1] - c[i + 1][j + 1]) {
return 0;
}
}
for (j = 0; j < 2; j++) {
if (c[j][i] - c[j][i +... | 128 | memory_bytes | {'s_id': 's332035101', 'p_id': 'p03435', 'u_id': 'u446699802', 'date': '1519773237', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '700'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n\n#include <stdio.h>\n\nint is_true(int c[3][3])\n{\n int i, j;\n\n for (i = 0; i < 2; i++) {\n for (j = 0; j < 2; j++) {... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.