結果

問題 No.380 悪の台本
ユーザー Nagisa
提出日時 2016-06-17 22:56:40
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
RE  
実行時間 -
コード長 715 bytes
コンパイル時間 161 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 11,520 KB
最終ジャッジ日時 2024-11-06 22:38:25
合計ジャッジ時間 1,044 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 1 RE * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys

def hantei(S):
    f = 0 
    if S[0] == "digi":
        if (S[-1][:3]).lower() == "nyo":
            f = 1
    elif S[0] == "petit":
        if (S[-1][:3]).lower() == "nyu":
            f = 1
    elif S[0] == "rabi":
        for s in S:
            for l in s:
                if l.isalpa():
                    f = 1
    elif S[0] == "gema":
        if (S[-1][:3]).lower() == "gema":
            f = 1
    elif S[0] == "piyo":
        if (S[-1][:3]).lower() == "pyo":
            f = 1
    if f == 1:
        return "CORRECT (maybe)"
    else:
        return "WRONG!"

a = []
for line in sys.stdin:
    a.append(str(line))

for l in a:
    l = l.replace("-"," ")
    P = l.split()
    print(hantei(P))
0