結果
| 問題 |
No.907 Continuous Kadomatu
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-06-09 23:53:32 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 523 bytes |
| コンパイル時間 | 79 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-10-13 12:55:35 |
| 合計ジャッジ時間 | 1,841 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 5 |
| other | WA * 25 |
ソースコード
from sys import stdin
import re
lines = stdin.readlines()
def getint():
res = lines.pop(0)
intre = r'(0|(-?[1-9][0-9]*))'
assert(re.fullmatch(intre + r'\n', res))
return int(res.strip())
def getints():
res = lines.pop(0)
intre = r'(0|(-?[1-9][0-9]*))'
assert(re.fullmatch(r'{0}( {0})*\n'.format(intre), res))
return list(map(int, res.strip().split()))
n = getint()
assert(3 <= n <= 200)
for _ in range(n):
a = getints()
assert(len(a) == 2)
assert(1 <= a[0] < a[1] <= 10**9)
assert(len(lines) == 0)