結果

問題 No.290 1010
コンテスト
ユーザー testestest
提出日時 2015-10-17 22:13:15
言語 C90
(gcc 12.4.0)
コンパイル:
gcc-12 -O2 -std=c90 -DONLINE_JUDGE -o a.out _filename_ -lm
実行:
./a.out
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 143 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 147 ms
コンパイル使用メモリ 28,612 KB
最終ジャッジ日時 2026-02-23 19:33:15
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 24
権限があれば一括ダウンロードができます
コンパイルメッセージ
/usr/bin/ld: /tmp/ccT7kM6a.o: in function `main':
main.c:(.text.startup+0x1b): 警告: the `gets' function is dangerous and should not be used.

ソースコード

diff #
raw source code

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