結果

問題 No.290 1010
ユーザー 👑 testestest
提出日時 2015-10-17 22:01:01
言語 C90
(gcc 12.3.0)
結果
WA  
実行時間 -
コード長 117 bytes
コンパイル時間 435 ms
コンパイル使用メモリ 19,072 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-22 10:57:42
合計ジャッジ時間 1,388 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 20 WA * 4
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: In function ‘main’:
main.c:4:3: warning: implicit declaration of function ‘read’ [-Wimplicit-function-declaration]
    4 | n=read(0,i,5);
      |   ^~~~
main.c:5:33: warning: implicit declaration of function ‘puts’ [-Wimplicit-function-declaration]
    5 | if(n==5||i[0]==i[1]||i[1]==i[2])puts("YES");else puts("NO");
      |                                 ^~~~
main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘puts’
  +++ |+#include <stdio.h>
    1 | int main(){

ソースコード

diff #

int main(){
char i[5];
int n;
n=read(0,i,5);
if(n==5||i[0]==i[1]||i[1]==i[2])puts("YES");else puts("NO");
return 0;
}
0