結果

問題 No.2622 Dam
ユーザー Yuyo1984
提出日時 2024-02-11 02:06:55
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 285 bytes
コンパイル時間 218 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-09-28 17:24:38
合計ジャッジ時間 1,095 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
for i in range(N):
    V, X, Fo, Fi, Q, R = map(int, input().split())
    I = Fi * R
    O = Fo * Q
    C = I - O
    if C > 0 or (C == 0 and I > O):
        print("Overflow")
    elif C < 0 or (C == 0 and I < O):
        print("Zero")
    else:
        print("Safe")
0