結果
問題 |
No.2622 Dam
|
ユーザー |
|
提出日時 | 2024-02-11 01:47:45 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 236 bytes |
コンパイル時間 | 330 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-09-28 17:23:39 |
合計ジャッジ時間 | 867 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | WA * 5 |
ソースコード
N = int(input()) for i in range(N): V, X, Fo, Fi, Q, R = map(int, input().split()) C = Fi * R - Fo * Q if C > 0 and C * 10 ** 100 > V - X: print("Overflow") elif C < 0 and C * 10 ** 100 < X: print("Zero") else: print("Safe")