結果
| 問題 |
No.1196 A lazy student
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-08-21 09:43:06 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 461 bytes |
| コンパイル時間 | 81 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 13,048 KB |
| 最終ジャッジ日時 | 2024-10-15 04:51:31 |
| 合計ジャッジ時間 | 1,347 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 14 |
ソースコード
#
# Validator.py
#
import os
import glob
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!")