結果
問題 | No.486 3 Straight Win(3連勝) |
ユーザー |
![]() |
提出日時 | 2018-05-14 21:26:45 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 173 bytes |
コンパイル時間 | 93 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,496 KB |
最終ジャッジ日時 | 2024-06-28 11:50:22 |
合計ジャッジ時間 | 1,788 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 28 |
ソースコード
s=input() c_e=0 c_w=0 for i in s: if i=='0': c_e+=1 else: c_w+=1 if c_e>c_w: print('EAST') elif c_e<c_w: print('WEST') else: print('NA')