結果

問題 No.290 1010
ユーザー testestesttestestest
提出日時 2015-10-17 22:13:15
言語 C90
(gcc 11.4.0)
結果
AC  
実行時間 1 ms / 5,000 ms
コード長 143 bytes
コンパイル時間 171 ms
コンパイル使用メモリ 23,100 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-09-29 16:55:51
合計ジャッジ時間 1,122 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 0 ms
4,380 KB
testcase_01 AC 0 ms
4,380 KB
testcase_02 AC 0 ms
4,380 KB
testcase_03 AC 1 ms
4,376 KB
testcase_04 AC 0 ms
4,376 KB
testcase_05 AC 0 ms
4,380 KB
testcase_06 AC 0 ms
4,376 KB
testcase_07 AC 0 ms
4,380 KB
testcase_08 AC 1 ms
4,376 KB
testcase_09 AC 1 ms
4,376 KB
testcase_10 AC 0 ms
4,380 KB
testcase_11 AC 0 ms
4,376 KB
testcase_12 AC 1 ms
4,376 KB
testcase_13 AC 1 ms
4,376 KB
testcase_14 AC 0 ms
4,376 KB
testcase_15 AC 0 ms
4,380 KB
testcase_16 AC 0 ms
4,380 KB
testcase_17 AC 0 ms
4,380 KB
testcase_18 AC 0 ms
4,376 KB
testcase_19 AC 1 ms
4,380 KB
testcase_20 AC 0 ms
4,376 KB
testcase_21 AC 0 ms
4,376 KB
testcase_22 AC 1 ms
4,376 KB
testcase_23 AC 1 ms
4,380 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: In function ‘main’:
main.c:4:5: warning: implicit declaration of function ‘gets’ [-Wimplicit-function-declaration]
 for(gets(s);i<4;i++)s[i]=getchar();
     ^~~~
main.c:4:26: warning: implicit declaration of function ‘getchar’ [-Wimplicit-function-declaration]
 for(gets(s);i<4;i++)s[i]=getchar();
                          ^~~~~~~
main.c:4:26: note: ‘getchar’ is defined in header ‘<stdio.h>’; did you forget to ‘#include <stdio.h>’?
main.c:1:1:
+#include <stdio.h>
 char s[4];
main.c:4:26:
 for(gets(s);i<4;i++)s[i]=getchar();
                          ^~~~~~~
main.c:5:36: warning: implicit declaration of function ‘puts’ [-Wimplicit-function-declaration]
 if(s[3]>10||s[0]==s[1]||s[1]==s[2])puts("YES");else puts("NO");
                                    ^~~~
/tmp/ccTGrMKX.o: In function `main':
main.c:(.text.startup+0xe): warning: the `gets' function is dangerous and should not be used.

ソースコード

diff #

char s[4];
int main(){
int i=0;
for(gets(s);i<4;i++)s[i]=getchar();
if(s[3]>10||s[0]==s[1]||s[1]==s[2])puts("YES");else puts("NO");
return 0;
}
0