結果

問題 No.164 ちっちゃくないよ!!
ユーザー testestesttestestest
提出日時 2016-02-20 11:43:47
言語 C90
(gcc 11.4.0)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 146 bytes
コンパイル時間 781 ms
コンパイル使用メモリ 23,712 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-08-04 16:18:32
合計ジャッジ時間 1,453 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,384 KB
testcase_01 AC 0 ms
4,380 KB
testcase_02 AC 1 ms
4,380 KB
testcase_03 AC 0 ms
4,380 KB
testcase_04 AC 1 ms
4,380 KB
testcase_05 AC 1 ms
4,384 KB
testcase_06 AC 1 ms
4,380 KB
testcase_07 AC 1 ms
4,380 KB
testcase_08 AC 1 ms
4,380 KB
testcase_09 AC 1 ms
4,380 KB
testcase_10 AC 1 ms
4,380 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c:2:24: warning: return type defaults to ‘int’ [-Wimplicit-int]
 long M,m;char s[13],*t;main(i){for(;gets(s);M=M?m<M?m:M:3L<<61)for(i=1;m=strtoll(s,&t,++i),*t|i+54<s[1];);M=!printf("%ld",M);}
                        ^~~~
main.c: In function ‘main’:
main.c:2:24: warning: type of ‘i’ defaults to ‘int’ [-Wimplicit-int]
main.c:2:37: warning: implicit declaration of function ‘gets’ [-Wimplicit-function-declaration]
 long M,m;char s[13],*t;main(i){for(;gets(s);M=M?m<M?m:M:3L<<61)for(i=1;m=strtoll(s,&t,++i),*t|i+54<s[1];);M=!printf("%ld",M);}
                                     ^~~~
main.c:2:110: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration]
 long M,m;char s[13],*t;main(i){for(;gets(s);M=M?m<M?m:M:3L<<61)for(i=1;m=strtoll(s,&t,++i),*t|i+54<s[1];);M=!printf("%ld",M);}
                                                                                                              ^~~~~~
main.c:2:110: warning: incompatible implicit declaration of built-in function ‘printf’
main.c:2:110: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
+#include <stdio.h>
 long M,m;char s[13],*t;main(i){for(;gets(s);M=M?m<M?m:M:3L<<61)for(i=1;m=strtoll(s,&t,++i),*t|i+54<s[1];);M=!printf("%ld",M);}
                                                                                                              ^~~~~~
/tmp/cc4wAL2N.o: In function `main':
main.c:(.text.startup+0x16): warning: the `gets' function is dangerous and should not be used.

ソースコード

diff #

#include <stdlib.h>
long M,m;char s[13],*t;main(i){for(;gets(s);M=M?m<M?m:M:3L<<61)for(i=1;m=strtoll(s,&t,++i),*t|i+54<s[1];);M=!printf("%ld",M);}
0