identifier string | space string | input string | target float64 | metric_type string | metadata string | messages list |
|---|---|---|---|---|---|---|
CDSS_142067 | CDSS | #include<stdio.h>
#include<string.h>
char s[10][10];
int book[10],t,n,m,a[20],d[20],c[10];
void dfs(int x)
{
if(c[x]==1)
dfs(x+1);
if(x==8)
{
for(int i=0;i<8;i++)
printf("%s\n",s[i]);
return;
}
for(int i=0;i<8;i++)
{
if(book[i]==0&&a[x+i]==0&&d[x-i+8]==0)
{
book[i]=1;
a[x+i]=1;
d[x-i+8]=1;
... | 2,084 | memory_bytes | {'s_id': 's000726808', 'p_id': 'p02244', 'u_id': 'u821907920', 'date': '1580706011', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2084', 'code_size': '643'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\nchar s[10][10];\nint book[10],t,n,m,a[20],d[20],c[10];\nvoid dfs(int x)\n{\n\tif(c[x]==1)\n\t... |
CDSS_186468 | CDSS | #include<stdio.h>
#include<string.h>
#include<stdlib.h>
struct node{
unsigned int key;
struct node *next;
struct node *prev;
};
typedef struct node * NodePointer;
NodePointer nil;
//与えられたキーをもつノードを探し、そのポインタを返す
NodePointer listSearch(int key){
/* your code */
NodePointer *x;
x=&nil->next;
while((... | 36,108 | memory_bytes | {'s_id': 's617694922', 'p_id': 'p02265', 'u_id': 'u827484500', 'date': '1548254539', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '210', 'memory': '36108', 'code_size': '2164'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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 unsigned int key;\n struct node *next;\n struct node ... |
CDSS_19784 | CDSS | #include<stdio.h>
int main(){
int x,y;
for(x=1;x<10;x++){
for(y=1;y<10;y++){
printf("%dx%d=%d\n",x,y,x*y);
}
}
return 0;
} | 1,764 | memory_bytes | {'s_id': 's586949439', 'p_id': 'p00000', 'u_id': 'u212778627', 'date': '1510747463', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1764', 'code_size': '129'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n\nint x,y;\nfor(x=1;x<10;x++){\nfor(y=1;y<10;y++){\n\nprintf(\"%dx%d=%d\\n\",x,y,x*y);\n}\n}\n ... |
CDSS_216967 | CDSS | #include<stdio.h>
#define MAX 100005
#define NIL -1
struct Node_struct{int p, l, r;};
/*p: 親(parent), l: 一番左の子(left child), r:右の兄弟(right sibling)*/
typedef struct Node_struct Node;
Node T[MAX];
int D[MAX];
void print(int u){
int i, c;
printf("node %d: parent = %d, depth = %d, ", u, T[u].p, D[u]);
if(D[u]==0) pr... | 6,408 | memory_bytes | {'s_id': 's197519084', 'p_id': 'p02279', 'u_id': 'u450016531', 'date': '1547174036', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '30', 'memory': '6408', 'code_size': '1542'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#define MAX 100005\n#define NIL -1\nstruct Node_struct{int p, l, r;};\n/*p: 親(parent), l: 一番左の子(left child), r:右の... |
CDSS_40933 | CDSS | #include <stdio.h>
int main(void) {
int a,b,c,d,t,p;
while(scanf("%d",&t) != EOF){
p = 0;
for (a = 0;a <= 9;a++){
for (b = 0;b <= 9;b++){
for (c = 0;c <= 9;c++){
for (d = 0;d <= 9;d++){
if (a + b + c + d == t){
p = p + 1;
}
}
}
}
}
printf("%d\n",p);
... | 596 | memory_bytes | {'s_id': 's570347503', 'p_id': 'p00008', 'u_id': 'u444407884', 'date': '1441172316', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '345'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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,c,d,t,p;\n\t\twhile(scanf(\"%d\",&t) != EOF){\n\t\t\tp = 0;\n\t\t\tfor (a = 0;a <=... |
CDSS_335077 | CDSS | main () {
int H, W;
scanf("%d %d", &H, &W);
while ((H != 0) && (W != 0)) {
for (int j = 1; j <= W; j++)
{
printf("#");
}
printf("\n");
for (int i = 2; i <= H - 1; i++)
{
printf("#");
for (int j = 2; j <= W - 1; j++)
... | 2,040 | memory_bytes | {'s_id': 's498123931', 'p_id': 'p02404', 'u_id': 'u669666436', 'date': '1564194852', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2040', 'code_size': '576'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\nmain () {\n int H, W;\n scanf(\"%d %d\", &H, &W);\n while ((H != 0) && (W != 0)) {\n for (int j = 1; j <= W; j++) \n... |
CDSS_547715 | CDSS | #include <stdio.h>
int main(void){
int n, d, i, s=0;
scanf("%d %d", &n, &d);
for(i=0; s<n; i++){
s += 1+2*d;
}
printf("%d\n", i);
} | 128 | memory_bytes | {'s_id': 's859393448', 'p_id': 'p02970', 'u_id': 'u924527074', 'date': '1564943385', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '148'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n int n, d, i, s=0;\n scanf(\"%d %d\", &n, &d);\n for(i=0; s<n; i++){\n s += 1+2*d;\n ... |
CDSS_378974 | CDSS | #include <stdio.h>
int main(void)
{
char s[1001],t[1001];
int nos,not,i,j,same,ans=1001;
scanf("%s%s",&s,&t);
nos = strlen(s);
not = strlen(t);
for(i=0;i<=nos-not;i++){
same = 0;
for(j=0;j<not;j++){
if(s[j+i]!=t[j]) same++;
}
if(ans>same) ans = same;
}
printf("%d",ans);
return 0;
} | 1,732 | memory_bytes | {'s_id': 's934089386', 'p_id': 'p02571', 'u_id': 'u163511878', 'date': '1598733683', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1732', 'code_size': '303'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n\tchar s[1001],t[1001];\n\tint nos,not,i,j,same,ans=1001;\n\tscanf(\"%s%s\",&s,&t);\n\tnos ... |
CDSS_621643 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <math.h>
#include <limits.h>
int main(void){
int h,w;
scanf("%d%d",&h,&w);
int n=h*w;
int a[h][w],ans1[n],ans2[n],ans3[n],ans4[n];
for (int i=0; i<h; i++){
for (int j=0; j<w; j++){
scanf("%d... | 6,912 | memory_bytes | {'s_id': 's312286060', 'p_id': 'p03263', 'u_id': 'u750028862', 'date': '1536458224', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '53', 'memory': '6912', 'code_size': '2684'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <stdbool.h>\n#include <math.h>\n#include <limits.h>\n\nint ma... |
CDSS_604001 | CDSS | #include<stdio.h>
int MAX(int a,int b){return a<b?b:a;}
int i,j,c=1,d[3010][3010],f[3010][3010];
int main(){
char a[3010],b[3010],s[3010]={};
scanf("%s %s",a,b);
for(i=0;a[i];i++){
for(j=0;b[j];j++){
if(a[i]==b[j]){
d[i+1][j+1]=d[i][j]+1;
f[i+1][j+1]=3;
}
if(d[i+1][j+1]<d[i+1][j]){
d[i+1]... | 70,784 | memory_bytes | {'s_id': 's490637244', 'p_id': 'p03165', 'u_id': 'u121922047', 'date': '1546884904', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '66', 'memory': '70784', 'code_size': '766'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint MAX(int a,int b){return a<b?b:a;}\nint i,j,c=1,d[3010][3010],f[3010][3010];\nint main(){\n char a[3010],b[30... |
CDSS_635980 | CDSS | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
int main(void){
char S[10000];
int i,sum,len;
scanf("%s",S);
sum = 0;
len = strlen(S);
for(i=0;i<len;i++){
sum += (S[i] - '0');
}
int Si;
Si = atoi(S);
// printf("%d %d\n",sum,Si);
if(Si % sum == 0){
... | 128 | memory_bytes | {'s_id': 's931243551', 'p_id': 'p03316', 'u_id': 'u475433203', 'date': '1529805302', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '393'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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\nint main(void){\n char S[10000];\n int i,sum,len;\n scanf(\... |
CDSS_702963 | CDSS | #include <stdio.h>
int main(int argc, char const *argv[]) {
int a, b;
scanf("%d", &a);
scanf("%d", &b);
if (a + b >= 10) {
printf("error\n");
}else{
printf("%d\n", a+b);
}
return 0;
}
| 128 | memory_bytes | {'s_id': 's602620803', 'p_id': 'p03697', 'u_id': 'u016933855', 'date': '1496540823', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '208'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(int argc, char const *argv[]) {\n int a, b;\n scanf(\"%d\", &a);\n scanf(\"%d\", &b);\n\n if (a +... |
CDSS_565319 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<string.h>
#include<stdbool.h>
typedef long long ll;
typedef long double ld;
#define rep(i,l,r)for(ll i=(l);i<(r);i++)
#define repp(i,l,r,k)for(ll i=(l);i<(r);i+=(k))
#define INF (1LL<<60)
#define MOD1 1000000007
#define MAX_N (1 << 17)
void swap(ll *a, ll... | 384 | memory_bytes | {'s_id': 's037218575', 'p_id': 'p03018', 'u_id': 'u004279520', 'date': '1585097450', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '384', 'code_size': '1605'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#include<math.h>\n#include<string.h>\n#include<stdbool.h>\ntypedef long long ll;\ntypedef lon... |
CDSS_400243 | CDSS | #include <stdio.h>
#include <stdlib.h>
int main(void)
{
long int n;
scanf("%ld", &n);
--n;
int i;
long int sum = 0, p = 1, offset;
for (i = 0;; ++i)
{
if (sum > n)
{
offset = n - (sum - p);
break;
}
p *= 26;
sum += p;
}
int j;
char* ans = malloc(i * sizeof(char));... | 2,000 | memory_bytes | {'s_id': 's345712149', 'p_id': 'p02629', 'u_id': 'u809594616', 'date': '1593050807', 'language': 'C', 'original_language': 'C (Clang 10.0.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '2000', 'code_size': '484'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\nint main(void)\n{\n long int n;\n scanf(\"%ld\", &n);\n --n;\n int i;\n long int sum... |
CDSS_169209 | CDSS | #include<stdio.h>
int main()
{
int i,j,flag,tmp,count=0,N,A[100];
scanf("%d",&N);
for(i=0;i<N && N<=100 && N>=1;i++)
{
scanf("%d",&A[i]);
}
flag=1;
while(flag!=0)
{
flag=0;
for(j=N-1;j>=1;j--)
{
if(A[j]<A[j-1])
{
tmp=A[j];
A[j]=A[j-1];
A[j-1]=tmp;
flag=1;
count... | 2,144 | memory_bytes | {'s_id': 's072622924', 'p_id': 'p02259', 'u_id': 'u588072005', 'date': '1544160595', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2144', 'code_size': '484'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n int i,j,flag,tmp,count=0,N,A[100];\n scanf(\"%d\",&N);\n for(i=0;i<N && N<=100 && N>=1;i++)\n ... |
CDSS_586358 | CDSS | #include<stdio.h>
int main()
{
char a;
scanf("%c",&a);
if(a=='A')
printf("T");
else if(a=='T')
printf("A");
else if(a=='G')
printf("C");
else
printf("G");
return 0;
}
| 128 | memory_bytes | {'s_id': 's365717559', 'p_id': 'p03085', 'u_id': 'u475899775', 'date': '1553458216', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '228'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n char a;\n scanf(\"%c\",&a);\n if(a=='A')\n printf(\"T\");\n else if(a=='T')\n ... |
CDSS_227418 | CDSS | #include<stdio.h>
int Le(int);
int Ri(int);
int oya(int x){
return x / 2;
}
int main(){
int n,i,A[100001];
scanf("%d",&n);
for(i = 1 ; i <= n ; i++){
scanf("%d",&A[i]);
}
for(i = 1 ; i <= n ; i++){
printf("node %d: key = %d, ",i,A[i]);
if(oya(i) >= 1) printf("parent key = %d, ",A[oya(i)... | 2,112 | memory_bytes | {'s_id': 's396615471', 'p_id': 'p02287', 'u_id': 'u661640111', 'date': '1579687935', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '548'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint Le(int);\nint Ri(int);\n\nint oya(int x){\n return x / 2;\n}\n\n\n\nint main(){\n int n,i,A[100001];\n\n ... |
CDSS_521250 | CDSS | #include<stdio.h>
int main(){
int a,b;
scanf("%d %d",&a,&b);
if(a-2*b<=0)printf("0");
else printf("%d",a-2*b);
} | 128 | memory_bytes | {'s_id': 's598237564', 'p_id': 'p02885', 'u_id': 'u004676431', 'date': '1571533592', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '122'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n\tint a,b;\n \tscanf(\"%d %d\",&a,&b);\n \tif(a-2*b<=0)printf(\"0\");\n \telse printf(\"%d\",a-2*... |
CDSS_490657 | CDSS | #include <stdio.h>
#include<stdlib.h>
#include<string.h>
int main(void){
char a[100];
int len;
scanf("%s",a);
len = strlen(a);
for(int i=0;i<len;i++){
a[i] = 'x';
}
printf("%s\n",a);
return 0;
}
| 128 | memory_bytes | {'s_id': 's587107438', 'p_id': 'p02778', 'u_id': 'u900424884', 'date': '1584445224', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '219'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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>\nint main(void){\n\t\tchar a[100];\n\t\tint len;\n\n\t\tscanf(\"%s\",a);\... |
CDSS_152501 | CDSS | #include<stdio.h>
int main(void){
int gcd,x,y,tmp;
scanf("%d %d",&x,&y);
if(x<y){
tmp=x;
x=y;
y=tmp;
}
while((gcd=x%y)!=0){
x=y;
y=gcd;
}
printf("%d\n",y);
return 0;
}
| 2,100 | memory_bytes | {'s_id': 's922068414', 'p_id': 'p02256', 'u_id': 'u245502316', 'date': '1524451114', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2100', 'code_size': '261'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void){\n int gcd,x,y,tmp;\n \n scanf(\"%d %d\",&x,&y);\n \n if(x<y){\n tmp=x;\n ... |
CDSS_316370 | CDSS | #include<stdio.h>
int main()
{
double r,area,circum;
scanf("%lf",&r);
area = 3.141592653589*r*r;
circum = 2*3.141592653589*r;
printf("%.6lf %.6lf\n",area,circum);
return 0;
}
| 2,128 | memory_bytes | {'s_id': 's824848356', 'p_id': 'p02400', 'u_id': 'u521330660', 'date': '1525274392', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2128', 'code_size': '199'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n double r,area,circum;\n scanf(\"%lf\",&r);\n area = 3.141592653589*r*r;\n circum = 2*... |
CDSS_209842 | CDSS | #include<stdio.h>
#include<stdlib.h>//counting sort
void Countingsort(int *a, int *b,int *c,int n, int max){
int i;
for(i=0;i<n;i++){
*(c+*(a+i))+=1;
}
for(i=1;i<=max;i++){
*(c+i)=*(c+i)+*(c+i-1);
}
for(i=n-1;i>=0;i--){
*(b+*(c+*(a+i)))=*(a+i);
*(c+*(a+i))-=1;
... | 17,052 | memory_bytes | {'s_id': 's764963268', 'p_id': 'p02275', 'u_id': 'u336208598', 'date': '1587563286', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '240', 'memory': '17052', 'code_size': '760'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>//counting sort\nvoid Countingsort(int *a, int *b,int *c,int n, int max){\n int i;\n for(... |
CDSS_505565 | CDSS | #include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
int primes[] = {
2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53,
59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131,
137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199, 21... | 128 | memory_bytes | {'s_id': 's174238557', 'p_id': 'p02819', 'u_id': 'u154591433', 'date': '1577670603', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '66040'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdint.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <unistd.h>\n\nint primes[] = {\n2, 3, 5,... |
CDSS_153248 | CDSS | #include<stdio.h>
int main(){
int a,b,c=1,i;
scanf("%d%d",&a,&b);
while(c>0){
c=a%b;
a=b;
b=c;
}
printf("%d\n",a);
return 0;
}
| 2,064 | memory_bytes | {'s_id': 's723827662', 'p_id': 'p02256', 'u_id': 'u958677701', 'date': '1529385168', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2064', 'code_size': '157'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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=1,i;\n\n scanf(\"%d%d\",&a,&b);\n\n while(c>0){\n c=a%b;\n a=b;\n b=c;\n }... |
CDSS_206820 | CDSS | #include <stdio.h>
#include <stdlib.h>
#define MAX 2000001
#define VMAX 10000
//void CoutingSort(int [], int n);
int main(){
int *A, *B;
int n,i, j;
int C[VMAX+1];
scanf("%d", &n);
A = malloc(sizeof(int)*n+1);
B = malloc(sizeof(int)*n+1);
for ( i = 0; i <= VMAX; i++ ) C[i] = 0;
... | 17,412 | memory_bytes | {'s_id': 's661567633', 'p_id': 'p02275', 'u_id': 'u779655017', 'date': '1545283890', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '230', 'memory': '17412', 'code_size': '693'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#define MAX 2000001\n#define VMAX 10000\n\n\n//void CoutingSort(int [], int n);\n\nint main... |
CDSS_361606 | CDSS | #include <stdio.h>
#include <ctype.h>
#include <string.h>
int main(void)
{
int i,len;
char str[1200];
gets(str);
len = strlen(str);
for (i=0; i<len; i++) {
if(isupper(str[i])) {
str[i] += 32;
} else if(islower(str[i])) {
str[i] -= 32;
}
}
puts(str);
return 0;
} | 524 | memory_bytes | {'s_id': 's362936563', 'p_id': 'p02415', 'u_id': 'u799680650', 'date': '1453818452', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', 'code_size': '282'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <ctype.h>\n#include <string.h>\n\nint main(void)\n{\n\tint i,len;\n\tchar str[1200];\n\tgets(str);\n\tl... |
CDSS_57964 | CDSS | i=59,c=100,f[99],m,x,s;main(y){for(;s?++f[y*12+x+";<=0H/1GI:>T$"[--s]]:~scanf("%d,%d,%d",&x,&y,&s)?s=s*4+1:++i<178?i%12<10?m=fmax(m,f[i]),f[i]?c--:1:1:!printf("%d\n%d\n",c,m););} | 0 | memory_bytes | {'s_id': 's286433882', 'p_id': 'p00026', 'u_id': 'u479246559', 'date': '1321065427', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '178'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\ni=59,c=100,f[99],m,x,s;main(y){for(;s?++f[y*12+x+\";<=0H/1GI:>T$\"[--s]]:~scanf(\"%d,%d,%d\",&x,&y,&s)?s=s*4+1:++i<178?i%12<10?m=fma... |
CDSS_207949 | CDSS | #include<stdio.h>
#include<stdlib.h>
#define MAX 10000
void CountingSort(int *,int *,int );
int main(){
int i,k,n,C[MAX+1];
scanf("%d",&n);
unsigned short *A, *B;
A = malloc(sizeof(short)*n+1);
B = malloc(sizeof(short)*n+1);
scanf("%d",&A[0]);
k = A[0];
for(i=1;i<n;i++){
scanf("%d",&A[i]);
... | 8,460 | memory_bytes | {'s_id': 's616994536', 'p_id': 'p02275', 'u_id': 'u073302075', 'date': '1464237445', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '400', 'memory': '8460', 'code_size': '632'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n\n#define MAX 10000\n\nvoid CountingSort(int *,int *,int );\n\nint main(){\n int i,k,n,C[MA... |
CDSS_705523 | CDSS | #include<stdio.h>
int main()
{
int a,b,i;
char c[1000];
scanf("%d %d",&a,&b);
for(i=1;i<=b+2;i++)
printf("#");
printf("\n");
for(i=1;i<=a;i++)
{
scanf("%s",c);
printf("\n#%s#\n",c);
}
for(i=1;i<=b+2;i++)
printf("#");
printf("\n");
return 0;
} | 128 | memory_bytes | {'s_id': 's059670292', 'p_id': 'p03712', 'u_id': 'u089230684', 'date': '1509072542', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '261'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n\tint a,b,i;\n\tchar c[1000];\n\tscanf(\"%d %d\",&a,&b);\n\tfor(i=1;i<=b+2;i++)\n\tprintf(\"#\");\... |
CDSS_656508 | CDSS | #include <stdio.h>
#include <math.h>
#include <string.h>
int main(void){
int n,i;
char s;
scanf("%d",&n);
for(i=0;i<n;i++) {
scanf("%c",&s);
if(s=='Y') {
printf("Four");
return 0;
}
}
printf("Three");
return 0;
} | 128 | memory_bytes | {'s_id': 's049521182', 'p_id': 'p03424', 'u_id': 'u185896732', 'date': '1551115679', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '250'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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>\nint main(void){\n int n,i;\n char s;\n scanf(\"%d\",&n);\n for(i=0;i... |
CDSS_576087 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(void)
{
int N,V[20],C[20],index, answer;
scanf("%d", &N);
answer = 0;
for (index = 0; index < N; ++index) {
scanf("%d", &V[index]);
}
for (index = 0; index < N; ++index) {
scanf("%d", &C[index]);
if (C[index]<V[index]) answ... | 128 | memory_bytes | {'s_id': 's750061361', 'p_id': 'p03060', 'u_id': 'u578496933', 'date': '1556414628', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '395'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\nint main(void)\n{\n int N,V[20],C[20],index, answer;\n scanf(\"%d\... |
CDSS_601810 | CDSS | //set many funcs template
//Ver.20181228
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<stdbool.h>
#include<time.h>
#define inf 1072114514
#define llinf 4154118101919364364
#define mod 1000000007
#define pi 3.1415926535897932384
#define size 512
int max(int a,int b){if(a>b){return a;}return b;}
int m... | 12,672 | memory_bytes | {'s_id': 's846063340', 'p_id': 'p03157', 'u_id': 'u721060623', 'date': '1547324916', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '8', 'memory': '12672', 'code_size': '5883'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n//set many funcs template\n//Ver.20181228\n#include<stdio.h>\n#include<string.h>\n#include<stdlib.h>\n#include<stdbool.h>\n#include<... |
CDSS_466787 | CDSS | #include <stdio.h>
int main(){
long long int n,k;
long long int ans;
scanf("%lld%lld",&n,&k);
ans=n%k;
if (ans > k-ans) ans=k-ans;
printf("%lld",ans);
return 0;
}
| 128 | memory_bytes | {'s_id': 's475860625', 'p_id': 'p02719', 'u_id': 'u054412614', 'date': '1586143888', '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 should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\nlong long int n,k;\n long long int ans;\n\n scanf(\"%lld%lld\",&n,&k);\n ans=n%k;\n if (ans >... |
CDSS_74839 | CDSS | #include <stdio.h>
int max(int a, int b){
return a > b ? a : b;
}
int n, a[100][101];
int dp[101][101][101];
int main(void){
int x, y, z;
scanf("%d", &n);
for(x = 0; x < n; x++){
a[x][0] = 0;
for(y = 1; y <= n; y++){
scanf("%d", &a[x][y]);
a[x][y] += a[x][y-1];... | 4,624 | memory_bytes | {'s_id': 's869653233', 'p_id': 'p00098', 'u_id': 'u858885710', 'date': '1416243420', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '4624', 'code_size': '861'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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 return a > b ? a : b;\n}\n\nint n, a[100][101];\nint dp[101][101][101];\n\nint mai... |
CDSS_215592 | CDSS | #include <stdio.h>
#define N 100000
#define node0 -1
int depth(int);
int degree(int);
typedef struct{
int p,r,l;
}Node;
Node T[N];
int main(){
int i,n,k,id,j,c,keep;
scanf("%d",&n);
for(i=0;i<n;i++){
T[i].p=node0;
T[i].r=node0;
T[i].l=node0;
}
for(i=0;i<n;i++){
scanf("%d%d",&id,&k);
... | 1,784 | memory_bytes | {'s_id': 's363851467', 'p_id': 'p02279', 'u_id': 'u442443280', 'date': '1465968217', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '60', 'memory': '1784', 'code_size': '1146'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#define N 100000\n#define node0 -1\nint depth(int);\nint degree(int);\ntypedef struct{\n int p,r,l;\n}Node;\nNo... |
CDSS_109829 | CDSS | #include <stdio.h>
int main(void)
{
int e, a, b, c, d, time = 0;
scanf("%d",&a);
scanf("%d",&b);
scanf("%d",&c);
scanf("%d",&d);
scanf("%d",&e);
if(a < 0){
time = time + d + ((a * -1) * c);
time = time + b * e;
printf("%d\n", time);
return 0;
}
time = time + (b - a) * e;
printf("%d\n", time);
return... | 2,060 | memory_bytes | {'s_id': 's298318959', 'p_id': 'p00553', 'u_id': 'u453670013', 'date': '1540968231', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2060', 'code_size': '326'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void)\n{\n\tint e, a, b, c, d, time = 0;\n\tscanf(\"%d\",&a);\n\tscanf(\"%d\",&b);\n\tscanf(\"%d\",&c);... |
CDSS_626648 | CDSS | #include <stdio.h>
#include <string.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#include <limits.h>
#include <math.h>
int acs(const void *a, const void *b){return *(int*)a - *(int*)b;} /* 1,2,3,4.. */
int des(const void *a, const void *b){return *(int*)b - *(int*)a;} /* 8,7,6,5.. */
int cmp_char(con... | 3,584 | memory_bytes | {'s_id': 's270189816', 'p_id': 'p03283', 'u_id': 'u391667116', 'date': '1576460523', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '57', 'memory': '3584', 'code_size': '1625'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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 <stdint.h>\n#include <stdlib.h>\n#include <limits.h>\n#inclu... |
CDSS_709188 | CDSS | #include<stdio.h>
#include<string.h>
int main()
{
char a[15],b[15],c[15];
int ln,x,y,z,j,k,l;
scanf("%s",a);
scanf("%s",b);
scanf("%s",c);
x=strlen(a);
y=strlen(b);
if((a[x-1]==b[0])&&(b[y-1]==c[0]))
printf("YES\n");
else
print... | 128 | memory_bytes | {'s_id': 's986906595', 'p_id': 'p03729', 'u_id': 'u353919145', 'date': '1502522620', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '128', 'code_size': '352'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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 char a[15],b[15],c[15];\n int ln,x,y,z,j,k,l;\n scanf(\"%s\... |
CDSS_738821 | CDSS | #include <stdio.h>
int main(void){
int N, K, X, Y;
scanf("%d %d %d %d", &N, &K, &X, &Y);
if(N <= K){
printf("%d\n", X * N);
}else if(N > K){
printf("%d\n", (N - K) * Y + (K * X));
}
}
| 1,712 | memory_bytes | {'s_id': 's500053949', 'p_id': 'p04011', 'u_id': 'u818573308', 'date': '1594322884', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1712', 'code_size': '235'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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 \n scanf(\"%d %d %d %d\", &N, &K, &X, &Y);\n \n if(N <= K){\n... |
CDSS_664610 | CDSS | #include <stdio.h>
int main() {
char nama[55] ;
scanf("%s",&nama) ;
nama[0] = '2';
nama[1] = '0';
nama[2] = '1';
nama[3] = '8';
printf("%s", nama);
return 0;
} | 1,696 | memory_bytes | {'s_id': 's423907927', 'p_id': 'p03469', 'u_id': 'u863370423', 'date': '1597303301', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1696', 'code_size': '190'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main() {\n \n char nama[55] ;\n scanf(\"%s\",&nama) ;\n\n \n\n nama[0] = '2';\n nama[1] = '0';\n na... |
CDSS_57218 | CDSS | #include <stdio.h>
int calTheNumOfFloor(double v){
return (int)((v*v/(2*9.8) + 5) / 5);
}
int main(void){
double v;
while(scanf("%lf", &v) != EOF){
printf("%d\n", calTheNumOfFloor(v) + 1);
}
return 0;
} | 628 | memory_bytes | {'s_id': 's135830964', 'p_id': 'p00024', 'u_id': 'u467929102', 'date': '1402261896', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '628', 'code_size': '212'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint calTheNumOfFloor(double v){\n\treturn (int)((v*v/(2*9.8) + 5) / 5);\n}\n\nint main(void){\n\tdouble v;\n\t... |
CDSS_371705 | CDSS | #include <stdio.h>
#include <string.h>
int main(void){
int n, tsum=0, hsum=0, i;
char t[100], h[100];
scanf("%d", &n);
for(i=0; i<n; i++){
scanf("%s %s", t, h);
if(strcmp(t, h) == 0){
hsum++;
tsum++;
}else if(strcmp(t, h) < 0){
tsum = tsu... | 2,036 | memory_bytes | {'s_id': 's835382085', 'p_id': 'p02421', 'u_id': 'u212392281', 'date': '1532806138', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2036', 'code_size': '465'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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 n, tsum=0, hsum=0, i;\n char t[100], h[100];\n \n scanf(\... |
CDSS_444298 | CDSS | #include <stdio.h>
int main()
{
int i, j;
int n, m, sum, a[10000];
sum = 0;
scanf("%d%d", &n, &m);
for(i = 0; i < m; i++){
scanf("%d", &a[i]);
sum += a[i];
}
if(sum <= n){
printf("%d\n", n - sum);
}else{
printf("-1\n");
}
return 0;
} | 1,716 | memory_bytes | {'s_id': 's049884374', 'p_id': 'p02706', 'u_id': 'u136798224', 'date': '1587344876', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '1716', 'code_size': '276'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main()\n{\n int i, j;\n int n, m, sum, a[10000];\n sum = 0;\n \n scanf(\"%d%d\", &n, &m);\n for(i = ... |
CDSS_306657 | CDSS | #include <stdio.h>
int main(void){
int a,b,c,i,k=0;
scanf("%d %d %d",&a,&b,&c);
for(i=a;i<=b;i++){
if(c%i==0) k++;
}
printf("%d\n",k);
return 0;
}
| 2,128 | memory_bytes | {'s_id': 's972604900', 'p_id': 'p02398', 'u_id': 'u038159486', 'date': '1525437428', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2128', 'code_size': '199'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\n \n int a,b,c,i,k=0;\n \n scanf(\"%d %d %d\",&a,&b,&c);\n \n for(i=a;i<=b;i++){\n ... |
CDSS_108691 | CDSS | #include <stdio.h>
#include <stdlib.h>
int main() {
int n = 0;
int h = 0;
int destn = 0;
int lx;
int ly;
int x;
int y;
int result = 0;
int big;
int small;
int xs;
int ys;
int i = 0;
scanf("%d%d%d", &n, &h, &destn);
for(i = 0; i < destn; ++i) {
scanf("%d%d", &x, &y);
if(i >= 1) {
... | 596 | memory_bytes | {'s_id': 's457217745', 'p_id': 'p00517', 'u_id': 'u372334046', 'date': '1430309824', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '764'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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 int n = 0;\n int h = 0;\n int destn = 0;\n int lx;\n int ly;\n int x... |
CDSS_727522 | CDSS | #include<stdio.h>
int main(){
char a;
scanf("%c",&a);
if(a=='a'||a=='i'||a=='u'||a=='e'||a=='o'){
printf("vowel");
}
else{
printf("consonant");
}
return 0;
} | 128 | memory_bytes | {'s_id': 's493025839', 'p_id': 'p03852', 'u_id': 'u990256816', 'date': '1580415023', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '180'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n char a;\n scanf(\"%c\",&a);\n if(a=='a'||a=='i'||a=='u'||a=='e'||a=='o'){\n printf(\"vowel\... |
CDSS_193312 | CDSS | #include<stdio.h>
int main(){
int i,j,count=0,n,q,key,l,r,mid;
int a[100000],b[100000];
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d",&a[i]);
}
scanf("%d",&q);
for(i=0;i<q;i++){
scanf("%d",&b[i]);
}
for(j=0;j<q;j++){
key=b[j];
a[n]=key;
l=0;
r=n;
while(l<=r){
mid=(l+r)/2;
if(a[mid]==key){
count... | 2,420 | memory_bytes | {'s_id': 's784270521', 'p_id': 'p02268', 'u_id': 'u888751817', 'date': '1529982529', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2420', 'code_size': '443'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int i,j,count=0,n,q,key,l,r,mid;\n int a[100000],b[100000];\n scanf(\"%d\",&n);\n for(i=0;i<n;i... |
CDSS_279817 | 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 if(a < b && c < b){
printf("No\n");
}else if(a == b && b < c){
printf("No\n");
}else if(a ==b && b == c){
printf("No\n");
}else if(a > b && b < c){
printf("No\n");
}re... | 2,048 | memory_bytes | {'s_id': 's844238502', 'p_id': 'p02392', 'u_id': 'u534602802', 'date': '1526978295', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2048', 'code_size': '337'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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 < b && b < c){\n printf(\"Yes\\n\");\n }e... |
CDSS_738425 | CDSS | #include <stdio.h>
#include <stdlib.h>
int main()
{
long long A, B, C;
scanf("%lld %lld %lld", &A, &B, &C);
if ((A + B + C) % 2 == 0) printf("0\n");
else {
if (A > B) {
B += A;
A = B - A;
B -= A;
}
if (A > C) {
C += A;
A = C - A;
C -= A;
}
if (B > C) {
C += B;
B = C - B;
C -=... | 128 | memory_bytes | {'s_id': 's717998699', 'p_id': 'p04005', 'u_id': 'u943800443', 'date': '1589422509', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '389'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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\tlong long A, B, C;\n\tscanf(\"%lld %lld %lld\", &A, &B, &C);\n\t\n\tif (... |
CDSS_361410 | CDSS | #include <stdio.h>
int main(void){
int i=0;
char str[1200];
gets(str);
while(1)
{
if(str[i] == '\0')
{
break;
}
if('a' <= str[i] && str[i] <= 'z')
{
str[i] -= 0x20;
}
else if('A' <= str[i] && str[i] <= 'Z')
{
str[i] +... | 524 | memory_bytes | {'s_id': 's317835405', 'p_id': 'p02415', 'u_id': 'u552648582', 'date': '1421378758', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', 'code_size': '391'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n int i=0;\n char str[1200];\n\n gets(str);\n\n while(1)\n {\n if(str[i] == '\\0')... |
CDSS_164651 | CDSS | #include<stdio.h>
#include<stdlib.h>
int main(void){
int N,i,min,max;
int *F;
while(1){
scanf("%d",&N);
if(N>=2 && N<=200000)break;
}
F = (int*)malloc(sizeof(int)*N);
for(i=0;i<N;i++){
while(1){
scanf("%d",&F[i]);
if(F[i]>=1 && F[i]<=1000000000)break;
}
}
min=F[0];
... | 2,304 | memory_bytes | {'s_id': 's146145980', 'p_id': 'p02258', 'u_id': 'u231643476', 'date': '1533805584', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2304', 'code_size': '471'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n\nint main(void){\n int N,i,min,max;\n int *F;\n \n while(1){\n scanf(\"%d\",&N);\n \n ... |
CDSS_333684 | CDSS | #include <stdio.h>
int main(void){
int data[2];
int i, j;
while(1){
scanf("%d %d", &data[0], &data[1]);
if(data[0] == 0 && data[1] == 0){
return 0;
}
for(i=0 ; i < data[0] ; i++){
for(j=0 ; j < data[1] ; j++){
if(i == 0 || i == data[0] - 1){
printf("#");
}
else if(j == 0 || j == ... | 572 | memory_bytes | {'s_id': 's091170478', 'p_id': 'p02404', 'u_id': 'u212103396', 'date': '1479305084', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '572', 'code_size': '438'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n\tint data[2];\n\tint i, j;\n\t\n\twhile(1){\n\t\tscanf(\"%d %d\", &data[0], &data[1]);\n\t\t... |
CDSS_372247 | CDSS | #include <stdio.h>
#include <string.h>
int main(void){
char temp, str[1001], re[1001], p[101];
int i, j, a, b, q;
scanf("%s", str);
scanf("%d", &q);
for(i = 0; i < q; i++){
scanf(" %s%d%d", p, &a, &b);
if(strcmp(p, "print") == 0){
for(j = a; j <= b; j++){
printf("%c", str[j]);
}
... | 576 | memory_bytes | {'s_id': 's368050736', 'p_id': 'p02422', 'u_id': 'u084980375', 'date': '1502371683', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '576', 'code_size': '639'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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 char temp, str[1001], re[1001], p[101];\n int i, j, a, b, q;\n \n s... |
CDSS_705298 | CDSS | #include <stdio.h>
int main(){
int h, w; scanf("%d %d", &h, &w);
char field[103][103];
for(int i=0; i<h; i++)
scanf("%s", field[i]);
for(int i=0; i<w+2; i++) printf("#"); puts("");
for(int i=0; i<h; i++)
printf("#%s#\n", field[i]);
for(int i=0; i<w+2; i++) printf("#"); puts("");
return 0;
}... | 128 | memory_bytes | {'s_id': 's433109355', 'p_id': 'p03712', 'u_id': 'u792720861', 'date': '1589333498', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '321'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n int h, w; scanf(\"%d %d\", &h, &w);\n char field[103][103];\n for(int i=0; i<h; i++)\n sc... |
CDSS_528818 | CDSS | #include<stdio.h>
void solve(int N,int K,int Q){
int A[Q];
for (int i = 0; i < Q; i+=1){
scanf("%d", &A[i]);
A[i] -= 1;
}
int P[N];
for (int i = 0; i < N; i += 1){P[i] = 0;}
for (int i = 0; i < Q; i += 1){
P[A[i]] += 1;
}
for (int i = 0; i < N; i += 1){
... | 1,280 | memory_bytes | {'s_id': 's432997842', 'p_id': 'p02911', 'u_id': 'u613931538', 'date': '1576087027', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '13', 'memory': '1280', 'code_size': '496'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nvoid solve(int N,int K,int Q){\n\n int A[Q];\n for (int i = 0; i < Q; i+=1){\n scanf(\"%d\", &A[i]... |
CDSS_332300 | CDSS | #include <stdio.h>
int main(){
int H,W;
for(;;){
scanf("%d%d", &H,&W);
if(H == 0 && W == 0){
break;
}
for(int i = 0; i < H; i++) {
for (int j = 0; j < W; j++) {
printf("#");
}
printf("\n");
}
printf("... | 2,112 | memory_bytes | {'s_id': 's009447351', 'p_id': 'p02403', 'u_id': 'u798159403', 'date': '1592958009', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '348'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(){\n int H,W;\n for(;;){\n scanf(\"%d%d\", &H,&W);\n if(H == 0 && W == 0){\n ... |
CDSS_384821 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#define ll long long
#define rep(i,l,r)for(ll i=(l);i<(r);i++)
#define repp(i,l,r,k)for(ll i=(l);i<(r);i+=(k))
#define INF ((1LL<<62)-(1LL<<31))
#define max(p,q)((p)>(q)?(p):(q))
#define min(p,q)((p)<(q)?(p):(q))
#define bit(n,m)(((n)>>(m))&1)... | 1,736 | memory_bytes | {'s_id': 's787545500', 'p_id': 'p02584', 'u_id': 'u382163500', 'date': '1597518500', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1736', 'code_size': '1038'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <math.h>\n#define ll long long\n#define rep(i,l,r)for(ll i=(l... |
CDSS_204560 | CDSS | #include<stdio.h>
#define MAX 500000
#define INFTY 2000000000
int g_count;
void merge(int [], int, int, int);
void mergeSort(int [], int, int);
int main(){
int A[MAX], n, i;
scanf("%d",&n);
for(i = 0; i < n; i++) scanf("%d",&A[i]);
mergeSort(A,0,n);
for(i = 0; i < n; i++){
if(i != 0) printf(" ");... | 5,644 | memory_bytes | {'s_id': 's045658224', 'p_id': 'p02272', 'u_id': 'u916257595', 'date': '1545111652', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '100', 'memory': '5644', 'code_size': '999'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\n#define MAX 500000\n#define INFTY 2000000000\n\nint g_count;\n\nvoid merge(int [], int, int, int);\nvoid mergeS... |
CDSS_676294 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#define mod 1e9+7
#define ll long long int
#define epsilon 1e-7
int main(void){
int n;
scanf("%d", &n);
int a, b, c, d;
a = n/1000;
b = (n/100)%10;
c = (n/10)%10;
d = n%10;
if(a+b+c+d==7)printf("%d+%d+%d+%d=7\... | 128 | memory_bytes | {'s_id': 's612810066', 'p_id': 'p03545', 'u_id': 'u436045956', 'date': '1559265851', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '786'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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\n#define mod 1e9+7\n#define ll long long int\n#def... |
CDSS_183992 | CDSS | #include<stdio.h>
typedef struct {
int num;
char name[10];
}QUEUE;
int main() {
int i, time = 0, n, q, head = 0, tail;
char s[10];
QUEUE a[500000];
scanf("%d", &n);
scanf("%d", &q);
for (i = 0; i < n; i++) {
scanf("%s %d", a[i].name, &a[i].num);
}
tail = n;
i = 1;
while (head != tail) {
if (a[head].nu... | 4,696 | memory_bytes | {'s_id': 's755026739', 'p_id': 'p02264', 'u_id': 'u635348322', 'date': '1545063693', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '4696', 'code_size': '529'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\ntypedef struct {\n\tint num;\n\tchar name[10];\n}QUEUE;\n\nint main() {\n\tint i, time = 0, n, q, head = 0, tai... |
CDSS_125008 | 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... | 2,104 | memory_bytes | {'s_id': 's363159758', 'p_id': 'p01428', 'u_id': 'u409832240', 'date': '1528451422', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '1780'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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(l... |
CDSS_264616 | CDSS | #include<stdio.h>
int main(){
int S;
scanf("%d",&S);
int s = S % 60;
int M = S / 60;
int m = M % 60;
int h = M / 60;
printf("%d:%d:%d\n",h,m,s);
return 0;
}
| 2,048 | memory_bytes | {'s_id': 's681918033', 'p_id': 'p02390', 'u_id': 'u333326383', 'date': '1558025696', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2048', 'code_size': '165'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int S;\n scanf(\"%d\",&S);\n int s = S % 60;\n int M = S / 60;\n int m = M % 60;\n int h = M / 60;\... |
CDSS_110213 | CDSS | #include<stdio.h>
#include<stdlib.h>
int main()
{
int i,j,h,w,a[32][32],k,l,m=2147483000,r;
scanf("%d %d",&h,&w);
for(i=0;i<h;i++){
for(j=0;j<w;j++){
scanf("%d",&a[i][j]);
}
}
for(i=0;i<h;i++){
for(j=0;j<w;j++){
r=0;
for(k=0;k<h;k++){
... | 2,108 | memory_bytes | {'s_id': 's719242566', 'p_id': 'p00566', 'u_id': 'u726704931', 'date': '1545029163', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '529'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\nint main()\n{\n int i,j,h,w,a[32][32],k,l,m=2147483000,r;\n scanf(\"%d %d\",&h,&w);\n ... |
CDSS_492937 | CDSS | #include<stdio.h>
int main(){
int h,a;
int i=0;
scanf("%d %d",&h,&a);
while(h>0){
h = h - a;
i += 1;
}
printf("%d",i);
return 0;
}
| 128 | memory_bytes | {'s_id': 's065820936', 'p_id': 'p02783', 'u_id': 'u359243713', 'date': '1588259409', '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 should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n int h,a;\n int i=0;\n\n scanf(\"%d %d\",&h,&a);\n while(h>0){\n h = h - a;\n ... |
CDSS_124369 | CDSS | #include <stdio.h>
#include <string.h>
int main() {
char key[] = {'y','h','n','u','j','m','i','k','o','p','l','\0'};
char str[33];
int hand,cha,i,j;
while(1) {
scanf("%s",str);
if(str[0] == '#') break;
for(i=0;i<strlen(key); i++) {
if(key[i] == str[0]) break;
}
//rgiht:0 left:1
if(... | 540 | memory_bytes | {'s_id': 's864870094', 'p_id': 'p01369', 'u_id': 'u952951927', 'date': '1433164092', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '540', 'code_size': '758'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\n\nint main() {\n\n char key[] = {'y','h','n','u','j','m','i','k','o','p','l','\\0'};\n ... |
CDSS_458977 | CDSS | #include <stdio.h>
#define rep(i, n) for(int i=1; i<(int)(n);i++)
int main(){
int a, b, c, k, ans=0;
int gcd_3(int ,int ,int );
scanf("%d",&k);
rep(a,k+1){
rep(b,k+1){
rep(c,k+1){
ans += gcd_3(a,b,c);
}
}
}
printf("%d",ans);
}
int gcd_3(int a,int b,int c){
int gcd(int ,int )... | 1,728 | memory_bytes | {'s_id': 's271790093', 'p_id': 'p02713', 'u_id': 'u697715013', 'date': '1586796889', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '217', 'memory': '1728', 'code_size': '398'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#define rep(i, n) for(int i=1; i<(int)(n);i++)\n\nint main(){\n int a, b, c, k, ans=0;\n int gcd_3(int ,int ,i... |
CDSS_133977 | CDSS | #include<stdio.h>
#include<string.h>
int LCS(char*,char*);
int main()
{
int n,i,j;
char C1[1001],C2[1001];
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%s",C1);
scanf("%s",C2);
printf("%d\n",LCS(C1,C2));
}
return 0;
}
int LCS(char *A,char *B)
{
int c[1001][1001],i,j,x,y;
x=strlen(A)+1;
y=strl... | 5,688 | memory_bytes | {'s_id': 's325281537', 'p_id': 'p02235', 'u_id': 'u764082611', 'date': '1533638703', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '30', 'memory': '5688', 'code_size': '598'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\nint LCS(char*,char*);\n\nint main()\n{\n int n,i,j;\n char C1[1001],C2[1001];\n scanf(\"%d... |
CDSS_499422 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<string.h>
#include<stdbool.h>
#include<assert.h>
typedef long long ll;
typedef long double ld;
#define rep(i,l,r)for(ll i=(l);i<(r);i++)
#define repp(i,l,r,k)for(ll i=(l);i<(r);i+=(k))
#define rrep(i,l,r)for(ll i=(l);i>=(r);i--)
#define INF (1LL<<60)
#defin... | 1,280 | memory_bytes | {'s_id': 's179673066', 'p_id': 'p02797', 'u_id': 'u004279520', 'date': '1587879597', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '11', 'memory': '1280', 'code_size': '2511'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#include<math.h>\n#include<string.h>\n#include<stdbool.h>\n#include<assert.h>\ntypedef long l... |
CDSS_699893 | CDSS | #include <stdio.h>
int
main(int argc, char *argv[])
{
int n, a[100000], ans = - 1;
scanf("%d", &n);
for(int i = 0; i < n; i++){
scanf("%d", &a[i]);
}
int b[100000], i = 0;
b[0] = 1;
while(1){
b[i + 1] = a[b[i] - 1];
if(b[i + 1] == 2){
ans = i + 1;
break;
}
else if(i == n... | 512 | memory_bytes | {'s_id': 's941781132', 'p_id': 'p03680', 'u_id': 'u801102476', 'date': '1557753657', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '12', 'memory': '512', 'code_size': '384'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint\nmain(int argc, char *argv[])\n{\n int n, a[100000], ans = - 1;\n scanf(\"%d\", &n);\n for(int i = 0; i... |
CDSS_343784 | CDSS | main(){int a[100],n,i;int *p=a;scanf("%d",&n);for(i=n;i-->0;)scanf("%d",p++);while(--n)printf("%d ",*--p);printf("%d\n",*a);exit(0);} | 596 | memory_bytes | {'s_id': 's051893928', 'p_id': 'p02407', 'u_id': 'u309428289', 'date': '1383155123', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '133'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\nmain(){int a[100],n,i;int *p=a;scanf(\"%d\",&n);for(i=n;i-->0;)scanf(\"%d\",p++);while(--n)printf(\"%d \",*--p);printf(\"%d\\n\",*a)... |
CDSS_649477 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <math.h>
void change(int *x, int *y);
int a,b,x;
int main(void){
scanf("%d %d %d", &a, &b, &x);
if(x >= a && x <= a+b) printf("YES");
else printf("NO");
return 0;
}
void change(int *x, int *y){
int z;
z = *x;
*x = *y;
*y = z;
} | 128 | memory_bytes | {'s_id': 's359424613', 'p_id': 'p03377', 'u_id': 'u824196989', 'date': '1523754975', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '289'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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\nvoid change(int *x, int *y);\n\nint a,b,x;\n\nint main(void){\n\tscanf... |
CDSS_90115 | CDSS | #include<stdio.h>
int main(){
int i[1000],p[1000],q[1000],r[1000],P,Q,R,C,n,j,a[1000],b[1000],c[1000],d;
while(1){
scanf("%d",&n);
if(n==0){
break;
}
for(j=0;j<n;j++){
scanf("%d%d%d%d",&i[j],&p[j],&q[j],&r[j]);
a[j]=(p[j]+r[j])*4;
b[j]=q[j]*9;
c[j]=a[j]+b[j];
}
scanf("%d%d%d%d",&P,&Q,&R,&... | 632 | memory_bytes | {'s_id': 's397295224', 'p_id': 'p00239', 'u_id': 'u071792305', 'date': '1472021304', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '632', 'code_size': '526'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n\tint i[1000],p[1000],q[1000],r[1000],P,Q,R,C,n,j,a[1000],b[1000],c[1000],d;\n\t\n\twhile(1){\n\t\ts... |
CDSS_472116 | CDSS | #include <stdio.h>
int main(void) {
int N,M;
scanf("%d%d", &N, &M);
printf("%d\n", N*(N-1)/2 + M*(M-1)/2);
return 0;
}
| 128 | memory_bytes | {'s_id': 's931508555', 'p_id': 'p02729', 'u_id': 'u686007983', 'date': '1584925521', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '148'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\n \n int N,M;\n \n scanf(\"%d%d\", &N, &M);\n \n printf(\"%d\\n\", N*(N-1)/2 + M*... |
CDSS_351387 | CDSS | #include <stdio.h>
int main(void){
int n,m;
scanf("%d %d\n",&n,&m);
int A[n][m];
int b[m][1];
int c[n][1];
for(int i=1; i<=n; i++){
for(int j=1; j<=m; j++){
scanf("%d ",&A[i-1][j-1]);
c[i-1][0] = 0;
}
}
for(int j=1; j<=m; j++){
scanf("%d\n",&b[j-1][0]);
}
for(int i=1; i<=... | 2,144 | memory_bytes | {'s_id': 's741781985', 'p_id': 'p02410', 'u_id': 'u679700431', 'date': '1529479666', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2144', 'code_size': '459'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\n int n,m;\n\n scanf(\"%d %d\\n\",&n,&m);\n int A[n][m];\n int b[m][1];\n int c[n][1];\n\n ... |
CDSS_637780 | CDSS | #include <stdio.h>
int main(){
int a, b;
scanf("%d%d", &a, &b);
printf(a <= 8 && b <= 8 ? "Yay!" : ":(");
return 0;
}
| 128 | memory_bytes | {'s_id': 's802705745', 'p_id': 'p03323', 'u_id': 'u605917063', 'date': '1529198335', '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 should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n int a, b;\n scanf(\"%d%d\", &a, &b);\n printf(a <= 8 && b <= 8 ? \"Yay!\" : \":(\");\n ... |
CDSS_552581 | CDSS | /*
* main.c
*
* Created on: 2019/07/07
* Author: family
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
typedef unsigned long long int uint64_t;
int main()
{
uint64_t L = 0, R = 0, ans = 2019, i = 0, j = 0, k = 0;
scanf("%llu %llu", &L, &R);
for(i = L; i <= (L+(2019*2))... | 128 | memory_bytes | {'s_id': 's703400927', 'p_id': 'p02983', 'u_id': 'u898925304', 'date': '1562560506', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '16', 'memory': '128', 'code_size': '594'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n/*\n * main.c\n *\n * Created on: 2019/07/07\n * Author: family\n */\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <str... |
CDSS_438934 | CDSS | #include<stdio.h>
int main(){
int r;
double c;
scanf("%d",&r);
c=3.1415926*2.0*r;
printf("%.2lf\n",c);
} | 1,740 | memory_bytes | {'s_id': 's851458490', 'p_id': 'p02705', 'u_id': 'u507832330', 'date': '1587348256', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '1740', 'code_size': '109'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n\tint r;\n\tdouble c;\n\tscanf(\"%d\",&r);\n\tc=3.1415926*2.0*r;\n\tprintf(\"%.2lf\\n\",c);\n}\nPred... |
CDSS_77772 | CDSS | #include <stdio.h>
#include <math.h>
void swap(int *x, int *y);
int main(void)
{
int r[1000];
int data[3];
int n;
int i;
while (1){
for (i = 0; i < 3; i++){
scanf("%d", &data[i]);
}
if (data[0] > data[2]){
swap(&data[0], &data[2]);
}
for (i = 0; i < 2; i++){
if (data[i] > data[i + 1]){
s... | 584 | memory_bytes | {'s_id': 's823905619', 'p_id': 'p00107', 'u_id': 'u580977620', 'date': '1364195189', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '584', 'code_size': '768'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n\nvoid swap(int *x, int *y);\n\nint main(void)\n{\n\tint r[1000];\n\tint data[3];\n\tint n;\n... |
CDSS_590012 | CDSS | #include<stdio.h>
#include<stdlib.h>
typedef struct{
long long a;
long long b;
}setab;
long cmp (const void *p,const void *q){
return ((setab*)p)->a - ((setab*)q)->a;
}
int main(){
setab abset[100000] = {};
long long n = 0;
long long m = 0;
long long hon = 0;
long long sum = 0;
long long i = 0;
s... | 3,324 | memory_bytes | {'s_id': 's231680458', 'p_id': 'p03103', 'u_id': 'u185050799', 'date': '1574979915', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '36', 'memory': '3324', 'code_size': '675'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n\ntypedef struct{\n long long a;\n long long b;\n}setab;\n\nlong cmp (const void *p,const v... |
CDSS_281684 | CDSS | #include <stdio.h>
int main(void){
int a, b, c;
scanf("%d%d%d\n", &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) printf("%d %d %d\n", b, c, a);
... | 600 | memory_bytes | {'s_id': 's668413782', 'p_id': 'p02393', 'u_id': 'u564208050', 'date': '1414453709', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '490'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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;\n scanf(\"%d%d%d\\n\", &a, &b, &c);\n \n if(a <= b && b <= c) printf(\"%d %... |
CDSS_554032 | CDSS | #include<stdio.h>
int main(void){
char s[5];
scanf("%s",s);
if(s[0]==s[1] && s[2]==s[3] && s[0]!=s[2]){
printf("Yes\n");
}else if(s[0]==s[2] && s[1]==s[3] && s[0]!=s[1]){
printf("Yes\n");
}else if(s[0]==s[3] && s[1]==s[2] && s[0]!=s[1]){
printf("Yes\n");
}else{
p... | 128 | memory_bytes | {'s_id': 's212047033', 'p_id': 'p02987', 'u_id': 'u127063317', 'date': '1562615099', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '128', 'code_size': '356'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void){\n char s[5];\n scanf(\"%s\",s);\n if(s[0]==s[1] && s[2]==s[3] && s[0]!=s[2]){\n ... |
CDSS_504099 | CDSS | #include<stdio.h>
int main()
{
long long int a,b,k;
scanf("%lld %lld %lld",&a,&b,&k);
if(k>a){
b=b-(k-a);
a=0;
if(b<0){
b=0;
}
}
else if(k<a){
a=a-k;
b=b;
}
else if(k==a){
a=0;
b=b;
}
printf("%lld %lld"... | 1,708 | memory_bytes | {'s_id': 's137937970', 'p_id': 'p02818', 'u_id': 'u816631826', 'date': '1600580308', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1708', 'code_size': '331'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main()\n{\n long long int a,b,k;\n scanf(\"%lld %lld %lld\",&a,&b,&k);\n if(k>a){\n\n b=b-(... |
CDSS_56657 | CDSS | #include<stdio.h>
#include<math.h>
int main(){
int n,i,j,flag;
double xa,ya,ra,xb,rb,yb,m,p,d;
scanf("%d",&n);
while(n--){
scanf("%lf %lf %lf %lf %lf %lf",&xa,&ya,&ra,&xb,&yb,&rb);
flag=(ra>=rb?2:1);
p=fabs(ra-rb);
m=ra+rb;
d=sqrt((xb-xa)*(xb-xa)+(yb-ya)*(yb-ya));
//printf("p=%f,m=%f,d=%f,flag=%d\n",p,... | 620 | memory_bytes | {'s_id': 's358899035', 'p_id': 'p00023', 'u_id': 'u510563501', 'date': '1383905791', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '620', 'code_size': '510'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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 n,i,j,flag;\n\tdouble xa,ya,ra,xb,rb,yb,m,p,d;\n\tscanf(\"%d\",&n);\n\twhi... |
CDSS_568630 | CDSS | #include<stdio.h>
int main ()
{
int n=10;
long long int r,d,x;
scanf("%lld %lld %lld", &r, &d, &x);
while (n--)
{
x = r*x - d;
printf("%lld\n",x);
}
return 0;
}
| 128 | memory_bytes | {'s_id': 's196257854', 'p_id': 'p03036', 'u_id': 'u976152094', 'date': '1575039690', '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 should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main ()\n{\n\tint n=10;\n\n\tlong long int r,d,x;\n\n\tscanf(\"%lld %lld %lld\", &r, &d, &x);\n\n\twhile (n... |
CDSS_685424 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<string.h>
#include<stdbool.h>
#include<assert.h>
typedef long long ll;
typedef long double ld;
#define rep(i,l,r)for(ll i=(l);i<(r);i++)
#define repp(i,l,r,k)for(ll i=(l);i<(r);i+=(k))
#define rrep(i,l,r)for(ll i=(l);i>=(r);i--)
#define INF (1LL<<60)
#defin... | 128 | memory_bytes | {'s_id': 's698778064', 'p_id': 'p03606', 'u_id': 'u004279520', 'date': '1587641488', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '2137'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#include<math.h>\n#include<string.h>\n#include<stdbool.h>\n#include<assert.h>\ntypedef long l... |
CDSS_130294 | CDSS | #include <stdio.h>
#define N 47
int a[N];
int fib(int n)
{
if(a[n]==0){
if(n<2) a[n]=1;
else a[n]=fib(n-1)+fib(n-2);
}
return a[n];
}
int main()
{
int n;
scanf("%d",&n);
printf("%d\n",fib(n));
return 0;
} | 596 | memory_bytes | {'s_id': 's508143092', 'p_id': 'p02233', 'u_id': 'u252365561', 'date': '1502873710', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '228'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#define N 47\n\nint a[N];\nint fib(int n)\n{\n if(a[n]==0){\n if(n<2) a[n]=1;\n else a[n]=fib(n-1)+fib(n-... |
CDSS_112318 | CDSS | #include <stdio.h>
int main(void)
{
int n,i,sum,hit;
while(scanf("%d", &n), n != 0){
sum = 0;
n /= 4;
for(i = 0; i < n; i++){
scanf("%d", &hit);
sum += hit;
}
printf("%d\n", sum);
}
return(0);
} | 600 | memory_bytes | {'s_id': 's080679925', 'p_id': 'p00627', 'u_id': 'u873749699', 'date': '1412302435', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '232'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n\tint n,i,sum,hit;\n\t\n\twhile(scanf(\"%d\", &n), n != 0){\n\t\t\n\t\tsum = 0;\n\t\t\n\t\... |
CDSS_695727 | CDSS | #include<stdio.h>
int main(){
int A,B;
scanf("%d %d",&A,&B);
if((A%3==0)||(B%3==0)||((A+B)%3==0)){
printf("Possible");
}
else{
printf("Impossible");
}
return 0;
} | 128 | memory_bytes | {'s_id': 's522173246', 'p_id': 'p03657', 'u_id': 'u409361714', 'date': '1500169520', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '128', 'code_size': '184'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int A,B;\n scanf(\"%d %d\",&A,&B);\n if((A%3==0)||(B%3==0)||((A+B)%3==0)){\n printf(\"Possibl... |
CDSS_363348 | CDSS | #include<stdio.h>
int main(){
char s[1001];
int ans=0,i=0,ch;
while(1){
i=0;
scanf("%s",s);
ans=0;
if(s[0]=='0') break;
while(s[i]!='\0'){
ans += s[i]-'0';
i++;
}
printf("%d\n",ans);
}
return 0;
}
| 536 | memory_bytes | {'s_id': 's983539400', 'p_id': 'p02416', 'u_id': 'u762527436', 'date': '1442816922', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '536', 'code_size': '224'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n\tchar s[1001];\n\tint ans=0,i=0,ch;\n\twhile(1){\n\t\ti=0;\n\t\tscanf(\"%s\",s);\n\t\tans=0;\n\t\... |
CDSS_293152 | CDSS | #include <stdio.h>
int main(int argc, char const *argv[])
{
int W, H, x, y, r;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
if(0<=x-r && x+r<=W && 0<=y-r && y+r<=H)
printf("Yes\n");
else
printf("No\n");
return 0;
}
| 2,124 | memory_bytes | {'s_id': 's316930848', 'p_id': 'p02394', 'u_id': 'u210768346', 'date': '1528787867', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2124', 'code_size': '228'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(int argc, char const *argv[])\n{\n\tint W, H, x, y, r;\n\n\tscanf(\"%d %d %d %d %d\", &W, &H, &x, &y,... |
CDSS_563552 | CDSS | #include<stdio.h>
int main(void){
int N,i,j,s = 0,d,dd,t;
scanf("%d",&N);
int W[N],S[N];
for(i = 0;i < N;i++){
scanf("%d",&W[i]);
s += W[i];
S[i] = s;
}
for(j = 0;j < N;j++){
d = (s - S[j]) - S[j];
if(d < 0){
if(-d > dd){
t = d... | 128 | memory_bytes | {'s_id': 's439377214', 'p_id': 'p03012', 'u_id': 'u545479960', 'date': '1560436152', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '482'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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,j,s = 0,d,dd,t;\n scanf(\"%d\",&N);\n int W[N],S[N];\n for(i = 0;i < N;i+... |
CDSS_37477 | CDSS | #include<stdio.h>
int main(){
char s1[21], s2[21];
int i, j;
scanf("%s",s1);
for(i=0;s1[i]!='\0';i++){}
i--;
j=0;
for(;i>=0;i--){
s2[j++]=s1[i];
}
s2[j]='\0';
printf("%s\n",s2);
return 0;
} | 524 | memory_bytes | {'s_id': 's817291450', 'p_id': 'p00006', 'u_id': 'u569098935', 'date': '1463199207', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', 'code_size': '203'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n\tchar s1[21], s2[21];\n\tint i, j;\n\tscanf(\"%s\",s1);\n\tfor(i=0;s1[i]!='\\0';i++){}\n\ti--;\n\... |
CDSS_440470 | CDSS | #include <stdio.h>
int main()
{
int r;
double pi=3.1416,c;
scanf("%d",&r);
c=2*pi*r;
printf("%.2lf\n",c);
return 0;
} | 1,744 | memory_bytes | {'s_id': 's111284948', 'p_id': 'p02705', 'u_id': 'u273985618', 'date': '1587344913', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1744', 'code_size': '142'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main()\n{\n int r;\n double pi=3.1416,c;\n scanf(\"%d\",&r);\n c=2*pi*r;\n printf(\"%.2lf\\n\... |
CDSS_709684 | CDSS | #include<stdio.h>
int main(void)
{
int fund, mod, num, i, j=1;
scanf("%d%d%d", &fund, &mod, &num);
for(i=1; i<=mod; i++)
{
if((fund*i)%mod==num) j=0;
}
if(j==0) printf("YES");
else printf("NO");
return 0;
} | 128 | memory_bytes | {'s_id': 's570223944', 'p_id': 'p03730', 'u_id': 'u817824419', 'date': '1520478955', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '226'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\n int fund, mod, num, i, j=1;\n scanf(\"%d%d%d\", &fund, &mod, &num);\n for(i=1; i<=mod; i++... |
CDSS_490324 | CDSS | #include<stdio.h>
#include<string.h>
int main(void){
char s[11],t[11],u[11];
int a,b;
scanf("%s %s",s,t);
scanf("%d %d",&a,&b);
scanf("%s",u);
if(strcmp(s,u)==0){
printf("%d %d",a-1,b);
}else{
printf("%d %d",a,b-1);
}
return 0;
} | 128 | memory_bytes | {'s_id': 's082871228', 'p_id': 'p02777', 'u_id': 'u027519288', 'date': '1581279248', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '247'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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[11],t[11],u[11];\n\tint a,b;\n\n\tscanf(\"%s %s\",s,t);\n\tscanf(\"... |
CDSS_197624 | CDSS | #include <stdio.h>
#include <string.h>
#define M 1046257
#define NIL (-1)
#define L 14
char H[M][L];
/* 文字から数値に変換 */
int getChar(char ch) {
if ( ch == 'A' ) return 1;
else if ( ch == 'C' ) return 2;
else if ( ch == 'G' ) return 3;
else if ( ch == 'T' ) return 4;
return 0;
}
/* 文字列から数値へ変換して key を生成する */
lo... | 16,056 | memory_bytes | {'s_id': 's328342096', 'p_id': 'p02269', 'u_id': 'u393898008', 'date': '1594356873', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '190', 'memory': '16056', 'code_size': '1491'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\n#define M 1046257\n#define NIL (-1)\n#define L 14\n\nchar H[M][L];\n\n/* 文字から数値に変換 */\nin... |
CDSS_313175 | CDSS | #include<stdio.h>
int main(void)
{
double r,a,b;
scanf("%lf",&r);
a =(double)r * r * 3.1415926535897;
b =(double)2 * r * 3.1415926535897;
printf("%f %f",a,b);
return 0;
} | 648 | memory_bytes | {'s_id': 's734008096', 'p_id': 'p02400', 'u_id': 'u087163685', 'date': '1434166391', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '648', 'code_size': '176'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\n\tdouble r,a,b;\n\tscanf(\"%lf\",&r);\n\ta =(double)r * r * 3.1415926535897;\n\tb =(double)2 *... |
CDSS_24378 | CDSS | #include<stdio.h>
int main(void){
int f,j,a[10],i;
f=0;
j=0;
a[9]=0;
i=0;
for(f=0;f<10;f++){
scanf("%d",&a[f]);
}
for(f=0;f<9;f++)
{
for(j=f+1;j<10;j++)
{
if(a[f]<a[j])
{
i=a[f];
a[f]=a[j];
a[j]=i;
}
}
}
printf("%d\n%d\n%d\n",a[0],a[1],a[2]);
re... | 0 | memory_bytes | {'s_id': 's954993353', 'p_id': 'p00001', 'u_id': 'u047988051', 'date': '1306566752', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '329'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n int f,j,a[10],i;\n f=0;\n j=0;\n a[9]=0;\n i=0;\n\n for(f=0;f<10;f++){\n scanf(\"%d\",... |
CDSS_202746 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<limits.h>
#define M 500000
void merge(int *,int,int,int);
void mergeSort(int *,int,int);
int count=0;
int S[M];
int main(){
int n,i;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d",&S[i]);
}
mergeSort(S,0,n);
for(i=0;i<n;i++){
if(i<n-1) printf("%d ",... | 63,340 | memory_bytes | {'s_id': 's266580310', 'p_id': 'p02272', 'u_id': 'u430590334', 'date': '1464153762', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '190', 'memory': '63340', 'code_size': '1081'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#include<limits.h>\n\n#define M 500000\n\nvoid merge(int *,int,int,int);\nvoid mergeSort(int ... |
CDSS_76416 | CDSS | #include <stdio.h>
int main(void)
{
int n;
int data[11][11] = {0};
int h, w;
while (scanf("%d", &n)){
if (n == 0){
break;
}
for (h = 0; h < n; h++){
for (w = 0; w < n; w++){
scanf("%d", &data[h][w]);
data[h][n] += data[h][w];
data[n][w] += data[h][w];
}
data[n][n] += data[h][n];... | 616 | memory_bytes | {'s_id': 's548133148', 'p_id': 'p00102', 'u_id': 'u957294880', 'date': '1453975413', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '616', 'code_size': '476'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n\tint n;\n\tint data[11][11] = {0};\n\tint h, w;\n\t\n\twhile (scanf(\"%d\", &n)){\n\t\tif ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.