結果
問題 | No.154 市バス |
ユーザー |
![]() |
提出日時 | 2016-02-18 12:41:57 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 234 bytes |
コンパイル時間 | 94 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-10-13 08:02:54 |
合計ジャッジ時間 | 2,148 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 2 WA * 6 |
ソースコード
import re T = int(input()) for i in range(T): S = input() pre_S = '' while (S != pre_S): pre_S = S S = re.sub(r'W+GR', '', S) if S == '': print('possible') else: print('impossible')