結果

問題 No.1253 雀見椪
ユーザー maspymaspy
提出日時 2020-09-07 14:50:29
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 441 bytes
コンパイル時間 110 ms
コンパイル使用メモリ 10,936 KB
実行使用メモリ 9,648 KB
最終ジャッジ日時 2023-09-18 07:11:09
合計ジャッジ時間 1,639 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
lines = sys.stdin.readlines()

T = int(lines[0])
lines = lines[1:]

assert 1<=T<=10000
assert len(lines) == T

for line in lines:
    assert line.endswith('\n')
    N, a, b, c, d, e, f = map(int,line.split())
    
    assert 2<=N<=10**18
    assert 0<=a<=b<=10**9
    assert 0<=c<=d<=10**9
    assert 0<=e<=f<=10**9
    assert b!=0
    assert d!=0
    assert f!=0
    
    num = a*d*f + b*c*f + b*d*e
    assert num == b*d*f

    
0