結果

問題 No.1253 雀見椪
ユーザー maspy
提出日時 2020-09-07 14:50:29
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 441 bytes
コンパイル時間 87 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 12,160 KB
最終ジャッジ日時 2024-07-04 23:22:09
合計ジャッジ時間 1,771 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 1
other WA * 14
権限があれば一括ダウンロードができます

ソースコード

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