identifier string | space string | input string | target float64 | metric_type string | metadata string | messages list |
|---|---|---|---|---|---|---|
CDSS_635308 | CDSS | #include <stdio.h>
int main()
{
int i, num=0;
char s[5];
scanf("%s", s);
for(i=0; i<4; i++) {
if(s[i]=='+') num++;
else num--;
}
printf("%d", num);
return 0;
} | 128 | memory_bytes | {'s_id': 's461381531', 'p_id': 'p03315', 'u_id': 'u195036695', 'date': '1529802392', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '164'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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{\nint i, num=0;\nchar s[5];\n\nscanf(\"%s\", s);\n\nfor(i=0; i<4; i++) {\nif(s[i]=='+') num++;\nels... |
CDSS_377539 | CDSS | #include<stdio.h>
int main(void) {
float D, T, S;
scanf("%f %f %f", &D, &T, &S);
if ((D / S) <= T)
printf("Yes\n");
else
printf("No\n");
return 0;
} | 1,684 | memory_bytes | {'s_id': 's145375048', 'p_id': 'p02570', 'u_id': 'u065082286', 'date': '1600724764', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1684', 'code_size': '158'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void) {\n\tfloat D, T, S;\n\tscanf(\"%f %f %f\", &D, &T, &S);\n\tif ((D / S) <= T)\n\t\tprintf(\"Yes\\n\")... |
CDSS_591503 | CDSS | #include <stdio.h>
#include <stdlib.h>//random,NULL
#include <string.h>
#include <time.h>
#include <unistd.h>//sleep()
#include <math.h>
#include <stdbool.h>
#define rep(i,n) for(int i=0; i<((int)n); i++)
#define REP(i,n) for(int i=0; i<=((int)n); i++)
#define srep(i,a,n) for(int i=a; i<((int)n); i++)
#define SREP(i,a... | 128 | memory_bytes | {'s_id': 's882293117', 'p_id': 'p03105', 'u_id': 'u885352715', 'date': '1551643424', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '694'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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>//random,NULL\n#include <string.h>\n#include <time.h>\n#include <unistd.h>//sleep()\n#include <... |
CDSS_620735 | CDSS | #include <string.h>
int main(void){
int N;
scanf("%d", &N);
char w[N][11];
int ans = 1;
char w1 = '\0';
char wl = '\0';
for(int i = 0; i < N; i++){
scanf("%s", w[i]);
w1 = w[i][0];
if(i > 0){
if(w1 != wl){
ans = 0;
}
... | 128 | memory_bytes | {'s_id': 's528553757', 'p_id': 'p03261', 'u_id': 'u318955153', 'date': '1553395018', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '591'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <string.h>\nint main(void){\n int N;\n scanf(\"%d\", &N);\n char w[N][11];\n int ans = 1;\n char w1 = '\\0';\n... |
CDSS_141943 | CDSS | #include <stdio.h>
#define N 8
#define Free -1
#define Not_Free 1
int row[N],col[N],dpos[2*N-1],dneg[2*N-1];
int H[N][N];
void printBoard(){
int i,j;
for(i=0;i<N;i++){
for(j=0;j<N;j++){
if(H[i][j]){
if(row[i]!=j) return;
}
}
}
for(i=0;i<N;i++){
for(j=0;j<N;j++){
printf("... | 572 | memory_bytes | {'s_id': 's406127753', 'p_id': 'p02244', 'u_id': 'u903981312', 'date': '1501121010', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '572', 'code_size': '1096'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#define N 8\n#define Free -1\n#define Not_Free 1\n\nint row[N],col[N],dpos[2*N-1],dneg[2*N-1];\nint H[N][N];\n\nv... |
CDSS_722536 | CDSS | #include <stdio.h>
int main(void){
int A, B, C, D, i, X, Y;
scanf("%d", &A);
scanf("%d", &B);
scanf("%d", &C);
scanf("%d", &D);
X = A * B;
Y = C * D;
if(X < Y)
printf("%d", Y);
else if(Y < X)
printf("%d", X);
else if(X = Y)
printf("%d", X);
return 0;
} | 128 | memory_bytes | {'s_id': 's967463478', 'p_id': 'p03826', 'u_id': 'u705789458', 'date': '1570214038', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '299'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n int A, B, C, D, i, X, Y;\n \n scanf(\"%d\", &A);\n scanf(\"%d\", &B);\n scanf(\"%d\", &C)... |
CDSS_668058 | CDSS | #include<stdio.h>
int main(){
int a,b,c,d;
scanf("%d%d%d%d",&a,&b,&c,&d);
if(a+b>c+d)
puts("Left");
else if(a+b==c+d)
puts("Balanced");
else
puts("Right");
return 0;
}
| 128 | memory_bytes | {'s_id': 's344193608', 'p_id': 'p03477', 'u_id': 'u917851778', 'date': '1592018335', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '192'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int a,b,c,d;\n scanf(\"%d%d%d%d\",&a,&b,&c,&d);\n if(a+b>c+d)\n puts(\"Left\");\n else if(a+b=... |
CDSS_553994 | CDSS | #include <stdio.h>
int main(void){
char first, second, third, forth;
scanf("%s" "%s" "%s" "%s", &first, &second, &third, &forth);
if(first == second && first != third && third == forth){
printf("Yes\n");
}
else if(first == third && first != second && second == forth){
printf("Yes\n... | 128 | memory_bytes | {'s_id': 's931028439', 'p_id': 'p02987', 'u_id': 'u904055048', 'date': '1563244393', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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 main(void){\n char first, second, third, forth;\n scanf(\"%s\" \"%s\" \"%s\" \"%s\", &first, &second, ... |
CDSS_419355 | CDSS | #include <stdio.h>
int main(){
char S[11];
char T[12];
int i,j;
int k=0;
scanf("%s",&S);
scanf("%s",&T);
for(j=0; S[j]!='\0'; ++j);
// printf("入力した文字列は「%d」文字です。\n",j);
for(i=0;i<j+1;i++){
if(S[i]==T[i]){
// printf("Yes");
// printf("%c %c\n",S[i],T[i... | 1,728 | memory_bytes | {'s_id': 's484805887', 'p_id': 'p02681', 'u_id': 'u443463743', 'date': '1589160443', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '1728', 'code_size': '608'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(){\n char S[11];\n char T[12];\n int i,j;\n int k=0;\n scanf(\"%s\",&S);\n scanf(\"%s\"... |
CDSS_59791 | CDSS | #include<stdio.h>
#define MAX 10
int n;
int s;
int ans;
int dfs(int i, int sum, int n){
if(s == sum && n == 0){
ans++;
return;
}
if(i == MAX || n == 0) return;
dfs(i+1, sum+i, n - 1);
dfs(i+1, sum, n);
}
int main(void){
while(1){
ans = 0;
scanf("%d %d", &n, &s);
if(n == 0 && s == 0) return 0... | 600 | memory_bytes | {'s_id': 's835045212', 'p_id': 'p00030', 'u_id': 'u902026216', 'date': '1353652906', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '374'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 10\nint n;\nint s;\nint ans;\n\nint dfs(int i, int sum, int n){\n\tif(s == sum && n == 0){\n\t\tans++;\... |
CDSS_742095 | CDSS | /* ex 9_1
yumizmiz */
#include <stdio.h>
#include <stdlib.h>
//スタックに格納するデータの最大数
#define SIZE 1000
//スタックの定義
typedef struct stack{
int size;
int count;
char data[SIZE];
char *top;
} stack;
//スタックの初期化
void initialize_stack(stack *stk){
stk->count = 0;
stk->size = SIZE;
stk->top = &(stk->... | 1,648 | memory_bytes | {'s_id': 's293383075', 'p_id': 'p04030', 'u_id': 'u648673347', 'date': '1595215155', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '9', 'memory': '1648', 'code_size': '1839'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n/* ex 9_1\n yumizmiz */\n\n#include <stdio.h>\n#include <stdlib.h>\n//スタックに格納するデータの最大数\n#define SIZE 1000\n\n//スタックの定義\ntypedef stru... |
CDSS_150104 | CDSS | #include<stdio.h>
int main() {
int i, j, k, n, a[1000], v;
scanf("%d", &n);
for(i = 0; i < n; i++){
scanf("%d", &a[i]);
}
for(i = 1; i < n; i++){
for(k = 0; k < n; k++){
printf("%d",a[k]);
if(k != n - 1) printf(" ");
else printf("\n");
}
v = a[i];
j = i - 1;
while... | 2,072 | memory_bytes | {'s_id': 's563166850', 'p_id': 'p02255', 'u_id': 'u075006557', 'date': '1543900048', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2072', 'code_size': '528'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main() {\n int i, j, k, n, a[1000], v;\n\n scanf(\"%d\", &n);\n for(i = 0; i < n; i++){\n scanf(\"%d\",... |
CDSS_587715 | CDSS | #include "stdio.h"
#include "string.h"
int main(int argc, char const *argv[]) {
int N,Q,i;
scanf("%d%d", &N,&Q);
char S1[N];
int l[Q],r[Q];
scanf("%s", S1);
char S[N+1];
for ( i = 1; i <= N; i++) {
S[i]=S1[i-1];
}
for (i = 0; i <Q; i++) {scanf("%d%d",&l[i],&r[i]);}
int Sum[N+1];
Sum[0]=0;
S... | 2,176 | memory_bytes | {'s_id': 's407512384', 'p_id': 'p03087', 'u_id': 'u950580323', 'date': '1553893595', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '28', 'memory': '2176', 'code_size': '572'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include \"stdio.h\"\n#include \"string.h\"\n\nint main(int argc, char const *argv[]) {\n int N,Q,i;\n scanf(\"%d%d\", &N,&Q);\n ch... |
CDSS_231965 | CDSS | #include <stdio.h>
int max(int a, int b,int c){
if(a>b && a > c){
return a;
}else if(b > c && b > a){
return b;
}else{
return c;
}
}
int main(){
int i,j;
int v[110],w[110],dp[110][10010];
int N,W;
scanf("%d %d",&N,&W);
for(i = 1; i <= N ; i++){
scanf("%d %d",&v[i],&w[i]);
}
for... | 5,744 | memory_bytes | {'s_id': 's249590625', 'p_id': 'p02316', 'u_id': 'u971505596', 'date': '1564105368', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '5744', 'code_size': '616'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 max(int a, int b,int c){\n if(a>b && a > c){\n return a;\n }else if(b > c && b > a){\n return b;\n... |
CDSS_560754 | CDSS | #include<stdio.h>
int main(void){
int n, i, s, x=0, ans=1;
scanf("%d %d", &n, &s);
int a[n];
for(i=0;i<n;i++){
scanf("%d", &a[i]);
}
for(i=0;i<n;i++){
x+=a[i];
if(x<=s){
ans++;
}
}
printf("%d\n", ans);
return 0;
}
| 128 | memory_bytes | {'s_id': 's223521739', 'p_id': 'p03000', 'u_id': 'u379136995', 'date': '1560711984', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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>\nint main(void){\n int n, i, s, x=0, ans=1;\n scanf(\"%d %d\", &n, &s);\n int a[n];\n for(i=0;i<n;i++){\n sca... |
CDSS_549223 | CDSS | #include <malloc.h>
#include <math.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
//abc135E
int main(void) {
int n, k, i, cou=0, tmp;
scanf("%d", &n);
int a[n],b[n];
for(i=0; i < n; i++){
scanf("%d",&a[i]);
b[i]=-1;
}
for(i=0; i < n; i++){
k=0;
while(a[i]<=b[k])k++;
b[k]=a[i]... | 896 | memory_bytes | {'s_id': 's304988156', 'p_id': 'p02973', 'u_id': 'u859946952', 'date': '1587579331', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1702', 'memory': '896', 'code_size': '408'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <malloc.h>\n#include <math.h>\n#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n\n//abc135E\nint main(void) {\n ... |
CDSS_604437 | CDSS | n,a[3333];
long dp[3333][3333];
i;
long f(i,j)
{
return i-j?dp[i][j]?:(dp[i][j]=fmax(a[i]-f(i+1,j),a[j-1]-f(i,j-1))):0;
}
main()
{
for(scanf("%d",&n);~scanf("%d",a+i++););
printf("%ld",f(0,n));
} | 80,256 | memory_bytes | {'s_id': 's315978672', 'p_id': 'p03171', 'u_id': 'u657913472', 'date': '1547043216', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '144', 'memory': '80256', 'code_size': '198'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nn,a[3333];\nlong dp[3333][3333];\ni;\nlong f(i,j)\n{\n\treturn i-j?dp[i][j]?:(dp[i][j]=fmax(a[i]-f(i+1,j),a[j-1]-f(i,j-1))):0;\n}\nmai... |
CDSS_123641 | CDSS | #include <stdio.h>
int main(){
int e,a,n,m,result;
while(1){
result=0;
scanf("%d",&e);
e *= 2;
if(e == 0) break;
for(n = 2; n < 50; n++){
a=e-n*n;
if(a > 0 && a%n == 0 && a/n%2 == 1) result++;
}
printf("%d\n",result);
}
return 0;
} | 596 | memory_bytes | {'s_id': 's300724183', 'p_id': 'p01314', 'u_id': 'u076398897', 'date': '1493628916', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '301'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(){\n \n int e,a,n,m,result;\n \n while(1){\n \n result=0;\n scanf(\"%d\",&e);\n e *= 2;\n i... |
CDSS_414202 | CDSS | #include<stdio.h>
int main()
{
int n;
scanf("%d",&n);
n=n%100;
n=n%10;
if(n==2||n==4||n==5||n==7||n==9) printf("hon\n");
else if(n==0||n==1||n==6||n==8) printf("pon\n");
else if(n==3) printf("bon\n");
return 0;
}
| 1,632 | memory_bytes | {'s_id': 's218100408', 'p_id': 'p02675', 'u_id': 'u785727223', 'date': '1592941316', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1632', '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{\n\tint n;\n\tscanf(\"%d\",&n);\n\tn=n%100;\n\tn=n%10;\n\tif(n==2||n==4||n==5||n==7||n==9) printf(\"ho... |
CDSS_545186 | CDSS | #include <stdio.h>
#include <math.h>
#include <stdlib.h>
int main() {
int N, *p;
int P1, I1, P2, I2;
int ans = 0; //YESと表示
//Nとp1からpnの読み込み
scanf("%d", &N);
p = calloc(N, sizeof(int));
for (int i = 0; i < N; i++)
scanf("%d", &p[i]);
for (int i = 1; i < N; i++) {
//順番の入れ替わり一つ目があったとき
if (p[i - 1] > p[i])... | 128 | memory_bytes | {'s_id': 's824541583', 'p_id': 'p02958', 'u_id': 'u036312591', 'date': '1564419485', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '990'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n#include <stdlib.h>\n\nint main() {\n\tint N, *p;\n\tint P1, I1, P2, I2;\n\tint ans = 0;\t//YES... |
CDSS_137261 | CDSS | #include <stdio.h>
#define N 100
#define WHITE 0
#define GRAY 1
#define BLACK 2
int n, M[N][N];
int color[N], d[N], f[N], tt;
void kaneko(int u) {
int v;
color[u] = GRAY;
d[u] = ++tt;
for (v = 0; v < n; v++) {
if (M[u][v] == 0) {
continue;
}
if (color[v] == WHITE) {
kaneko(v);
}
... | 2,104 | memory_bytes | {'s_id': 's535457569', 'p_id': 'p02238', 'u_id': 'u424346572', 'date': '1548723254', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '954'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#define N 100\n#define WHITE 0\n#define GRAY 1\n#define BLACK 2\n\nint n, M[N][N];\nint color[N], d[N], f[N], tt;\... |
CDSS_315219 | CDSS | #include <stdio.h>
#include <math.h>
int main()
{
double r;
scanf("%lf", &r);
printf("%f %f\n", r*r*M_PI, 2.*r*M_PI);
return 0;
} | 648 | memory_bytes | {'s_id': 's545812779', 'p_id': 'p02400', 'u_id': 'u663449350', 'date': '1494483291', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '648', '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#include <math.h>\n\nint main()\n{\n double r;\n \n scanf(\"%lf\", &r);\n \n printf(\"%f %f\\n\", r... |
CDSS_665354 | CDSS | #include <stdio.h>
int main() {
int number_n, i, rice_cake_size, answer = 0;
scanf("%d", &number_n);
int count[100] = {};
for(i = 0; i < number_n; i++) {
scanf("%d", &rice_cake_size);
if(count[rice_cake_size-1] == 0) answer++;
count[rice_cake_size-1]++;
}
printf("%d\n", answer);
return 0;
}
| 128 | memory_bytes | {'s_id': 's103767561', 'p_id': 'p03470', 'u_id': 'u675751622', 'date': '1559487884', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '319'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main() {\n int number_n, i, rice_cake_size, answer = 0;\n scanf(\"%d\", &number_n);\n int count[100] = {}... |
CDSS_137440 | CDSS | #include <stdio.h>
int m[100][100];
int f[100];
int d[100];
int n;
int t;
void visit(int u){
int v;
d[u] = ++t;
for(v=0;v<n;v++){
if(m[u][v] && d[v] == 0){
visit(v);
}
}
f[u] = ++t;
}
int main (){
int i,j,k,u,r;
scanf("%d",&n);
for(i=0;i<n;i++){
d[i] = 0;
f[i] = 0;
... | 2,056 | memory_bytes | {'s_id': 's783428638', 'p_id': 'p02238', 'u_id': 'u091396080', 'date': '1532638828', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2056', 'code_size': '663'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 m[100][100];\nint f[100];\nint d[100];\nint n;\nint t;\n \n \n \nvoid visit(int u){\n int v;\n d[u] = ++t;\n... |
CDSS_692213 | CDSS | #include<stdio.h>
#include<string.h>
#include<math.h>
int ara_D[100][200];
int ara[100000];
char ara1[100000];
int main()
{
int i,j,k,l,n,t,df,v;
while(gets(ara1))
{
l=strlen(ara1);
k=l-2;
printf("%c%d%c\n",ara1[0],k,ara1[l-1]);
}
return 0;
}
| 128 | memory_bytes | {'s_id': 's533249614', 'p_id': 'p03636', 'u_id': 'u089230684', 'date': '1502465277', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '288'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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>\nint ara_D[100][200];\nint ara[100000];\nchar ara1[100000];\nint main()\n{\n ... |
CDSS_244345 | CDSS | #include <stdio.h>
int main(void)
{
int x;
scanf("%d", &x);
printf("%d\n", x*x*x,x);
return 0;
} | 596 | memory_bytes | {'s_id': 's527232156', 'p_id': 'p02388', 'u_id': 'u608183872', 'date': '1481587710', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '97'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void)\n{\nint x;\nscanf(\"%d\", &x);\nprintf(\"%d\\n\", x*x*x,x);\n return 0;\n}\nPredict its memory foot... |
CDSS_177014 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
int initialize(void);
int isEmpty(void);
int isFull(void);
void push(int);
int pop(void);
int top=0, S[100];
int main()
{
int x, a, b;
char s[100];
while(scanf("%s", s) != EOF){
if(s[0] == '+'){
a = pop();
b = pop();
push(a + b); ... | 548 | memory_bytes | {'s_id': 's654085535', 'p_id': 'p02263', 'u_id': 'u175028675', 'date': '1461212566', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '548', 'code_size': '898'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 initialize(void);\nint isEmpty(void);\nint isFull(void);\nvoid push(i... |
CDSS_45929 | CDSS | #include <stdio.h>
int main(void){
int bar[30];
int w, n;
int a, b;
int temp;
int i;
for(i=1; i<=30; i++){
bar[i-1] = i;
}
scanf("%d", &w);
scanf("%d", &n);
for(i=0; i<n; i++){
scanf("%d,%d", &a, &b);
temp = bar[a-1];
bar[a-1] = bar[b-1];
bar[b-1] = temp;
}
for(i=0; i<w; i++){
printf("%d\n", ... | 0 | memory_bytes | {'s_id': 's251176176', 'p_id': 'p00011', 'u_id': 'u669807407', 'date': '1319295368', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '345'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n\tint bar[30];\n\tint w, n;\n\tint a, b;\n\tint temp;\n\tint i;\n\n\tfor(i=1; i<=30; i++){\n\t\... |
CDSS_712631 | CDSS | #include<stdio.h>
int main(){
int lenO, lenE;
char o[50], e[50], pas[100];
scanf("%s", o);
scanf("%s", e);
for(lenO=0; o[lenO]!='\0'; lenO++);
for(lenE=0; o[lenE]!='\0'; lenE++);
for(int i=0; i<lenO+lenE; i++){
if(i%2 == 0){
if(o[i/2] !='\0') pas[i] = o[i/2];
... | 128 | memory_bytes | {'s_id': 's188847383', 'p_id': 'p03760', 'u_id': 'u125212320', 'date': '1553195472', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '456'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n int lenO, lenE;\n char o[50], e[50], pas[100];\n scanf(\"%s\", o);\n scanf(\"%s\", e);\... |
CDSS_109665 | CDSS | #include <stdio.h>
int main(void){
// Your code here!
int a[5],b,c,d,e,f,k;
for(b=1;b<=4;b++)scanf("%d",&a[b]);
for(b=1;b<=4;b++){
for(c=b+1;c<=4;c++){
if(a[b]<a[c]){
d=a[b];
a[b]=a[c];
a[c]=d;
}
}
}
scanf("%... | 2,052 | memory_bytes | {'s_id': 's461757610', 'p_id': 'p00542', 'u_id': 'u043263896', 'date': '1552979141', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2052', 'code_size': '432'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 a[5],b,c,d,e,f,k;\n for(b=1;b<=4;b++)scanf(\"%d\",&a[b]);\n ... |
CDSS_229578 | CDSS | #include <stdio.h>
#include <stdlib.h>
#define N 500000
void maxheapify(int);
int n,arr[N+1];
int main(){
int i,node;
scanf("%d",&n);
if(n>N) exit(2);
for(i=1;i<=n;i++){
scanf("%d",&arr[i]);
}
for(i=n/2;i>=1;i--){
maxheapify(i);
}
for(i=1;i<=n;i++){
printf(" %d",arr[i]);
}
printf("\... | 3,812 | memory_bytes | {'s_id': 's977679741', 'p_id': 'p02288', 'u_id': 'u787905360', 'date': '1579158462', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '60', 'memory': '3812', 'code_size': '665'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#define N 500000\n\nvoid maxheapify(int);\n\nint n,arr[N+1];\nint main(){\n int i,node;\n\n ... |
CDSS_222279 | CDSS | #include<stdio.h>
#include<string.h>
#include<stdlib.h>
struct node{
int key;
struct node *p,*l,*r;
};
typedef struct node *Node;
Node root;
void insert(int);
void inorder(Node);
void preorder(Node);
int main(){
int n,i,j;;
char c[20];
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%s",c);
if(c[0]=='i'... | 25,168 | memory_bytes | {'s_id': 's832449272', 'p_id': 'p02283', 'u_id': 'u051523174', 'date': '1579563211', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '330', 'memory': '25168', 'code_size': '987'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\n#include<stdlib.h>\n\nstruct node{\n int key;\n struct node *p,*l,*r;\n};\ntypedef struct nod... |
CDSS_596863 | CDSS | #include <stdio.h>
int main(){
long long ans=0,k,a,b;
scanf("%lld%lld%lld",&k,&a,&b);
if((b-a)<=2){
ans=k+1;
}else if((k-a+1)%2==0){
ans=(k-a+1)/2*(b-a)+a;
}else{
ans=(k-a)*(b-a)/2+a+1;
}
printf("%lld",ans);
}
| 128 | memory_bytes | {'s_id': 's162152581', 'p_id': 'p03131', 'u_id': 'u061912210', 'date': '1549767728', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '243'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n long long ans=0,k,a,b;\n scanf(\"%lld%lld%lld\",&k,&a,&b);\n\n if((b-a)<=2){\n ans=k+1;\n }... |
CDSS_100103 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main()
{
int n,m;
int* list;
int* tmp;
int i,j;
scanf("%d",&n);
list = (int*)malloc(sizeof(int)*2*n);
tmp = (int*)malloc(sizeof(int)*2*n);
for(i = 0;i < n*2;i++)
{
list[i] = i+1;
}
scanf("%d",&m);
for(i = 0;i < m;i++)
{
int cmd;
scanf("%... | 0 | memory_bytes | {'s_id': 's315386053', 'p_id': 'p00436', 'u_id': 'u301090561', 'date': '1328518171', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '711'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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()\n{\n\tint n,m;\n\tint* list;\n\tint* tmp;\n\tint i,j;\n\tsc... |
CDSS_31828 | CDSS | #include<stdio.h>
int main(){
double i, k, x, y;
double a, b, c, d, e, f;
while(scanf("%lf %lf %lf %lf %lf %lf",&a,&b,&c,&d,&e,&f) != EOF){
x = (e*c-b*f)/(a*e-b*d);
y = (-d*c+a*f)/(a*e-b*d);;
if(x == -0)
x =0;
if(y == -0)
y=0;
printf("%.3lf %.3lf\n", x, y);
}
return 0;
} | 652 | memory_bytes | {'s_id': 's868436861', 'p_id': 'p00004', 'u_id': 'u369381079', 'date': '1428047158', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '652', 'code_size': '293'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n\n\tdouble i, k, x, y;\n\tdouble a, b, c, d, e, f;\n\twhile(scanf(\"%lf %lf %lf %lf %lf %lf\",&a,&b,&c... |
CDSS_479053 | CDSS | #include <stdio.h>
int main(void)
{
long N, A, B;
long ans = 0;
long amari = 0;
scanf("%ld %ld %ld", &N, &A, &B);
ans = A * (N / (A + B));
amari = N % (A + B);
if (amari < A) {
ans += amari;
} else {
ans += A;
}
printf("%ld\n", ans);
... | 128 | memory_bytes | {'s_id': 's451822891', 'p_id': 'p02754', 'u_id': 'u397337367', 'date': '1586918594', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '332'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 N, A, B;\n long ans = 0;\n long amari = 0;\n \n scanf(\"%ld %ld %ld\", &... |
CDSS_64680 | CDSS | c=65;main(s){for(;gets(&s)?s=c^s>>16^s&67:!puts(&c);s&3?c=s:0);} | 524 | memory_bytes | {'s_id': 's904435370', 'p_id': 'p00047', 'u_id': 'u340315059', 'date': '1377417000', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', 'code_size': '64'} | [
{
"content": "Your task is to predict the 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=65;main(s){for(;gets(&s)?s=c^s>>16^s&67:!puts(&c);s&3?c=s:0);}\nPredict its memory footprint.",
"role": "user"
},
{
"con... |
CDSS_725236 | CDSS | #include <stdio.h>
int main(){
int sx, sy, tx, ty, i;
scanf("%d%d%d%d", &sx, &sy, &tx, &ty);
for(i = sx; i < tx; i++){
printf("R");
}
for(i = sy; i < ty; i++){
printf("U");
}
printf("R");
for(i = ty; i >= sy; i--){
printf("D");
}
for(i = tx; i >= sx; i--){
printf("L");
}
printf("U");
for(i = sy; i... | 128 | memory_bytes | {'s_id': 's811418968', 'p_id': 'p03836', 'u_id': 'u208608367', 'date': '1493768178', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '530'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 sx, sy, tx, ty, i;\n\tscanf(\"%d%d%d%d\", &sx, &sy, &tx, &ty);\n\tfor(i = sx; i < tx; i++){\n... |
CDSS_234847 | CDSS | #include <stdio.h>
#include <math.h>
#define PI 3.141592653589793
int main(void)
{
double a, b, d, C, S, L, h;
scanf("%lf %lf %lf",&a, &b, &C);
C = C * PI / 180;
h = b * sin(C);
S = a * h / 2;
d = sqrt(a * a + b * b - 2 * a * b * cos(C));
L = a + b + d;
printf("%f\n%f\n%f\n",S, L, h);
return 0;
} | 648 | memory_bytes | {'s_id': 's168462849', 'p_id': 'p02380', 'u_id': 'u701360394', 'date': '1468401174', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '648', 'code_size': '318'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h> \n#include <math.h>\n#define PI 3.141592653589793\n\nint main(void)\n{\t\n\tdouble a, b, d, C, S, L, h;\n\n\tscanf(... |
CDSS_239695 | CDSS | #include <stdio.h>
int main(void){
int n;
scanf("%d",&n);
printf("%d\n",n*n*n);
return 0;
}
| 2,104 | memory_bytes | {'s_id': 's743429479', 'p_id': 'p02388', 'u_id': 'u778920139', 'date': '1531706267', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '108'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\n int n;\n scanf(\"%d\",&n);\n printf(\"%d\\n\",n*n*n);\n return 0;\n}\n\nPredict its ... |
CDSS_106944 | CDSS | #include <stdio.h>
#include <math.h>
int main(){
int L, A, B, C, D, a, b, c, d;
scanf("%d\n", &L);
scanf("%d\n", &A);
scanf("%d\n", &B);
scanf("%d\n", &C);
scanf("%d", &D);
a = A / C;
if(A % C != 0){
a = a + 1;
}
b = B / D;
if(B % D != 0){
b = b + 1;
}
c = fmax(a, b);
d = L - c;
printf("%d\n", d);
... | 600 | memory_bytes | {'s_id': 's859188462', 'p_id': 'p00499', 'u_id': 'u233030964', 'date': '1447375384', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', '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#include <math.h>\n\nint main(){\n\tint L, A, B, C, D, a, b, c, d;\n\tscanf(\"%d\\n\", &L);\n\tscanf(\"%d\\n\", &A... |
CDSS_358340 | CDSS | #include <stdio.h>
int main(void){
int r,c;
int i,j;
scanf("%d %d",&r,&c);
int table[r+1][c+1];
for(i=0;i<=r;i++)
for(j=0;j<=c;j++) table[i][j]=0;
for(i=0;i<r;i++){
for(j=0;j<c;j++){
scanf("%d",&table[i][j]);
}
}
for(i=0;i<=r;i++){
for(j=0;j<=c... | 2,104 | memory_bytes | {'s_id': 's259256219', 'p_id': 'p02413', 'u_id': 'u506537276', 'date': '1526463491', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '752'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\n int r,c;\n int i,j;\n \n scanf(\"%d %d\",&r,&c);\n int table[r+1][c+1];\n \n for(i=0... |
CDSS_720866 | CDSS | #include <stdio.h>
int main(void){
int x;
scanf("%d",&x);
if(x<1200)printf("ABC\n");
else printf("ARC\n");
return 0;
}
| 128 | memory_bytes | {'s_id': 's586941688', 'p_id': 'p03813', 'u_id': 'u869282786', 'date': '1496960598', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '139'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\n int x;\n scanf(\"%d\",&x);\n if(x<1200)printf(\"ABC\\n\");\n else printf(\"ARC\\n\")... |
CDSS_209967 | CDSS | #include<stdio.h>
#include<stdlib.h>
#define N 2000001
int main()
{
int n,i,j,k=0;
scanf("%d",&n);
int A[n+1],B[n+1];
for(i=0;i<n;i++){
scanf("%d",&A[i+1]);
if(k<A[i+1])k=A[i+1];
}
int C[k+1];
for(i=0;i<=k;i++)/*countingsort*/
C[i]=0;
for(i=0;i<n;i++)
C[A[i+1]]++;
fo... | 17,432 | memory_bytes | {'s_id': 's357332787', 'p_id': 'p02275', 'u_id': 'u846632869', 'date': '1577357109', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '240', 'memory': '17432', 'code_size': '546'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#define N 2000001\n\nint main()\n{\n int n,i,j,k=0;\n scanf(\"%d\",&n);\n int A[n+1],B[n+1];... |
CDSS_619396 | CDSS | #include <stdio.h>
#include <string.h>
int main(void){
char s[200001],t[200001],c[26]={0},d[26]={0};
scanf("%s %s",s,t);
long long len = strlen(s),i,j;
for(i=0;i<len;i++){
c[(int)(s[i])-97]++;
d[(int)(t[i])-97]++;
}
for(i=0;i<26;i++){
int num = c[i];
for(j=0;j<26;j++){
if(d[j]==num){
d[j]=0;
br... | 512 | memory_bytes | {'s_id': 's585293529', 'p_id': 'p03252', 'u_id': 'u853477575', 'date': '1537753733', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '512', 'code_size': '414'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\nint main(void){\n\tchar s[200001],t[200001],c[26]={0},d[26]={0};\n\tscanf(\"%s %s\",s,t);\n\t... |
CDSS_287407 | CDSS | #include<stdio.h>
main()
{
int a, b, c;
scanf("%d %d %d", &a, &b, &c);
if ( a < b && b < c )
printf("%d %d %d\n", a, b, c);
else if ( a < c && c < b )
printf("%d %d %d\n", a, c, b);
else if ( b < a && a < c )
printf("%d %d %d\n", b, a, c);
else if ( b < c && c < a ... | 2,100 | memory_bytes | {'s_id': 's346724501', 'p_id': 'p02393', 'u_id': 'u013648252', 'date': '1527557264', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2100', 'code_size': '625'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nmain()\n{\n int a, b, c;\n scanf(\"%d %d %d\", &a, &b, &c);\n if ( a < b && b < c )\n\t printf(\"%d... |
CDSS_501785 | CDSS | #include<stdio.h>
int main(){
int k,x;
scanf("%d%d",&k,&x);
if(500*k>=x)
printf("Yes\n");
else
printf("No\n");
return 0;
}
| 128 | memory_bytes | {'s_id': 's053707630', 'p_id': 'p02811', 'u_id': 'u917851778', 'date': '1587056438', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '141'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int k,x;\n scanf(\"%d%d\",&k,&x);\n if(500*k>=x)\n printf(\"Yes\\n\");\n else\n printf(\"No... |
CDSS_167990 | CDSS | #include<stdio.h>
int main(){
int A[100],N;
int i,j,k,flag=1,temp,num=0;
scanf("%d",&N);
for(i=0;i<N;i++){
scanf("%d",&A[i]);
}
while(flag){
flag=0;
for(j=N-1;j>0;--j){
if(A[j]<A[j-1]){
temp=A[j];
A[j]=A[j-1];
A[j-1]=temp;
flag=1;
num++;
}
}
}
printf("%d",A[0]);... | 2,136 | memory_bytes | {'s_id': 's670398796', 'p_id': 'p02259', 'u_id': 'u114088857', 'date': '1529385806', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2136', 'code_size': '467'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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[100],N;\n int i,j,k,flag=1,temp,num=0;\n\n scanf(\"%d\",&N);\n\n for(i=0;i<N;i++){\n sca... |
CDSS_573007 | CDSS | #include <stdio.h>
int main () {
int N, K;
scanf("%d%d", &N, &K);
int ans = 0;
ans = N - K + 1;
printf("%d", ans);
return 0;
} | 128 | memory_bytes | {'s_id': 's495107275', 'p_id': 'p03047', 'u_id': 'u490932182', 'date': '1557624502', '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 N, K;\n\n scanf(\"%d%d\", &N, &K);\n\n int ans = 0;\n ans = N - K + 1;\n\n pr... |
CDSS_127684 | CDSS | #include<stdio.h>
#include<string.h>
int main(){
char s[1010],t[1010];
scanf("%s %s",s,t);
int i,j,k,l=strlen(s);
for(i=0;i<2;i++){
k=-1;
for(j=i;j<l;j+=2){//printf("%c ",s[j]);
for(k++;t[k]-s[j];k++){
if(t[k]==0)goto NEXT;
}
}
printf("Yes\n");
return 0;
NEXT:;
}
printf("N... | 524 | memory_bytes | {'s_id': 's461783785', 'p_id': 'p01828', 'u_id': 'u731027244', 'date': '1496224697', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', 'code_size': '340'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\nint main(){\n char s[1010],t[1010];\n scanf(\"%s %s\",s,t);\n int i,j,k,l=strlen(s);\n for(... |
CDSS_110423 | CDSS | #include <stdio.h>
#include <stdlib.h>
struct asumikana {
int idx, value;
};
int cmp(const void* x, const void* y) {
int a = ((const struct asumikana*)x)->value;
int b = ((const struct asumikana*)y)->value;
return a < b ? -1 : a > b;
}
int N;
int A[114514];
int recCount;
int rec[114514];
struct asumikana tomatu... | 3,828 | memory_bytes | {'s_id': 's158019337', 'p_id': 'p00578', 'u_id': 'u543521645', 'date': '1577991344', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '3828', 'code_size': '1527'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 asumikana {\n\tint idx, value;\n};\n\nint cmp(const void* x, const void* y) {\n\tint... |
CDSS_335380 | CDSS | #include <stdio.h>
int main(){
int H, W, i, j;
for(;;){
scanf("%d %d",&H ,&W);
if(H == 0 && W == 0)break ;
for ( i = 0; i < H; i++ ){
for ( j = 0; j < W; j++ ){
if( ( i + j ) %2 == 0){
printf("#");
} else {
printf(".");
} ... | 572 | memory_bytes | {'s_id': 's617335344', 'p_id': 'p02405', 'u_id': 'u990611734', 'date': '1406532851', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '572', 'code_size': '408'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 H, W, i, j;\n\tfor(;;){\n \tscanf(\"%d %d\",&H ,&W);\n \tif(H == 0 && W == 0)bre... |
CDSS_84373 | CDSS | #include<stdio.h>
int n,w[10],h[10],a[10];
long long min;
void f(int d,int t[10],int c[10],int y[10]){
int i,j;
if(!d){
long long g=0;
for(i=0;i<n;i++)g+=w[t[i]]*i;
if(min>g){
min=g;
for(i=0;i<n;i++)a[i]=t[i];
}
return;
}
for(i=0;i<n;i++){
if(c[i])continue;//printf("%d %d\n",... | 584 | memory_bytes | {'s_id': 's523345177', 'p_id': 'p00170', 'u_id': 'u731027244', 'date': '1425867577', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '110', 'memory': '584', 'code_size': '850'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint n,w[10],h[10],a[10];\nlong long min;\nvoid f(int d,int t[10],int c[10],int y[10]){\n int i,j;\n if(!d){\n ... |
CDSS_380167 | CDSS | // SPDX-License-Identifier: X11
// 2020-08-31
// Coprime (500pt)
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#define MAX 1000005
// !NOTE you have more than enough memory to scan in all of the numbers
bool *erato(uint_least32_t bound);
int main() {
uint_least32_t N;
scanf("%... | 6,328 | memory_bytes | {'s_id': 's864449326', 'p_id': 'p02574', 'u_id': 'u883424625', 'date': '1598874957', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '192', 'memory': '6328', 'code_size': '2638'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n// SPDX-License-Identifier: X11\n// 2020-08-31\n// Coprime (500pt)\n\n#include <stdbool.h>\n#include <stdint.h>\n#include <stdio.h>\n#... |
CDSS_437906 | CDSS | #include<stdio.h>
int main()
{
double R,p;
while(scanf("%lf",&R)!=EOF){
printf("%lf\n",2*3.141592654*R);
}
return 0;
}
| 1,744 | memory_bytes | {'s_id': 's536970552', 'p_id': 'p02705', 'u_id': 'u089230684', 'date': '1588037350', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1744', 'code_size': '143'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n double R,p;\n while(scanf(\"%lf\",&R)!=EOF){\n printf(\"%lf\\n\",2*3.141592654*R);\n ... |
CDSS_555041 | CDSS | #include <stdio.h>
#include <stdint.h>
#include <inttypes.h>
#include <stdlib.h>
#define MIN(a,b) ((a)<(b)?(a):(b))
#define MAX(a,b) ((a)>(b)?(a):(b))
int p[20];
int main()
{
int cnt;
int N;
int i;
int tmp[3];
int result = 0;
cnt = scanf("%d", &N);
for(i=0; i<N; i++) {
cnt = scanf("%d", &p[i]);... | 128 | memory_bytes | {'s_id': 's704568957', 'p_id': 'p02988', 'u_id': 'u917452040', 'date': '1561859476', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '644'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 <stdint.h>\n#include <inttypes.h>\n#include <stdlib.h>\n\n#define MIN(a,b) ((a)<(b)?(a):(b))\n#define MAX... |
CDSS_23939 | CDSS | // Aizu Vol0 0001: List of Top 3 Hills
// 2017.7.28
#include <stdio.h>
#include <ctype.h>
#include <stdlib.h>
#include <string.h>
char *gets(char *s);
int main()
{
int a, b, c;
int n, i;
char buf[100];
a = b = c = 0;
for (i = 0; i < 10; i++) {
gets(buf); n = atoi(buf);
if (n >= a) c = b, b = a, a = n;
el... | 524 | memory_bytes | {'s_id': 's141557435', 'p_id': 'p00001', 'u_id': 'u847467233', 'date': '1501211980', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', 'code_size': '449'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n// Aizu Vol0 0001: List of Top 3 Hills\n// 2017.7.28\n\n#include <stdio.h>\n#include <ctype.h>\n#include <stdlib.h>\n#include <string.... |
CDSS_221066 | CDSS | #include <stdio.h>
#include <stdlib.h>
struct node{
struct node *r;
struct node *l;
struct node *p;
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->l = NIL;
z->r = NIL;... | 25,128 | memory_bytes | {'s_id': 's482515804', 'p_id': 'p02283', 'u_id': 'u456690692', 'date': '1531758093', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '320', 'memory': '25128', 'code_size': '1069'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 *r;\n struct node *l;\n struct node *p;\n int key;\n};\n\nty... |
CDSS_488643 | CDSS | #include<stdio.h>
int main()
{
int n,a,ev_no=0,count=0,i;
scanf("%d",&n);
for(i=0;i<n;i++)
{
scanf("%d",&a);
if(a%2==0)
{
ev_no++;
if(a%3==0 || a%5==0)
{
count++;
}
}
}
if(count == ev_no)
{
... | 128 | memory_bytes | {'s_id': 's265865093', 'p_id': 'p02772', 'u_id': 'u093676545', 'date': '1582151160', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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#include<stdio.h>\nint main()\n{\n int n,a,ev_no=0,count=0,i;\n scanf(\"%d\",&n);\n for(i=0;i<n;i++)\n {\n scanf(\"... |
CDSS_674309 | CDSS | #include <stdio.h>
#include <math.h>
int main(int argc, char const *argv[]) {
int n,i=0,sum=0,x;
scanf("%d",&n );
x=n;
for (i = 0; n > 0;) {
i=n%10;
sum+=i;
n=n/10;
}
x=fmod(x,sum);
//ここまではおkz
if (x==0) {
printf("Yes\n");
return 0;
}
printf("No\n");
return 0;
}
| 128 | memory_bytes | {'s_id': 's388389027', 'p_id': 'p03502', 'u_id': 'u902963883', 'date': '1512602754', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '316'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\nint main(int argc, char const *argv[]) {\n int n,i=0,sum=0,x;\n scanf(\"%d\",&n );\n x=n;\n ... |
CDSS_222683 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
typedef struct node
{
int id;
struct node *parent;
struct node *child[2];
} *nodePointer;
nodePointer root;
nodePointer make1node(int);
void insert(nodePointer);
int find(nodePointer,int);
void preorderWalk(nodePointer);
void inorderWalk(nodePointer);
int ma... | 20,516 | memory_bytes | {'s_id': 's878457205', 'p_id': 'p02284', 'u_id': 'u090372546', 'date': '1530861829', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '300', 'memory': '20516', 'code_size': '2204'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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>\ntypedef struct node\n{\n int id;\n struct node *parent;\n struct node *c... |
CDSS_358824 | CDSS | #include <stdio.h>
int main(void)
{
int r,c,i,j;
int table[110][110]={};
scanf("%d %d",&r,&c);
for(i=0;i<r;i++){
for(j=0;j<c;j++){
scanf("%d",&table[i][j]);
table[i][c]+=table[i][j];
table[r][j]+=table[i][j];
table[r][c]... | 2,088 | memory_bytes | {'s_id': 's058152092', 'p_id': 'p02413', 'u_id': 'u548147510', 'date': '1554416930', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2088', 'code_size': '523'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 r,c,i,j;\n int table[110][110]={};\n \n scanf(\"%d %d\",&r,&c);\n \n \... |
CDSS_231331 | CDSS | #include <stdio.h>
int max(int a, int b);
int min(int a, int b);
int main(void){
int q;
scanf("%d",&q);
double x1,y1,x2,y2,x3,y3,x4,y4;
double x,y;//直線の交点
double det;//行列式
double k1,k2;
int a,b,c,d;
for(int i=0;i<q;i++){
scanf("%lf %lf %lf %lf %lf %lf %lf %lf",&x1,&y1,&x2,&y2,&x3,&y3,&x4,&y4);
... | 2,112 | memory_bytes | {'s_id': 's478033530', 'p_id': 'p02294', 'u_id': 'u371539389', 'date': '1579083526', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '1477'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\n\nint max(int a, int b);\nint min(int a, int b);\n\nint main(void){\n int q;\n scanf(\"%d\",&q);\n\n double x... |
CDSS_100317 | CDSS | #include<stdio.h>
#include<string.h>
int main(){
//gp
int a, b, n, x, y, i, j;
//oHz
int dp[17][17];
//while
while( scanf("%d %d", &a, &b) != EOF && a && b ){
//oH
memset( dp, -1, sizeof(dp) );
//ss_
scanf( "%d", &n );
//X^[guuoH0
for( i = 0; i <= a; i++ ){
dp[i][0] = 0;
}
for( i = 0;... | 600 | memory_bytes | {'s_id': 's313665219', 'p_id': 'p00438', 'u_id': 'u145643522', 'date': '1429084340', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '745'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\t//gp\n\tint a, b, n, x, y, i, j;\n\t//oHz\n\tint dp[17][17];\n\t//while\n\twhi... |
CDSS_636913 | CDSS | #include <stdio.h>
#include <string.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)
int upll(const void*a, const void*b){retu... | 128 | memory_bytes | {'s_id': 's003913923', 'p_id': 'p03319', 'u_id': 'u382163500', 'date': '1529802514', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '677'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 ll long long\n#define rep(i,l,r)for(ll i=(l);i<(r);i++)\n#define repp(i,l,r,k)for(ll ... |
CDSS_98725 | CDSS | #include<stdio.h>
int main(){
int a[4],i,at=0,bt=0;
for(i=0;i<4;i++){
scanf("%d",&a[i]);
at+=a[i];
}
for(i=0;i<4;i++){
scanf("%d",&a[i]);
bt+=a[i];
}
if(at<bt){
printf("%d\n",bt);
}
else{
printf("%d\n",at);
}
return(0);
} | 592 | memory_bytes | {'s_id': 's235161434', 'p_id': 'p00433', 'u_id': 'u522516700', 'date': '1430991291', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', 'code_size': '265'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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],i,at=0,bt=0;\n for(i=0;i<4;i++){\n scanf(\"%d\",&a[i]);\n at+=a[i];\n }\n for(i=0;... |
CDSS_660961 | CDSS | #include<stdio.h>
int main(){
int A, B, C, X;
scanf("%d %d %d %d", &A, &B, &C, &X);
int i, j, k, count=0;
for(i=0; i<=A; i++){
for(j=0; j<=B; j++){
for(k=0; k<=C; k++){
if(500*i + 100*j + 50*k == X) count++;
}
}
}
printf("%d\n", c... | 128 | memory_bytes | {'s_id': 's510255802', 'p_id': 'p03448', 'u_id': 'u032989583', 'date': '1532365287', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '353'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 int main(){\n \tint A, B, C, X;\n \tscanf(\"%d %d %d %d\", &A, &B, &C, &X);\n \t\n \tint... |
CDSS_594629 | CDSS | #include<stdio.h>
int main(){
int a, b;
scanf("%d %d", &a, &b);
if(b%a == 0){
printf("%d", a+b);
}else{
printf("%d", b-a);
}
return 0;
} | 128 | memory_bytes | {'s_id': 's375983847', 'p_id': 'p03125', 'u_id': 'u235231201', 'date': '1557885935', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '178'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n int a, b;\n scanf(\"%d %d\", &a, &b);\n\n if(b%a == 0){\n printf(\"%d\", a+b);\n ... |
CDSS_665873 | CDSS | #include <stdio.h>
int main(void) {
long long int N,Y;
scanf("%lld %lld",&N,&Y);
int i,j,k,cnt=0;
for(i=0;i<=N;i++){
if(cnt==1){
break;
}
for(j=0;j<=N;j++){
k=(N-i-j);
if(cnt==1){
break;
}
if(Y==(i*10000)+(j*5000)+(k*1000)&&(i+j+k)==N&&k>=0){
printf("%d %d %d",i,j,k);
cnt=1;
br... | 128 | memory_bytes | {'s_id': 's830558760', 'p_id': 'p03471', 'u_id': 'u527993431', 'date': '1571780537', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '128', 'code_size': '387'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\n\tlong long int N,Y;\n\tscanf(\"%lld %lld\",&N,&Y);\n\tint i,j,k,cnt=0;\n\tfor(i=0;i<=N;i++){\... |
CDSS_501156 | CDSS | #include<stdio.h>
#include<math.h>
#include<stdlib.h>
#include<string.h>
#define max(x,y)((x)>(y)?(x):(y))
#define min(x,y)((x)>(y)?(y):(x))
#define MOD (int)1e9+7
int dx4[]={1,0,-1,0};
int dy4[]={0,-1,0,1};
typedef long long int ll;
typedef unsigned long long int ull;
ll gcd(ll x,ll y){if(!y)return x;return gcd(y,x%y)... | 1,408 | memory_bytes | {'s_id': 's330971337', 'p_id': 'p02803', 'u_id': 'u679951803', 'date': '1583385954', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1408', 'code_size': '2512'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<math.h>\n#include<stdlib.h>\n#include<string.h>\n#define max(x,y)((x)>(y)?(x):(y))\n#define min(x,y)((x)>(... |
CDSS_450767 | CDSS | #include <stdio.h>
int main(void){
// Your code here!
char str[3];
int i,j=0;
gets(str);
for(i=0;i<3;i++){
if(str[i]=='7'){
j++;
}
}
if(j>0){
printf("Yes\n");
}
// printf("%d",j);
if(j==0){
printf("No\n");
}
return 0;
} | 1,532 | memory_bytes | {'s_id': 's054673678', 'p_id': 'p02711', 'u_id': 'u834740228', 'date': '1586740258', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '1532', '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>\nint main(void){\n // Your code here!\n char str[3];\n int i,j=0;\n gets(str);\n for(i=0;i<3;i++){\n... |
CDSS_261582 | CDSS | #include<stdio.h>
int main(void){
int s;
scanf("%d",&s);
printf("%d:%d:%d\n",s / 3600,s % 3600 / 60,s % 60);
return 0;
} | 592 | memory_bytes | {'s_id': 's594981521', 'p_id': 'p02390', 'u_id': 'u172120093', 'date': '1488416622', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', 'code_size': '137'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void){\n int s;\n scanf(\"%d\",&s);\n printf(\"%d:%d:%d\\n\",s / 3600,s % 3600 / 60,s % 60);\n ... |
CDSS_484532 | CDSS | #include<stdio.h>
int main(void){
int n,r;
scanf("%d %d",&n,&r);
if(n<10){
printf("%d",r+(100*(10-n)));
}else{
printf("%d",r);
}
return 0;
}
| 128 | memory_bytes | {'s_id': 's192033618', 'p_id': 'p02765', 'u_id': 'u997085361', 'date': '1582427628', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '186'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n int n,r;\n scanf(\"%d %d\",&n,&r);\n\n if(n<10){\n printf(\"%d\",r+(100*(10-n)));... |
CDSS_557109 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <inttypes.h>
#include <string.h>
#include <math.h>
int main (int argc, char const *argv[])
{
char S[5];
gets(S);
if (S[0] == S[1]) {
puts("Bad");
return 0;
}
if (S[1] == S[2]) {
puts("Bad");
return... | 128 | memory_bytes | {'s_id': 's053810471', 'p_id': 'p02993', 'u_id': 'u335453773', 'date': '1561251787', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '435'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 <stdint.h>\n#include <inttypes.h>\n#include <string.h>\n#include <math.h>\n\nint mai... |
CDSS_481806 | CDSS | #include <stdio.h>
int main(void)
{
int N;
scanf("%d", &N);
if ( N % 2 == 0 ) {
printf("%d\n", N / 2 );
} else {
printf("%d\n", (N / 2) + 1);
}
return 0;
}
| 128 | memory_bytes | {'s_id': 's999625909', 'p_id': 'p02759', 'u_id': 'u002693254', 'date': '1583115051', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '171'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\tint N;\n\n\tscanf(\"%d\", &N);\n\n\tif ( N % 2 == 0 ) {\n\t\tprintf(\"%d\\n\", N / 2 );\n... |
CDSS_598686 | CDSS | #include<stdio.h>
#include<stdlib.h>
int cmp( const void *p, const void *q ) {
return *(int*)p - *(int*)q;
}
int main()
{
int i, n, m, ans = 0;
scanf("%d %d", &n, &m);
int x[m], diff[m - 1];
for(i = 0; i < m; i++){
scanf("%d", &x[i]);
}
qsort(x, m, sizeof(int), cmp);
for(i = 0; i < m - 1; i+... | 1,396 | memory_bytes | {'s_id': 's755668642', 'p_id': 'p03137', 'u_id': 'u523969266', 'date': '1549246984', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '30', 'memory': '1396', '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\nint cmp( const void *p, const void *q ) {\n return *(int*)p - *(int*)q;\n}\n\nint main()\n... |
CDSS_740989 | CDSS | #include<stdio.h>
int main(){
int n,jumlah=0;
scanf("%d",&n);
for(int i=1;i<=n;i++){
jumlah=i+jumlah;
}
printf("%d",jumlah);
return 0;
}
| 2,096 | memory_bytes | {'s_id': 's664978008', 'p_id': 'p04029', 'u_id': 'u863370423', 'date': '1597608975', 'language': 'C', 'original_language': 'C (Clang 10.0.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '2096', 'code_size': '148'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n\tint n,jumlah=0;\n\tscanf(\"%d\",&n);\n\tfor(int i=1;i<=n;i++){\n\t\tjumlah=i+jumlah;\n }\n\tprint... |
CDSS_423710 | CDSS | #include<stdio.h>
int Sun[105];
int main(){
//数组:Sun为0;有食物为1;输出为0的Sun
for(int i=0;i<105;i++) {
Sun[i]=0;
}
int num=0,row=0;
scanf("%d %d",&num,&row);
int d=0,temp=0;
for(int i=0;i<row;i++){
d=0;
scanf("%d",&d);
for(int i=0;i<d;i++){
temp = 0;
scanf("%d",&temp);
Sun[temp-1]=1;
}
}
in... | 1,736 | memory_bytes | {'s_id': 's628066682', 'p_id': 'p02688', 'u_id': 'u256155910', 'date': '1588555858', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1736', 'code_size': '436'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 Sun[105];\n\nint main(){\n\t//数组:Sun为0;有食物为1;输出为0的Sun\n\tfor(int i=0;i<105;i++) {\n\t\tSun[i]=0;\n\t}\n\tint... |
CDSS_214717 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<math.h>
#include<limits.h>
#define lpton(i,n) for(int i=0;i<(int)n;i++)
#define lpto0(i,n) for(int i=n;i>-1;i--)
#define lpmn(i,m,n) for(i=m;i<n;i++)
#define ms(l,n,s) memset(l,n,s)
typedef struct rtree{
int nnode;
int nparent;
int brn;
int first;... | 4,124 | memory_bytes | {'s_id': 's253433344', 'p_id': 'p02279', 'u_id': 'u985658044', 'date': '1531414145', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '40', 'memory': '4124', 'code_size': '1455'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#include<string.h>\n#include<math.h>\n#include<limits.h>\n#define lpton(i,n) for(int i=0;i<(int... |
CDSS_587433 | CDSS | #include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/*
* 1. INPUT : ABCACARCACAGCWA
* 2. cumulative n of "AC" : 000111112222222
* 3. OUTPUT : difference between right and left
*/
int main (void) {
int i;
int len_str, n_que;
scanf("%d%d", &len_str, &n_que);
... | 1,664 | memory_bytes | {'s_id': 's903935180', 'p_id': 'p03087', 'u_id': 'u263564761', 'date': '1584518690', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '28', 'memory': '1664', 'code_size': '904'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <assert.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\n/*\n * 1. INPUT : ABCACARCACAGCWA\... |
CDSS_112178 | CDSS | // AOJ 1034: Line Puzzle
// 2017.9.29 bal4u@uu
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define N 8
#define N2 66
typedef struct { signed char r, c, s, t; } T;
T start[N2]; int m;
signed char map[N][N]; int n, n2;
int mv[4][2] = {{-1,0},{1,0},{0,1},{0,-1}};
int cmp(T *a, T *b)
{
if (b->s - a->s)... | 1,684 | memory_bytes | {'s_id': 's594825546', 'p_id': 'p00620', 'u_id': 'u847467233', 'date': '1506652825', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '60', 'memory': '1684', 'code_size': '1913'} | [
{
"content": "Your task is to predict the memory 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 1034: Line Puzzle\n// 2017.9.29 bal4u@uu\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\n#define N 8\n#defin... |
CDSS_621587 | CDSS | #include <stdio.h>
#pragma GCC optimize ("O3")
inline static int gl(void){
int x = 0;
for(;;){
unsigned int c = getchar_unlocked() - 48;
if(c < 10){
x = x*10 + c;
}else{
break;
}
}
return x;
}
inline static void pl(unsigned int s){
char str[9... | 2,944 | memory_bytes | {'s_id': 's050440697', 'p_id': 'p03263', 'u_id': 'u188638030', 'date': '1536472430', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '9', 'memory': '2944', 'code_size': '1943'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#pragma GCC optimize (\"O3\")\n\ninline static int gl(void){\n int x = 0;\n for(;;){\n unsigned int c... |
CDSS_107255 | CDSS | #include<stdio.h>
n[3][101];
a[200][3];
int main(void){
int N,i,j;
scanf("%d",&N);
for(i=0;i<N;i++){
for(j=0;j<3;j++){
int k=0;
scanf("%d",&k);
n[j][k]++;
a[i][j]=k;
}
}
for(i=0;i<N;i++){
int l=0;
for(j=0;j<3;j++){
if(n[j][a[i][j]]==1){l+=a[i][j];}
}
printf("%d\n",l);
}
return 0;
} | 600 | memory_bytes | {'s_id': 's706323782', 'p_id': 'p00500', 'u_id': 'u223852077', 'date': '1443775762', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', '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>\nn[3][101];\na[200][3];\nint main(void){\n\tint N,i,j;\n\tscanf(\"%d\",&N);\n\tfor(i=0;i<N;i++){\n\tfor(j=0;j<3;j++)... |
CDSS_285227 | CDSS | #include<stdio.h>
int main(void){
int a,b,c,d;
scanf("%d %d %d",&a,&b,&c);
if(b>a){
d=b;
b=a;
a=d;
}
if(c>a){
d=c;
c=a;
a=d;
}
if(c>b){
d=c;
c=b;
b=d;
}
if(a>c){
d=a;
a=c;
c=d;
}
... | 596 | memory_bytes | {'s_id': 's147258328', 'p_id': 'p02393', 'u_id': 'u632268113', 'date': '1494407305', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '417'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n int a,b,c,d;\n scanf(\"%d %d %d\",&a,&b,&c);\n if(b>a){\n d=b;\n b=a;\n ... |
CDSS_220479 | CDSS | #include <stdio.h>
#define MAX 10000
#define NIL -1
struct Node {int p, l ,r; };
struct Node T[MAX];
int n;
/* 先行順巡回*/
void preParse(int u) {
if ( u == NIL ) return;
printf(" %d", u);
preParse(T[u].l);
preParse(T[u].r);
}
/* 中間順巡回*/
void inParse(int u) {
if ( u == NIL ) return;
inParse(T[u].l... | 2,060 | memory_bytes | {'s_id': 's368141883', 'p_id': 'p02281', 'u_id': 'u236890908', 'date': '1532966952', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2060', 'code_size': '1069'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 10000\n#define NIL -1\n\nstruct Node {int p, l ,r; };\nstruct Node T[MAX];\nint n;\n\n/* 先行順巡回*/\nvoid... |
CDSS_380583 | CDSS | #include<stdio.h>
int main()
{
int a,b,c,x=0;
scanf("%d%d%d",&a,&b,&c);
while(1){
a=a-b;
x++;
if(a<=0) break;
}
printf("%d\n",c*x);
return 0;
}
| 1,700 | memory_bytes | {'s_id': 's586738361', 'p_id': 'p02576', 'u_id': 'u621146716', 'date': '1598185646', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1700', 'code_size': '156'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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,x=0;\n\tscanf(\"%d%d%d\",&a,&b,&c);\n\twhile(1){\n\t\ta=a-b;\n\t\tx++;\n\t\tif(a<=0) bre... |
CDSS_392261 | CDSS | #include <stdio.h>
int main() {
int N, verdict[4] = {0}; // AC, WA, TLE, RE
scanf("%d", &N);
for(int i = 0; i < N; i++) {
char str[5];
scanf("%s", str);
switch(str[0]) {
case 'A':
verdict[0]++;
break;
case 'W':
verdict[1]++;
break;
case 'T':
... | 1,736 | memory_bytes | {'s_id': 's716550036', 'p_id': 'p02613', 'u_id': 'u816631826', 'date': '1597798790', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '17', 'memory': '1736', 'code_size': '567'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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, verdict[4] = {0}; // AC, WA, TLE, RE\n scanf(\"%d\", &N);\n\n for(int i = 0; i < N; i++... |
CDSS_233695 | CDSS | #include <stdio.h>
#include <math.h>
int main(){
double x1 , x2 , y1 ,y2;
double dis=0;
scanf("%lf %lf %lf %lf",&x1,&y1,&x2,&y2);
dis=((x1 - x2)*(x1 - x2)+(y1 - y2)*(y1 - y2));
dis= sqrt(dis);
printf("%f\n",dis);
return 0;
} | 652 | memory_bytes | {'s_id': 's977634260', 'p_id': 'p02379', 'u_id': 'u845340937', 'date': '1445590809', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '652', 'code_size': '259'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n\nint main(){\n double x1 , x2 , y1 ,y2;\n double dis=0;\n \n scanf(\"%lf %lf %lf %... |
CDSS_711183 | CDSS | #include<stdio.h>
int a[200];
int b[200];
int main(void){
int i,j;
int acnt,bcnt;
char x;
for(i=0;i<200;i++){
a[i]=-1;
b[i]=-1;
}
j=0;
acnt=0;
bcnt=0;
while(1){
scanf("%c",&x);
if(x=='\n'){
j++;
if(j==2){
break;
... | 128 | memory_bytes | {'s_id': 's808925790', 'p_id': 'p03738', 'u_id': 'u462946613', 'date': '1492911138', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '963'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 a[200];\nint b[200];\nint main(void){\n int i,j;\n int acnt,bcnt;\n char x;\n for(i=0;i<200;i++){\n... |
CDSS_580306 | CDSS | #include<stdio.h>
int main(){
int N,i,k=1,hight=0;
int a[200]={};
scanf("%d",&N);
for(i=0;i<N;i++){
scanf("%d",&a[i]);
}
//printf("%d\n",N);
//printf("%d\n",a[1]);
hight=a[0];
for(i=1;i<N;i++){
if(hight<=a[i]){
hight=a[i];
k=k+1;
}
}
printf("%d",k);
return 0;
} | 128 | memory_bytes | {'s_id': 's917229125', 'p_id': 'p03072', 'u_id': 'u544731670', 'date': '1591028171', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '128', 'code_size': '319'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int N,i,k=1,hight=0;\n int a[200]={};\n scanf(\"%d\",&N);\n for(i=0;i<N;i++){\n scanf(\"%d\",&a[... |
CDSS_726208 | CDSS | #include <stdio.h>
int main () {
int A, B;
char op;
scanf ("%d %c %d", &A, &op, &B);
if (op=='+')
printf ("%d\n", A+B);
else if (op=='-')
printf ("%d\n", A-B);
return 0;
} | 128 | memory_bytes | {'s_id': 's154060418', 'p_id': 'p03844', 'u_id': 'u660918420', 'date': '1561935767', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '182'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main () {\n\tint A, B;\n\tchar op;\n\tscanf (\"%d %c %d\", &A, &op, &B);\n\tif (op=='+')\n\t\tprintf (\"%d\\... |
CDSS_508573 | CDSS | #include<stdio.h>
int main(void){
int N,x;
scanf("%d",&N);
int a[N];
for(x=0;x<N;x++)
scanf("%d",&a[x]);
int count = 0;
int now = 0;
for(x=0;x<N;x++){
if(a[x]-now==1)now=a[x];
else count++;}
if(count==N)count=-1;
printf("%d\n",count);
return 0;} | 896 | memory_bytes | {'s_id': 's013403990', 'p_id': 'p02832', 'u_id': 'u006717664', 'date': '1577313432', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '22', 'memory': '896', 'code_size': '306'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n int N,x;\n\n scanf(\"%d\",&N);\n int a[N];\n for(x=0;x<N;x++)\n scanf(\"%d\",&a[... |
CDSS_680069 | CDSS | #include<stdio.h>
int main(void){
int r,g;
scanf("%d %d",&r,&g);
printf("%d\n",2*g-r);
return 0;
} | 128 | memory_bytes | {'s_id': 's749166950', 'p_id': 'p03563', 'u_id': 'u759764204', 'date': '1524778241', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '114'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 r,g;\n scanf(\"%d %d\",&r,&g);\n printf(\"%d\\n\",2*g-r);\n return 0;\n}\nPredict... |
CDSS_658423 | CDSS | #include<stdio.h>
int main()
{
int N, A;
scanf("%d",&N);
scanf("%d",&A);
if(N%500 <= A) printf("Yes");
else printf("No");
return 0;
} | 128 | memory_bytes | {'s_id': 's444281170', 'p_id': 'p03433', 'u_id': 'u945481089', 'date': '1519005972', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '144'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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, A;\n\tscanf(\"%d\",&N);\n\tscanf(\"%d\",&A);\n\t\n\tif(N%500 <= A) printf(\"Yes\");\n\te... |
CDSS_92933 | CDSS | #include <stdio.h>
int d,c;
int main()
{
scanf("%d%d",&d,&c);
printf("%d\n",d*c);
return 0;
} | 596 | memory_bytes | {'s_id': 's666100240', 'p_id': 'p00290', 'u_id': 'u995466695', 'date': '1431414142', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '98'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 d,c;\nint main()\n{\n\tscanf(\"%d%d\",&d,&c);\n\tprintf(\"%d\\n\",d*c);\n\n\treturn 0;\n\n}\nPredict its memor... |
CDSS_527936 | CDSS | #include<stdio.h>
#include<string.h>
main(){
char s[8];
scanf("%s",s);
if(strcmp(s,"Sunny")==0){
printf("Cloudy");
}
if(strcmp(s,"Cloudy")==0){
printf("Rainy");
}
if(strcmp(s,"Rainy")==0){
printf("Sunny");
}
return 0;
} | 128 | memory_bytes | {'s_id': 's404919022', 'p_id': 'p02909', 'u_id': 'u683769494', 'date': '1568596128', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '236'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\nmain(){\n\tchar s[8];\n\tscanf(\"%s\",s);\n\tif(strcmp(s,\"Sunny\")==0){\n\t\tprintf(\"Cloudy\"... |
CDSS_222645 | CDSS | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
struct Node {
int key;
struct Node* parent;
struct Node* left;
struct Node* right;
};
typedef struct Node * NodePointer;
void insert( NodePointer t , int z){
NodePointer x;
if ( t -> key <= z){
if ( t -> right == NULL){
x = (NodePointer) mallo... | 25,240 | memory_bytes | {'s_id': 's976297615', 'p_id': 'p02283', 'u_id': 'u272180444', 'date': '1546923751', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '340', 'memory': '25240', 'code_size': '1594'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\nstruct Node {\n\tint key;\n\tstruct Node* parent;\n\tstruct Node* left... |
CDSS_697640 | CDSS | #include<stdio.h>
#include<string.h>
#include<stdlib.h>
#define inf 1072114514
#define llinf 1145141919810364364
#define mod 1000000007
int max(int a,int b){if(a>b){return a;}return b;}
int min(int a,int b){if(a<b){return a;}return b;}
int zt(int a,int b){return max(a,b)-min(a,b);}
int round(int a,int b){if((a%b)*2 >=... | 128 | memory_bytes | {'s_id': 's818897684', 'p_id': 'p03671', 'u_id': 'u721060623', 'date': '1507149745', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '2696'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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#define inf 1072114514\n#define llinf 1145141919810364364\n#define mod 1000... |
CDSS_78969 | CDSS | // AOJ 0120: Patisserie
// 2017.8.21 bal4u@uu
// 2017.11.20
#include <stdio.h>
#include <string.h>
#include <math.h>
#define INF 1000
int r[13], n, lim;
double d[13][13]; // ???????????±???????????????????°´????????¢
double dp[4100][13];
char buf[50], *p;
int getint()
{
int n = 0;
while (*p >= '0') n = (n<<3) ... | 1,980 | memory_bytes | {'s_id': 's682411085', 'p_id': 'p00120', 'u_id': 'u847467233', 'date': '1511133791', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '50', 'memory': '1980', '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// AOJ 0120: Patisserie\n// 2017.8.21 bal4u@uu\n// 2017.11.20\n\n#include <stdio.h>\n#include <string.h>\n#include <math.h>\n\n#define... |
CDSS_17754 | CDSS | #include<stdio.h>
int main()
{
int a,i,j;
for(i=1;i<=9;i++)
{
for(j=1;j<=9;j++)
{
printf("%dx%d=%d",i,j,i*j);
printf("\n");
}
}
return 0;
} | 520 | memory_bytes | {'s_id': 's810708525', 'p_id': 'p00000', 'u_id': 'u011621222', 'date': '1426079264', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '520', 'code_size': '204'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h> \nint main() \n{\n int a,i,j; \n for(i=1;i<=9;i++) \n { \n for(j=1;j<=9;j++) \n { \n printf(... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.