identifier string | space string | input string | target float64 | metric_type string | metadata string | messages list |
|---|---|---|---|---|---|---|
CDSS_220642 | CDSS | #include <stdio.h>
#include <math.h>
#include <string.h>
#include <stdlib.h>
#define MAX 40
int n, preorder[MAX],inorder[MAX],post[MAX],n_post,pos;
void rec(int l, int r)
{
if (l >= r){return;}
int root = preorder[pos++];
int m = distance(root);
rec(l, m);
rec(m+1,r);
post[n_post++] = root;
}
int distance(int ... | 2,120 | memory_bytes | {'s_id': 's980615537', 'p_id': 'p02282', 'u_id': 'u359564062', 'date': '1577402038', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2120', 'code_size': '744'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 MAX 40\nint n, preorder[MAX],inorder[MAX],pos... |
CDSS_565299 | CDSS | #if 0
cat <<EOF >mistaken-paste
#endif
// thx Ebi-chan!
#pragma GCC diagnostic ignored "-Wincompatible-pointer-types"
#define _USE_MATH_DEFINES
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <math.h>
#include <time.h>
#define BIG 2000000007
#define VERYBI... | 6,272 | memory_bytes | {'s_id': 's374305586', 'p_id': 'p03017', 'u_id': 'u238041222', 'date': '1559524251', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '6272', 'code_size': '7876'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#if 0\ncat <<EOF >mistaken-paste\n#endif\n// thx Ebi-chan!\n\n#pragma GCC diagnostic ignored \"-Wincompatible-pointer-types\"\n#define... |
CDSS_344721 | CDSS | #include <stdio.h>
int main( void )
{
int card[53]={0};
int n;
int i,num;
char pattern[2]={'\0'};
scanf( "%d", &n );
for( i=0; i<n; i++ ) {
scanf( "%s%d", pattern, &num );
pattern[1]='\0';
switch( pattern[0] ) {
case 'S':
card[num-1]=1;
break;
case 'H':
card[12+num]=1;
break;
c... | 596 | memory_bytes | {'s_id': 's659246616', 'p_id': 'p02408', 'u_id': 'u604774382', 'date': '1425035697', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '743'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 card[53]={0};\n\tint n;\n\tint i,num;\n\tchar pattern[2]={'\\0'};\n\t\n\tscanf( \"%d\"... |
CDSS_408660 | CDSS | #include <stdio.h>
long long a [100010];
int main (){
int n;
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){
// a[i] contains 0
printf("0\n");
return 0;
}
long long prod =1;
for(int i=0;i<n;i++){
if(a[i ] <=1000000000000000000/ prod ){
// Thi... | 2,464 | memory_bytes | {'s_id': 's850587735', 'p_id': 'p02658', 'u_id': 'u270164821', 'date': '1591216059', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '26', 'memory': '2464', '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>\nlong long a [100010];\nint main (){\nint n;\nscanf(\"%d\",&n);\nfor(int i=0;i<n;i++) scanf(\"%lld\",&a[i]);\nint z... |
CDSS_120758 | CDSS | #include<stdio.h>
int main(void){
int n,m,s;
int max=0;
int i, j;
while(1){
int p[1000]={0};
scanf("%d %d", &n, &m);
if(n+m==0) break;
for(i=0;i<m;i++){
for(j... | 2,008 | memory_bytes | {'s_id': 's147475380', 'p_id': 'p01117', 'u_id': 'u545070254', 'date': '1570509733', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2008', 'code_size': '676'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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,m,s;\n \n int max=0;\n int i, j;\n while(1){... |
CDSS_144392 | CDSS | #include <stdio.h>
#define N 100
int main(){
int a,i,v,j,k;
int A[N];
scanf("%d",&a);
for(i=0;i<a;i++){
scanf("%d",&A[i]);
}
for( k = 0 ; k < a-1 ; k++ ) printf("%d ",A[k]);
printf("%d\n",A[a-1]);
for( i = 1 ; i < a ; i++ ){
v = A[i];
j = i - 1;
while( j >= 0 && A[j] > v ){
A... | 600 | memory_bytes | {'s_id': 's739940447', 'p_id': 'p02255', 'u_id': 'u565781955', 'date': '1460004575', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '477'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#define N 100\n\nint main(){\n\n int a,i,v,j,k;\n int A[N];\n\n scanf(\"%d\",&a);\n\n for(i=0;i<a;i++){\n s... |
CDSS_641753 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
//大小比較(大)
long long int big(long long int a, long long int b) {
if (a >= b) {
return a;
}
else {
return b;
}
}
//大小比較(小)
long long int small(long long int a, long long int b) {
if (a >= b) {
return b;
}
else {
return a;
}
}
main() {
long long in... | 128 | memory_bytes | {'s_id': 's592112110', 'p_id': 'p03337', 'u_id': 'u018872912', 'date': '1544387519', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '467'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#include<string.h>\n//大小比較(大)\nlong long int big(long long int a, long long int b) {\n\tif (a >... |
CDSS_312641 | CDSS | #include <stdio.h>
int main() {
double r,s,f;
double x=3.141592653589;
scanf("%lf",&r);
//面積
s = r * r * x;
//円周
f = r * 2 * x;
printf("%f %f\n", s, f);
return 0;
}
| 2,052 | memory_bytes | {'s_id': 's739700917', 'p_id': 'p02400', 'u_id': 'u835803784', 'date': '1545813387', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2052', 'code_size': '278'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main() {\n double r,s,f;\n\tdouble x=3.141592653589;\n \n scanf(\"%lf\",&r);\n \n ... |
CDSS_21998 | CDSS | #include<stdio.h>
int main(void){
int i,j,a;
for(i=1;i<=9;i++){
for(j=1;j<=9;j++){
a=i*j;
printf("%dx%d=%d\n",i,j,a);
}
}
return 0;
} | 524 | memory_bytes | {'s_id': 's009540276', 'p_id': 'p00000', 'u_id': 'u933218756', 'date': '1400485354', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', 'code_size': '176'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n int i,j,a;\n for(i=1;i<=9;i++){\n for(j=1;j<=9;j++){\n a=i*j;\n printf(\... |
CDSS_152634 | CDSS | #include <stdio.h>
int main(void){
int x,y;
int temp;
scanf("%d%d",&x,&y);
while(1){
if(x%y==0)break;
temp=x;
x = y;
y = temp%y;
}
printf("%d\n",y);
return 0;
}
| 2,140 | memory_bytes | {'s_id': 's072556193', 'p_id': 'p02256', 'u_id': 'u483179571', 'date': '1529039194', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2140', 'code_size': '191'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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,y;\n int temp;\n scanf(\"%d%d\",&x,&y);\n while(1){\n if(x%y==0)break;\n temp=x;... |
CDSS_130935 | CDSS | #include<stdio.h>
int F[45];
void fibonacci(int n)
{
int i;
for(i=0;i<=n;i++)
F[i]=0;
F[0]=1;
F[1]=1;
for(i=2;i<=n;i++)
{
F[i]=F[i-2]+F[i-1];
}
}
int main()
{
int n;
scanf("%d",&n);
fibonacci(n);
printf("%d\n",F[n]);
return 0;
}
| 2,104 | memory_bytes | {'s_id': 's524246404', 'p_id': 'p02233', 'u_id': 'u987115153', 'date': '1547994839', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '277'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 F[45];\n\n\nvoid fibonacci(int n)\n{\n int i;\n for(i=0;i<=n;i++)\n F[i]=0;\n F[0]=1;\n F[1]=1;\n for(i... |
CDSS_596517 | CDSS | #include <stdio.h>
int main(void){
int a[4],b[4],r[5]={0},i;
for(i=0;i<4;i++){
scanf("%d %d",&a[i],&b[i]);
r[a[i]]++;r[b[i]]++;
}
if(r[1]<3&&r[2]<3&&r[3]<3&&r[4]<3) printf("YES");
else printf("NO");
return 0;
} | 128 | memory_bytes | {'s_id': 's634929014', 'p_id': 'p03130', 'u_id': 'u185896732', 'date': '1550713884', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '230'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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[4],b[4],r[5]={0},i;\n for(i=0;i<4;i++){\n scanf(\"%d %d\",&a[i],&b[i]);\n r[a[i]]+... |
CDSS_721956 | CDSS | #include <stdio.h>
#include <math.h>
typedef long long ll;
int main() {
ll x;
double xx;
scanf("%lld",&x);
xx = (double)x;
ll ans = (ll)floor(xx/5.5);
if (x % 11 == 6 || x % 11 == 0) {
printf("%lld\n", ans);
}
else {
printf("%lld\n",ans+1ll);
}
return 0;
} | 128 | memory_bytes | {'s_id': 's082038394', 'p_id': 'p03817', 'u_id': 'u305950321', 'date': '1485658242', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '128', 'code_size': '278'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n\ntypedef long long ll;\n\nint main() {\n\n\tll x;\n\tdouble xx;\n\n\tscanf(\"%lld\",&x);\n\n\t... |
CDSS_717169 | CDSS | #include<stdio.h>
int main(void) {
int n, x, y, ans;
scanf("%d", &n);
x = 800 * n;
y = 200 * (n / 15);
ans = x - y;
printf("%d\n", ans);
}
| 128 | memory_bytes | {'s_id': 's277513754', 'p_id': 'p03795', 'u_id': 'u678875535', 'date': '1487471111', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '191'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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, x, y, ans;\n scanf(\"%d\", &n);\n\n x = 800 * n;\n y = 20... |
CDSS_150634 | CDSS | #include <stdio.h>
int main(){
/* Max is the greatest common divisor of two natural numbers x and y*/
int Max, x, y, c;
scanf("%d %d", &x, &y);
while(1){
if (x % y == 0) break;
c = x%y;
x = y;
y = c;
}
Max = y;
printf("%d\n", Max);
return 0;
} | 592 | memory_bytes | {'s_id': 's307622508', 'p_id': 'p02256', 'u_id': 'u734048342', 'date': '1428631553', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', 'code_size': '277'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 /* Max is the greatest common divisor of two natural numbers x and y*/\n int Max, x, y, c;\n sc... |
CDSS_489600 | CDSS | #include <stdio.h>
#include <string.h>
int main(void) {
char s[1000000+10];
scanf("%s", s);
int length = strlen(s);
int num;
long bill_a = 0;
long bill_b = 1;
long case1,case2,case3,case4;
for (int i = 0; i < length; i++) {
num = s[i]-'0';
case1 = bill_a+num;
case2 = bill_b+10-num;
cas... | 1,152 | memory_bytes | {'s_id': 's817116634', 'p_id': 'p02775', 'u_id': 'u581816556', 'date': '1591315153', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1152', 'code_size': '565'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\nint main(void) {\n\n char s[1000000+10];\n scanf(\"%s\", s);\n int length = strlen(s);\n... |
CDSS_701074 | CDSS | #include <stdio.h>
int main() {
int r,g,b;
scanf("%d %d %d", &r, &g, &b);
if(((r * 100) + (g * 10) + b) % 4 == 0){
printf("YES");
} else {
printf("NO");
}
return 0;
} | 128 | memory_bytes | {'s_id': 's990442830', 'p_id': 'p03693', 'u_id': 'u824019311', 'date': '1499806444', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '264'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n \nint main() {\n int r,g,b;\n scanf(\"%d %d %d\", &r, &g, &b); \n \n\n if(((r ... |
CDSS_73889 | CDSS | #include <stdio.h>
int isLeap(int year){
return (year % 400 == 0 || year % 100 != 0 && year % 4 == 0);
}
int main(void)
{
int first, last;
int year_it;
int separate_flag = 0;
int na_flag;
while (scanf("%d %d", &first, &last), first || last){
if (separate_flag == 0){
separate_flag = 1;
}
else {
puts... | 612 | memory_bytes | {'s_id': 's446276225', 'p_id': 'p00093', 'u_id': 'u490032117', 'date': '1360654883', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '612', 'code_size': '532'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 isLeap(int year){\n\treturn (year % 400 == 0 || year % 100 != 0 && year % 4 == 0);\n}\n\nint main(void)\n{\n... |
CDSS_237463 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef struct Dice Dice;
struct Dice
{
int surfaces[6];
};
Dice *
Dice_init(Dice *d, int *surfaces)
{
int i;
for (i = 0; i < 6; i++)
{
d->surfaces[i] = surfaces[i];
}
return d;
}
void
Dice_roll(Dice *d, char direction)
{
int i;
int next_surfaces[6... | 596 | memory_bytes | {'s_id': 's838989082', 'p_id': 'p02383', 'u_id': 'u347010700', 'date': '1474358090', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '1571'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\ntypedef struct Dice Dice;\nstruct Dice\n{\n\tint surfaces[6];\n};\n\nD... |
CDSS_203322 | CDSS | #include<stdio.h>
#define N 500000
#define M 2000000000
void merge(int *,int,int,int);
void mergesort(int *,int,int);
int L[(N/2)+2],R[(N/2)+2];
int cnt;
int main(){
int A[N],n,i;
cnt=0;
scanf("%d", &n);
for(i=0;i<n;i++){
scanf("%d",&A[i]);
}
mergesort(A,0,n);
for(i=0;i<n-1;i++){
printf("%d ",A[... | 4,504 | memory_bytes | {'s_id': 's708347662', 'p_id': 'p02272', 'u_id': 'u963749569', 'date': '1497364565', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '150', 'memory': '4504', 'code_size': '926'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 500000\n#define M 2000000000\nvoid merge(int *,int,int,int);\nvoid mergesort(int *,int,int);\nint L[(N/2)... |
CDSS_25286 | CDSS | #include <stdio.h>
#include <stdlib.h>
int main()
{
int a[10],i,j,k,temp;
for(i=0;i<10;i++)
scanf("%d",&a[i]);
for(i=1;i<10;i++)
{
temp=a[i];
j=i-1;
while(temp<a[j] && (j>=0))
{
a[j+1]=a[j];
j=j-1;
}
a[j+1]=temp;
}
f... | 600 | memory_bytes | {'s_id': 's272053011', 'p_id': 'p00001', 'u_id': 'u011621222', 'date': '1383056984', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '381'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\nint main()\n{\n int a[10],i,j,k,temp;\n for(i=0;i<10;i++)\n scanf(\"%d\",&a[i]);... |
CDSS_105936 | CDSS | #include <stdio.h>
int main(void){
int pas[3], ju[2], i, total;
for (i = 0; i < 3; i++)
scanf("%d", &pas[i]);
for (i = 0; i < 2; i++)
scanf("%d", &ju[i]);
if (pas[0] < pas[1] && pas[0] < pas[2])
total = pas[0];
else if (pas[1] < pas[2]) total = pas[1];
else total = pas[2];
if (ju[0] < ju[1]) total +=... | 592 | memory_bytes | {'s_id': 's072787357', 'p_id': 'p00488', 'u_id': 'u135535178', 'date': '1462532670', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', 'code_size': '392'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 pas[3], ju[2], i, total;\n\tfor (i = 0; i < 3; i++)\n\t\tscanf(\"%d\", &pas[i]);\n\tfor (... |
CDSS_561230 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <limits.h>
int main()
{
long W, H, x, y;
scanf("%ld %ld %ld %ld", &W, &H, &x, &y);
if(W == x*2 && H == y*2) printf("%lf 1\n", W*H/2.0);
else printf("%lf 0\n", W*H/2.0);
return 0;
} | 128 | memory_bytes | {'s_id': 's522645901', 'p_id': 'p03001', 'u_id': 'u485409442', 'date': '1560756044', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '249'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <limits.h>\n\nint main()\n{\n long W, H, x, y;\n scanf(\"%ld %ld %ld %ld\", &W... |
CDSS_182833 | CDSS | #include<stdio.h>
#include<string.h>
#define N 1000000
int main(){
int n, q, time[N], i, sumT1=0, sumT2=0, T;
char name[N][10];
scanf("%d%d", &n, &q);
for(i=0; i<n; i++)
scanf("%s%d", name[i], &time[i]);
for(i=0; i<n; i++)
sumT1 += time[i];
//printf("%d\n", sumT1);
i=0;
while(sumT1 != ... | 4,400 | memory_bytes | {'s_id': 's598324346', 'p_id': 'p02264', 'u_id': 'u892925213', 'date': '1529991891', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '4400', '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>\n#include<string.h>\n#define N 1000000\n\nint main(){\n int n, q, time[N], i, sumT1=0, sumT2=0, T;\n char name[N][... |
CDSS_699041 | CDSS | #include<stdio.h>
int main(void) {
int a, b, x;
scanf("%d %d %d", &x, &a, &b);
if (0 >= b - a) {
printf("delicious\n");
}
else if (x >= b - a) {
printf("safe\n");
}
else {
printf("dangerous\n");
}
}
| 1,644 | memory_bytes | {'s_id': 's246823603', 'p_id': 'p03679', 'u_id': 'u782708184', 'date': '1596245961', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '7', 'memory': '1644', '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:\n#include<stdio.h>\n\nint main(void) {\n\tint a, b, x;\n\n\tscanf(\"%d %d %d\", &x, &a, &b);\n\n\tif (0 >= b - a) {\n\t\tprintf(\"delic... |
CDSS_657780 | CDSS | #include<stdio.h>
int main()
{
int n,a;
scanf("%d %d",&n,&a);
if((n%500)<=a)
{
printf("Yes\n");
}
else
{
printf("No\n");
}
return 0;
}
| 1,628 | memory_bytes | {'s_id': 's057742677', 'p_id': 'p03433', 'u_id': 'u353919145', 'date': '1595905819', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1628', 'code_size': '189'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main()\n{\n int n,a;\n scanf(\"%d %d\",&n,&a);\n\n if((n%500)<=a)\n {\n printf(\"Yes\\n\")... |
CDSS_516901 | CDSS | #include <stdio.h>
#include <string.h>
int max(int a, int b){
if(a<b)return b;
else return a;
}
int min(int a, int b){
if(a<b)return a;
else return b;
}
int main(void){
char s[500000+5];
scanf("%s", s);
int n=strlen(s);
long int ans=0;
int i=0;
while(i<n){
int l, r;
... | 2,212 | memory_bytes | {'s_id': 's520336413', 'p_id': 'p02873', 'u_id': 'u972042735', 'date': '1597085137', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '13', 'memory': '2212', 'code_size': '530'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\nint max(int a, int b){\n if(a<b)return b;\n else return a;\n}\nint min(int a, int b){\n... |
CDSS_77962 | CDSS | #include<stdio.h>
char s[110];
int p=0;
double f(double a,int b,double c){
if(b==2)return a+c;
if(b==3)return a-c;
if(b==4)return a*c;
return a/c;
}
int kobun(){
int i,r=0,o[3],or[]={0,0,1,1,2,2};
int n[3],a;
char c[]={")=+-*/"};
while(1){
for(a=0;'0'<=s[p]&&s[p]<='9';p++)a=a*10+s[p]-'0';
if(s[p... | 1,768 | memory_bytes | {'s_id': 's407411052', 'p_id': 'p00109', 'u_id': 'u731027244', 'date': '1513768170', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1768', 'code_size': '645'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nchar s[110];\nint p=0;\ndouble f(double a,int b,double c){\n if(b==2)return a+c;\n if(b==3)return a-c;\n if(b==4... |
CDSS_530653 | CDSS | #include <stdio.h>
#include <stdlib.h>
int main (void) {
int i;
int n;
scanf("%d", &n);
int eat_order[n+1];
eat_order[0] = -1;
for ( i=1; i<n+1; i++ )
scanf("%d", &eat_order[i]);
int ans=0;
int tmp;
for ( i=1; i<n+1; i++ ) {
scanf("%d", &tmp);
ans += tmp;
... | 128 | memory_bytes | {'s_id': 's633598926', 'p_id': 'p02916', 'u_id': 'u263564761', 'date': '1583035866', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '655'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 (void) {\n int i;\n int n;\n scanf(\"%d\", &n);\n\n int eat_order[n+1]... |
CDSS_733119 | CDSS | #include<stdio.h>
#include<string.h>
int main()
{
char s[100000];
scanf("%s", s);
int l,p=0;
l=strlen(s);
for(int i=0;i<l-1;i++)
{
if(s[i]!=s[i+1])
{
p++;
}
}
printf("%d\n", p);
return 0;
}
| 256 | memory_bytes | {'s_id': 's882509406', 'p_id': 'p03947', 'u_id': 'u863370423', 'date': '1563515150', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '256', 'code_size': '262'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 char s[100000];\n scanf(\"%s\", s);\n int l,p=0;\n l=strlen(s);\n ... |
CDSS_64907 | CDSS | main(){float f;for(;~scanf("%f",&f);)puts(f>91?"heavy":f>81?"light heavy":f>75?"middle":f>69?"light middle":f>64?"welter":f>60?"light welter":f>57?"light":f>54?"feather":f>51?"bantam":f>48?"fly":"light fly");return 0;} | 604 | memory_bytes | {'s_id': 's464204538', 'p_id': 'p00048', 'u_id': 'u300645821', 'date': '1349113218', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '604', 'code_size': '218'} | [
{
"content": "Your task is to predict the 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(){float f;for(;~scanf(\"%f\",&f);)puts(f>91?\"heavy\":f>81?\"light heavy\":f>75?\"middle\":f>69?\"light middle\":f>64?\"welter\":... |
CDSS_507754 | CDSS | #include<stdio.h>
#include<string.h>
int main()
{
char s[105],t[105],u[205];
int n;
scanf("%d",&n);
scanf("%s%s",s,t);
for(int i=0;i<n;i++) u[2*i]=s[i];
for(int i=0;i<n;i++) u[2*i+1]=t[i];
u[2*n]='\0';
printf("%s\n",u);
return 0;
}
| 128 | memory_bytes | {'s_id': 's442661989', 'p_id': 'p02830', 'u_id': 'u681396939', 'date': '1577067315', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '262'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\n\nint main()\n{\n \tchar s[105],t[105],u[205];\n\tint n;\n scanf(\"%d\",&n);\n scanf(\"%... |
CDSS_168185 | CDSS | #include <stdio.h>
void bubbleSort(int *,int);
int main(){
int i,N;
int A[100];
scanf("%d",&N);
for(i=0;i<N;i++){
scanf("%d",&A[i]);
}
bubbleSort(A,N);
return 0;
}
void bubbleSort(int *A,int N){
int flag = 1; // 逆の隣接要素が存在する
int j,x,count=0;
while(flag){
flag = 0;
for(j=N-1;j>0;j-... | 2,088 | memory_bytes | {'s_id': 's873369077', 'p_id': 'p02259', 'u_id': 'u106492454', 'date': '1529635488', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2088', 'code_size': '572'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nvoid bubbleSort(int *,int);\n\nint main(){\n int i,N;\n int A[100];\n\n scanf(\"%d\",&N);\n for(i=0;i<N;i++)... |
CDSS_505316 | CDSS | #include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<math.h>
#define MAX 200000
int prime[MAX + 1];
int main(){
int x;
int limit;
int i,j;
scanf("%d", &x);
for(i = 2;i <= MAX;i++) prime[i] = 1;
limit = sqrt(MAX);
for(i = 2;i <= limit;i++){
if(prime[i] == 1){
for(j = i*2;j <= MA... | 1,024 | memory_bytes | {'s_id': 's289240494', 'p_id': 'p02819', 'u_id': 'u253584031', 'date': '1586569145', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '58', 'memory': '1024', 'code_size': '449'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\n#include<stdlib.h>\n#include<math.h>\n\n#define MAX 200000\n\nint prime[MAX + 1];\n\nint main()... |
CDSS_44734 | CDSS | #include<stdio.h>
#include<stdbool.h>
#include<math.h>
#define N 1000000
typedef struct{
bool value;
bool dis;
}prime_t;
prime_t prime[N];
void init()
{
int i;
for(i=0;i<N;i++)
{
prime[i].dis = false;
}
}
bool is_prime(int n)
{
if(n == 0 || n == 1) return false;
if(n == 2) return true;
if... | 2,548 | memory_bytes | {'s_id': 's223920948', 'p_id': 'p00009', 'u_id': 'u316203371', 'date': '1397476066', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '300', 'memory': '2548', 'code_size': '773'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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<stdbool.h>\n#include<math.h>\n#define N 1000000\ntypedef struct{\n bool value;\n bool dis;\n}prime_t;\n\... |
CDSS_174601 | CDSS | #include<stdio.h>
#include<string.h>
typedef struct{
char suit;
char value;
}Card;
void bubbleSort(Card [], int);
void selectionSort(Card [], int);
void swap(char *, char *);
void print(Card [], int);
int stable(Card [], Card [], int);
int main(){
Card C1[101], C2[101];
int n, i;
char ch;
scanf("%d%c", ... | 612 | memory_bytes | {'s_id': 's565826969', 'p_id': 'p02261', 'u_id': 'u682709088', 'date': '1397799893', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '612', 'code_size': '1560'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\ntypedef struct{\n char suit;\n char value;\n}Card;\n\nvoid bubbleSort(Card [], int);\nvoid ... |
CDSS_472953 | CDSS | #include<stdio.h>
int main(void){
double l;
scanf("%lf",&l);
printf("%.8lf",l*l*l/27);
return 0;
} | 256 | memory_bytes | {'s_id': 's216632017', 'p_id': 'p02731', 'u_id': 'u073336549', 'date': '1591611483', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '256', 'code_size': '106'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 double l;\n scanf(\"%lf\",&l);\n printf(\"%.8lf\",l*l*l/27);\n return 0;\n}\nPredict its memo... |
CDSS_744798 | CDSS | #include <stdio.h>
int main(void){
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
if(a+b+c == 17 && a % 5==0 && b % 5==0){
printf("YES\n");
} else if(a+b+c == 17 && a % 5==0 && c % 5==0){
printf("YES\n");
} else if(a+b+c == 17 && b % 5==0 && c % 5==0){
printf("YES\n");
} else {
printf("NO\n");
}... | 128 | memory_bytes | {'s_id': 's681152436', 'p_id': 'p04043', 'u_id': 'u384161668', 'date': '1528347193', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '334'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n \nint main(void){\n\t\n int a,b,c;\n \n scanf(\"%d %d %d\",&a,&b,&c);\n \n if(a+b+c == 17 && a % 5==0 && b %... |
CDSS_190760 | CDSS | #include<stdio.h>
#include<stdlib.h>
int main(){
int i, j, n, q, C=0, *S, *T;
scanf("%d", &n);
S = malloc( n * sizeof(int));
for(i=0;i<n;i++){
scanf("%d",&S[i]);
}
scanf("%d", &q);
T=malloc(q*sizeof(int));
for(i=0;i<q;i++){
scanf("%d", &T[i]);
for(j=0;j<n;j+... | 2,048 | memory_bytes | {'s_id': 's789636130', 'p_id': 'p02267', 'u_id': 'u984746713', 'date': '1577112387', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2048', 'code_size': '427'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 i, j, n, q, C=0, *S, *T;\n \n scanf(\"%d\", &n);\n S = malloc( n * sizeof... |
CDSS_186540 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
struct Node{
int key;
struct Node *next,*prev;
};
struct Node *nil;
struct Node* List(int key){
struct Node *cur=nil->next;
while(cur!=nil && cur->key!=key){
cur=cur->next;
}
return cur;
}
void in(){
nil=(struct Node*)malloc(sizeof(struct Node)... | 32,936 | memory_bytes | {'s_id': 's660496526', 'p_id': 'p02265', 'u_id': 'u781291236', 'date': '1533794116', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '210', 'memory': '32936', '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#include<stdlib.h>\n#include<string.h>\n\nstruct Node{\n int key;\n struct Node *next,*prev;\n};\n\nstruct Node *... |
CDSS_24920 | CDSS | #include <stdio.h>
#define NUM_RANKING 3
int
main(int argc, char *argv[])
{
int i;
unsigned long v, top[NUM_RANKING] = {0, 0, 0};
while (EOF != scanf("%lu\n", &v)) {
for (i = 0; i < NUM_RANKING; i++) {
unsigned long tmp;
if (v < top[i]) continue;
tmp = top[i];
... | 612 | memory_bytes | {'s_id': 's906912014', 'p_id': 'p00001', 'u_id': 'u810414566', 'date': '1353469901', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '612', 'code_size': '494'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 NUM_RANKING 3\nint\nmain(int argc, char *argv[])\n{\n int i;\n unsigned long v, top[NUM_RANKING] =... |
CDSS_351680 | CDSS | #include <stdio.h>
#define MAX 100
int n, m;
int a[MAX][MAX];
int b[MAX];
int main(void) {
int i, j;
if (scanf("%d%d", &n, &m) != 2) return 1;
for (i = 0; i < n; i++) {
for (j = 0; j < m; j++) {
if (scanf("%d", &a[i][j]) != 1) return 1;
}
}
for (i = 0; i < m; i++) {
if (scanf("%d", &b[i]) != 1) return ... | 2,140 | memory_bytes | {'s_id': 's733877230', 'p_id': 'p02410', 'u_id': 'u543521645', 'date': '1537842767', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2140', '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\n#define MAX 100\n\nint n, m;\nint a[MAX][MAX];\nint b[MAX];\n\nint main(void) {\n\tint i, j;\n\tif (scanf(\"%d%d... |
CDSS_547085 | CDSS | #include<stdio.h>
int main()
{
unsigned long long r,ans;
scanf ("%lld",&r);
ans = 3*(r*r);
printf("%lld\n",ans);
return 0;
}
| 128 | memory_bytes | {'s_id': 's042520071', 'p_id': 'p02969', 'u_id': 'u623364320', 'date': '1563685165', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '128', 'code_size': '149'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 unsigned long long r,ans;\n\n scanf (\"%lld\",&r);\n\n ans = 3*(r*r);\n\n printf(\"%lld... |
CDSS_687568 | CDSS |
// AtCoder Beginner Contest 072 C
#include<stdio.h>
int d[100005];
int main(void)
{
int i, N, a, t;
int max = 0;
scanf("%d", &N);
for(i = 0; i < 100005; i++)
d[i] = 0;
for(i = 0; i < N; i++){
scanf("%d", &a);
if(a>0){d[a-1]++;}
d[a]++; d[a+1]++;
}
... | 512 | memory_bytes | {'s_id': 's574101869', 'p_id': 'p03611', 'u_id': 'u655992433', 'date': '1504405410', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '11', 'memory': '512', 'code_size': '447'} | [
{
"content": "Your task is to predict the memory 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// AtCoder Beginner Contest 072 C\n\n#include<stdio.h>\n\n\n int d[100005];\n\nint main(void)\n{\n\n int i, N, a, t;\n in... |
CDSS_662417 | CDSS | #include <stdio.h>
int main(void){
int a,b;
scanf("%d%d",&a,&b);
int temp = a*b;
if(temp%2==0){
printf("Even");
}else{
printf("Odd");
}
return 0;
} | 128 | memory_bytes | {'s_id': 's084764317', 'p_id': 'p03455', 'u_id': 'u168774513', 'date': '1555516991', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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>\n\nint main(void){\n\tint a,b;\n\tscanf(\"%d%d\",&a,&b);\n\tint temp = a*b;\n\tif(temp%2==0){\n\t\tprintf(\"Even\")... |
CDSS_713912 | CDSS | #include<stdio.h>
int main()
{
int A, B;
scanf("%d %d", &A, &B);
if (A+B > 23) printf("%d", A+B-24);
else printf("%d", A+B);
return 0;
}
| 128 | memory_bytes | {'s_id': 's373455939', 'p_id': 'p03773', 'u_id': 'u374372942', 'date': '1541628979', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '144'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n\tint A, B;\n\tscanf(\"%d %d\", &A, &B);\n\t\n\tif (A+B > 23) printf(\"%d\", A+B-24);\n\telse printf... |
CDSS_656002 | CDSS | #include <stdio.h>
main()
{
int N,x;
scanf("%d",&N);
x=N/3;
printf("%d",x);
} | 128 | memory_bytes | {'s_id': 's810075045', 'p_id': 'p03423', 'u_id': 'u892750006', 'date': '1567782085', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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>\n\nmain()\n{\n\tint N,x;\n\t\n\tscanf(\"%d\",&N);\n\t\n\tx=N/3;\n\t\n\tprintf(\"%d\",x);\n\t\n\t\n}\nPredict its me... |
CDSS_65795 | CDSS | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
int BubSort1(char x[ ], int n)
{
int i, j, temp;
for (i = 0; i < n - 1; i++) {
for (j = n - 1; j > i; j--) {
if (x[j - 1] > x[j]) {
temp = x[j];
x[j] = x[j - 1];
x[j - 1]= temp;
}
}
}
}
int BubSort2(char x[ ]... | 604 | memory_bytes | {'s_id': 's826157555', 'p_id': 'p00051', 'u_id': 'u290605490', 'date': '1355051232', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '604', 'code_size': '772'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n\nint BubSort1(char x[ ], int n)\n{\n int i, j, temp;\n\n for (i = 0; ... |
CDSS_373069 | CDSS | #include <stdio.h>
int a[100010];
int main(){
int n;
scanf("%d",&n);
for(int i=0;i<n;i++)scanf("%d",a+i);
printf("%d",a[0]);
for(int i=1;i<n;i++)if(a[i-1]!=a[i])printf(" %d",a[i]);
puts("");
}
| 2,176 | memory_bytes | {'s_id': 's712305167', 'p_id': 'p02446', 'u_id': 'u409832240', 'date': '1563619300', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2176', '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>\n\nint a[100010];\nint main(){\n\tint n;\n\tscanf(\"%d\",&n);\n\tfor(int i=0;i<n;i++)scanf(\"%d\",a+i);\n\tprintf(\... |
CDSS_235693 | CDSS | #include<stdio.h>
#include<math.h>
int main(){
int n,i,j;
double h,m,p,si,sum,g[1001];
while(1){
sum=0;
si=0;
scanf("%d",&n);
if(n==0) break;
for(i=0;i<n;i++){
scanf("%lf",&g[i]);
sum+=g[i];
m=sum/n*1.0;
}
for(j=0;j<n;j++){
si+=(g[j]-m)*(g[j]-m);
}
p=si/n;
... | 664 | memory_bytes | {'s_id': 's199324787', 'p_id': 'p02381', 'u_id': 'u849340810', 'date': '1436687416', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '664', '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<math.h>\n\nint main(){\n int n,i,j;\n double h,m,p,si,sum,g[1001];\n\n while(1){\n sum=0;\n si=0;... |
CDSS_392650 | CDSS | #include <stdio.h>
int main(void){
int N;
char C[3];
int A = 0;
int W = 0;
int T = 0;
int R = 0;
scanf("%d",&N);
for(int i = 0; i < N; i++){
scanf("%s",C);
if(strcmp(C,"AC")==0){
A++;
}else if(strcmp(C,"WA")==0){
W++;
}else if(strcmp(C,"TLE")==0){
T++;
}else if... | 1,736 | memory_bytes | {'s_id': 's090664384', 'p_id': 'p02613', 'u_id': 'u451464218', 'date': '1594240766', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '16', 'memory': '1736', 'code_size': '483'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 char C[3];\n int A = 0;\n int W = 0;\n int T = 0;\n int R = 0;\n scanf(\"%d\"... |
CDSS_77511 | CDSS | /**
* AOJ #0106: Discount of Buckwheat (PCK 2005)
*/
#include <stdio.h>
/**
* Return the best price for w grams of buckwheat.
*/
int price(int w)
{
double p, min;
int a, b, c, ad, bd, cd;
/* a price without discount, which must be the upper bound. */
min = (w / 200) * 380 + (w % 200 == 0 ? 0 : 550 - 380);... | 600 | memory_bytes | {'s_id': 's983891002', 'p_id': 'p00106', 'u_id': 'u320121447', 'date': '1441277856', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '958'} | [
{
"content": "Your task is to predict the memory 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 * AOJ #0106: Discount of Buckwheat (PCK 2005)\n */\n\n#include <stdio.h>\n\n/**\n * Return the best price for w grams of buckwhe... |
CDSS_327844 | CDSS | #include<stdio.h>
#include <stdlib.h>
#define Fi for (i = 0; i < n; i++)
int compare_int(const void *a, const void *b){
return *(int*)a - *(int*)b;
}
int data[100000000];
int main()
{
int n;
long long sum=0;
scanf("%d",&n);
int i;
Fi{
scanf("%d",&data[i]);
sum+=data[i];
}
qs... | 2,104 | memory_bytes | {'s_id': 's450164899', 'p_id': 'p02402', 'u_id': 'u679086106', 'date': '1530132721', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '437'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include <stdlib.h>\n#define Fi for (i = 0; i < n; i++) \nint compare_int(const void *a, const void *b){\n retur... |
CDSS_148582 | CDSS | #include <stdio.h>
int main(){
int i,j,v,N,l=0;
int A[1000];
scanf("%d",&N);
for(i=0;i < N;i++){
scanf("%d",&A[i]);
}
for(i=0;i < N-1;i++){
printf("%d ",A[i]);
}
printf("%d\n",A[i]);
for(i=1;i <= N-1;i++){
v=A[i];
j=i-1;
while(j >=0 && A[j] > v){
A[j+1]=A[j];
j--;
... | 2,064 | memory_bytes | {'s_id': 's376560817', 'p_id': 'p02255', 'u_id': 'u638065094', 'date': '1529313357', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2064', 'code_size': '443'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n int i,j,v,N,l=0;\n int A[1000];\n scanf(\"%d\",&N);\n for(i=0;i < N;i++){\n scanf(\"%d\",&A... |
CDSS_184989 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
typedef struct _node
{
int key;
struct _node *next;
struct _node *prev;
} node;
node *head;
node *makenode(int);
void insert(int);
void delete(int);
void deleteFirst();
void deleteLast();
int main()
{
int i, n, a;
char op[16];
node *x;
... | 31,784 | memory_bytes | {'s_id': 's907732757', 'p_id': 'p02265', 'u_id': 'u534407423', 'date': '1493309140', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '430', 'memory': '31784', 'code_size': '1881'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#include<string.h>\n\ntypedef struct _node\n{\n int key;\n struct _node *next;\n struc... |
CDSS_121440 | CDSS | // AOJ 2007: Make Purse Light
// 2017.10.15
#include <stdio.h>
int n[4];
int c[4] = { 10, 50, 100, 500 };
int main()
{
int t, p, a, i, sum;
int f[4];
t = 0; while (scanf("%d", &p) && p > 0) {
for (sum = 0, i = 0; i < 4; i++) {
scanf("%d", &a); n[i] = a, sum += a*c[i];
}
p = sum - p; for (i = 3; i >= 0; ... | 1,740 | memory_bytes | {'s_id': 's148883820', 'p_id': 'p01132', 'u_id': 'u847467233', 'date': '1508046442', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1740', 'code_size': '491'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n// AOJ 2007: Make Purse Light\n// 2017.10.15\n\n#include <stdio.h>\n\nint n[4];\nint c[4] = { 10, 50, 100, 500 };\n\nint main()\n{\n\t... |
CDSS_364443 | CDSS | #include<stdio.h>
int main()
{
char a[1000];
int i,sum;
while(1)
{
scanf("%s",&a);
if(a[0]=='0')
{
return 0;
}
sum = 0;
for(i=0;a[i]!='\0';i++)
{
sum+=a[i]-'0';
}
printf("%d\n",sum);
}
return 0;
}
| 2,052 | memory_bytes | {'s_id': 's924321047', 'p_id': 'p02416', 'u_id': 'u521330660', 'date': '1525433898', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2052', 'code_size': '314'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n char a[1000];\n int i,sum;\n while(1)\n {\n scanf(\"%s\",&a);\n if(a[0]==... |
CDSS_20488 | CDSS | #include<stdio.h>
int main(void)
{
int i,j,k;
for(i=1;i<10;i++){
for(j=1;j<10;j++){
k=i*j;
printf("%dx%d=%d\n",i,j,k);
}
}
return 0;
} | 0 | memory_bytes | {'s_id': 's274968537', 'p_id': 'p00000', 'u_id': 'u798885156', 'date': '1320157037', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '141'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\nint i,j,k;\nfor(i=1;i<10;i++){\n for(j=1;j<10;j++){\nk=i*j;\nprintf(\"%dx%d=%d\\n\",i,j,k);\n ... |
CDSS_701670 | CDSS | #include<stdio.h>
int main(){
int n,x[9],i,m;
scanf("%d",&n);
for(i=0;i<9;i++)x[i]=0;
for(i=0;i<n;i++){scanf("%d",&m);x[m/400<8?m/400:8]++;}
m=0;for(i=0;i<8;i++)if(x[i])m++;
printf("%d %d",m?m:1,m+x[8]);
}
| 128 | memory_bytes | {'s_id': 's381045628', 'p_id': 'p03695', 'u_id': 'u218346293', 'date': '1591935671', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '218'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int n,x[9],i,m;\n scanf(\"%d\",&n);\n for(i=0;i<9;i++)x[i]=0;\n for(i=0;i<n;i++){scanf(\"%d\",&m)... |
CDSS_406380 | CDSS | #include <stdio.h>
int main(void){
int A,B;
scanf("%d %d", &A, &B);
printf("%d", A*B);
return 0;
}
| 1,700 | memory_bytes | {'s_id': 's749459611', 'p_id': 'p02657', 'u_id': 'u210041761', 'date': '1597032255', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1700', 'code_size': '115'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n int A,B;\n scanf(\"%d %d\", &A, &B);\n \n printf(\"%d\", A*B);\n \n\n return 0;\n}\n\nPr... |
CDSS_674365 | CDSS | #include <stdio.h>
#include <stdlib.h>
int main(void){
char a[10];
int i;
int c=0;
scanf("%s", a);
for (i = 0; a[i] != '\0'; i++){
c += a[i]-'0';
}
int b = atoi(a);
if (b % c == 0)
printf("Yes\n");
else
printf("No\n");
return 0;
} | 128 | memory_bytes | {'s_id': 's962882537', 'p_id': 'p03502', 'u_id': 'u286120733', 'date': '1512356706', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '128', 'code_size': '251'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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(void){\n\t\n\tchar a[10];\n\n\tint i;\n\tint c=0;\n\tscanf(\"%s\", a);\n\n\tfor (i... |
CDSS_68046 | CDSS | #include<stdio.h>
struct _data{
int rank;
int p;
int num;
}typedef data;
data d[100000];
void sort(int n){
int i,j,t;
for(i=1;i<=n;i++){
for(j=i;j<=n;j++){
if(d[i].p<d[j].p){
t=d[i].p;
d[i].p=d[j].p;
d[j].p=t;
t=d[i].num;
d[i].num=d[j].num;
d[j].num=t;
}
}
}
}
int main(){
int i,... | 0 | memory_bytes | {'s_id': 's344756003', 'p_id': 'p00061', 'u_id': 'u769144819', 'date': '1282805543', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '629'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nstruct _data{\n\tint rank;\n\tint p;\n\tint num;\n}typedef data;\ndata d[100000];\nvoid sort(int n){\n\tint i,j,t;\... |
CDSS_654313 | CDSS | //O(N^2)
#include <stdio.h>
#include <x86intrin.h>
typedef unsigned int uint;
#pragma GCC optimize ("O3")
inline uint read(void){
int flag = 0;
uint num = 0;
for(;;){
uint c = getchar_unlocked() - 48;
if(c < 10){
num = num*10+c;
flag = 1;
}else if(flag){
... | 1,664 | memory_bytes | {'s_id': 's503711808', 'p_id': 'p03412', 'u_id': 'u188638030', 'date': '1521490462', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2519', 'memory': '1664', 'code_size': '3913'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n//O(N^2)\n#include <stdio.h>\n#include <x86intrin.h>\ntypedef unsigned int uint;\n#pragma GCC optimize (\"O3\")\ninline uint read(void... |
CDSS_70226 | CDSS | i;main(h,m,s){(++i%2?scanf("%d%d%d",&h,&m,&s),h=(120-h*60-m)*60-s,~m:1)&&main(h*=3,printf("%02d:%02d:%02d\n",h/3600,h/60%60,h%60));} | 612 | memory_bytes | {'s_id': 's839709505', 'p_id': 'p00074', 'u_id': 'u340315059', 'date': '1376831085', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '612', 'code_size': '132'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\ni;main(h,m,s){(++i%2?scanf(\"%d%d%d\",&h,&m,&s),h=(120-h*60-m)*60-s,~m:1)&&main(h*=3,printf(\"%02d:%02d:%02d\\n\",h/3600,h/60%60,h%60)... |
CDSS_388135 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
void swap (int *x, int *y) {
int temp;
temp = *x;
*x = *y;
*y = temp;
}
int gcd(int a,int b){
if(a<b){
swap(&a,&b);
}
if(b==0){
return a;
}
int r=a%b;
while(r!=0){
a = b;
b = r;
r = (a%b)... | 2,424 | memory_bytes | {'s_id': 's131627345', 'p_id': 'p02601', 'u_id': 'u419845534', 'date': '1595734017', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '2424', 'code_size': '1503'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 \n \nvoid swap (int *x, int *y) {\n int temp; \n... |
CDSS_550758 | CDSS | #include <stdio.h>
int main() {
int N, B, A;
int fara1, fara2;
scanf("%d", &N);
scanf("%d", &A);
scanf("%d", &B);
fara1 = N*A;
fara2 = B;
if (fara1 >= fara2) {
printf("%d\n", fara2);
}
else {
printf("%d\n", fara1);
}
} | 128 | memory_bytes | {'s_id': 's314145977', 'p_id': 'p02981', 'u_id': 'u450679094', 'date': '1562783444', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '300'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main() {\n int N, B, A;\n int fara1, fara2;\n\n scanf(\"%d\", &N);\n\n scanf(\"%d\", &A);\n\n ... |
CDSS_587371 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <limits.h>
#define REP(i,n) for(i=0;i<n;i++)
int iin() {
int i;
scanf("%d", &i);
return i;
}
long long llin() {
long long i;
scanf("%lld", &i);
return i;
}
double din() {
double i;
scanf("%lf", &i)... | 128 | memory_bytes | {'s_id': 's820929138', 'p_id': 'p03086', 'u_id': 'u420082791', 'date': '1553458152', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '1040'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <math.h>\n#include <limits.h>\n\n#define REP(i,n) for(i=0;i<n;i... |
CDSS_576938 | CDSS | #include <stdio.h>
int main(){
int n, i;
scanf("%d", &n);
long a[n], cm=0, cz=0, max=0, min=1000000000, sum=0, ans=0;
for(i=0; i<n; i++) {
scanf("%ld", &a[i]);
}
for(i=0; i<n; i++) {
if(a[i]<0) {
cm += 1;
sum += -1*a[i];
if(min >-1*a[i]) ... | 896 | memory_bytes | {'s_id': 's425855584', 'p_id': 'p03062', 'u_id': 'u806657856', 'date': '1558127636', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '14', 'memory': '896', 'code_size': '686'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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, i;\n\n scanf(\"%d\", &n);\n\n long a[n], cm=0, cz=0, max=0, min=1000000000, sum=0,... |
CDSS_57548 | CDSS | #include<stdio.h>
int main(void)
{
int a[4+1],b[4+1],x,y;
while(scanf("%d %d %d %d %d %d %d %d",&a[1],&a[2],&a[3],&a[4],&b[1],&b[2],&b[3],&b[4])!=EOF) {
x=0;
y=0;
if(a[1]==b[1]) {
x+=1;
}
if(a[2]==b[2]) {
x+=1;
}
if(a[3]==b[3]) {
x+=1;
}
if(a[4]==b[4]) {
x+=1;
}
if((a[1]==b[2])||(a[1... | 596 | memory_bytes | {'s_id': 's530032297', 'p_id': 'p00025', 'u_id': 'u089494965', 'date': '1353395998', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '585'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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[4+1],b[4+1],x,y;\n\twhile(scanf(\"%d %d %d %d %d %d %d %d\",&a[1],&a[2],&a[3],&a[4],&b[1... |
CDSS_276658 | CDSS | #include <stdio.h>
int main(void) {
int a, b, c;
scanf("%d %d %d", &a, &b ,&c);
if(a < b && b < c)
printf("Yes\n");
else
printf("No\n");
return 0;
} | 580 | memory_bytes | {'s_id': 's617674130', 'p_id': 'p02392', 'u_id': 'u962330056', 'date': '1464429666', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', 'code_size': '164'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void) {\n int a, b, c;\n\n scanf(\"%d %d %d\", &a, &b ,&c);\n if(a < b && b < c)\n printf(\"Yes\\n\")... |
CDSS_264265 | CDSS | #include<stdio.h>
int main(void) {
int h, m, s;
scanf("%d", &s);
h = s / 3600;
s -= h * 3600;
m = s / 60;
s -= m * 60;
printf("%d:%d:%d\n", h, m, s);
return 0;
}
| 2,108 | memory_bytes | {'s_id': 's950599975', 'p_id': 'p02390', 'u_id': 'u365773967', 'date': '1586681037', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '196'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 h, m, s;\n scanf(\"%d\", &s);\n h = s / 3600;\n s -= h * 3600;\n m = s / 60;\... |
CDSS_187545 | CDSS | #include <stdio.h>
int main(){
int a,b,A[10000],B[10000],count=0,i,j;
scanf("%d",&a);
for(i=0;i<a;i++){
scanf("%d",&A[i]);
}
scanf("%d",&b);
for(i=0;i<b;i++){
scanf("%d",&B[i]);
}
for(i=0;i<b;i++){
for(j=0;j<a;j++){
if(A[j]==B[i]){
count++;
break;
}
}
}
printf("%d\n",count... | 644 | memory_bytes | {'s_id': 's135712874', 'p_id': 'p02267', 'u_id': 'u921303861', 'date': '1437975950', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '644', 'code_size': '336'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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,A[10000],B[10000],count=0,i,j;\n scanf(\"%d\",&a);\n for(i=0;i<a;i++){\n scanf(\"%d\... |
CDSS_673873 | CDSS | #include<stdio.h>
int main(void)
{
int n, a, b;
int p1;
scanf("%d %d %d", &n ,&a, &b);
p1 = n * a;
if(p1 > b){
printf("%d\n", b);
}else{
printf("%d\n", p1);
}
return 0;
} | 128 | memory_bytes | {'s_id': 's997077069', 'p_id': 'p03501', 'u_id': 'u579508806', 'date': '1512354068', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '128', 'code_size': '191'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 n, a, b;\n\tint p1;\n\t\n\tscanf(\"%d %d %d\", &n ,&a, &b);\n\t\n\tp1 = n * a;\n\t\n\tif... |
CDSS_425927 | CDSS | #include <stdio.h>
int main(void) {
int k,a,b,large;
scanf("%d",&k);
scanf("%d %d",&a,&b);
large = ((b / k) * k);
if ( a <= large ){
printf("OK\n");
}else{
printf("NG\n");
}
return 0;
} | 1,644 | memory_bytes | {'s_id': 's147118201', 'p_id': 'p02693', 'u_id': 'u553864013', 'date': '1591729469', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '1644', 'code_size': '232'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 k,a,b,large;\n\n scanf(\"%d\",&k);\n scanf(\"%d %d\",&a,&b);\n large = ((b / ... |
CDSS_204519 | CDSS | #include <stdio.h>
#include <limits.h>
int A[500000+5];
int swapCount = 0;
void merge(int, int, int);
void merge_sort(int, int);
int main()
{
int i, n;
scanf("%d", &n);
for (i = 0; i < n; i++) scanf("%d", &A[i]);
merge_sort(0, n);
for (i = 0; i < n-1; i++) printf("%d ", A[i]);
printf("%d\... | 5,600 | memory_bytes | {'s_id': 's518636551', 'p_id': 'p02272', 'u_id': 'u220116434', 'date': '1561700387', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '100', 'memory': '5600', 'code_size': '1128'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <limits.h>\nint A[500000+5];\nint swapCount = 0;\n\nvoid merge(int, int, int);\nvoid merge_sort(int, int)... |
CDSS_240494 | CDSS | #include <stdio.h>
int main(){
int x;
scanf("%d",&x);
printf("%d\n",x*x*x);
return 0;
} | 596 | memory_bytes | {'s_id': 's006018139', 'p_id': 'p02388', 'u_id': 'u332822187', 'date': '1429611994', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '104'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 x;\n scanf(\"%d\",&x);\n printf(\"%d\\n\",x*x*x);\n return 0;\n}\nPredict its memo... |
CDSS_678863 | CDSS | #include<stdio.h>
#include<math.h>
int main(){
int i=1;
int N;
scanf("%d",&N);
while(1){
if(i*i > N){
printf("%d\n",(i-1)*(i-1));
return 0;
}
i++;
}
}
| 128 | memory_bytes | {'s_id': 's465111768', 'p_id': 'p03556', 'u_id': 'u491818247', 'date': '1550637674', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '192'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<math.h>\n\nint main(){\n int i=1;\n int N;\n \n scanf(\"%d\",&N);\n \n while(1){\n if(i*i > N){\n... |
CDSS_277140 | CDSS | #include <stdio.h>
int main(void){
int a, b,c;
scanf("%d",&a);
scanf("%d",&b);
scanf("%d",&c);
if(0>a || 100<a){
return 0;
}
if(0>b || 100<b){
return 0;
}
if(0>c || 100<c){
return 0;
}
if(a<b && b<c){
printf... | 580 | memory_bytes | {'s_id': 's663496913', 'p_id': 'p02392', 'u_id': 'u213783895', 'date': '1474257746', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', 'code_size': '392'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n\n int a, b,c;\n \n scanf(\"%d\",&a);\n scanf(\"%d\",&b);\n scanf(\"%d\",&c);\n ... |
CDSS_727063 | CDSS | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdint.h> // int64_t
#define max(a,b) ((a) > (b) ? (a) : (b))
#define min(a,b) ((a) > (b) ? (b) : (a))
int get_int(void) {
int num;
scanf("%d", &num);
return num;
}
// <arr[0]> <arr[1]> .. <arr[size-1]>
int fget_array(int *arr, int size) {
... | 896 | memory_bytes | {'s_id': 's713478916', 'p_id': 'p03846', 'u_id': 'u866370648', 'date': '1591627598', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '11', 'memory': '896', 'code_size': '1116'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n#include <stdint.h> // int64_t\n\n#define max(a,b) ((a) > (b) ? (a) : (b... |
CDSS_186124 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef struct _Node {
int key;
struct _Node *next, *prev;
} Node;
Node *nil;
Node* listSearch(int key) {
Node *cur = nil->next;
while(cur != nil && cur->key != key) {
cur = cur->next;
}
return cur;
}
void init(void) {
nil = (Node *)malloc... | 32,956 | memory_bytes | {'s_id': 's528730068', 'p_id': 'p02265', 'u_id': 'u541712232', 'date': '1594906267', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '210', 'memory': '32956', 'code_size': '1410'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\ntypedef struct _Node {\n int key;\n struct _Node *next, *prev;\n} No... |
CDSS_314176 | CDSS | #include<stdio.h>
int main()
{
double r, l, s;
double pi = 3.141592653589;
scanf("%lf", &r);
s = r*r*pi;
l = 2 * r*pi;
printf("%f %f\n", s, l);
return 0;
} | 648 | memory_bytes | {'s_id': 's026056398', 'p_id': 'p02400', 'u_id': 'u279808390', 'date': '1467182942', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '648', 'code_size': '164'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n\tdouble r, l, s;\n\tdouble pi = 3.141592653589;\n\tscanf(\"%lf\", &r);\n\ts = r*r*pi;\n\tl = 2 * r*... |
CDSS_155361 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<math.h>
#define MAX 10000
int main(){
int n,i,j,find,count=0;
int num[MAX];
scanf("%d",&n);
if( n < 1 || MAX < n ) exit(2);
for( i = 0 ; i < n ; i++ )
{
scanf("%d",&num[i]);
if( num[i] < 2 || 100000000 < num[i]) exit(3);
}
for( i = 0 ; i... | 628 | memory_bytes | {'s_id': 's138761998', 'p_id': 'p02257', 'u_id': 'u319046809', 'date': '1460515502', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '30', 'memory': '628', 'code_size': '622'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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#define MAX 10000\n\nint main(){\n int n,i,j,find,count=0;\n int num[MAX];\... |
CDSS_347985 | CDSS | #include<stdio.h>
int main(){
int N,a,b,c,d,i,j,k,p[4][3][10];
scanf("%d",&N);
for(i=0;i<4;i++)for(j=0;j<3;j++)for(k=0;k<10;k++)p[i][j][k]=0;
for(i=0;i<N;i++){
scanf("%d %d %d %d",&a,&b,&c,&d);
p[a-1][b-1][c-1]+=d;
}
for(i=0;i<4;i++){
for(j=0;j<3;j++){
for(k=0;k<10;k++)printf(" %d",p[i][j][k]);
printf... | 612 | memory_bytes | {'s_id': 's784759414', 'p_id': 'p02409', 'u_id': 'u510563501', 'date': '1430403491', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '612', 'code_size': '391'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n\tint N,a,b,c,d,i,j,k,p[4][3][10];\n\tscanf(\"%d\",&N);\n\tfor(i=0;i<4;i++)for(j=0;j<3;j++)for(k=0;k<1... |
CDSS_710695 | CDSS | #include <stdio.h>
int main()
{
char s[11], a[4];
int i;
for(i=0; i<3; i++){
scanf("%s", s);
a[i] = s[0] + ('A' - 'a');
}
a[i] = '\0';
printf("%s\n", a);
return 0;
} | 128 | memory_bytes | {'s_id': 's679533890', 'p_id': 'p03737', 'u_id': 'u869997698', 'date': '1492909622', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '191'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 char s[11], a[4];\n\n int i;\n for(i=0; i<3; i++){\n scanf(\"%s\", s);\n a[i] = s[0] + ... |
CDSS_702404 | CDSS | /* Coached by rainboy */
#include <stdio.h>
#include <string.h>
#define N 100
int main() {
static char s[N + 1], cc[N * 2 + 1], *t = cc;
int n, h, i, x, y;
scanf("%d%s", &n, s);
x = y = 0;
for (i = 0; i < n; i++) {
x += (s[i] == '(' ? 1 : -1);
if (y > x)
y = x;
}
for (h = 0; h < -y; h++)
t += sprintf... | 128 | memory_bytes | {'s_id': 's750153481', 'p_id': 'p03696', 'u_id': 'u000120715', 'date': '1573057443', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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/* Coached by rainboy */\n#include <stdio.h>\n#include <string.h>\n\n#define N 100\n\nint main() {\n\tstatic char s[N + 1], cc[N * 2 +... |
CDSS_52758 | CDSS | #include<stdio.h>
int main(){
int n,i;
double ans=1.0;
scanf("%d",&n);
for(i=n;i>1;i--) ans*=i;
printf("%.0lf\n",ans);
return 0;
} | 632 | memory_bytes | {'s_id': 's514311045', 'p_id': 'p00019', 'u_id': 'u078042885', 'date': '1368365398', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '632', 'code_size': '136'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n\tint n,i;\n\tdouble ans=1.0;\n\tscanf(\"%d\",&n);\n\tfor(i=n;i>1;i--) ans*=i;\n\tprintf(\"%.0lf\\n\",... |
CDSS_23379 | CDSS | #include <stdio.h>
int main (void)
{
int height[10];
int i;
int highest[3];
for(i=0;i<10;i++){
scanf("%d", &height[i]);
}
for(i=0;i<3;i++){
highest[i]=0;
}
for(i=0;i<10;i++){
if(height[i]>highest[0]){
highest[2]=highest[1];
highest[1]=highest[0];
highest[0]=height[i];
} else if (height[i]>h... | 600 | memory_bytes | {'s_id': 's290360376', 'p_id': 'p00001', 'u_id': 'u866492677', 'date': '1470741039', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '517'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main (void)\n{\n\tint height[10];\n\tint i;\n\tint highest[3];\n\n\tfor(i=0;i<10;i++){\n\t\tscanf(\"%d\", &h... |
CDSS_379220 | CDSS | #include<stdio.h>
#include<string.h>
int main(){
int a,b,c,i;
int ans = 99999;
int tmp = 0;
char s[9999];
char t[9999];
int sl,tl;
scanf("%s",s);
scanf("%s",t);
sl = strlen(s);
tl = strlen(t);
for(i=0;i<sl-tl+1;i++){
b=0;
for(a=0;a<tl;a++){
if(s[i+a]!=t[a]){
b++;
... | 1,736 | memory_bytes | {'s_id': 's840865182', 'p_id': 'p02571', 'u_id': 'u956872271', 'date': '1598728717', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1736', 'code_size': '411'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 \tint a,b,c,i;\t\n \tint ans = 99999;\n \tint tmp = 0;\n char s[9999];\n char... |
CDSS_279310 | CDSS | #include <stdio.h>
int main(void){
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
if (a<b && b<c){
printf("Yes\n");
}
else{
printf("No\n");
}
}
| 2,044 | memory_bytes | {'s_id': 's145500644', 'p_id': 'p02392', 'u_id': 'u602702913', 'date': '1523866882', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2044', '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>\nint main(void){\n int a,b,c;\n scanf(\"%d %d %d\",&a,&b,&c);\n if (a<b && b<c){\n printf(\"Yes\\n\... |
CDSS_74463 | CDSS | #include<stdio.h>
int main(){
int idx;
int n,i;
int max=-1;
int temp1,temp2;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d %d",&temp1,&temp2);
if(temp2 > max){
idx=temp1; max=temp2;
}
else if(temp2 == max && temp1<idx){
idx=temp1;
}
}
printf("%d %d\n",idx,max);
return 0;
}
| 2,104 | memory_bytes | {'s_id': 's479469228', 'p_id': 'p00095', 'u_id': 'u723915999', 'date': '1522252158', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '303'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n int idx;\n int n,i;\n int max=-1;\n int temp1,temp2;\n\n scanf(\"%d\",&n);\n\n for(i=0;i<n;i++){\n ... |
CDSS_163635 | CDSS | #include<stdio.h>
int main(){
int a,b,n,mini;
int i,c,shiro;
scanf("%d",&n);
scanf("%d%d",&a,&b);
shiro=b-a;
if(a<=b)mini = a;
else mini = b;
for(i=2;i<n;i++){
scanf("%d",&c);
if(c<mini)mini=c;
else if(shiro<c-mini)shiro=c-mini;
}
printf("%d\n",shiro);
return 0;
}
| 2,140 | memory_bytes | {'s_id': 's132457210', 'p_id': 'p02258', 'u_id': 'u286936764', 'date': '1529318827', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '2140', 'code_size': '300'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int a,b,n,mini;\n int i,c,shiro;\n scanf(\"%d\",&n);\n scanf(\"%d%d\",&a,&b);\n shiro=b-a;\n if... |
CDSS_266641 | CDSS | #include <stdio.h>
int main() {
int a;
int b;
scanf("%d %d",&a,&b);
if(a>b) printf("a > b\n");
if(a<b) printf("a < b\n");
if(a==b) printf("a == b\n");
return 0;
} | 580 | memory_bytes | {'s_id': 's006875213', 'p_id': 'p02391', 'u_id': 'u831947655', 'date': '1442249463', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', 'code_size': '191'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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;\n int b;\n scanf(\"%d %d\",&a,&b);\n if(a>b) printf(\"a > b\\n\");\n if(a<b... |
CDSS_739410 | CDSS | #include <stdio.h>
int main() {
int n, k, x, y, ans;
scanf("%d %d %d %d", &n, &k, &x, &y);
if (n > k) {
ans = k * x + (n - k) * y;
} else
ans = n * x;
printf("%d\n", ans);
return 0;
}
| 128 | memory_bytes | {'s_id': 's516001669', 'p_id': 'p04011', 'u_id': 'u672956630', 'date': '1503958988', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '128', 'code_size': '224'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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, k, x, y, ans;\n scanf(\"%d %d %d %d\", &n, &k, &x, &y);\n if (n > k) {\n ans... |
CDSS_106342 | CDSS | #include <stdio.h>
#include <string.h>
int main(void)
{
int n;
int a, b, c;
int cal[100];
int i, j;
int tmp;
int max_cal;
int sum_cal;
scanf("%d%d%d%d", &n, &a, &b, &c);
for (i = 0; i < n; i++){
scanf("%d", &cal[i]);
}
for (i = 0; i < n; i++){
for (j = 0; j < n - 1; j++){
if (cal[j] < cal[j + 1... | 596 | memory_bytes | {'s_id': 's175662142', 'p_id': 'p00490', 'u_id': 'u648926140', 'date': '1412208323', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '612'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\nint main(void)\n{\n\tint n;\n\tint a, b, c;\n\tint cal[100];\n\tint i, j;\n\tint tmp;\n\tin... |
CDSS_376203 | CDSS | #include<stdio.h>
int main()
{
int a;
// 整数の入力
scanf("%d", &a);
// 出力
printf("%d\n",a^1);
return 0;
} | 1,736 | memory_bytes | {'s_id': 's046841010', 'p_id': 'p02552', 'u_id': 'u833153663', 'date': '1600023702', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1736', 'code_size': '140'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n int a;\n // 整数の入力\n scanf(\"%d\", &a);\n\n // 出力\n printf(\"%d\\n\",a^1);\n retur... |
CDSS_145467 | CDSS | /* Insertion Sort */
#include <stdio.h>
void print_seq(const int seq[], int num)
{
printf("%d", seq[0]);
int i;
for (i = 1; i < num; i++)
printf(" %d", seq[i]);
putchar('\n');
}
int main(void)
{
int N, i, j, key;
scanf("%d", &N);
int s[N];
for (i = 0; i < N; i++)
... | 604 | memory_bytes | {'s_id': 's439975357', 'p_id': 'p02255', 'u_id': 'u072053884', 'date': '1488426142', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '604', 'code_size': '603'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n/* Insertion Sort */\n\n#include <stdio.h>\n\nvoid print_seq(const int seq[], int num)\n{\n printf(\"%d\", seq[0]);\n \n int ... |
CDSS_180152 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
void push(int);
int pop(void);
int head,st[1000];
int main(){
int a,b;
head=0;
char s[100];
while(scanf("%s",s)!=EOF){
if(s[0]=='+'){
a=pop();
b=pop();
push(a+b);
//printf("%d\n",st[head]);
}else if(s[0]=='-'){
a=... | 2,044 | memory_bytes | {'s_id': 's087392732', 'p_id': 'p02263', 'u_id': 'u134340217', 'date': '1576136378', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2044', 'code_size': '695'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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>\nvoid push(int);\nint pop(void);\nint head,st[1000];\n\nint main(){\n int a... |
CDSS_76804 | CDSS | #include<stdio.h>
#include<string.h>
int main(void)
{
int n,i;
scanf("%d",&n);
for(i=0;i<n;i++)
{
int base=0,score=0,outcount=0;
while(1)
{
int res1,res2;
char event[10],*hit="HIT",*homerun="HOMERUN";
scanf("%s",event);
res1=strcmp(hit,... | 592 | memory_bytes | {'s_id': 's165176388', 'p_id': 'p00103', 'u_id': 'u725841747', 'date': '1475740108', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', 'code_size': '943'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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{\n int n,i;\n scanf(\"%d\",&n);\n for(i=0;i<n;i++)\n {\n int ba... |
CDSS_174899 | CDSS | #include<stdio.h>
#include<stdlib.h>
void bubble(int *a,char *b,int n){
int x,flag=1;
char y;
while(flag!=0){
flag=0;
for(int i=n-1;i>0;i--){
if(a[i]<a[i-1]){
x=a[i];
y=b[i];
a[i]=a[i-1];
b[i]=b[i-1];
a[i-1]=x;
b[i-1]=y;
flag=1;
}
}
}
//出力
for(int i=0;i<n;i++){
printf("... | 2,036 | memory_bytes | {'s_id': 's816448893', 'p_id': 'p02261', 'u_id': 'u102033351', 'date': '1571310817', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2036', 'code_size': '1331'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\nvoid bubble(int *a,char *b,int n){\n\tint x,flag=1;\n\tchar y;\n\twhile(flag!=0){\n\t\tflag=0... |
CDSS_744239 | CDSS | #include<stdio.h>
int main(void){
int num[3];
int five_count,seven_count;
five_count=0;
seven_count=0;
scanf("%d",&num[0]);
scanf("%d",&num[1]);
scanf("%d",&num[2]);
for(int i=0;i<3;i++){
if(num[i]==5)five_count++;
if(num[i]==7)seven_count++;
}
if(five_count==2 && seven_count==1){
... | 128 | memory_bytes | {'s_id': 's466268872', 'p_id': 'p04043', 'u_id': 'u492827091', 'date': '1578950777', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '128', '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\nint main(void){\n int num[3];\n int five_count,seven_count;\n\n five_count=0;\n seven_count=0;\n\n scanf(\"%... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.