結果

問題 No.380 悪の台本
ユーザー NagisaNagisa
提出日時 2016-06-17 22:56:40
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 715 bytes
コンパイル時間 107 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 11,520 KB
最終ジャッジ日時 2024-04-24 14:16:24
合計ジャッジ時間 912 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
10,368 KB
testcase_01 RE -
testcase_02 AC 30 ms
10,368 KB
testcase_03 AC 28 ms
10,496 KB
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 RE -
権限があれば一括ダウンロードができます

ソースコード

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