identifier string | space string | input string | target float64 | metric_type string | metadata string | messages list |
|---|---|---|---|---|---|---|
CDSS_165169 | CDSS | #include<stdio.h>
#define MAX 100
void Bubble(int N,int *A){
int i;
int cnt = 0;
int temp;
int flag;
flag = 1;
while(flag){
flag = 0;
for(i = N-1;i >=1;i--){
if(A[i] < A[i-1]){
temp = A[i];
A[i] = A[i-1];
A[i-1] = temp;
cnt++;
flag = 1;
}
}
}
for(i = 0;i < N-1;i++){
... | 600 | memory_bytes | {'s_id': 's739808878', 'p_id': 'p02259', 'u_id': 'u323463806', 'date': '1460007771', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '550'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 MAX 100\n\nvoid Bubble(int N,int *A){\n\n int i;\n int cnt = 0;\n int temp;\n int flag;\n\n flag = 1... |
CDSS_97953 | CDSS | m,i,j,k,c[16],p,d;main(n){for(;scanf("%d%d",&n,&m),n;printf("%d\n",j>m?-1:j)){for(k=3;k--;)for(scanf("%d",&i);i--;c[j]=k)scanf("%d",&j);for(j=k=0;k++<n;p=i%2*2+p&3)j+=pow(3,n-k)*abs(i=p-c[k]);j=fmin(j,pow(3,n)+~j);}} | 0 | memory_bytes | {'s_id': 's545433886', 'p_id': 'p00426', 'u_id': 'u479246559', 'date': '1323865306', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '216'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nm,i,j,k,c[16],p,d;main(n){for(;scanf(\"%d%d\",&n,&m),n;printf(\"%d\\n\",j>m?-1:j)){for(k=3;k--;)for(scanf(\"%d\",&i);i--;c[j]=k)scanf(... |
CDSS_157015 | CDSS | #include <stdio.h>
#include <math.h>
#define ELEMENT_CNT_MIN (1)
#define ELEMENT_CNT_MAX (10000)
#define ELEMENT_MIN (2)
#define ELEMENT_MAX (100000000)
#define FAILUER (-1)
#define SUCCESS (0)
#define FUNC_TRUE (1)
#define FUNC_FALSE (0)
int get_int_sequence(int *p_num, int min, int max, int size);
int get_int(... | 1,888 | memory_bytes | {'s_id': 's691763123', 'p_id': 'p02257', 'u_id': 'u786843580', 'date': '1510820522', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1888', 'code_size': '2133'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n \n#define ELEMENT_CNT_MIN (1)\n#define ELEMENT_CNT_MAX (10000)\n#define ELEMENT_MIN (2)\n#def... |
CDSS_415024 | CDSS | #include<stdio.h>
int main(void){
int a,num;
scanf("%d",&a);
num= a%10;
if(num==2||num==4||num==5||num==7||num==9){
printf("hon");
}else if(num==3){
printf("bon");
}else{
printf("pon");
}
return 0;
} | 1,728 | memory_bytes | {'s_id': 's656602652', 'p_id': 'p02675', 'u_id': 'u993037852', 'date': '1589764594', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1728', 'code_size': '227'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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,num;\n scanf(\"%d\",&a);\n num= a%10;\n if(num==2||num==4||num==5||num==7||num==9){\n ... |
CDSS_425932 | CDSS | #include<stdio.h>
int main(void){
int k, a, b;
scanf("%d %d %d", &k, &a, &b);
if (b/k > (a-1)/k)
printf("OK");
else
printf("NG");
return 0;
} | 1,716 | memory_bytes | {'s_id': 's030682220', 'p_id': 'p02693', 'u_id': 'u162019547', 'date': '1591668397', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '1716', 'code_size': '159'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n int k, a, b;\n scanf(\"%d %d %d\", &k, &a, &b);\n if (b/k > (a-1)/k)\n printf(\"OK\");\n e... |
CDSS_607871 | CDSS | #include<stdio.h>
int main(){
int N;
int p[11];
int i,j;
int max = 0;
int sum = 0;
scanf("%d", &N);
for(i=0; i<N; i++){
scanf("%d", &p[i]);
if(max<p[i]){
max = p[i];
}
sum = sum + p[i];
}
printf("%d", sum-max/2);
return 0;
} | 128 | memory_bytes | {'s_id': 's883305303', 'p_id': 'p03207', 'u_id': 'u079774926', 'date': '1579789467', '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 \nint main(){\n int N;\n int p[11];\n int i,j;\n int max = 0;\n int sum = 0;\n \n scanf(\"%d\", ... |
CDSS_698860 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<math.h>
int main(void){
int n;
int *a;
scanf("%d",&n);
a=(int *)malloc(sizeof(int)*n);
for(int i=0;i<n;i++) scanf("%d",&a[i]);
int *ans;
ans=(int *)malloc(sizeof(int)*n);
int m=n-1;
int k=0;
if(n%2==0){
... | 3,872 | memory_bytes | {'s_id': 's468822482', 'p_id': 'p03675', 'u_id': 'u389834932', 'date': '1598747161', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '54', 'memory': '3872', 'code_size': '852'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#include<string.h>\n#include<math.h>\n\n\nint main(void){\n int n;\n int *a;\n\n scanf... |
CDSS_294377 | CDSS | #include<stdio.h>
int main () {
int data;
int cnt = 1;
while(1) {
scanf("%d" , &data);
if (data == 0) break;
printf("Case %d: %d\n" , cnt , data);
cnt++;
}
return 0;
} | 600 | memory_bytes | {'s_id': 's383814887', 'p_id': 'p02396', 'u_id': 'u414533604', 'date': '1426321274', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '180'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main () {\n\tint data;\n\tint cnt = 1;\n\twhile(1) {\n\t\tscanf(\"%d\" , &data);\n\t\tif (data == 0) break;\n\t... |
CDSS_27387 | CDSS | #include <stdio.h>
#pragma warning(disable:4996)
int main(void) {
int a, b, sum;
int count;
while (scanf("%d %d", &a, &b) != EOF) {
sum = a + b;
count = 0;
do {
sum = sum / 10;
count++;
} while (sum != 0);
printf("%d\n", count);
}
} | 1,740 | memory_bytes | {'s_id': 's978421869', 'p_id': 'p00002', 'u_id': 'u949978291', 'date': '1506353139', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1740', 'code_size': '253'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 warning(disable:4996)\n\nint main(void) {\n\tint a, b, sum;\n\tint count;\n\twhile (scanf(\"%d %d\", &a, &... |
CDSS_126239 | CDSS | #include<stdio.h>
#include<string.h>
int main(){
int n,m,i,j,lk=1,f;
char dict[256][16],try[16];
scanf("%d",&n);
for(i=0;i<n;i++){scanf("%s",dict[i]);}
scanf("%d",&m);
for(i=0;i<m;i++){
f=0;
scanf("%s",try);
for(j=0;j<n;j++){
if(strcmp(dict[j],try)==0){f=1;break;}
}
if(f==0){print... | 2,100 | memory_bytes | {'s_id': 's742446338', 'p_id': 'p01554', 'u_id': 'u444407884', 'date': '1585240810', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2100', '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(){\n int n,m,i,j,lk=1,f;\n char dict[256][16],try[16];\n scanf(\"%d\",&n);\n for... |
CDSS_406022 | CDSS | #include <stdio.h>
void main()
{
int n, k, a[200001], b[200001], flag;
scanf("%d %d", &n, &k);
for (int i = 0; i < n; i++)
scanf("%d", &a[i]);
while (k--)
{
flag = 0;
for (int i = 0; i < n; i++)
b[i] = 0;
for (int i = 0; i < n; i++)
{
... | 3,260 | memory_bytes | {'s_id': 's674473960', 'p_id': 'p02647', 'u_id': 'u395125142', 'date': '1592143723', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '57', 'memory': '3260', 'code_size': '1175'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 main()\n{\n int n, k, a[200001], b[200001], flag;\n\n scanf(\"%d %d\", &n, &k);\n\n for (int i = 0... |
CDSS_433289 | CDSS | #include <stdio.h>
void battle(int t_attack, int my_hp); // 戦闘
int main() {
int a, b, c, d; // 変数宣言
scanf("%d%d%d%d", &a, &b, &c, &d); // 標準入力
for(int i=0; a>0&&c>0; i++) { // 戦闘ループ
if (i%2==0) {
c-=b; // 高橋君→青木君 : 攻撃
} else {
a-=d; // 青木君→高橋君 : 攻撃
}
}
if (a<=0) { // 結果
printf("No\... | 1,648 | memory_bytes | {'s_id': 's834350921', 'p_id': 'p02700', 'u_id': 'u543705056', 'date': '1591422275', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1648', 'code_size': '444'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nvoid battle(int t_attack, int my_hp); // 戦闘\nint main() {\n int a, b, c, d; // 変数宣言\n scanf(\"%d%d%d%d\", &a, &b... |
CDSS_208895 | CDSS | #include <stdio.h>
#define arr_print_d0dn(a, n) for(int i=0;i<(n)-1;++i)put_uint((a)[i]),putchar_unlocked(' ');put_uint((a)[(n)-1]),putchar_unlocked('\n')
void put_uint(int n) {
if(!n) {
putchar_unlocked('0');
return;
}
char buf[11];
int i = 0;
while(n) buf[i++] = (char)(n % 10 + '0... | 17,276 | memory_bytes | {'s_id': 's953249723', 'p_id': 'p02275', 'u_id': 'u817964127', 'date': '1529472899', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '70', 'memory': '17276', 'code_size': '1165'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 arr_print_d0dn(a, n) for(int i=0;i<(n)-1;++i)put_uint((a)[i]),putchar_unlocked(' ');put_uint((a)[(n)-1])... |
CDSS_210423 | CDSS | #include <stdio.h>
int partition(int a[], int p, int r)
{
int x, i, j, temp;
x = a[r];
i = p - 1;
for (j = p; j < r ;j++) {
if (a[j] <= x) {
i++;
temp = a[j];
a[j] = a[i];
a[i] = temp;
}
}
temp = a[i + 1];
a[i + 1] = a[r];
a[r] = temp;
return i + 1;
}
int main(void) {
int n, r;
int numb... | 2,076 | memory_bytes | {'s_id': 's937858540', 'p_id': 'p02276', 'u_id': 'u470487508', 'date': '1531284845', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2076', 'code_size': '643'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 partition(int a[], int p, int r)\n{\n\tint x, i, j, temp;\n\n\tx = a[r];\n\ti = p - 1;\n\n\tfor (j = p; j < ... |
CDSS_611166 | CDSS | /*A駅とB駅を結ぶ鉄道があり、運賃はX円です。また、B駅とC駅を結ぶバスがあり、運賃はY円です。
joisinoお姉ちゃんは,A駅からB駅まで鉄道で移動し,B駅からC駅までバスで移動すると、
バスの運賃が半額になる特別券を手に入れました。この特別券を用いたとき、A駅から
C駅まで移動するのにいくらかかるか求めてください。*/
#include <stdio.h>
int main(void){
int trainfee,basfee,allfee;
scanf("%d %d",&trainfee,&basfee);
allfee = trainfee + basfee/2;
printf("%d",allfe... | 128 | memory_bytes | {'s_id': 's168384637', 'p_id': 'p03219', 'u_id': 'u234365185', 'date': '1556342644', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '609'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n/*A駅とB駅を結ぶ鉄道があり、運賃はX円です。また、B駅とC駅を結ぶバスがあり、運賃はY円です。\njoisinoお姉ちゃんは,A駅からB駅まで鉄道で移動し,B駅からC駅までバスで移動すると、\nバスの運賃が半額になる特別券を手に入れました。この特別券を用いたとき、... |
CDSS_142695 | CDSS | #include <stdio.h>
#define N 3
#define MAX 8
typedef struct{
int A[N][N];
}Pazzle;
int d_x[4]={0,1,0,-1};
int d_y[4]={1,0,-1,0};
void swap(int *,int *);
int check(Pazzle);
int dfs(int ,int ,int ,int ,Pazzle );
int main(void){
Pazzle P,t_P;
int i,j,ans;
int x0,y0;
for(i=0;i<N;i++){
for(j=... | 2,104 | memory_bytes | {'s_id': 's450675219', 'p_id': 'p02245', 'u_id': 'u794550042', 'date': '1549178421', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '820', 'memory': '2104', 'code_size': '1537'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 3\n#define MAX 8\ntypedef struct{\n int A[N][N];\n\n}Pazzle;\nint d_x[4]={0,1,0,-1};\nint d_y[4]={1,0... |
CDSS_373881 | CDSS | #include <stdio.h>
#define PRIME_MAX 1000000
int getprimes(int list[], int top){
int i, j;
int index = 0;
char tmp[PRIME_MAX];
for(i=0;i<top;i++) {
tmp[i] = 1;
}
tmp[0] = tmp[1] = 0;
for(i=2;i<top;i++) {
if(tmp[i] == 1) {
/* 素数 */
list[index] ... | 1,684 | memory_bytes | {'s_id': 's942356403', 'p_id': 'p02470', 'u_id': 'u703161091', 'date': '1399722769', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '1684', 'code_size': '2058'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 PRIME_MAX 1000000\nint getprimes(int list[], int top){\n int i, j;\n int index = 0;\n char tmp... |
CDSS_181794 | CDSS | #include <stdio.h>
#define N 100005
#define s 100
typedef struct{
char name[s];
int time;
}Q;
Q A[N+1];
int h, t;
void ENQ(Q J){
if( N==t ) t = 0;
A[t] = J;
t++;
}
Q DEQ(void){
if( h==N ) h = 0;
return A[h++];
}
int main(){
int n, q, i, T=0;
Q u;
scanf("%d %d", &n, &q);
for(i=0;i<n;i++){
... | 10,756 | memory_bytes | {'s_id': 's279080062', 'p_id': 'p02264', 'u_id': 'u548515518', 'date': '1493261085', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '10756', '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#define N 100005\n#define s 100\n\ntypedef struct{\n char name[s];\n int time;\n}Q;\n\nQ A[N+1];\nint h, t;\n\nv... |
CDSS_404639 | CDSS | #include <stdio.h>
#define swap(type, x, y) do{ type t = x; x = y; y = t; }while(0)
void quick(int array[], int left, int right){
int pl = left, pr = right, x = array[(left+right)/2];
do{
while(array[pl] < x) pl++;
while(array[pr] > x) pr--;
if(pl <= pr){
swap(int, array[pl], array[pr]);
... | 6,424 | memory_bytes | {'s_id': 's429175532', 'p_id': 'p02642', 'u_id': 'u792720861', 'date': '1592188128', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '829', 'memory': '6424', 'code_size': '1355'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 swap(type, x, y) do{ type t = x; x = y; y = t; }while(0)\n\nvoid quick(int array[], int left, int right){... |
CDSS_290967 | CDSS | #include<stdio.h>
int main(void){
int a=0;
int W,H,x,y,
r=0;
scanf("%d %d %d %d %d",&W,&H,&x,&y,&r);
if(x-r>=0&&x+r<=W){
if(y-r>=0&&y+r<=H){
a=1;
}
}
else{
a=0;
}
if(a==1){
printf("Yes\n");
}
else if(a==0){
printf("No\n");
}
return 0;
} | 584 | memory_bytes | {'s_id': 's862117206', 'p_id': 'p02394', 'u_id': 'u416160908', 'date': '1481266363', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '584', '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(void){ \n\nint a=0; \n\nint W,H,x,y, \n\nr=0; \n\nscanf(\"%d %d %d %d %d\",&W,&H,&x,&y,&r); \n\nif(... |
CDSS_178071 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
int S[100];
int top;
void initialize(){
top = 0;
}
void push(int x){
top++;
S[top] = x;
}
int pop(){
top--;
return S[top+1];
}
int main(){
int x,a,b;
char s[100];
initialize();
while( scanf("%s", s) != EOF ){
if ( s[0] == '+' ){
... | 548 | memory_bytes | {'s_id': 's486049104', 'p_id': 'p02263', 'u_id': 'u940187630', 'date': '1493269047', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '548', '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>\n#include<stdlib.h>\n#include<string.h>\n\nint S[100];\nint top;\n\nvoid initialize(){\n top = 0;\n }\n\nvoid push... |
CDSS_371158 | CDSS | #include <stdio.h>
#include <string.h>
int main(void) {
int n;
char str1[101], str2[101];
int hanako = 0, tarou = 0;
scanf("%d", &n);
while (n--) {
scanf("%s %s", str1, str2);
if (strcmp(str1, str2) > 0) tarou += 3;
else if (strcmp(str1, str2) < 0) hanako += 3;
else {
tarou++;
hanako++;
}
... | 604 | memory_bytes | {'s_id': 's135875020', 'p_id': 'p02421', 'u_id': 'u933965697', 'date': '1481205904', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '604', 'code_size': '373'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\tint n;\n\tchar str1[101], str2[101];\n\tint hanako = 0, tarou = 0;\n\t\... |
CDSS_267337 | CDSS | #include<stdio.h>
int main(void)
{
int a,b;
scanf("%d %d",&a,&b);
if(a<b){
printf("a < b\n");
}else if(a>b){
printf("a > b\n");
}else if(a==b){
printf("a == b\n");
}
return 0;
} | 580 | memory_bytes | {'s_id': 's284297457', 'p_id': 'p02391', 'u_id': 'u453616341', 'date': '1461285946', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', '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(void)\n{\n\tint a,b;\n\tscanf(\"%d %d\",&a,&b);\n\tif(a<b){\n\t\tprintf(\"a < b\\n\");\n\t}else if(a>b){\n... |
CDSS_227676 | CDSS | #include<stdio.h>
#define NIL (2e9+1)
#define N 2000
typedef struct{
int l,r,p;
int key;
}E;
E A[N];
int left(int i,int H){
if(2 * i > H){
return NIL;
}
return A[2 * i].key;
}
int right(int i,int H){
if(2 * i + 1 > H){
return NIL;
}
return A[2 * i + 1].key;
}
int parent(int i){
if(i == 1)... | 2,108 | memory_bytes | {'s_id': 's065911365', 'p_id': 'p02287', 'u_id': 'u592727794', 'date': '1547703282', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '871'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 NIL (2e9+1)\n#define N 2000\n\ntypedef struct{\n int l,r,p;\n int key;\n}E;\n\nE A[N];\n\nint left(int i,... |
CDSS_338115 | CDSS | #include<stdio.h>
int main(){
int n,i;
scanf("%d",&n);
for(i=1;i<=n;i++) {
if(i%3==0)printf(" %d",i);
else if(i%10==3)printf(" %d",i);
else if(i/10%10==3)printf(" %d",i);
else if(i/100%10==3)printf(" %d",i);
else if(i/1000%10==3)printf(" %d",i);
}
printf("\n");
return 0;
} | 600 | memory_bytes | {'s_id': 's224481702', 'p_id': 'p02406', 'u_id': 'u932608950', 'date': '1434644424', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '311'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int n,i;\n scanf(\"%d\",&n);\n for(i=1;i<=n;i++) { \n if(i%3==0)printf(\" %d\",i); \n e... |
CDSS_248672 | CDSS | #include<stdio.h>
main(){
int x;
scanf("%d",&x);
printf("%d\n",x*x*x);
return 0;
}
| 2,120 | memory_bytes | {'s_id': 's675298425', 'p_id': 'p02388', 'u_id': 'u502457308', 'date': '1582125815', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2120', 'code_size': '92'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nmain(){\n int x;\n scanf(\"%d\",&x);\n printf(\"%d\\n\",x*x*x);\n return 0;\n}\n\n\nPredict its memory footprin... |
CDSS_429568 | CDSS | #include <stdio.h>
int main()
{
int s, w;
scanf("%d%d", &s, &w);
if (s > w)
printf("safe");
else
printf("unsafe");
return 0;
} | 1,688 | memory_bytes | {'s_id': 's415902628', 'p_id': 'p02699', 'u_id': 'u777945851', 'date': '1599231377', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1688', 'code_size': '165'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main()\n{\n int s, w;\n\n scanf(\"%d%d\", &s, &w);\n if (s > w)\n printf(\"safe\");\n els... |
CDSS_714307 | CDSS | # include"stdio.h"
# include"stdlib.h"
int main(){
int n,m;
scanf("%d %d",&n,&m);
int s[n][2],c[m][2],dis,min=3*1.0e+8,memo[n];
for(int i=0;i<n;i++)
scanf("%d %d",&s[i][0],&s[i][1]);
for(int i=0;i<m;i++)
scanf("%d %d",&c[i][0],&c[i][1]);
for(int i=0;i<n;i++){
for(int j=0... | 1,708 | memory_bytes | {'s_id': 's711653935', 'p_id': 'p03774', 'u_id': 'u791116888', 'date': '1592679765', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '7', 'memory': '1708', '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# include\"stdio.h\"\n# include\"stdlib.h\"\nint main(){\n int n,m;\n scanf(\"%d %d\",&n,&m);\n int s[n][2],c[m][2],dis,min=3... |
CDSS_424612 | CDSS | #include<stdio.h>
int main(){
int a,b,i,n,m,h[100010],c[100010]={};
scanf("%d %d",&n,&m);
for(i=0;i<n;i++)scanf("%d",&h[i+1]);
while(m--){
scanf("%d %d",&a,&b);
if(h[a]==h[b])c[b]=c[a]=1;
if(h[a]>h[b])c[b]=1;
if(h[a]<h[b])c[a]=1;
}
//for(i=0;i<n;i++)printf("%d\n",c[i+1]);
for(i=a=0;i<n;i++... | 2,468 | memory_bytes | {'s_id': 's978440767', 'p_id': 'p02689', 'u_id': 'u121922047', 'date': '1588554818', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '37', 'memory': '2468', 'code_size': '368'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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,i,n,m,h[100010],c[100010]={};\n scanf(\"%d %d\",&n,&m);\n for(i=0;i<n;i++)scanf(\"%d\",&h[... |
CDSS_97006 | CDSS | #include<stdio.h>
int main(void){
for(;;){
int N,i,j,k,A=0,B=0;
scanf("%d",&N);
if(N==0){
break;
}
int a[N],b[N];
for(i=0;i<N;i++){
scanf("%d%d",&a[i],&b[i]);
}
for(i=0;i<N;i++){
if(a[i]>b[i]){
A=A+a[... | 676 | memory_bytes | {'s_id': 's476030862', 'p_id': 'p00423', 'u_id': 'u171431006', 'date': '1400560660', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '676', 'code_size': '604'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n for(;;){\n int N,i,j,k,A=0,B=0;\n scanf(\"%d\",&N);\n if(N==0){\n ... |
CDSS_541716 | CDSS | #include <stdio.h>
int max(int a,int b){
if(a > b){
return a;
}
return b;
}
int main(void){
int A, B, C;
scanf("%d%d%d", &A, &B, &C);
printf("%d\n", max(C-(A-B), 0));
return 0;
} | 128 | memory_bytes | {'s_id': 's494053516', 'p_id': 'p02951', 'u_id': 'u812973725', 'date': '1564966915', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '201'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint max(int a,int b){\n if(a > b){\n return a;\n }\n return b;\n}\n\nint main(void){\n int A, B, C;\n sc... |
CDSS_188350 | CDSS | #include <stdio.h>
#define n 5
int main() {
int includeNumber[10000] = { 0 };
int searchNumber[500] = { 0 };
int needIN, needSN;
int count;
int i, j;
count = 0;
scanf("%d", &needIN);
for (i = 0; i < needIN; i++) {
scanf("%d", &includeNumber[i]);
}
scanf("%d", &needSN);
for (i = 0; i < needSN; i++) {... | 648 | memory_bytes | {'s_id': 's430031043', 'p_id': 'p02267', 'u_id': 'u253923767', 'date': '1480238537', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '648', 'code_size': '558'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 5\n\nint main() {\n int includeNumber[10000] = { 0 };\n\tint searchNumber[500] = { 0 };\n\tint need... |
CDSS_288158 | CDSS | #include<stdio.h>
int main(){
long long a,b,c,min,temp;
long long ar[3];
for(int i=0;i<3;i++){
scanf("%lli",&ar[i]);
}
min = ar[0];
for(int i=0;i<3;i++){
if(ar[i]<min)
min = ar[i];
}
for(int i=0;i<3;i++){
if(ar[i]==min){
temp = ar[0];
ar[0] = ar[i];
ar[i] = temp;
brea... | 2,060 | memory_bytes | {'s_id': 's915012262', 'p_id': 'p02393', 'u_id': 'u463426040', 'date': '1582771659', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2060', 'code_size': '465'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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(){\nlong long a,b,c,min,temp;\nlong long ar[3];\nfor(int i=0;i<3;i++){\n scanf(\"%lli\",&ar[i]);\n}\nmi... |
CDSS_566813 | CDSS | #include<stdio.h>
int main(){
int a,p;
int pi;
scanf("%d %d",&a,&p);
if((a>=0) && (p<=100)){
p = 3*a+p;
pi = p/2;
}
printf("%d\n",pi);
return 0;
}
| 128 | memory_bytes | {'s_id': 's277532955', 'p_id': 'p03029', 'u_id': 'u067227844', 'date': '1558921023', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '157'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\nint a,p;\nint pi;\nscanf(\"%d %d\",&a,&p);\n\n\nif((a>=0) && (p<=100)){\n\n\n\np = 3*a+p;\n\npi = p/... |
CDSS_490383 | CDSS | #include <stdio.h>
#include <string.h>
int main ()
{
int a,b,c,d;
char s[107];
char t[107];
char u[107];
scanf ("%s",s);
scanf ("%s",t);
scanf ("%d%d",&a,&b);
scanf ("%s",u);
if (strcmp(u,s)==0)
{
printf ("%d %d\n",a-1,b);
}
else
{
printf ("%d %d\n",a,b-1);
}
return 0;
} | 128 | memory_bytes | {'s_id': 's057396816', 'p_id': 'p02777', 'u_id': 'u078641435', 'date': '1581278884', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '291'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\nint main ()\n{\n\tint a,b,c,d;\n\tchar s[107];\n\tchar t[107];\n\tchar u[107];\n\tscanf (\"%s... |
CDSS_302521 | CDSS | #include <stdio.h>
int main()
{
int x[3000], y[3000];
int a, b, i;
int p = 0;
for(i=0;i<3000;i++){
scanf("%d\n", &x[i]);
scanf("%d\n", &y[i]);
a = x[i];
b = y[i];
if(a==0 && b==0){
break;
}
p++;
}
for(i=0;i<p;i++){
a = x[i];
b = y[i];
if(a<b || a==b){
printf("%d %d\n", a, b);
}else ... | 2,100 | memory_bytes | {'s_id': 's262214569', 'p_id': 'p02397', 'u_id': 'u978190838', 'date': '1520620381', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2100', '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\nint main()\n{\n\tint x[3000], y[3000];\n\tint a, b, i;\n\tint p = 0;\n\n\tfor(i=0;i<3000;i++){\n\t\tscanf(\"%d\\... |
CDSS_711929 | CDSS | #include<stdio.h>
int main(){
int a,b,c;
scanf("%d%d%d",&a,&b,&c);
if(a+c==2*b)
puts("YES");
else
puts("NO");
return 0;
} | 1,604 | memory_bytes | {'s_id': 's206662237', 'p_id': 'p03759', 'u_id': 'u917851778', 'date': '1594087463', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1604', '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(){\n int a,b,c;\n scanf(\"%d%d%d\",&a,&b,&c);\n if(a+c==2*b)\n puts(\"YES\");\n else\n puts(\"NO... |
CDSS_732688 | CDSS |
#include <stdio.h>
#include <string.h>
static int output[100][100];
static void nurinuri(int a, int x, int y, int W, int H)
{
int i, j;
switch (a) {
case 1:
// ai=1 のときは長方形の x<xi をみたす領域
for (i = 0; i < H; i++) {
for (j = 0; j < x; j++) {
output[i][j] = -1;
}
}
break;
case 2:
// ai=2 のときは長方形の... | 256 | memory_bytes | {'s_id': 's611865244', 'p_id': 'p03944', 'u_id': 'u649687879', 'date': '1504554225', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '256', 'code_size': '1164'} | [
{
"content": "Your task is to predict the memory 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#include <string.h>\n\nstatic int output[100][100];\n\nstatic void nurinuri(int a, int x, int y, int W, int H)\n... |
CDSS_463662 | CDSS | #include <stdio.h>
#include<stdlib.h>
#include<string.h>
#define rep(i,n) for(int i=0;i<n;i++)
int main()
{
int a, b, c;
scanf("%d%d%d", &a, &b, &c);
int temp = 0;
temp = a;
a = b;
b = temp;
int tnp = 0;
tnp = a;
a = c;
c = tnp;
printf("%d %d %d", a, b, c);
}
| 128 | memory_bytes | {'s_id': 's804496253', 'p_id': 'p02717', 'u_id': 'u122441571', 'date': '1586048601', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '275'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include<stdlib.h>\n#include<string.h>\n\n#define rep(i,n) for(int i=0;i<n;i++)\n\nint main()\n{\n\tint a, b, c;\n... |
CDSS_737143 | CDSS | #include<stdio.h>
int main()
{
int a,b,h,area;
scanf("%d%d%d",&a,&b,&h);
area=0.5*(a+b)*h;
printf("%d\n",area);
return 0;
} | 128 | memory_bytes | {'s_id': 's468552284', 'p_id': 'p03997', 'u_id': 'u863370423', 'date': '1571727523', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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 int a,b,h,area;\n scanf(\"%d%d%d\",&a,&b,&h);\n area=0.5*(a+b)*h;\n printf(\"%d\\n\",ar... |
CDSS_408519 | CDSS | #include<stdio.h>
#define MOD 1000000000000000000
int main()
{
int N;
scanf("%d",&N);
long A[N],temp=1,temp2;
int flag=0;
for(int i=0;i<N;i++){
scanf("%ld",&A[i]);
if(A[i]==0){
flag=1;
}
}
if(flag==1){
temp=0;
}else{
for(int i=0;i<N;i++){
if(temp > MOD || (A[i]>MOD/te... | 2,472 | memory_bytes | {'s_id': 's216269148', 'p_id': 'p02658', 'u_id': 'u959524814', 'date': '1591479239', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '24', 'memory': '2472', 'code_size': '418'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 MOD 1000000000000000000\n\nint main()\n{\n int N;\n scanf(\"%d\",&N);\n long A[N],temp=1,temp2;\n int f... |
CDSS_352390 | CDSS | #include <stdio.h>
int main() {
int m, f, r, sum;
while(1){
scanf("%d %d %d", &m, &f, &r);
if ((m == -1) && (f == -1) && (r == -1))
break;
sum = m + f;
if ((m == -1) || (f == -1))
printf("F\n");
else if (sum >= 80)
printf("A\n");
else if ((sum >= 65) && (sum < 80))
... | 584 | memory_bytes | {'s_id': 's783482600', 'p_id': 'p02411', 'u_id': 'u622982727', 'date': '1471763334', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '584', 'code_size': '563'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main() {\n\n int m, f, r, sum;\n\n while(1){\n scanf(\"%d %d %d\", &m, &f, &r);\n\n if ((m == -1) &&... |
CDSS_47986 | CDSS | #include <stdio.h>
int main(void){
int i,a,b,c,d,e;
while(scanf("%d", &a)!= EOF) {
b=600/a;
int sum=0;
for(i=1;i<b;i++){
e=i*a;
d=e*e;
c=a*d;
sum+=c;
}
printf("%d\n",sum);
if(a == 0) {
break;
}
}
return 0;
}
| 2,036 | memory_bytes | {'s_id': 's884498393', 'p_id': 'p00014', 'u_id': 'u900764118', 'date': '1526187545', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2036', '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>\nint main(void){\n \nint i,a,b,c,d,e;\n while(scanf(\"%d\", &a)!= EOF) {\n b=600/a;\n int sum=0;\n ... |
CDSS_407765 | CDSS | #include <stdio.h>
int main(void){
int n;
long long a[100005];
scanf("%d", &n);
for(int i=0;i<n;i++){
scanf("%lld", &a[i]);
}
int zero = 0;
for(int i=0;i<n;i++) if(a[i]==0) zero++;
if(zero>0){
printf("0\n");
return 0;
}
long long prod = 1;
for(int i=0;i<n;i++){
if(a[i] <= 10... | 2,468 | memory_bytes | {'s_id': 's154953843', 'p_id': 'p02658', 'u_id': 'u210041761', 'date': '1597897125', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '31', 'memory': '2468', 'code_size': '463'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n int n;\n long long a[100005];\n \n scanf(\"%d\", &n);\n for(int i=0;i<n;i++){\n scanf(... |
CDSS_276066 | CDSS | #include<stdio.h>
int main(){
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
if(a<b && b<c){
printf("Yes\n");
}else{
printf("No\n");
}
return 0;
} | 580 | memory_bytes | {'s_id': 's816841380', 'p_id': 'p02392', 'u_id': 'u460995938', 'date': '1460681492', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', 'code_size': '157'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n\t\n\tint a,b,c;\n\t\n\tscanf(\"%d %d %d\",&a,&b,&c);\n\t\n\tif(a<b && b<c){\n\t\tprintf(\"Yes\\n\")... |
CDSS_346151 | CDSS | #include <stdio.h>
int main(void){
int n,i;
scanf("%d\n",&n);
int s[14]={0},h[14]={0},c[14]={0},d[14]={0};
char mark;
for(i=0; i<n; i++){
int num;
scanf("%c %d\n",&mark,&num);//???????????????????????¨?????????????????????
switch(mark){
case 'S'://"???7"??????s[7... | 600 | memory_bytes | {'s_id': 's362687167', 'p_id': 'p02408', 'u_id': 'u979795132', 'date': '1502514317', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '1170'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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,i;\n scanf(\"%d\\n\",&n);\n int s[14]={0},h[14]={0},c[14]={0},d[14]={0};\n c... |
CDSS_739172 | CDSS | #include<stdio.h>
int main(void){
int n,k,x,y;
scanf("%d",&n);
scanf("%d",&k);
scanf("%d",&x);
scanf("%d",&y);
if(n>k) printf("%d\n",(n-k)*y+k*x);
else printf("%d\n",n*x);
return 0;
}
| 128 | memory_bytes | {'s_id': 's164376153', 'p_id': 'p04011', 'u_id': 'u992736202', 'date': '1550897981', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '200'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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,k,x,y;\n scanf(\"%d\",&n);\n scanf(\"%d\",&k);\n scanf(\"%d\",&x);\n scanf(\"%d\",&y);... |
CDSS_670180 | CDSS | #include<stdio.h>
#include<string.h>
int main(void){
int i,j;
char s[101],t[101];
char b;
int ls,lt;
int x=0;
scanf("%s",s);
scanf("%s",t);
ls=strlen(s);
lt=strlen(t);
for(i=0;i<ls;i++){
for(j=i;j<ls;j++){
if(s[i]>s[j]){
b=s[i];
s[i]=s[j];
s[j]=b;
}
... | 1,648 | memory_bytes | {'s_id': 's838293394', 'p_id': 'p03486', 'u_id': 'u159595694', 'date': '1599937264', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1648', 'code_size': '713'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\nint main(void){\n int i,j;\n char s[101],t[101];\n char b;\n int ls,lt;\n int x=0;\n \n ... |
CDSS_646774 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<stdint.h>
#include<inttypes.h>
typedef int32_t i32;
typedef int64_t i64;
#define ALLOC(size,type) ((type*)calloc((size),sizeof(type)))
typedef struct node {
i64 val;
i32 size;
struct node *l, *r;
} node;
uint32_t xor(void) {
static uint32_t y = 2463534242;
y =... | 9,600 | memory_bytes | {'s_id': 's809916488', 'p_id': 'p03363', 'u_id': 'u425248533', 'date': '1563602515', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '416', 'memory': '9600', 'code_size': '1735'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\ntypedef int32_t i32;\ntypedef int64_t i64;\n\n#defi... |
CDSS_237654 | CDSS | #include <stdio.h>
struct Dice {
int face[6];
};
int main(void)
{
struct Dice dice;
char comm[101];
int i, t;
for (i = 0; i < 6; i++) {
scanf("%d", &dice.face[i]);
}
scanf("%s", comm);
for (i = 0; comm[i] != '\n' && comm[i] != '\0'; i++) {
switch (comm[i]) {
case 'N':
t = dice.face[0];
dice.face[... | 2,104 | memory_bytes | {'s_id': 's180646894', 'p_id': 'p02383', 'u_id': 'u139945906', 'date': '1522558624', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '988'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nstruct Dice {\n\tint face[6];\n};\n\nint main(void)\n{\n\tstruct Dice dice;\n\tchar comm[101];\n\tint i, t;\n\n\... |
CDSS_132736 | CDSS | #define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
void LCS(char *x, char *y){
int m = strlen(x+1);
int n = strlen(y+1);
int i, j, **c;
c = malloc(sizeof(int)*(m+10000));
for (i = 0; i <= m; i++)
c[i] = malloc(sizeof(int)*(n+1));
for (i = 0; i <= m; i++){
for (j = 0; j... | 4,620 | memory_bytes | {'s_id': 's304802841', 'p_id': 'p02235', 'u_id': 'u725029766', 'date': '1404434568', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '50', 'memory': '4620', 'code_size': '812'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#define _CRT_SECURE_NO_WARNINGS\n#include<stdio.h>\n#include<stdlib.h>\n#include<string.h>\n\nvoid LCS(char *x, char *y){\n\tint m = s... |
CDSS_216768 | CDSS | #include<stdio.h>
#define M 100000
#define N -1
struct A{ int parent, left, right;};
struct A B[M];
int C[M];
int get(int z){
int x=0;
while(B[z].parent!=N){
z=B[z].parent;
x++;
}
return x;
}
void pr(int z){
int i, c;
printf("node %d: ", z);
printf("parent = %d, ", B... | 3,348 | memory_bytes | {'s_id': 's793157047', 'p_id': 'p02279', 'u_id': 'u044004600', 'date': '1578845836', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '30', 'memory': '3348', 'code_size': '1257'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 M 100000\n#define N -1\n\nstruct A{ int parent, left, right;};\n\nstruct A B[M];\n\nint C[M];\n\nint get(i... |
CDSS_485631 | CDSS | #include <stdio.h>
int main (void){
int N;
scanf("%d",&N);
int X[N];
int ans=10000000;
int A=0;
for(int i=0;i<N;i++){
scanf("%d",&X[i]);
}
for(int P=1;P<101;P++){
for(int i=0;i<N;i++){
A+=(X[i]-P)*(X[i]-P);
}
if(ans>A){
ans=A;
}
A=0;
}
printf("%d\n",ans);
retur... | 128 | memory_bytes | {'s_id': 's892856246', 'p_id': 'p02767', 'u_id': 'u779453732', 'date': '1587096253', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '327'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main (void){\n int N;\n scanf(\"%d\",&N);\n int X[N];\n int ans=10000000;\n int A=0;\n for(int i=0;i<N... |
CDSS_303504 | CDSS | #include<stdio.h>
int main(){
int x,y,z;
while(1){
scanf("%d %d\n",&x,&y);
if(x==0&&y==0){
break;
}
if(x<y){
printf("%d %d\n",x,y);
}else{
z=x;
x=y;
y=z;
printf("%d %d\n",x,y);
}
}
ret... | 2,024 | memory_bytes | {'s_id': 's333592085', 'p_id': 'p02397', 'u_id': 'u306520853', 'date': '1588233877', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2024', 'code_size': '329'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int x,y,z;\n while(1){\n scanf(\"%d %d\\n\",&x,&y);\n if(x==0&&y==0){\n ... |
CDSS_244142 | CDSS | #include <stdio.h>
int main(void)
{
int x;
scanf("%d",&x);
printf("%d\n",x*x*x);
return 0;
} | 596 | memory_bytes | {'s_id': 's594616769', 'p_id': 'p02388', 'u_id': 'u817324173', 'date': '1480139770', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', '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{\n int x;\n scanf(\"%d\",&x);\n printf(\"%d\\n\",x*x*x);\n return 0;\n}\nPredict its ... |
CDSS_687786 | CDSS | #include<stdio.h>
#include<math.h>
int main()
{
int a[100050]={0};
int b[100050]={0};
int n;
scanf("%d",&n);
for(int i=0;i<n;i++)
scanf("%d",&a[i]);
int t=0;
for(int i=0;i<n;i++)
{ b[a[i]]++;
}
for(int j=0;j<n;j++)
{
b[a[j]-1]++;
b[a[j]+1]++;
}
int max=b[a[0]];
for(int i=0;i<n;i++)
{
if(b[a[i]... | 896 | memory_bytes | {'s_id': 's569850975', 'p_id': 'p03613', 'u_id': 'u018679195', 'date': '1532911757', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '11', 'memory': '896', 'code_size': '379'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<math.h>\nint main()\n{\n\tint a[100050]={0};\t\n\tint b[100050]={0};\n\tint n;\n\tscanf(\"%d\",&n);\n\tfor... |
CDSS_604301 | CDSS | #include<stdio.h>
long double arr[302][302][302]={0};
long long n;
long double fnc(long long a,long long b,long long c)
{ int p=a+b+c;
int q=b+c;
arr[0][0][0]=0;
for(long long k=0;k<=c;k++)
{
for(long long j=0;j<=q;j++)
{
for(long long i=0;i<=p;i++)
{
if(i+j+k==0)
continue;
// else if(i==1... | 430,208 | memory_bytes | {'s_id': 's846700235', 'p_id': 'p03169', 'u_id': 'u722516433', 'date': '1573716442', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '836', 'memory': '430208', 'code_size': '1042'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\nlong double arr[302][302][302]={0};\nlong long n;\nlong double fnc(long long a,long long b,long long c)\n{\tint... |
CDSS_630629 | CDSS | #include<stdio.h>
#include<stdlib.h>
int main()
{
int a[3],max,min;
scanf("%d%d%d", &a[0], &a[1], &a[2]);
max = a[0];
for (int i = 1; i < 3; i++)
{
if (max < a[i])
max = a[i];
}
min = a[0];
for (int i = 1; i < 3; i++)
{
if (min > a[i])
min = a[i];
}
printf("%d", max - min);
return 0;
} | 128 | memory_bytes | {'s_id': 's485434477', 'p_id': 'p03292', 'u_id': 'u232429509', 'date': '1532223638', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '309'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n\nint main()\n{\n\tint a[3],max,min;\n\tscanf(\"%d%d%d\", &a[0], &a[1], &a[2]);\n\tmax = a[0];\... |
CDSS_496857 | CDSS | #include <stdio.h>
int main()
{
long n,m;
scanf("%ld %ld",&n,&m);
if(n==m)
{
printf("Yes");
}
else
{
printf("No");
}
return 0;
} | 128 | memory_bytes | {'s_id': 's067985152', 'p_id': 'p02789', 'u_id': 'u851356296', 'date': '1580079182', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '195'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n int main()\n {\n long n,m;\n scanf(\"%ld %ld\",&n,&m);\n if(n==m)\n {\n printf(\"Yes\");\... |
CDSS_24168 | CDSS | #include <stdio.h>
#include <stdlib.h>
int height_comp (const void *a, const void *b) {
return *(int*)b - *(int*)a;
}
int main () {
char buff[1024];
int heights[10];
for (int i = 0; i < 10; i++) {
if (fgets (buff, 1024, stdin)) {
sscanf (buff, "%d", heights + i);
}
}
qsort (heights, 10, sizeof(heights[... | 2,028 | memory_bytes | {'s_id': 's806896960', 'p_id': 'p00001', 'u_id': 'u078554076', 'date': '1517281621', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2028', 'code_size': '419'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\nint height_comp (const void *a, const void *b) {\n\treturn *(int*)b - *(int*)a;\n}\n\nint m... |
CDSS_547120 | CDSS | #include<stdio.h>
int main(void)
{
int a;
scanf("%d",&a);
printf("%d\n",3*a*a);
return 0;
} | 128 | memory_bytes | {'s_id': 's315364838', 'p_id': 'p02969', 'u_id': 'u441823651', 'date': '1563674200', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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>\n\nint main(void)\n{ \n int a;\n scanf(\"%d\",&a);\n printf(\"%d\\n\",3*a*a);\n return 0;\n}\nPredict its memory fo... |
CDSS_328001 | CDSS | #include<stdio.h>
int main()
{
int n;
int iCount;
long long int iSum = 0;
int iMax = -1000000;
int iMin = 1000000;
int iNum;
scanf("%d",&n);
for (iCount =0;iCount<n;iCount++)
{
scanf("%d",&iNum);
if (-1000000 > iNum || iNum > 1000000)
{
continue;
}
if (iMax<iNum)
{
iMax = iNum;
}
if... | 2,100 | memory_bytes | {'s_id': 's259293416', 'p_id': 'p02402', 'u_id': 'u943612800', 'date': '1589419613', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2100', 'code_size': '429'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\n\nint main()\n{\n\tint n;\n\tint iCount;\n\tlong long int iSum = 0;\n\tint iMax = -1000000;\n\tint iMin = 1000000... |
CDSS_212379 | CDSS | #include <stdio.h>
#define N 100000
typedef struct{
char type;
int data;
}A;
int flag=0;
int prtition(A *,int,int);
void my_q_sort(A *,int,int);
int main(){
int n,i,j,now;
A ain[N],aout[N];
//int check[1000000000]={0};
//char check_c[1000000000][4]={0};
scanf("%d\n",&n);
for(i=0; i<n; i++){
s... | 3,304 | memory_bytes | {'s_id': 's630939109', 'p_id': 'p02277', 'u_id': 'u445491299', 'date': '1545371051', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '3304', 'code_size': '1582'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\n#define N 100000\n\ntypedef struct{\n char type;\n int data;\n}A;\n\nint flag=0;\n\nint prtition(A *,int,int);... |
CDSS_428313 | CDSS | #include <stdio.h>
#include <stdlib.h>
int A[10], Req[50][4];
int N, M, Q;
int score(int idx) {
int i, v, max = 0;
if (idx == N) {
for (i = 0; i < Q; i++) {
if (A[Req[i][1] - 1] - A[Req[i][0] - 1] == Req[i][2]) max += Req[i][3];
}
return max;
}
v = idx ? A[idx - 1] ... | 1,716 | memory_bytes | {'s_id': 's494400957', 'p_id': 'p02695', 'u_id': 'u020173959', 'date': '1588539787', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '21', 'memory': '1716', 'code_size': '689'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 A[10], Req[50][4];\nint N, M, Q;\n\nint score(int idx) {\n int i, v, max = 0;\n i... |
CDSS_304503 | CDSS | #include<stdio.h>
int main(void){
int a,b,c,i,j,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;
} | 596 | memory_bytes | {'s_id': 's167617390', 'p_id': 'p02398', 'u_id': 'u789887850', 'date': '1439956451', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '168'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void){\n\n\tint a,b,c,i,j,k=0;\n\t\n\t\tscanf(\"%d %d %d\",&a,&b,&c);\n\t\t\tfor(i=a;i<=b;i++){\n\t\t\t\... |
CDSS_646553 | CDSS | #include <stdio.h>
#include <math.h>
#include <string.h>
#include <stdlib.h>
#define rad M_PI/3
#define N 2147483647
#define Max 500000
#define NTL -1
#define min(a,b) ((a>b)?b:a)
#define max(a,b) ((a<b)?b:a)
int main(void)
{
int h,w,i,j,check=1;
scanf("%d%d",&h,&w);
char color[52][52];
for(i=1;i<h+2;i++){... | 128 | memory_bytes | {'s_id': 's993892518', 'p_id': 'p03361', 'u_id': 'u559645647', 'date': '1525572441', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '847'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n#include <string.h>\n#include <stdlib.h>\n#define rad M_PI/3\n#define N 2147483647\n#define Max... |
CDSS_138799 | CDSS | #include<stdio.h>
static const int MAX = 500;
static const int INFTY = (1<<21);
#define NIL -1
int p[100];
int key[100];
int n;
main(){
int i, j, e, v, sum;
int u;
int M[100][100];
int l[100];
scanf("%d", &n);
for ( i = 0; i< n; i++ ){
for ( j = 0; j < n; j++ ){
scanf("%d", &e);
... | 640 | memory_bytes | {'s_id': 's332681193', 'p_id': 'p02241', 'u_id': 'u879875975', 'date': '1406171036', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '640', 'code_size': '899'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nstatic const int MAX = 500;\nstatic const int INFTY = (1<<21);\n\n#define NIL -1\n\nint p[100];\n\nint key[100];\... |
CDSS_153766 | CDSS | #include<stdio.h>
int gcd(int ,int);
int main(){
int n1,n2;
scanf("%d %d",&n1,&n2);
if(n1 > n2){
printf("%d\n",gcd(n1,n2));
}else{
printf("%d\n",gcd(n2,n1));
}
return 0;
}
int gcd(int x,int y){
int r;
r = x % y;
while(r!=0){
x= y;
y = r;
r = x % y;
}
return y;
}
... | 2,104 | memory_bytes | {'s_id': 's112337734', 'p_id': 'p02256', 'u_id': 'u357121199', 'date': '1575951570', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '321'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 ,int);\n\nint main(){\n int n1,n2;\n \n scanf(\"%d %d\",&n1,&n2);\n \n if(n1 > n2){\n printf(... |
CDSS_177474 | CDSS | #include <stdio.h>
#include <stdlib.h>
int top, S[1000];
void push(int x){
S[++top] = x;
}
int pop(){
top--;
return S[top + 1];
}
int main(){
int a, b;
top = 0;
char s[100];
while (scanf("%s", s) != EOF){
if (s[0] == '+'){
a = pop();
b = pop();
push(a + b);
}
else if(s[0]=='-'){
b = pop();... | 548 | memory_bytes | {'s_id': 's472953824', 'p_id': 'p02263', 'u_id': 'u870968778', 'date': '1473065635', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '548', 'code_size': '498'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 top, S[1000];\n\nvoid push(int x){\n\tS[++top] = x;\n}\n\nint pop(){\n\ttop--;\n\tretur... |
CDSS_590822 | CDSS | #include <stdio.h>
int main(void){
int a,b,c;
scanf("%d %d %d", &a, &b, &c);
if(b>=a*c)printf("%d\n", c);
else printf("%d\n",b/a);
return 0;
} | 128 | memory_bytes | {'s_id': 's043146933', 'p_id': 'p03105', 'u_id': 'u089230684', 'date': '1587002649', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '147'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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;\n\tscanf(\"%d %d %d\", &a, &b, &c);\n\tif(b>=a*c)printf(\"%d\\n\", c);\n\telse print... |
CDSS_496401 | CDSS | #include <stdio.h>
//#include <string.h>
int main(void){
int n,m = 0;
scanf("%d %d", &n, &m);
if(n==m){
printf("Yes");
}
else
printf("No");
return 0;
}
| 1,732 | memory_bytes | {'s_id': 's535587647', 'p_id': 'p02789', 'u_id': 'u210041761', 'date': '1597257681', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '8', 'memory': '1732', '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>\n//#include <string.h>\n\nint main(void){\n int n,m = 0;\n scanf(\"%d %d\", &n, &m);\n \n\tif(n==m){\n prin... |
CDSS_258313 | CDSS | #include<stdio.h>
int main(void)
{
int a,b;
scanf("%d %d",&a,&b);
printf("%d %d\n",a*b,(a*2)+(b*2));
return 0;
}
| 2,048 | memory_bytes | {'s_id': 's718939473', 'p_id': 'p02389', 'u_id': 'u800433405', 'date': '1554431896', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2048', 'code_size': '117'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\n\tint a,b;\n\tscanf(\"%d %d\",&a,&b);\n\tprintf(\"%d %d\\n\",a*b,(a*2)+(b*2));\n\treturn 0;\n}\n... |
CDSS_430305 | CDSS | #include <stdio.h>
#include <string.h>
#include<stdbool.h>
#include<stdlib.h>
int sheep = 0;
int wolf = 0;
char str[200];
int main(void) {
fgets(str, sizeof(str), stdin);
sscanf(str, "%d %d", &sheep, &wolf);
if (sheep > wolf) {
printf("%s\n","safe");
}
else
{
printf("%s\n", "unsafe");
}
return f... | 1,680 | memory_bytes | {'s_id': 's581905433', 'p_id': 'p02699', 'u_id': 'u906293262', 'date': '1588119225', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '1680', 'code_size': '330'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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<stdbool.h>\n#include<stdlib.h>\n\nint sheep = 0;\n\nint wolf = 0;\n\nchar str[200];\... |
CDSS_519980 | CDSS | #include <stdio.h>
#include <math.h>
int main(void){
long long N,i,x,y,min;
scanf("%lld",&N);
min=N;
for(i=2;i<=sqrt(N);i++)
if(N%i==0){
x=i;
y=N/i;
if(min>x+y-2)
min=x+y-2;
}
if(min!=N)
printf("%lld",min);
else
... | 128 | memory_bytes | {'s_id': 's053232651', 'p_id': 'p02881', 'u_id': 'u501548892', 'date': '1572228779', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '12', 'memory': '128', 'code_size': '357'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 long long N,i,x,y,min;\n scanf(\"%lld\",&N);\n min=N;\n for(i=2... |
CDSS_509944 | CDSS | #include <stdio.h>
int main(){
int a,b,c;
scanf("%d %d %d", &a, &b, &c);
if(a+b+c >= 22){
printf("bust\n");
}
else{
printf("win\n");
}
} | 128 | memory_bytes | {'s_id': 's043836664', 'p_id': 'p02835', 'u_id': 'u692514846', 'date': '1575857086', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '177'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n int a,b,c;\n scanf(\"%d %d %d\", &a, &b, &c);\n if(a+b+c >= 22){\n printf(\"bust\\... |
CDSS_724352 | CDSS | #include <stdio.h>
int main() {
int k, s, cnt = 0;
scanf("%d%d", &k, &s);
for (int x = 0; x <= k; x++) {
for (int y = 0; y <= k; y++) {
int z = s - x - y;
if (0 <= z && z <= k) {
cnt++;
}
}
}
printf("%d\n", cnt);
return 0;
} | 128 | memory_bytes | {'s_id': 's687221288', 'p_id': 'p03835', 'u_id': 'u030504180', 'date': '1586987460', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '128', 'code_size': '247'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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, s, cnt = 0;\n\tscanf(\"%d%d\", &k, &s);\n\tfor (int x = 0; x <= k; x++) {\n\t\tfor (int y =... |
CDSS_725731 | CDSS | main(I,O,J,L,d){
scanf("%d%d%*d%d%d",&I,&O,&J,&L);
printf("%lld",(long long)O+I+J+L-(I&&J&&L?(d=I%2+J%2+L%2)>1?3-d:d:I%2+J%2+L%2));
} | 128 | memory_bytes | {'s_id': 's107483203', 'p_id': 'p03840', 'u_id': 'u095826906', 'date': '1528491026', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '135'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nmain(I,O,J,L,d){\n\tscanf(\"%d%d%*d%d%d\",&I,&O,&J,&L);\n\tprintf(\"%lld\",(long long)O+I+J+L-(I&&J&&L?(d=I%2+J%2+L%2)>1?3-d:d:I%2+J%2... |
CDSS_274339 | CDSS | int main(){
int a,b;
scanf("%d %d", &a,&b);
if(a > b){
printf("a > b\n");
}else if(a < b){
printf("a < b\n");
}else{
printf("a == b\n");
}
return 0;
}
| 2,128 | memory_bytes | {'s_id': 's677781054', 'p_id': 'p02391', 'u_id': 'u252060773', 'date': '1554829317', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2128', 'code_size': '151'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nint main(){\nint a,b;\nscanf(\"%d %d\", &a,&b);\nif(a > b){\nprintf(\"a > b\\n\");\n}else if(a < b){\nprintf(\"a < b\\n\");\n}else{\np... |
CDSS_225191 | CDSS | #include <stdio.h>
#include <stdlib.h>
typedef struct node{
int key;
struct node *p;
struct node *l;
struct node *r;
} Node;
typedef Node *NodePointer;
NodePointer root = NULL;
NodePointer createNode(){
NodePointer a = malloc(sizeof(Node));
a->l = NULL;
a->r = NULL;
a->p = NULL;
a->key = 0;
re... | 20,448 | memory_bytes | {'s_id': 's785953427', 'p_id': 'p02285', 'u_id': 'u899570143', 'date': '1533825516', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '290', 'memory': '20448', 'code_size': '2218'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 \ntypedef struct node{\n int key;\n struct node *p;\n struct node *l;\n struct node *r;\... |
CDSS_305437 | CDSS | #include <stdio.h>
int main (void){
int i,a,b,c,d=0 ;
scanf("%d",&a) ;
scanf("%d",&b) ;
scanf("%d",&c) ;
for( i=a;i<=b;i++){
if(c%i==0){
d++;
}}
printf("%d\n",d) ;
return 0 ;
} | 596 | memory_bytes | {'s_id': 's587538414', 'p_id': 'p02398', 'u_id': 'u508220591', 'date': '1479217869', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '183'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main (void){\nint i,a,b,c,d=0 ;\n\nscanf(\"%d\",&a) ;\n\nscanf(\"%d\",&b) ;\n\nscanf(\"%d\",&c) ;\nfor( i=a;i<... |
CDSS_41382 | CDSS | #include<stdio.h>
int main(void){
int a,b,c,d,n,r;
while(scanf("%d",&n)!=EOF){
r=0;
for(a=0;a<10;a++){
for(b=0;b<10;b++){
for(c=0;c<10;c++){
for(d=0;d<10;d++){
if(a+b+c+d==n)
r++;
}
}
}
}
printf("%d\n",r);
}
return(0);
} | 0 | memory_bytes | {'s_id': 's728263660', 'p_id': 'p00008', 'u_id': 'u533679381', 'date': '1319214131', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '276'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n int a,b,c,d,n,r;\n while(scanf(\"%d\",&n)!=EOF){\n r=0;\n for(a=0;a<10;a++){\n for(b... |
CDSS_571453 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
int main() {
char s[5];
int y;
int m;
int ym = 0;
int mm = 0;
scanf("%s\n", s);
y = (int)strtol(s, NULL, 10) / 100;
m = (int)strtol(s, NULL, 10) % 100;
//printf("%d %d\n", y, m);
if(1 <= y && y <= ... | 128 | memory_bytes | {'s_id': 's136320725', 'p_id': 'p03042', 'u_id': 'u180005779', 'date': '1558632660', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '641'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <math.h>\n\nint main() {\n char s[5];\n int y;\n int m... |
CDSS_186825 | CDSS | #include <stdio.h>
#include <stdlib.h>
typedef struct _data {
int val;
int ceil;
struct _data *next;
} data;
void push(data **p, data *d)
{
d->next = *p;
*p = d;
}
data *pop(data **p)
{
if (*p == NULL) return NULL;
data *d = *p;
*p = (*p)->next;
return d;
}
int main()
{
char str[20001], ch;
int i, val, c... | 2,476 | memory_bytes | {'s_id': 's225109555', 'p_id': 'p02266', 'u_id': 'u641702731', 'date': '1512220498', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '2476', 'code_size': '1439'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\ntypedef struct _data {\n\tint val;\n\tint ceil;\n\tstruct _data *next;\n} data;\n\nvoid pus... |
CDSS_26438 | CDSS | #include <stdio.h>
main(){
int i;
int data1[200];
int data2[200];
int ans;
int c = 0;
i = 0;
while(scanf("%d %d", &data1[i], &data2[i]) != EOF){
ans = data1[i] + data2[i];
while(ans >= 10){
ans = ans / 10;
c++;
}
printf("%d\n", c+1);
c = 0;
}
return 0;
} | 604 | memory_bytes | {'s_id': 's441003007', 'p_id': 'p00002', 'u_id': 'u112084584', 'date': '1453901373', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '604', 'code_size': '315'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nmain(){\n int i;\n int data1[200];\n int data2[200];\n int ans;\n int c = 0;\n \n i = 0;\n while(scanf(\... |
CDSS_68784 | CDSS | #include <stdio.h>
int main(void) {
int c;
int i, j;
int tront[9];
int check;
int count;
int flag;
while (1) {
flag = 0;
for (i = 0; i < 10; i++) {
if ((c = getchar()) == EOF)
break;
if (c == 's')
tront[i] = 0;
else if (c == 'o')
tront[i] = 1;
else if (c == 'x')
tront[i] = 2;
}... | 524 | memory_bytes | {'s_id': 's390317649', 'p_id': 'p00066', 'u_id': 'u933965697', 'date': '1440300439', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', 'code_size': '1179'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 c;\n\tint i, j;\n\tint tront[9];\n\tint check;\n\tint count;\n\tint flag;\n\twhile (1) {... |
CDSS_612107 | CDSS | #include <stdio.h>
#include <math.h>
int main(void)
{
int n, i, titen;
double sa, kion[100000], a, t, h[100000];
scanf("%d",&n);
scanf("%lf %lf",&t,&a);
for(i=0; i<n; i++){
scanf("%lf",&h[i]);
kion[i] = fabs(a - (t - h[i]*0.006));
}
sa = kion[0];
titen = 1;
for(i=... | 128 | memory_bytes | {'s_id': 's283405583', 'p_id': 'p03220', 'u_id': 'u506314975', 'date': '1542770039', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '468'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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, i, titen;\n double sa, kion[100000], a, t, h[100000];\n\n ... |
CDSS_94416 | CDSS | #include <stdio.h>
int main(void){
int d,l,cnt;
scanf("%d %d",&d,&l);
cnt=d/l+d%l;
printf("%d\n",cnt);
return 0;
}
| 2,112 | memory_bytes | {'s_id': 's677362554', 'p_id': 'p00312', 'u_id': 'u455395909', 'date': '1533135065', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', '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>\nint main(void){\n \n int d,l,cnt;\n scanf(\"%d %d\",&d,&l);\n cnt=d/l+d%l;\n printf(\"%d\\n\",cnt);\... |
CDSS_265998 | CDSS | #include <stdio.h>
int main(void) {
int a, b = 0;
scanf("%d %d", &a, &b);
if(a < b) {
printf("a < b\n");
} else if(a > b) {
printf("a > b\n");
} else printf("a == b\n");
return 0;
} | 580 | memory_bytes | {'s_id': 's499239861', 'p_id': 'p02391', 'u_id': 'u211905117', 'date': '1409726969', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', '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>\n\nint main(void) {\n\tint a, b = 0;\n\tscanf(\"%d %d\", &a, &b);\n\tif(a < b) {\n\t\tprintf(\"a < b\\n\");\n\t} el... |
CDSS_258372 | CDSS | #include <stdio.h>
int main(void)
{
int a, b;
scanf("%d %d",&a,&b);
printf("%d %d\n",a*b,2*(a+b));
return 0;
}
| 2,104 | memory_bytes | {'s_id': 's878532122', 'p_id': 'p02389', 'u_id': 'u845546535', 'date': '1548322364', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', '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>\n\nint main(void)\n{\nint a, b;\nscanf(\"%d %d\",&a,&b);\nprintf(\"%d %d\\n\",a*b,2*(a+b));\n\n\nreturn 0;\n}\n\nPr... |
CDSS_215290 | CDSS | /*
* Argorithms and Data Structures
* Lectuire 7
* Rooted Trees
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define N 100000
typedef struct{
int id_parent;
int depth;
int degree;
char type[15];
int *id_child;
} Node;
Node *node;
int depth(int);
int main(void){
int i,j;
int n_node, ... | 7,928 | memory_bytes | {'s_id': 's637850374', 'p_id': 'p02279', 'u_id': 'u694522766', 'date': '1465445613', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '80', 'memory': '7928', 'code_size': '1722'} | [
{
"content": "Your task is to predict the memory 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 *\tArgorithms and Data Structures\n *\tLectuire 7 \n *\tRooted Trees\n */\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <s... |
CDSS_699593 | CDSS | #include <stdio.h>
int main(void){
int x,a,b;
scanf("%d %d %d",&x,&a,&b);
if(a-b>=0){
printf("delicious\n");
}else if((b-a)<=x){
printf("safe\n");
}else{
printf("dangerous\n");
}
return 0;
}
| 128 | memory_bytes | {'s_id': 's044961407', 'p_id': 'p03679', 'u_id': 'u131204940', 'date': '1498443838', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', '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>\nint main(void){\n int x,a,b;\n scanf(\"%d %d %d\",&x,&a,&b);\n if(a-b>=0){\n printf(\"delicious\\n... |
CDSS_320469 | CDSS | int main() {
int a, b;
char op;
for (;;) {
scanf("%d %c %d", &a, &op, &b);
switch(op) {
case '+':
printf("%d\n", a + b);
break;
case '-':
printf("%d\n", a - b);
break;
case '*':
printf("%d\n", a * b);
break;
case '/':
printf("... | 2,112 | memory_bytes | {'s_id': 's406948271', 'p_id': 'p02401', 'u_id': 'u309656351', 'date': '1593014138', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', '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:\nint main() {\n int a, b;\n char op;\n for (;;) {\n scanf(\"%d %c %d\", &a, &op, &b);\n switch(op) {\n case '+':\n ... |
CDSS_514214 | CDSS | #include <stdio.h>
#include <string.h>
#define max 3
int main()
{
int r;
scanf("%d", &r);
printf("%d", r*r);
return 0;
}
| 128 | memory_bytes | {'s_id': 's709378620', 'p_id': 'p02859', 'u_id': 'u645174893', 'date': '1584681972', '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#include <string.h>\n\n#define max 3\n\nint main()\n{\n int r;\n \n scanf(\"%d\", &r);\n \n printf(... |
CDSS_383750 | CDSS | #include<stdio.h>
#include<string.h>
#include<math.h>
int main() {
char c[4];
scanf("%s",c);
int count=0;
int count0=0;
for (int i=0;i<3;i++) {
if (c[i]=='R') {
count=1;
for (int j=i+1;j<3;j++) {
if (c[j]=='R') count++;
else break;
... | 1,736 | memory_bytes | {'s_id': 's651119255', 'p_id': 'p02582', 'u_id': 'u686878489', 'date': '1597518942', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1736', 'code_size': '423'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\n#include<math.h>\n\nint main() {\n char c[4];\n scanf(\"%s\",c);\n int count=0;\n \ti... |
CDSS_545155 | CDSS | #include <stdio.h>
int main(void)
{
int N, p[50], i, k;
scanf("%d", &N);
for(i=0;i<N;i++) {
scanf("%d", &p[i]);
}
for(i=0;i<N;i++) {
if(p[i] != i+1) k++;
}
if(k<3) printf("YES\n");
else printf("NO\n");
return 0;... | 128 | memory_bytes | {'s_id': 's732511842', 'p_id': 'p02958', 'u_id': 'u692504143', 'date': '1564768417', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '323'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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, p[50], i, k;\n\n scanf(\"%d\", &N);\n for(i=0;i<N;i++) {\n ... |
CDSS_102111 | CDSS | char*a,*b;main(i,m){for(;~scanf("%as%as",&a,&b);printf("%d\n",m)){int C[2][4001]={m=0},j,t,c;for(;c=*a++;i^=1)for(j=0;t=b[j++];t>m?m=t:0)t=C[1-i][j]=c-t?0:C[i][j-1]+1;}} | 548 | memory_bytes | {'s_id': 's911515445', 'p_id': 'p00451', 'u_id': 'u399107199', 'date': '1298461712', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '210', 'memory': '548', 'code_size': '169'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nchar*a,*b;main(i,m){for(;~scanf(\"%as%as\",&a,&b);printf(\"%d\\n\",m)){int C[2][4001]={m=0},j,t,c;for(;c=*a++;i^=1)for(j=0;t=b[j++];t>... |
CDSS_148563 | CDSS | #include<stdio.h>
int main()
{
int a[1000], n, i, j, k, v;
scanf("%d", &n);
for(k = 0; k < n; k++)
{
scanf("%d",&a[k]);
}
for(k = 0; k < n-1; k++)
{
printf("%d ",a[k]);
}
printf("%d", a[n-1]);
printf("\n");
for(i = 1; i < n; i++)
{
v = a[i];
j = i - 1;
whi... | 2,124 | memory_bytes | {'s_id': 's563099225', 'p_id': 'p02255', 'u_id': 'u520284725', 'date': '1529312209', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2124', 'code_size': '520'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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[1000], n, i, j, k, v;\n scanf(\"%d\", &n);\n for(k = 0; k < n; k++)\n {\n scanf(\"... |
CDSS_174428 | CDSS | #include <stdio.h>
#include <stdlib.h>
main(){
int i,j;
int C[37][2];
int Bub[37][2];
int Sel[37][2];
int N;
int tmpi;
char tmpc;
char str[3];
int mini,isStable;
scanf("%d",&N);
for(i=1; i<=N;i++){
scanf("%s",str);
C[i][0] = Bub[i][0] = Sel[i][0] = atoi(&str[1]);
C[i][1] = Bub[i][1... | 0 | memory_bytes | {'s_id': 's886247864', 'p_id': 'p02261', 'u_id': 'u680906409', 'date': '1334738343', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '1993'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\nmain(){\n\n int i,j;\n int C[37][2];\n int Bub[37][2];\n int Sel[37][2];\n int N;\n i... |
CDSS_545455 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<string.h>
#define MOD 1000000007
typedef long long int ll;
void llswap(ll *x,ll *y){ll temp;temp=*x;*x=*y;*y=temp;}
void swap(int *x,int *y){int tmp;tmp=*x;*x=*y;*y=tmp;}
int max(int x,int y){return x>y?x:y;}
int min(int x,int y){return x>y?y:x;}
ll llmax(l... | 128 | memory_bytes | {'s_id': 's970067419', 'p_id': 'p02958', 'u_id': 'u679951803', 'date': '1564275894', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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#include<stdlib.h>\n#include<math.h>\n#include<string.h>\n#define MOD 1000000007\ntypedef long long int ll;\nvoid l... |
CDSS_64100 | CDSS | #include<stdio.h>
i;int main(){
float m[100],ma=-1,mi=100000;
for(i=0;scanf("%f",&m[i])!=EOF;i++){
if(ma<m[i])ma=m[i];
if(mi>m[i])mi=m[i];
}
printf("%.2f\n",ma-mi);
return 0;
} | 0 | memory_bytes | {'s_id': 's292806846', 'p_id': 'p00046', 'u_id': 'u769144819', 'date': '1282757653', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '185'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\ni;int main(){\n\tfloat m[100],ma=-1,mi=100000;\n\tfor(i=0;scanf(\"%f\",&m[i])!=EOF;i++){\n\t\tif(ma<m[i])ma=m[i];\n... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.