結果

問題 No.1196 A lazy student
ユーザー capra314cabra
提出日時 2020-08-21 09:40:24
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 438 bytes
コンパイル時間 131 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 13,312 KB
最終ジャッジ日時 2024-10-15 04:51:26
合計ジャッジ時間 1,283 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other WA * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

#
# Validator.py
#
def asrt(check, message):
    if not check:
        print(message)
        exit(0)

n = input()
asrt(2 <= int(n) <= 1000000, "N not good")

three_val = input().split(" ")

asrt(0 <= float(three_val[0]) <= 1, "p not good")
asrt(0 <= float(three_val[1]) <= 1, "q not good")
asrt(0 <= float(three_val[2]) <= 1, "r not good")

s = input()

asrt(len(s) == int(n), "expect " + n + " actual " + str(len(s)))

print("ALL OK!")
0