結果
| 問題 |
No.2622 Dam
|
| コンテスト | |
| ユーザー |
detteiuu
|
| 提出日時 | 2024-08-17 14:49:46 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 67 ms / 2,000 ms |
| コード長 | 292 bytes |
| コンパイル時間 | 316 ms |
| コンパイル使用メモリ | 82,764 KB |
| 実行使用メモリ | 66,944 KB |
| 最終ジャッジ日時 | 2024-08-17 14:49:48 |
| 合計ジャッジ時間 | 1,592 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 5 |
ソースコード
T = int(input())
for _ in range(T):
V, X, Fo, Fi, Q, R = map(int, input().split())
if X+(Fi-Fo)*R > V:
print("Overflow")
continue
A = (Fi-Fo)*R-Fo*(Q-R)
if A == 0:
print("Safe")
elif A > 0:
print("Overflow")
else:
print("Zero")
detteiuu