結果
問題 | No.486 3 Straight Win(3連勝) |
ユーザー | Yamyuki |
提出日時 | 2017-02-24 22:33:09 |
言語 | C90 (gcc 11.4.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 395 bytes |
コンパイル時間 | 625 ms |
コンパイル使用メモリ | 24,388 KB |
実行使用メモリ | 4,504 KB |
最終ジャッジ日時 | 2023-08-30 23:27:30 |
合計ジャッジ時間 | 1,701 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | AC | 1 ms
4,380 KB |
testcase_15 | WA | - |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | AC | 0 ms
4,380 KB |
testcase_19 | WA | - |
testcase_20 | WA | - |
testcase_21 | WA | - |
testcase_22 | WA | - |
testcase_23 | WA | - |
testcase_24 | WA | - |
testcase_25 | AC | 0 ms
4,376 KB |
testcase_26 | AC | 0 ms
4,380 KB |
testcase_27 | AC | 1 ms
4,376 KB |
ソースコード
#include<stdio.h> #include<string.h> int main(int argc, char const *argv[]) { int f,i; char s[101]; scanf("%s",s); if(strlen(s)<3){ printf("NA\n"); return 0; } f=0; for(i=0;i<strlen(s)-2;i++){ printf("%d\n",strlen(s)); if(s[i]==s[i+1] && s[i+1]==s[i+2]){ if(s[i]=='O') printf("East\n"); else printf("West\n"); f=1; break; } } if(f==0) printf("NA\n"); return 0; }