結果
| 問題 | No.380 悪の台本 |
| コンテスト | |
| ユーザー |
cormoran
|
| 提出日時 | 2016-07-05 18:20:12 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 934 bytes |
| 記録 | |
| コンパイル時間 | 56 ms |
| コンパイル使用メモリ | 15,360 KB |
| 実行使用メモリ | 13,556 KB |
| 最終ジャッジ日時 | 2026-09-19 20:53:25 |
| 合計ジャッジ時間 | 1,473 ms |
|
ジャッジサーバーID (参考情報) |
judge4_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 2 WA * 6 |
ソースコード
import sys
import re
for line in sys.stdin:
words = [s.lower() for s in line.rstrip().split(' ')]
flg = False
if words[0] == 'digi':
flg |= all([w == 'nyo' for w in words[1:]])
flg |= re.match('.*nyo([^a-z]?)([^a-z]?)([^a-z]?)', words[-1]) != None
elif words[0] == 'petit':
flg |= all([w == 'nyu' for w in words[1:]])
flg |= re.match('.*nyu([^a-z]?)([^a-z]?)([^a-z]?)', words[-1]) != None
elif words[0] == 'rabi':
flg |= all([re.match('.*[a-z].*', w) for w in words[1:]])
elif words[0] == 'gema':
flg |= all([w == 'gema' for w in words[1:]])
flg |= re.match('.*gema([^a-z]?)([^a-z]?)([^a-z]?)', words[-1]) != None
elif words[0] == 'piyo':
flg |= all([w == 'pyo' for w in words[1:]])
flg |= re.match('.*pyo([^a-z]?)([^a-z]?)([^a-z]?)', words[-1]) != None
if flg:
print('CORRECT (maybe)')
else:
print('WRONG!')
cormoran