identifier string | space string | input string | target float64 | metric_type string | metadata string | messages list |
|---|---|---|---|---|---|---|
CDSS_419398 | CDSS | #include<stdio.h>
#include<string.h>
int main()
{
char arr[15],str[15];
scanf("%s",arr);
scanf("%s",str);
int ln=strlen(arr);
char sur[15];
str[ln]='\0';
int res=strcmp(arr,str);
if(res==0)
{
printf("Yes\n");
}
else
{
printf("No\n");
}
} | 1,664 | memory_bytes | {'s_id': 's958155058', 'p_id': 'p02681', 'u_id': 'u157145860', 'date': '1589160231', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '1664', 'code_size': '255'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\tchar arr[15],str[15];\n\tscanf(\"%s\",arr);\n\tscanf(\"%s\",str);\n\tint ln=st... |
CDSS_415335 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
int main(void){
int n;
scanf("%d",&n);
if(n%10==3){printf("bon\n");}
else if(n%10==0||n%10==1||n%10==6||n%10==8){printf("pon\n");}
else{printf("hon");}
}
| 1,732 | memory_bytes | {'s_id': 's494302437', 'p_id': 'p02675', 'u_id': 'u932514381', 'date': '1589763685', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '11', 'memory': '1732', '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#include <stdlib.h>\n#include <string.h>\n#include <math.h>\n\nint main(void){\nint n;\nscanf(\"%d\",&n);\nif(n%10... |
CDSS_264733 | CDSS | #include<stdio.h>
int main(){
int sec,h,m,s;
scanf("%d", &sec);
h = (int) sec / 3600;
m = (int) (sec - h * 3600 ) / 60;
s = sec - h * 3600 - m * 60;
printf("%d:%d:%d\n", h,m,s);
return 0;
}
| 2,108 | memory_bytes | {'s_id': 's931402947', 'p_id': 'p02390', 'u_id': 'u605054962', 'date': '1545188233', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '197'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 sec,h,m,s;\n\tscanf(\"%d\", &sec);\n\th = (int) sec / 3600;\n\tm = (int) (sec - h * 3600 ) / 60;... |
CDSS_687806 | CDSS | #pragma warning(disable:4996)
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <math.h>
#define MAX_STRING 600000
#define MAXCARDS 100000
#define MAXNUM 100000
int alNumber[MAXCARDS];
int alTimes[MAXNUM];
char sInput[MAX_STRING];
int compare(const int *val1, const int *val2);
int main() {
char* p... | 1,916 | memory_bytes | {'s_id': 's076935967', 'p_id': 'p03613', 'u_id': 'u516972769', 'date': '1511154636', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '1916', 'code_size': '1647'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#pragma warning(disable:4996)\n#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n#include <math.h>\n#define MAX_STRING 600... |
CDSS_550374 | CDSS | #include <stdio.h>
int main(){
//入力
int N,A,B;
//全て正整数でNは20以下、A,Bは50以下からok
scanf("%d %d %d", &N,&A,&B);
//計算・出力
printf("%d", A*N>B ? B : A*N);
//A*NとBの小さい方を出力
return 0;
} | 128 | memory_bytes | {'s_id': 's542447796', 'p_id': 'p02981', 'u_id': 'u976615219', 'date': '1565991967', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '252'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n \nint main(){\n //入力\n int N,A,B;\n //全て正整数でNは20以下、A,Bは50以下からok\n scanf(\"%d %d %d\", &N,&A,&B);\n\n //計算・出... |
CDSS_260654 | CDSS | #include <stdio.h>
int main() {
int S, h, m, s;
scanf("%d", &S);
h = S / 3600;
m = (S - h*3600) / 60;
s = S - h*3600 - m*60;
printf("%d:%d:%d\n", h, m, s);
return 0;
} | 592 | memory_bytes | {'s_id': 's036543269', 'p_id': 'p02390', 'u_id': 'u423641537', 'date': '1465136905', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', 'code_size': '174'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main() {\n\tint S, h, m, s;\n\tscanf(\"%d\", &S);\n\th = S / 3600;\n\tm = (S - h*3600) / 60;\n\ts = S - h*3600... |
CDSS_31760 | CDSS | #include<stdio.h>
int main() {
double a, b, c, d, e, f;
while (scanf("%lg %lg %lg %lg %lg %lg", &a, &b, &c, &d, &e, &f) != EOF) {
printf("%.3f %.3f\n", 0.0005 <= (c * e - b * f) / (a * e - b * d) || (c * e - b * f) / (a * e - b * d) <= -0.0005 ? (c * e - b * f) / (a * e - b * d) : 0, 0.0005 <= (c * d - a * f) /... | 652 | memory_bytes | {'s_id': 's383263591', 'p_id': 'p00004', 'u_id': 'u673933691', 'date': '1415185885', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '652', '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>\nint main() {\n double a, b, c, d, e, f;\n while (scanf(\"%lg %lg %lg %lg %lg %lg\", &a, &b, &c, &d, &e, &f) != EO... |
CDSS_212101 | CDSS | #include <stdio.h>
#include <stdlib.h>
int A[100001],i,j,a,p;
int partition(int A[],int p,int r){
int temp,x=A[r];
i=p-1;
for(j=p;j<=r-1;j++){
if(A[j]<=x){
i++;
temp=A[i];
A[i]=A[j];
A[j]=temp;
}
}
temp=A[i+1];
A[i+1]=A[r];
A[r]=temp;
return i+1;
}
int main(){
int ... | 2,156 | memory_bytes | {'s_id': 's865148077', 'p_id': 'p02276', 'u_id': 'u027205564', 'date': '1577091314', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2156', 'code_size': '560'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 A[100001],i,j,a,p;\nint partition(int A[],int p,int r){\n int temp,x=A[r];\n i=p-1;\n ... |
CDSS_743125 | CDSS | #include <limits.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
// 内部定数
#define D_STR_MAX 100000 // 最大文字数
// 内部変数 - テスト用
#ifdef D_TEST
static int siRes;
static FILE *szpFpT, *szpFpA;
#endif
// 改行カット
// 戻り値:文字数
int
fCutCrLf(
char *pcpStr // <I> 文字列
)
{... | 256 | memory_bytes | {'s_id': 's732731090', 'p_id': 'p04032', 'u_id': 'u088333128', 'date': '1534428339', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '256', 'code_size': '2380'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <limits.h>\n#include <math.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <time.h>\n\n// 内部定数\n#d... |
CDSS_53117 | CDSS | #include<stdio.h>
#include<string.h>
int main(){
int ss,i,j,flag=0;
char s;
while(scanf("%c",&s)){
if(s=='\n')break;
if(s>96 && s<123)s-=32;
printf("%c",s);
}
printf("\n");
return(0);
} | 524 | memory_bytes | {'s_id': 's449810720', 'p_id': 'p00020', 'u_id': 'u522516700', 'date': '1433152197', '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 must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\nint main(){\n int ss,i,j,flag=0;\n char s;\n while(scanf(\"%c\",&s)){\n if(s=='\\n')break;\... |
CDSS_213659 | CDSS | #include<stdio.h>
#define N 100000
struct card
{
char suit;
int number;
};
struct card L[N/2+2];
struct card R[N/2+2];
struct card A[N];
struct card B[N];
int partition(struct card A[],int p,int r)
{
int i=p-1;
int j;
struct card t;
int x=A[r].number;
for(j=p;j<r;j++)
{
if(A[j].number<=x)
{
i++;
t=A[... | 4,040 | memory_bytes | {'s_id': 's013914785', 'p_id': 'p02277', 'u_id': 'u487166123', 'date': '1565681133', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '4040', 'code_size': '1594'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#define N 100000\nstruct card\n{\n\tchar suit;\n\tint number;\n};\nstruct card L[N/2+2];\nstruct card R[N/2+2];\nst... |
CDSS_78696 | CDSS | #include <stdio.h>
#define INF 100000000
int main(void){
int n, m, x1, x2, y1, y2;
int a, b, c, d;
int exp[20][20];
int answer;
int i, j, k;
for(i=0; i<20; i++){
for(j=0; j<20; j++){
exp[i][j] = INF;
}
}
scanf("%d", &n);
scanf("%d", &m);
for(i=0; i<m; i++){
scanf("%d,%d,%d,%d", &a, &b, &c, &d);
e... | 0 | memory_bytes | {'s_id': 's867204280', 'p_id': 'p00117', 'u_id': 'u669807407', 'date': '1320308778', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '710'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 INF 100000000\nint main(void){\n\tint n, m, x1, x2, y1, y2;\n\tint a, b, c, d;\n\tint exp[20][20];\n\tint ... |
CDSS_385776 | CDSS | #include <stdio.h>
int main()
{
int x;
scanf("%d",&x);
if(x>=30)
printf("Yes");
else
printf("No");
return 0;
} | 1,732 | memory_bytes | {'s_id': 's309662028', 'p_id': 'p02594', 'u_id': 'u793455649', 'date': '1596570605', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1732', 'code_size': '137'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main()\n{\n int x;\n scanf(\"%d\",&x);\n if(x>=30)\n printf(\"Yes\");\n else\n printf(\"No... |
CDSS_72506 | CDSS | #include <stdio.h>
#include <string.h>
// 32 -
const char *c2b[] = {
"101", "", "", "", "", "", "", "000000", "", "", "", "",
"000011", "10010001", "010001", "", "", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "000001", "", "100101",
"10011010", "0101", "0001", "110", "01001", "10011011"... | 524 | memory_bytes | {'s_id': 's937979384', 'p_id': 'p00088', 'u_id': 'u813270418', 'date': '1404796024', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', 'code_size': '2244'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\n// 32 - \nconst char *c2b[] = {\n \"101\", \"\", \"\", \"\", \"\", \"\", \"\", \"000000\... |
CDSS_515272 | CDSS | #include<stdio.h>
int main(){
int n, ans = 1;
char s[101];
scanf("%d", &n);
scanf("%s", s);
if(n % 2) ans = 0;
for(int i = 0; i < n / 2; ++i){
if(s[i] != s[i + n / 2]) ans = 0;
}
if(ans) puts("Yes");
else puts("No");
return 0;
} | 128 | memory_bytes | {'s_id': 's709280565', 'p_id': 'p02860', 'u_id': 'u729856984', 'date': '1575923164', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '128', 'code_size': '253'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int n, ans = 1;\n char s[101];\n scanf(\"%d\", &n);\n scanf(\"%s\", s);\n if(n % 2) ans = 0;\n ... |
CDSS_91997 | CDSS | #include<stdio.h>
struct hiro {
int high, low;
};
int main(void) {
struct hiro data[7];
for (int i = 0; i < 7; i++) {
scanf("%d%d", &data[i].high, &data[i].low);
}
for (int i = 0; i < 7; i++) {
printf("%d\n", data[i].high-data[i].low);
}
return 0;
}
| 2,104 | memory_bytes | {'s_id': 's201985736', 'p_id': 'p00271', 'u_id': 'u611869641', 'date': '1596093348', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '261'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 hiro {\n\tint high, low;\n};\nint main(void) {\n\tstruct hiro data[7];\n\tfor (int i = 0; i < 7; i++) {\n\t\... |
CDSS_413211 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define MOD 1000000007
#define INF 20000000000000
#define PI 3.14159265359
#define ull unsigned long long
int main(){
int h_1,h_2,m_1,m_2,k,time=0;
scanf("%d%d%d%d%d",&h_1,&m_1,&h_2,&m_2,&k);
time=h_2*60+m_2-m_1-h_1*60-k;
printf("%d",time);
... | 1,728 | memory_bytes | {'s_id': 's892176693', 'p_id': 'p02663', 'u_id': 'u469867719', 'date': '1590886992', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1728', '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#include <stdlib.h>\n#include <string.h>\n#define MOD 1000000007\n#define INF 20000000000000\n#define PI 3.1415926... |
CDSS_125400 | CDSS | // AOJ 2351 Closest Segment Pair
// 2018.3.17 bal4u
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#define INF 1e7
#define EPS 1e-5
#define RANGE 50
#define SIN 0.70710678118654752440084436210485 // Sin(45)
#define COS 0.70710678118654752440084436210485 // Cos(45)
#define SINCOS SIN
... | 2,092 | memory_bytes | {'s_id': 's725036643', 'p_id': 'p01468', 'u_id': 'u847467233', 'date': '1521297926', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2092', 'code_size': '2919'} | [
{
"content": "Your task is to predict the memory 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 2351 Closest Segment Pair\n// 2018.3.17 bal4u\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <math.h>\n\n#define INF ... |
CDSS_519524 | CDSS | #include <stdio.h>
#include <math.h>
int main(void){
long int n,i;
scanf("%ld",&n);
for(i=(int)sqrt(n);i>0;i--){
// printf("%d\n",i);
if(n%i==0){
printf("%ld\n",i+(n/i)-2);
return 0;
}
}
printf("%ld\n",n-1);
return 0;
} | 256 | memory_bytes | {'s_id': 's349737285', 'p_id': 'p02881', 'u_id': 'u592248346', 'date': '1576436621', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '256', 'code_size': '291'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\nint main(void){\n long int n,i;\n scanf(\"%ld\",&n);\n for(i=(int)sqrt(n);i>0;i--){\n ... |
CDSS_736418 | CDSS | #include <stdio.h>
#include <string.h>
int main()
{
char s[12];
char *p=" ";
scanf("%s",s);
for(int i=0;i<12;i++){
printf("%c",s[i]);
if(i==3){
printf("%s",p);
}
}
printf("\n");
return 0;
} | 128 | memory_bytes | {'s_id': 's758564966', 'p_id': 'p03992', 'u_id': 'u049685239', 'date': '1474765902', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '209'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\nint main()\n{\n\n\tchar s[12];\n\tchar *p=\" \";\n\tscanf(\"%s\",s);\n\n\tfor(int i=0;i<12;... |
CDSS_526308 | CDSS | #include <stdio.h>
long gcd(long x, long y) {
if (y == 0) return x;
return gcd(y, x%y);
}
int main() {
long A, B, G_Common, k, cnt, i, j;
scanf("%ld %ld",&A,&B);
G_Common = gcd(A,B);
/*while ((k = A%B) > 0) {
A = B;
B = k;
}*/
//G_Common = B;
cnt = 1;
for (i = 2; G_Common > 1 && G_Common >= i*i; ) {
... | 128 | memory_bytes | {'s_id': 's463553380', 'p_id': 'p02900', 'u_id': 'u227604873', 'date': '1571165250', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '128', 'code_size': '535'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nlong gcd(long x, long y) {\n\tif (y == 0) return x;\n\treturn gcd(y, x%y);\n}\n\nint main() {\n\tlong A, B, G_Co... |
CDSS_143286 | CDSS | #include <stdio.h>
int main(){
int n;
scanf("%d",&n);
printf("%d\n", n / 25 + n % 25 / 10 + n % 25 % 10 / 5 + n % 5 );
}
| 2,148 | memory_bytes | {'s_id': 's581149305', 'p_id': 'p02251', 'u_id': 'u357121199', 'date': '1581354399', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2148', 'code_size': '129'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n\tint n;\n\n\tscanf(\"%d\",&n);\n\t\n\tprintf(\"%d\\n\", n / 25 + n % 25 / 10 + n % 25 % 10 / 5 + n... |
CDSS_348375 | CDSS | #include <stdio.h>
int main(void){
int n,i,ii,iii,b,f,r,v,count[4][3][10]= {0};
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d %d %d %d",&b,&f,&r,&v);
if(b==1){
count[0][f-1][r-1] += v;
}else if(b==2){
count[1][f-1][r-1] += v;
}else if(b==3){
... | 612 | memory_bytes | {'s_id': 's059112659', 'p_id': 'p02409', 'u_id': 'u505794128', 'date': '1463748139', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '612', 'code_size': '697'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n \n int n,i,ii,iii,b,f,r,v,count[4][3][10]= {0};\n \n scanf(\"%d\",&n);\n \n ... |
CDSS_86762 | CDSS | #include<stdio.h>
#define INF 10000000
int time[101][101],cost[101][101],m;
void warshall_floyd_time(void);
void warshall_floyd_cost(void);
int min(int,int);
void init(void);
int main(void){
int i,j,n,k,a,b,cos,tim,p,q,r;
while(scanf("%d %d",&n,&m),n,m){
init();
for(i=0;i<n;i++){
scanf("%d %... | 0 | memory_bytes | {'s_id': 's275685922', 'p_id': 'p00200', 'u_id': 'u047988051', 'date': '1322656383', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '90', 'memory': '0', 'code_size': '1167'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 INF 10000000\n\nint time[101][101],cost[101][101],m;\n\nvoid warshall_floyd_time(void);\nvoid warshall_floy... |
CDSS_717112 | CDSS | #include <stdio.h>
int main(){
int n;
scanf("%d",&n);
int a=n*800;
int b=n/15;
printf("%d",a-b*200);
return 0;
} | 128 | memory_bytes | {'s_id': 's731697375', 'p_id': 'p03795', 'u_id': 'u376078818', 'date': '1488072737', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '128', 'code_size': '118'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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;\n\tscanf(\"%d\",&n);\n\tint a=n*800;\n\tint b=n/15;\n\tprintf(\"%d\",a-b*200);\n\treturn 0;\... |
CDSS_621467 | CDSS | #include<stdio.h>
int main(){
int h,w,i,j,odd=0;
scanf("%d%d",&h,&w);
int a[h+1][w+1];
int change[h*w+1][4];
for(i=1;i<=h;i++)
for(j=1;j<=w;j++){
scanf("%d",&a[i][j]);
if(a[i][j]%2==1)
odd++;
}
odd-=odd%2;
int check=0,count=0;
i=1;
while(i<=h){
for(j=1;j<=w;j++){
... | 6,912 | memory_bytes | {'s_id': 's768882774', 'p_id': 'p03263', 'u_id': 'u917851778', 'date': '1590722966', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '56', 'memory': '6912', 'code_size': '1333'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 h,w,i,j,odd=0;\n scanf(\"%d%d\",&h,&w);\n int a[h+1][w+1];\n int change[h*w+1][4];\n for(i=1... |
CDSS_201189 | CDSS | #include<stdio.h>
int n, A[50];
int solve(int i, int m) {
if (m == 0) return 1;
if (i >= n) return 0;
int res = solve(i + 1, m) || solve(i + 1, m - A[i]);
return res;
}
int main() {
int q, M, i;
scanf("%d", &n);
for (i = 0; i < n; i++) {
scanf("%d", &A[i]);
}
scanf("%d", &q);
for (i = 0; i < q; i++) {
... | 2,048 | memory_bytes | {'s_id': 's355407074', 'p_id': 'p02271', 'u_id': 'u579523547', 'date': '1557839851', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '500', 'memory': '2048', 'code_size': '433'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 n, A[50];\n\nint solve(int i, int m) {\n\tif (m == 0) return 1;\n\tif (i >= n) return 0;\n\tint res = solve(i... |
CDSS_280354 | CDSS | #include <stdlib.h>
int main()
{
int a, b, c;
scanf("%d%d%d", &a, &b, &c);
if (a < b && b < c) printf("Yes\n");
else printf("No\n");
return 0;
}
| 2,044 | memory_bytes | {'s_id': 's630138460', 'p_id': 'p02392', 'u_id': 'u621523809', 'date': '1596681233', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2044', 'code_size': '153'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdlib.h>\n\nint main()\n{\n\tint a, b, c;\n\n\tscanf(\"%d%d%d\", &a, &b, &c);\n\tif (a < b && b < c) printf(\"Yes\\n\");\n\... |
CDSS_55065 | CDSS | #include <stdio.h>
int main(void)
{
double x[4], y[4];
int n;
scanf("%d", &n);
while (n){
scanf("%lf %lf %lf %lf %lf %lf %lf %lf", &x[0], &y[0], &x[1], &y[1], &x[2], &y[2], &x[3], &y[3]);
if (((y[1] - y[0]) / (x[1] - x[0])) == ((y[3] - y[2]) / (x[3] - x[2]))){
printf("YES\n");
}
else {
printf(... | 620 | memory_bytes | {'s_id': 's010645097', 'p_id': 'p00021', 'u_id': 'u580977620', 'date': '1352679226', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '620', 'code_size': '363'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\tdouble x[4], y[4];\n\tint n;\n\t\n\tscanf(\"%d\", &n);\n\t\n\twhile (n){\n\t\tscanf(\"%lf %... |
CDSS_303729 | CDSS | #include <stdio.h>
int main(void){
int x,y,change;
do{
scanf("%d %d",&x,&y);
if(x==0 && y==0)
break;
if(x > y){
change=x;
x=y;
y=change;
}
... | 2,040 | memory_bytes | {'s_id': 's433077416', 'p_id': 'p02397', 'u_id': 'u148369637', 'date': '1560760667', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2040', 'code_size': '412'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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,change;\n\n do{\n scanf(\"%d %d\",&x,&y);\n ... |
CDSS_64345 | CDSS | #include <stdio.h>
int main(){
int swp, cup[3] = {1};
char a, b;
while(scanf("%c,%c", &a, &b) != EOF){
swp = cup[a - 'A'];
cup[a - 'A'] = cup[b - 'A'];
cup[b - 'A'] = swp;
}
for(a = 0; a < 3; a++)
if(cup[a]) printf("%c\n", a + 'A');
return 0;
} | 544 | memory_bytes | {'s_id': 's557781185', 'p_id': 'p00047', 'u_id': 'u834339402', 'date': '1420474644', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '544', 'code_size': '317'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 swp, cup[3] = {1};\n char a, b;\n \n while(scanf(\"%c,%c\", &a, &b) != EOF){\n ... |
CDSS_153842 | CDSS | #include<stdio.h>
#define N 100
int main(){
int x,y,i,k;
scanf("%d%d",&x,&y);
if(x>y){
k=x;
x=y;
y=k;
}
i=x%y;
while(i!=0){
x=y;
y=i;
i=x%y;
}
printf("%d\n",y);
return 0;
}
| 2,128 | memory_bytes | {'s_id': 's055490031', 'p_id': 'p02256', 'u_id': 'u484408804', 'date': '1575535310', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2128', '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\n#define N 100\n\nint main(){\n int x,y,i,k;\n\n scanf(\"%d%d\",&x,&y);\n\n \n \n if(x>y){\n k=x;\n x=y;... |
CDSS_172885 | CDSS | #include <stdio.h>
#include <string.h>
void bubbleSort(char a[][3],int n);
void selectSort(char a[][3],int n);
void sw(char a[],char b[]);
char A[200][3];
char B[200][3];
int main()
{
int n ;
scanf("%d",&n);
for(int i= 0;i<n;i++){
scanf("%s",A[i]);
strcpy(B[i],A[i... | 2,032 | memory_bytes | {'s_id': 's058335048', 'p_id': 'p02261', 'u_id': 'u334310415', 'date': '1558946711', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2032', 'code_size': '1437'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 void bubbleSort(char a[][3],int n);\n void selectSort(char a[][3],int n);\n \n void... |
CDSS_668643 | CDSS | #include <stdio.h>
int main ()
{
int a,b,n;
int count = 0;
scanf("%d %d %d",&n,&a,&b);
for(int i=1;i<n+1;i++)
{
int x = i;
int sum = 0;
while(x != 0)
{
sum += x%10;
x /= 10;
}
if(a <= sum && sum <= b)
{
count += i;
}
}
printf("%d",count);
return 0;
} | 128 | memory_bytes | {'s_id': 's776741627', 'p_id': 'p03478', 'u_id': 'u750862908', 'date': '1581048765', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '316'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n \nint main () \n{\nint a,b,n;\nint count = 0;\nscanf(\"%d %d %d\",&n,&a,&b);\n\nfor(int i=1;i<n+1;i++)\n{\n in... |
CDSS_31397 | CDSS | #include<stdio.h>
int main(){
int a,b,c,n,i;
scanf("%d",&n);
for(i=0;i<n;i++)
{
scanf("%d %d %d",&a,&b,&c);
if(a*a==b*b+c*c) printf("YES\n");
else if(b*b==c*c+a*a) printf("YES\n");
else if(c*c==a*a+b*b) printf("YES\n");
else printf("NO\n");
}
return 0;
} | 580 | memory_bytes | {'s_id': 's683312083', 'p_id': 'p00003', 'u_id': 'u316203371', 'date': '1397099839', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', 'code_size': '301'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n int a,b,c,n,i;\n scanf(\"%d\",&n);\n for(i=0;i<n;i++)\n {\n scanf(\"%d %d %d\",&a,&b,&c)... |
CDSS_650065 | CDSS | #include<stdio.h>
#include<stdlib.h>
int cmp(const void *a,const void *b){
return *(int*)a-*(int*)b;
}
int main(){
int N,i,j;
scanf("%d",&N);
int A[N];
int B[N];
int mid;
for(i=0;i<N;i++) {
scanf("%d",&A[i]);
B[i]=A[i];
}
qsort(B,N,sizeof(int),cmp);
mid=B[N/2];
for(i=0;i<N;i++){
if(... | 3,692 | memory_bytes | {'s_id': 's664916273', 'p_id': 'p03379', 'u_id': 'u511344501', 'date': '1523758729', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '69', 'memory': '3692', 'code_size': '432'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n\n\nint cmp(const void *a,const void *b){\n return *(int*)a-*(int*)b;\n}\n\nint main(){\n int... |
CDSS_643715 | CDSS | #include<stdio.h>
#include<stdlib.h>
typedef long long int int64;
void run(void){
int n;
scanf("%d",&n);
int *a=(int *)malloc(sizeof(int)*n);
int i;
for(i=0;i<n;i++) scanf("%d",a+i);
if(a[0]!=0){
printf("-1\n");
return;
}
int zeroIndex=0;
for(i=1;i<n;i++){
if(a[i]==0){
zeroIndex=i;... | 896 | memory_bytes | {'s_id': 's275832282', 'p_id': 'p03347', 'u_id': 'u425248533', 'date': '1537049759', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '25', 'memory': '896', '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<stdlib.h>\n\ntypedef long long int int64;\n\nvoid run(void){\n int n;\n scanf(\"%d\",&n);\n int *a=(int... |
CDSS_42114 | CDSS | #include<stdio.h>
char is_prime[1000000];
int sum_prime[1000000];
int main() {
int x, y;
for (x = 0; x < 1000000; x ++) is_prime[x] = 1;
is_prime[0] = 0; is_prime[1] = 0;
for (x = 2; x < 1000; x ++) {
if (is_prime[x] != 0) {
for (y = x * x; y < 1000000; y += x) {
is_prime[y] = 0;
}
}
}
... | 5,476 | memory_bytes | {'s_id': 's642665809', 'p_id': 'p00009', 'u_id': 'u673933691', 'date': '1415347838', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '5476', 'code_size': '505'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 is_prime[1000000];\nint sum_prime[1000000];\nint main() {\n int x, y;\n for (x = 0; x < 1000000; x ++) is_pr... |
CDSS_200887 | CDSS | #include<stdio.h>
#define true 1
#define false 0
int n,A[50];
int solve(i, m){
if( m == 0){
return true;
}if( i >= n){
return false;
} int res = solve(i + 1, m) || solve(i + 1, m - A[i]);
return res;
}
int main(){
int p,N,j;
scanf("%d",&n);
for(j=0;j<n;j++){
scanf("%d",&A[j]);
}sc... | 2,120 | memory_bytes | {'s_id': 's399414609', 'p_id': 'p02271', 'u_id': 'u517012203', 'date': '1577352550', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '470', 'memory': '2120', 'code_size': '442'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 true 1\n#define false 0\n\nint n,A[50];\n\nint solve(i, m){\n if( m == 0){\n return true;\n }if(... |
CDSS_372443 | 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... | 2,084 | memory_bytes | {'s_id': 's582166090', 'p_id': 'p02422', 'u_id': 'u239444613', 'date': '1588666715', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2084', 'code_size': '4898'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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#include<stdbool.h>\n#include<assert.h>\ntypedef long lon... |
CDSS_401528 | CDSS | #include <stdio.h>
int main() {
int i, a, ans=15;
for(i=0;i<5;i++){
scanf("%d",&a);
ans-=a;
}
printf("%d",ans);
return 0;
}
| 1,672 | memory_bytes | {'s_id': 's475781993', 'p_id': 'p02639', 'u_id': 'u276588887', 'date': '1597521729', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1672', 'code_size': '143'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main() {\n int i, a, ans=15;\n for(i=0;i<5;i++){\n scanf(\"%d\",&a);\n ans-=a;\n }\n printf(\"%d\"... |
CDSS_319011 | CDSS | #include <stdio.h>
int main(void)
{
int a, b;
char op;
while (1) {
scanf("%d %c %d", &a, &op, &b);
if (op == '?') break;
if (op == '+') {
printf("%d\n", a + b);
} else if (op == '-') {
printf("%d\n", a - b);
} else if (op == '... | 600 | memory_bytes | {'s_id': 's571059571', 'p_id': 'p02401', 'u_id': 'u013012107', 'date': '1494596698', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '464'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n int a, b;\n char op;\n \n while (1) {\n scanf(\"%d %c %d\", &a, &op, &b);... |
CDSS_645545 | CDSS | #include<stdio.h>
int main(){
int a,b;
scanf("%d %d",&a,&b);
if(a<=b)printf("%d\n",a);
else printf("%d\n",a-1);
return 0;
} | 128 | memory_bytes | {'s_id': 's777873750', 'p_id': 'p03359', 'u_id': 'u850894780', 'date': '1530296227', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '128'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 a,b;\n\tscanf(\"%d %d\",&a,&b);\n\tif(a<=b)printf(\"%d\\n\",a);\n\telse printf(\"%d\\n\",a-1);\n... |
CDSS_700751 | CDSS | #include <stdio.h>
int main(void) {
int r, g, b;
int seisu;
if (scanf("%d%d%d", &r, &g, &b) != 3) return 1;
seisu = r * 100 + g * 10 + b;
puts(seisu % 4 == 0 ? "YES" : "NO");
return 0;
}
| 128 | memory_bytes | {'s_id': 's084762007', 'p_id': 'p03693', 'u_id': 'u646118499', 'date': '1576390027', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '194'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\n\tint r, g, b;\n\tint seisu;\n\tif (scanf(\"%d%d%d\", &r, &g, &b) != 3) return 1;\n\tseisu = r... |
CDSS_312265 | CDSS | #include <stdio.h>
#include <math.h>
int main(){
int a, b, d, r;
double f;
scanf("%d %d", &a, &b);
d = a / b;
r = a % b;
f = ((double) a) / b;
printf("%d %d %f\n",d, r, f);
return 0;
}
| 2,136 | memory_bytes | {'s_id': 's118682940', 'p_id': 'p02399', 'u_id': 'u808202712', 'date': '1567051287', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2136', 'code_size': '208'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 a, b, d, r;\n double f;\n scanf(\"%d %d\", &a, &b);\n\n d = a / b;\n r... |
CDSS_738230 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <math.h>
#include <limits.h>
typedef struct {
int x;
int y;
} squr_t;
int sort(const void *a, const void *b){
if ( ((squr_t*)a)->x - ((squr_t*)b)->x >0 ) {
return 1;
}
if ( ((squr_t*)a)->x - ((squr_t*)... | 14,204 | memory_bytes | {'s_id': 's045030915', 'p_id': 'p04000', 'u_id': 'u750028862', 'date': '1535638105', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '122', 'memory': '14204', 'code_size': '1693'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <stdbool.h>\n#include <math.h>\n#include <limits.h>\n\ntypedef ... |
CDSS_508585 | CDSS | #include<stdio.h>
int main(void)
{
int n,a[200005];
int count=1,i;
scanf("%d",&n);
for(i=0;i<n;i++)
{
scanf("%d",&a[i]);
}
for(i=0;i<n;i++)
{
if(a[i] == count)
count++;
//printf("%d ",count);
}
if(count != 1)
printf("%d ",n-count+1);
e... | 896 | memory_bytes | {'s_id': 's649180939', 'p_id': 'p02832', 'u_id': 'u801369645', 'date': '1577160756', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '22', 'memory': '896', 'code_size': '358'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\n int n,a[200005];\n int count=1,i;\n scanf(\"%d\",&n);\n\n for(i=0;i<n;i++)\n {\n... |
CDSS_194726 | CDSS | #include<stdio.h>
#include<stdlib.h>
#define MAX1 100000
#define MAX2 50000
int binary(int p[], int N1, int key){
int left=0;
int right=N1;
for(;left<right;){
int mid=(left+right)/2;
if(p[mid]==key){
return mid;
}else if(key<p[mid]){
right=mid;
}else{
left=mid+1;
}
}
return -1;
}
int main... | 2,192 | memory_bytes | {'s_id': 's895918120', 'p_id': 'p02268', 'u_id': 'u498893655', 'date': '1574404679', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2192', 'code_size': '613'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 MAX1 100000\n#define MAX2 50000\n\n\nint binary(int p[], int N1, int key){\n\tint left=... |
CDSS_313129 | CDSS | #include<stdio.h>
int main(){
double r,m,e;
scanf("%lf",&r);
m=r*r*3.14159265358979;
e=2*r*3.14159265358979;
printf("%.8lf %.8lf\n",m,e);
return 0;
} | 652 | memory_bytes | {'s_id': 's136697913', 'p_id': 'p02400', 'u_id': 'u644062579', 'date': '1433155838', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '652', 'code_size': '161'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n double r,m,e;\n scanf(\"%lf\",&r);\n m=r*r*3.14159265358979;\n e=2*r*3.14159265358979;\n printf(... |
CDSS_508987 | CDSS | #include <stdlib.h>
#include <stdio.h>
#define MAXN 100000
struct list {
int n, c;
int *edges;
} verts[MAXN];
void add_list(struct list *l, int v) {
if (l->n+1 > l->c) {
if (!l->c)
l->c = 1;
l->c *= 2;
l->edges = realloc(l->edges, (size_t)l->c * sizeof *l->edges);
}
l->edges[l->n++] = v;
}
void del_lis... | 9,856 | memory_bytes | {'s_id': 's280352150', 'p_id': 'p02834', 'u_id': 'u210370951', 'date': '1577335019', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '51', 'memory': '9856', 'code_size': '1954'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdlib.h>\n#include <stdio.h>\n\n#define MAXN 100000\n\nstruct list {\n\tint n, c;\n\tint *edges;\n} verts[MAXN];\n\nvoid ad... |
CDSS_384432 | CDSS | #include <stdio.h>
#include <stdlib.h>
int main(void) {
long x,k,d,ans;
scanf("%ld %ld %ld", &x, &k, &d);
long dis = labs(x);
long a = dis/d;
if (k <= a) {
ans = dis-k*d;
printf("%ld\n", ans);
} else {
ans = dis-a*d;
k -= a;
if (k%2 == 1) {
ans = d-ans;
}
printf("%ld\n", ... | 1,736 | memory_bytes | {'s_id': 's213580227', 'p_id': 'p02584', 'u_id': 'u581816556', 'date': '1597615306', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1736', 'code_size': '344'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\n long x,k,d,ans;\n scanf(\"%ld %ld %ld\", &x, &k, &d);\n long dis = ... |
CDSS_591868 | CDSS | #include <stdio.h>
int main(void)
{
int a, b, k, i, s1, s2, j;
scanf("%d%d%d",&a,&b,&k);
j=0;
for(i=100000;i>=0;i--){
s1=a%i;
s2=b%i;
if((s1==0)&&(s2==0)){
j++;
if(j==k){
printf("%d\n",i);
return 0;
... | 128 | memory_bytes | {'s_id': 's398303055', 'p_id': 'p03106', 'u_id': 'u547735857', 'date': '1554815583', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '358'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n\n int a, b, k, i, s1, s2, j;\n scanf(\"%d%d%d\",&a,&b,&k);\n j=0;\n for(i=100000;i>=0;i-... |
CDSS_136979 | CDSS | #include <stdio.h>
int walk(int index, int time, int wayto[101][101], int *d, int *f) {
int *p;
d[index] = ++time;
for (p = wayto[index]; *p != 0; p++) {
if (!d[*p]) {
time = walk(*p, time, wayto, d, f);
}
}
f[index] = ++time;
return time;
}
int main(void) {
int num, i, j, u, k, tm = 0;
int d[101] = {... | 648 | memory_bytes | {'s_id': 's602440768', 'p_id': 'p02238', 'u_id': 'u782850731', 'date': '1380696823', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '648', 'code_size': '681'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 walk(int index, int time, int wayto[101][101], int *d, int *f) {\n\tint *p;\n\n\td[index] = ++time;\n\tfor (... |
CDSS_517381 | CDSS | #include <stdio.h>
int main()
{
int n,m;
scanf("%d %d",&n,&m);
if(n<=9 && m<=9)
{
printf("%d\n",n*m);
}
else
{
printf("-1\n");
}
return 0;
} | 128 | memory_bytes | {'s_id': 's068594969', 'p_id': 'p02879', 'u_id': 'u737880833', 'date': '1575350945', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '163'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main()\n{\n int n,m;\n scanf(\"%d %d\",&n,&m);\n if(n<=9 && m<=9)\n {\n\tprintf(\"%d\\n\",n*m);\n }\n el... |
CDSS_378889 | CDSS | #include <string.h>
#include <stdio.h>
typedef long long ll;
#define rep(i,n) for(int i=0; i<(int)(n); i++)
int main()
{ int a,b,ans,cnt=0;
char s[1001],t[1001];
scanf("%s", s);
scanf("%s", t);
a=strlen(s);
b=strlen(t);
ans=b;
rep(i,a-b+1){
cnt=0;
rep(j,b){
if (s[i+j]!=t[j])
... | 1,728 | memory_bytes | {'s_id': 's166187149', 'p_id': 'p02571', 'u_id': 'u483065848', 'date': '1598826117', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '7', 'memory': '1728', 'code_size': '468'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <string.h>\n#include <stdio.h>\ntypedef long long ll;\n#define rep(i,n) for(int i=0; i<(int)(n); i++)\n\nint main()\n{ int a... |
CDSS_44989 | CDSS | #include <stdio.h>
#include <math.h>
double jijo(double a){
return a*a;
}
int main(){
int n,i;
double x1, y1, x2, y2, x3, y3;
double a1, a2, b1, b2;
double x, y, d;
scanf("%d", &n);
for(i = 0; i < n; i++){
scanf("%lf %lf %lf %lf %lf %lf", &x1, &y1, &x2, &y2, &x3, &y3);
if(y1==y2){y1+=0.0000001;}
a1... | 664 | memory_bytes | {'s_id': 's221780002', 'p_id': 'p00010', 'u_id': 'u011810163', 'date': '1432980507', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '664', '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 <math.h>\n\ndouble jijo(double a){\n\treturn a*a;\n}\n\nint main(){\n\tint n,i;\n\tdouble x1, y1, x2, y2,... |
CDSS_87819 | CDSS | #include <stdio.h>
#include <string.h>
int x, y, n;
int name[15], size[15];
int ans, record[10][10];
int dx[4] = {1, 0, -1, 0};
int dy[4] = {0, 1, 0, -1};
void copy(int saki[][10], int moto[][10])
{
int i, j;
for (i = 0; i < y; i++){
for (j = 0; j < x; j++){
saki[i][j] = moto[i][j];
... | 0 | memory_bytes | {'s_id': 's528467147', 'p_id': 'p00213', 'u_id': 'u032763525', 'date': '1332251479', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '150', 'memory': '0', 'code_size': '2492'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 x, y, n;\nint name[15], size[15];\nint ans, record[10][10];\n\nint dx[4] = {1, 0, -1, 0... |
CDSS_112569 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef struct {
int ID;
int U;
int A;
int P;
int score;
} DATA;
int comp(const void *a, const void *b)
{
int score;
score = (*(DATA *)b).score - (*(DATA *)a).score;
if (score != 0){
return (score);
}
retu... | 2,044 | memory_bytes | {'s_id': 's502817193', 'p_id': 'p00629', 'u_id': 'u648926140', 'date': '1597629278', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2044', 'code_size': '1652'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 {\n int ID;\n int U;\n int A;\n int P;\n ... |
CDSS_416401 | CDSS | #include<stdio.h>
#include<string.h>
int main(void){
int num;
scanf("%d",&num);
char str[100];
scanf("%s",str);
int i;
if(strlen(str)<num){
for(i=0;i<strlen(str);i++){
printf("%c",str[i]);
}
}else{
for(i=0;i<num;i++){
printf("%c",str[i]);
}
}
if(strlen(str)>num){
pri... | 1,728 | memory_bytes | {'s_id': 's490040230', 'p_id': 'p02676', 'u_id': 'u817777845', 'date': '1589764487', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '1728', 'code_size': '349'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\nint main(void){\n int num;\n scanf(\"%d\",&num);\n \n char str[100];\n scanf(\"%s\",str);\... |
CDSS_77510 | CDSS | #include<stdio.h>
int main(){
int i,j,k,p,r,d[52]={0};
for(i=0;i*2<=50;i++){
for(j=0;i*2+j*3<=50;j++){
for(k=0;i*2+j*3+k*5<=50;k++){
p=380*i+550*j+850*k;
p-=380*(i/5)+330*(j/4)+306*(k/3);
r=i*2+j*3+k*5;
if(d[r]==0||d[r]>p)d[r]=p;
}
}
}
while(scanf("%d",&r),r)printf("%d\n",d[r/100]);
re... | 600 | memory_bytes | {'s_id': 's453883906', 'p_id': 'p00106', 'u_id': 'u731027244', 'date': '1430292620', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '329'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int i,j,k,p,r,d[52]={0};\n for(i=0;i*2<=50;i++){\n for(j=0;i*2+j*3<=50;j++){\n for(k=0;i*2+... |
CDSS_249418 | CDSS | #include<stdio.h>
int main(void){
int x,y;
scanf ("%d",&x);
y=x*x*x;
printf ("%d\n",y);
return 0;
}
| 2,112 | memory_bytes | {'s_id': 's284729541', 'p_id': 'p02388', 'u_id': 'u736281992', 'date': '1533611770', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '108'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void){\n\tint x,y;\n\tscanf (\"%d\",&x);\n\t\n\ty=x*x*x;\n\tprintf (\"%d\\n\",y);\n\treturn 0;\n}\n\nPre... |
CDSS_567227 | CDSS | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
struct r {
int p;
char s[11];
};
struct r rs[100];
int ind[100];
int cmp(const void *a, const void *b) {
struct r ai = rs[*(int*)a], bi = rs[*(int*)b];
int c = strcmp(ai.s, bi.s);
if (c) return c;
return bi.p - ai.p;
}
int main(void) {
int n;
scanf(... | 128 | memory_bytes | {'s_id': 's586740778', 'p_id': 'p03030', 'u_id': 'u210370951', 'date': '1559142790', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '510'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n\nstruct r {\n\tint p;\n\tchar s[11];\n};\n\nstruct r rs[100];\nint ind[... |
CDSS_258307 | CDSS | #include <stdio.h>
int main(){
int height, width, squarelen, squarearea;
scanf("%d %d", &height, &width);
squarelen = 2*(height+width);
squarearea = height * width;
printf("%d %d\n", squarearea, squarelen);
return 0;
}
| 2,072 | memory_bytes | {'s_id': 's213073369', 'p_id': 'p02389', 'u_id': 'u547822207', 'date': '1554565863', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2072', 'code_size': '236'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n\n int height, width, squarelen, squarearea;\n\n scanf(\"%d %d\", &height, &width);\n\n squarele... |
CDSS_37096 | CDSS | #include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
int main(int argc, const char * argv[]){
int f = 0,len;
char ch[21],temp;
scanf("%s",ch);
len = (int)strlen(ch) - 1;
//ch[(int)strlen(ch)] = "\0";
while(1){
if(len < f || len == f ){
print... | 524 | memory_bytes | {'s_id': 's153328481', 'p_id': 'p00006', 'u_id': 'u635105781', 'date': '1405406424', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', 'code_size': '542'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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\nint main(int argc, const char * argv[]){\n \n ... |
CDSS_180492 | CDSS | #include<stdio.h>
#include<stdlib.h>
#define N 100
int isEmpty(void);
void push(int);
int pop(void);
int stack[N];
int top = 0;
int main(){
int x,a,b;
char str[100];
while( scanf("%s", str) != EOF ){
if ( str[0] == '+' ){
a = pop();
b = pop();
push(a + b);
} else if ( str[0] == '-... | 2,104 | memory_bytes | {'s_id': 's565530936', 'p_id': 'p02263', 'u_id': 'u320661612', 'date': '1544526368', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '1031'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n\n#define N 100\n\nint isEmpty(void);\nvoid push(int);\nint pop(void);\n\nint stack[N];\nint to... |
CDSS_412121 | CDSS | #include <stdio.h>
int main (void)
{
long double a,b;
long long int ans;
scanf("%Lf%Lf", &a,&b);
ans = a*b;
printf("%lld", ans);
return 0;
} | 1,756 | memory_bytes | {'s_id': 's607894393', 'p_id': 'p02659', 'u_id': 'u418217648', 'date': '1590975519', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1756', 'code_size': '164'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main (void)\n{\n long double a,b;\n long long int ans;\n \n scanf(\"%Lf%Lf\", &a,&b);\n ans = a*b;\n p... |
CDSS_222754 | CDSS | #include <stdio.h>
#include <stdlib.h>
struct Node{
int key;
struct Node *right;
struct Node *left;
struct Node *parent;
};
struct Node *root;
void inorder(struct Node *);
void preorder(struct Node *);
struct Node *find(int);
void insert(int);
int main(){
int n,x;
char com[20];
scanf("%d... | 20,432 | memory_bytes | {'s_id': 's369540772', 'p_id': 'p02284', 'u_id': 'u668137368', 'date': '1531309769', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '290', 'memory': '20432', 'code_size': '1854'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\nstruct Node{\n int key;\n struct Node *right;\n struct Node *left;\n struct Nod... |
CDSS_731536 | CDSS | #include<stdio.h>
int H, W, N, K;
int ans_map[50][50];
void check4s(int h, int w, int num) {
int i, j;
int p;
int c = 0;
if(num == 4) {
for(i=0;i<2;i++) {
for(j=0;j<2;j++) {
ans_map[h+i][w+j] = 1;
}
}
return;
}
printf("? %d %d %d %d\n", h, w, h, w);
fflush(stdout);
scanf("%d", &p);
ans_ma... | 596 | memory_bytes | {'s_id': 's775856580', 'p_id': 'p03936', 'u_id': 'u700714671', 'date': '1480094308', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '40', 'memory': '596', 'code_size': '2590'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 H, W, N, K;\nint ans_map[50][50];\n\nvoid check4s(int h, int w, int num) {\n\tint i, j;\n\tint p;\n\tint c = ... |
CDSS_186822 | CDSS | #include<stdio.h>
#include<string.h>
#define N 20000
typedef struct Data{
int area,posi;
}Data;
Data t[N];
int u[N],n,i,T,U,ans,A;
char str1[N+1];
Data X,Y;
void Dpush(Data data)
{
t[T++]=data;
}
Data Dpop()
{
return t[--T];
}
void push(int x)
{
u[U++]=x;
}
int pop()
{
return u[--U];
}
void init()
{
... | 1,836 | memory_bytes | {'s_id': 's438436777', 'p_id': 'p02266', 'u_id': 'u007599122', 'date': '1512107863', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1836', 'code_size': '977'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 20000\ntypedef struct Data{\n int area,posi;\n}Data;\n \nData t[N];\nint u[N],n,i,T... |
CDSS_170571 | CDSS | #include <stdio.h>
int main(){
int i,j,minj,n,work,count=0,a[100];
scanf("%d",&n);
for(i=0; i<n; i++){
scanf("%d",&a[i]);
}
for(i=0; i<n; i++){
minj=i;
for(j=i; j<n; j++){
if(a[j] < a[minj]) minj=j;
}
if(i != minj){
work=a[i];
a[i]=a[minj];
a[minj]=work;
count++;
}
... | 600 | memory_bytes | {'s_id': 's551392440', 'p_id': 'p02260', 'u_id': 'u815509365', 'date': '1492656432', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '504'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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 i,j,minj,n,work,count=0,a[100];\n\n scanf(\"%d\",&n);\n for(i=0; i<n; i++){\n scanf(\"%d\"... |
CDSS_353653 | CDSS | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* runtime_error.c :+: :+: :+: ... | 2,068 | memory_bytes | {'s_id': 's384588899', 'p_id': 'p02411', 'u_id': 'u445993369', 'date': '1580901167', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2068', 'code_size': '1841'} | [
{
"content": "Your task is to predict the memory 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/* ... |
CDSS_29947 | CDSS | #include <stdio.h>
int main()
{
int a, b, c, max, add, n, i;
scanf("%d", &n);
for(i=0; i<n; i++){
scanf("%d%d%d", &a, &b, &c);
add=a*a + b*b + c*c;
if(a>b){
if(a>c){
add -= a*a;
max = a*a;
}else{
add -= c*c;
max = c*c;
}
}else{
if(b>c){
add -= b*b;
max = b*b;
}else{
... | 576 | memory_bytes | {'s_id': 's587865807', 'p_id': 'p00003', 'u_id': 'u403164147', 'date': '1479215257', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '576', 'code_size': '420'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main()\n{\n int a, b, c, max, add, n, i;\n\n scanf(\"%d\", &n);\n\n for(i=0; i<n; i++){\n scanf(\"%d%d%d\",... |
CDSS_159836 | CDSS | #include<stdio.h>
#include<math.h>
int isprime(int);
int main(){
int a,i,n,cnt=0;
int x[10000];
scanf("%d",&n);
for(i=0;i<n;i++)scanf("%d",&x[i]);
for(i=0;i<n;i++){
a=isprime(x[i]);
if(a==1)cnt++;
}
printf("%d\n",cnt);
return 0;
}
int isprime(int x){
int i=3,r;
if(x==2)return 1;
if(x<2... | 2,128 | memory_bytes | {'s_id': 's907570880', 'p_id': 'p02257', 'u_id': 'u779655017', 'date': '1544072270', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2128', '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<math.h>\nint isprime(int);\nint main(){\n int a,i,n,cnt=0;\n int x[10000];\n scanf(\"%d\",&n);\n for(i... |
CDSS_303254 | CDSS | #include<stdio.h>
int main(void)
{
int x,y,r;
do{
scanf("%d %d",&x,&y);
if(x>y)
{
r=x;
x=y;
y=r;
}
if(x!=0 || y!=0)printf("%d %d\n",x,y);
}while(x!=0 || y!=0);
return 0;
} | 596 | memory_bytes | {'s_id': 's518457748', 'p_id': 'p02397', 'u_id': 'u537544773', 'date': '1366354906', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '185'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\n\tint x,y,r;\n\tdo{\n\tscanf(\"%d %d\",&x,&y);\n\tif(x>y)\n\t{\n\t\tr=x;\n\t\tx=y;\n\t\ty=r;\n\t... |
CDSS_401859 | CDSS | #include <stdio.h>
//Run with 'Ctrl + Alt + N'
int main(void){
int i,x[5];
for(i=0; i<5; i++){
scanf("%d",&x[i]);
}
for(i=0; i<5; i++){
if (x[i]==0){
printf("%d",i+1);
}
}
return (0);
} | 1,732 | memory_bytes | {'s_id': 's277179479', 'p_id': 'p02639', 'u_id': 'u960165318', 'date': '1592444527', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1732', 'code_size': '258'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n//Run with 'Ctrl + Alt + N'\n\n\nint main(void){\n \n int i,x[5];\n\n for(i=0; i<5; i++){\n scanf(... |
CDSS_83286 | CDSS | #include<stdio.h>
int main(){
int n,c;
while(1){
scanf("%d",&n);
if(n==0)break;
for(c=0;n!=1;c++){
if(n%2==0){
n/=2;
}
else{
n=n*3+1;
}
}
printf("%d\n",c);
}
return 0;
} | 600 | memory_bytes | {'s_id': 's005454643', 'p_id': 'p00158', 'u_id': 'u731027244', 'date': '1412847272', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '223'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of 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,c;\n while(1){\n scanf(\"%d\",&n);\n if(n==0)break;\n for(c=0;n!=1;c++){\n if(n... |
CDSS_306695 | CDSS | #include <stdio.h>
int main(void) {
// your code goes here
int a,b,c,i,count=0;
scanf("%d %d %d",&a,&b,&c);
for(i=a;i<=b;i++){
if(c%i==0){
count++;
}
}
printf("%d\n",count);
return 0;
}
| 2,128 | memory_bytes | {'s_id': 's185162776', 'p_id': 'p02398', 'u_id': 'u623024207', 'date': '1525677242', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2128', 'code_size': '202'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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// your code goes here\n\tint a,b,c,i,count=0;\n\tscanf(\"%d %d %d\",&a,&b,&c);\n\tfor(i=a;i... |
CDSS_744557 | CDSS | #include <stdio.h>
int main()
{
int A,B,C;
scanf("%d %d %d",&A,&B,&C);
if(A==5 && B==5 && C==7){
printf("YES");
}else if(A==5 && B==7 &&C==5){
printf("YES");
}else if(A==7 && B==5 && C==5){
printf("YES");
}else{
printf("NO");
}
return 0;
} | 128 | memory_bytes | {'s_id': 's805200393', 'p_id': 'p04043', 'u_id': 'u321139366', 'date': '1558759593', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '255'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main()\n{\n\tint A,B,C;\n\tscanf(\"%d %d %d\",&A,&B,&C);\n\tif(A==5 && B==5 && C==7){\n\t\tprintf(\"YES\");\n\... |
CDSS_600966 | CDSS | #include<stdio.h>
int main(){
int n[4]={};
//0=<nx=<9
for(int i=0; i<4; i++){
scanf("%d", &n[i]);
}
int a[4]={1,4,7,9};
for(int i=0; i<4; i++){
for(int j=0; j<4; j++){
if(n[i]==a[j]){
a[j]=10;
}
}
}
if(a[0]+a[1]+a[2]+a[3]==40){
printf("YES");
}else{
printf(... | 128 | memory_bytes | {'s_id': 's931398531', 'p_id': 'p03149', 'u_id': 'u976615219', 'date': '1565221091', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '344'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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[4]={};\n //0=<nx=<9\n for(int i=0; i<4; i++){\n scanf(\"%d\", &n[i]);\n }\n int a[4... |
CDSS_660508 | CDSS | #include <stdio.h>
int main(){
int x,a,b;
scanf("%d",&x);
scanf("%d",&a);
scanf("%d",&b);
printf("%d\n",(x-a)%b);
return 0;
} | 128 | memory_bytes | {'s_id': 's512350959', 'p_id': 'p03447', 'u_id': 'u399527088', 'date': '1517191304', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '138'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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,a,b;\n scanf(\"%d\",&x);\n scanf(\"%d\",&a);\n scanf(\"%d\",&b);\n printf(\"%d\\n\",(x-... |
CDSS_128497 | CDSS | // AOJ 2946 You Should Avoid
// 2019.8.8 bal4u
#include <stdio.h>
#include <string.h>
#if 1
#define gc() getchar_unlocked()
#define pc(c) putchar_unlocked(c)
#else
#define gc() getchar()
#define pc(c) putchar(c)
#endif
int in(int *x) // 整数の入力(負数対応)
{
int n = 0, c = gc();
if (c < 0) return 0;
if (c == '-') { c =... | 2,132 | memory_bytes | {'s_id': 's868477870', 'p_id': 'p02046', 'u_id': 'u847467233', 'date': '1565232105', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2132', 'code_size': '993'} | [
{
"content": "Your task is to predict the memory 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 2946 You Should Avoid\n// 2019.8.8 bal4u\n\n#include <stdio.h>\n#include <string.h>\n\n#if 1\n#define gc() getchar_unlocked()\n... |
CDSS_713684 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
#define NITEM(arr) (sizeof(arr)/sizeof(arr[0]))
#define MODU 1000000007LL
#define N_MAX 200000
typedef long long ll;
typedef struct
{
int c, w;
}ball_t;
ball_t ball[N_MAX+1];
int c_num[N_MAX+1];
int movable[N_MAX+1];
ll factrial[N_MAX+1];
ll gcd(ll a, ll... | 6,416 | memory_bytes | {'s_id': 's235212634', 'p_id': 'p03770', 'u_id': 'u565795452', 'date': '1491583979', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '98', 'memory': '6416', 'code_size': '2211'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#include<string.h>\n\n\n#define NITEM(arr) (sizeof(arr)/sizeof(arr[0]))\n#define MODU 100000000... |
CDSS_584341 | CDSS | #include <stdio.h>
long long int l_min(long long int*A){
long long int ans=A[0];
for (size_t i = 1; i < 5; i++){
if (ans>A[i]){
ans=A[i];
}
}
return ans;
}
int main(int argc, char const *argv[])
{
long long int N;
long long int A[5];
scanf("%lld",&N);
for (s... | 128 | memory_bytes | {'s_id': 's174438681', 'p_id': 'p03077', 'u_id': 'u950580323', 'date': '1555013793', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '504'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nlong long int l_min(long long int*A){\n long long int ans=A[0];\n for (size_t i = 1; i < 5; i++){\n ... |
CDSS_56950 | CDSS | #include<stdio.h>
int main(void){
double g=9.8;
double high;
double time;
double speed;
double n;
while(scanf("%lf",&speed)!=EOF){
time = speed / g;
high = time * time * g / 2.0;
n = (5 + high) / 5;
if((int)n != n)n++;
printf("%d\n",(int)n);
}
return 0;
} | 0 | memory_bytes | {'s_id': 's964182022', 'p_id': 'p00024', 'u_id': 'u914140574', 'date': '1292917852', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '295'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 double g=9.8;\n double high;\n double time;\n double speed;\n double n;\n\n while(scanf... |
CDSS_141305 | CDSS | #include<stdio.h>
#define BLACK 1
#define WHITE 0
#define GRAY -1
#define NUM 100
#define INF 1000000
int main(){
int i,n,j,a[NUM][NUM],u,k,v,d[NUM],pi[NUM],color[NUM],minv;
scanf("%d",&n);
for(i=0;i<NUM;i++){
for(j=0;j<NUM;j++){
a[i][j]=INF;
}
}
for(i=0;i<n;i++){
scanf("%d%d",&u,&k);
... | 2,056 | memory_bytes | {'s_id': 's806437060', 'p_id': 'p02242', 'u_id': 'u772275472', 'date': '1532411926', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2056', 'code_size': '967'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 BLACK 1\n#define WHITE 0\n#define GRAY -1\n#define NUM 100\n#define INF 1000000\n\nint main(){\n int i,n,j... |
CDSS_186382 | 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... | 33,108 | memory_bytes | {'s_id': 's365892147', 'p_id': 'p02265', 'u_id': 'u948852153', 'date': '1565319353', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '210', 'memory': '33108', 'code_size': '1540'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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_737466 | CDSS | #include <stdio.h>
int main(void) {
// get inputs
int top, bottom, height;
scanf("%d", &top);
scanf("%d", &bottom);
scanf("%d", &height);
// get area
int area = (top + bottom) * height / 2;
// output
printf("%d\n", area);
return 0;
} | 128 | memory_bytes | {'s_id': 's865058467', 'p_id': 'p03997', 'u_id': 'u214957047', 'date': '1512328612', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '252'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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// get inputs\n\tint top, bottom, height;\n\t\n\tscanf(\"%d\", &top);\n\tscanf(\"%d\", &bott... |
CDSS_119711 | CDSS | // AOJ 1395 What Goes Up Must Come Down
// bitツリーによる転倒数の計算
// 2019.3.25 bal4u
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
//// 数値入力
#if 1
#define gc() getchar_unlocked()
#else
#define gc() getchar()
#endif
int in()
{
int n = 0, c = gc();
do n = 10 * n + (c & 0xf), c = gc(); while (c >= '0');
return ... | 3,028 | memory_bytes | {'s_id': 's307740625', 'p_id': 'p00974', 'u_id': 'u847467233', 'date': '1553493717', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '3028', 'code_size': '1094'} | [
{
"content": "Your task is to predict the memory 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 1395 What Goes Up Must Come Down\n// bitツリーによる転倒数の計算\n// 2019.3.25 bal4u\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <... |
CDSS_676626 | CDSS | #include <stdio.h>
#define INF 1001001001
typedef long long ll;
int min(int x, int y) {
return x > y ? y : x;
}
int max(int x, int y) {
return x < y ? y : x;
}
int main() {
int h, w, dp[10][10];
for (int i = 0; i < 10; i++) {
for (int j = 0; j < 10; j++) {
dp[i][j] = INF;
}
}
scanf("%d%d", &h, &w);
for (i... | 1,720 | memory_bytes | {'s_id': 's405051952', 'p_id': 'p03546', 'u_id': 'u030504180', 'date': '1593657810', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '13', 'memory': '1720', 'code_size': '840'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 INF 1001001001\ntypedef long long ll;\nint min(int x, int y) {\n\treturn x > y ? y : x;\n}\nint max(int x,... |
CDSS_85370 | CDSS | #include <stdio.h>
#define N 1000000
int p[N+1];
void era(void){
int i,j;
for(i=2;i<N;i++){
p[i]=1;
}
for(i=2;i*i<=N;i++){
if(p[i]){
for(j=2*i;j<=N;j=j+i){
p[j]=0;
}
}
}
}
int main(void){
int n,ans,i;
era();
while(1){
scanf("%d",&n);
if(!n)
break;
ans=0;
for(i=3;i<=n/2;i++){
if(p[i... | 4,504 | memory_bytes | {'s_id': 's432568304', 'p_id': 'p00185', 'u_id': 'u505651850', 'date': '1479604188', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '4504', 'code_size': '383'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 1000000\nint p[N+1];\nvoid era(void){\n\tint i,j;\n\tfor(i=2;i<N;i++){\n\t\tp[i]=1;\n\t}\n\tfor(i=2;i*i<... |
CDSS_473081 | CDSS | #include <stdio.h>
int main(){
int L;
scanf("%d",&L);
printf("%.12f",(double)L*L*L/27);
return 0;
} | 128 | memory_bytes | {'s_id': 's965339657', 'p_id': 'p02731', 'u_id': 'u333114422', 'date': '1586310385', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '108'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n int L;\n scanf(\"%d\",&L);\n printf(\"%.12f\",(double)L*L*L/27);\n return 0;\n}\nPredict its m... |
CDSS_40388 | CDSS | #include<stdio.h>
int main(){
int i,n,syakkin;
scanf("%d",&n);
syakkin=100000;
for(i=0;i<n;i++){
syakkin=syakkin*1.05+999;
syakkin=(syakkin/1000)*1000;
}
printf("%d\n",syakkin);
return 0;
} | 592 | memory_bytes | {'s_id': 's507554284', 'p_id': 'p00007', 'u_id': 'u321071186', 'date': '1362201690', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', 'code_size': '207'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n\tint i,n,syakkin;\n\n\tscanf(\"%d\",&n);\n\tsyakkin=100000;\n\tfor(i=0;i<n;i++){\n\t\tsyakkin=syakk... |
CDSS_699734 | CDSS | #include <stdio.h>
int main(void) {
int N,M=1,count=0;
scanf("%d", &N);
int a[N];
for(int i=0;i<N;i++)
scanf("%d",&a[i]);
while (1) {
N=M-1;
M = a[M-1];
count++;
if (M == 2) {
printf("%d", count);
return 0;
}
if(M==-1){
... | 2,120 | memory_bytes | {'s_id': 's772540007', 'p_id': 'p03680', 'u_id': 'u224469387', 'date': '1593396962', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '25', 'memory': '2120', '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>\nint main(void) {\n int N,M=1,count=0;\n scanf(\"%d\", &N);\n int a[N];\n for(int i=0;i<N;i++)\n scanf... |
CDSS_77200 | CDSS | #include <stdio.h>
#include <stdlib.h>
int main(void) {
int h,w,i,j,**visit,np;
char **Table,c,num[10];
while (1) {
np = 0;
while ((c = fgetc(stdin))!=' ') {
num[np++] = c;
}
num[np] = '\0';
h = atoi(num);
np = 0;
while ((c = fgetc(stdin))!='\n') {
num[np++] = c;
}
num[np] = '\0';
w = ato... | 632 | memory_bytes | {'s_id': 's706378006', 'p_id': 'p00104', 'u_id': 'u413313314', 'date': '1429458857', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '632', 'code_size': '1087'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\nint main(void) {\n\tint h,w,i,j,**visit,np;\n\tchar **Table,c,num[10];\n\n\twhile (1) {\n\t... |
CDSS_60340 | CDSS | #include<stdio.h>
int main() {
int a, b, c, n, m;
n = 0; m = 0;
while (scanf("%d,%d,%d", &a, &b, &c) != EOF) {
if (a * a + b * b == c * c) n ++;
if (a == b) m ++;
}
printf("%d\n%d\n", n, m);
return 0;
} | 596 | memory_bytes | {'s_id': 's143984243', 'p_id': 'p00032', 'u_id': 'u673933691', 'date': '1416137212', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '222'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main() {\n int a, b, c, n, m;\n n = 0; m = 0;\n while (scanf(\"%d,%d,%d\", &a, &b, &c) != EOF) {\n if (a ... |
CDSS_731385 | CDSS | /*
cat <<EOF >mistaken-paste
*/
#pragma GCC diagnostic ignored "-Wincompatible-pointer-types"
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <math.h>
#define BIG 2000000007
#define VERYBIG 200000000000007LL
#define MOD 1000000007
typedef uint64_t ull;
ty... | 11,372 | memory_bytes | {'s_id': 's820379417', 'p_id': 'p03921', 'u_id': 'u238041222', 'date': '1517784837', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '39', 'memory': '11372', 'code_size': '9997'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n/*\ncat <<EOF >mistaken-paste\n*/\n\n#pragma GCC diagnostic ignored \"-Wincompatible-pointer-types\"\n\n#include <stdio.h>\n#include <... |
CDSS_356065 | CDSS | #include <stdio.h>
int main(void)
{
int i, j, k, n, x, count;
while (1)
{
scanf(" %d %d", &n, &x);
if (n == 0 && x == 0)
return 0;
count = 0;
for (i = 1; i <= n - 2; i++)
for (j = i + 1; j <= n - 1; j++)
for (k = j + 1; k <= n; k++)
if (i + j + k == x)
count++;
pr... | 2,040 | memory_bytes | {'s_id': 's392454670', 'p_id': 'p02412', 'u_id': 'u167912266', 'date': '1517781163', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2040', 'code_size': '362'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 i, j, k, n, x, count;\n while (1)\n {\n scanf(\" %d %d\", &n, &x);\n if (... |
CDSS_369377 | CDSS | #include<stdio.h>
#include<string.h>
#include<ctype.h>
int main(void){
char w[10]={},text[1000]={};
int count=0;
int i;
scanf("%s",w);
i=0;
while(w[i]!=0){
if(w[i]>='A'&&w[i]<='Z') w[i] = tolower(w[i]);
i++;
}
while(1){
scanf("%s",text);
i=0;
if(!strcmp(text,"END_OF_TEXT")){
... | 1,848 | memory_bytes | {'s_id': 's850615595', 'p_id': 'p02419', 'u_id': 'u374429353', 'date': '1510885779', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1848', 'code_size': '525'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\n#include<ctype.h>\n\nint main(void){\n char w[10]={},text[1000]={};\n int count=0;\n int i;\... |
CDSS_168875 | CDSS | #include<stdio.h>
void bubblesort(int[],int);
int main(){
int A[1000];
int i,N,count=0;
scanf("%d",&N);
if(N <= 0 && N >= 100)return 0;
for( i = 0 ;i < N ; i++ ){
scanf("%d",&A[i]);
}
bubblesort(A,N);
return 0;
}
void bubblesort(int A[],int N){
int i,flag=1,j,ex,count=0;
for(i=0;flag... | 2,104 | memory_bytes | {'s_id': 's699759433', 'p_id': 'p02259', 'u_id': 'u929327759', 'date': '1576134437', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '620'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code 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 A[1000];\n int i,N,count=0;\n\n scanf(\"%d\",&N);\n if(N <= ... |
CDSS_137100 | CDSS | #include<stdio.h>
#define N 100
#define SHIRO 0
#define GRAY 1
#define KURO 2
int kazu,M[N][N];
int color[N],d[N],f[N],tt;
void visit(int u){
int v;
color[u]=GRAY;
d[u]=++tt;
for(v=0;v<kazu;v++){
if(M[u][v]==0)continue;
if(color[v]==SHIRO){
visit(v);
}
}
color[u]=KURO;
f[u]=++tt;
}
voi... | 2,112 | memory_bytes | {'s_id': 's912071497', 'p_id': 'p02238', 'u_id': 'u362695058', 'date': '1580187962', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '784'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#define N 100\n#define SHIRO 0\n#define GRAY 1\n#define KURO 2\n\nint kazu,M[N][N];\nint color[N],d[N],f[N],tt;\n\n... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.