結果
問題 |
No.486 3 Straight Win(3連勝)
|
ユーザー |
|
提出日時 | 2018-04-30 16:04:46 |
言語 | C (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 350 bytes |
コンパイル時間 | 1,344 ms |
コンパイル使用メモリ | 26,880 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-27 23:55:02 |
合計ジャッジ時間 | 1,646 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 23 WA * 5 |
ソースコード
#include <stdio.h> #include <string.h> int main(void) { char s[101]; scanf("%s", s); if (strstr(s, "OOO") != NULL && strstr(s, "XXX") != NULL) puts(strstr("OOO", s) > strstr("XXX", s) ? "East" : "West"); else if (strstr(s, "OOO") != NULL) puts("East"); else if (strstr(s, "XXX") != NULL) puts("West"); else puts("NA"); return 0; }