結果
| 問題 | No.2622 Dam |
| コンテスト | |
| ユーザー |
detteiuu
|
| 提出日時 | 2024-08-17 14:49:46 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 47 ms / 2,000 ms |
| コード長 | 292 bytes |
| 記録 | |
| コンパイル時間 | 132 ms |
| コンパイル使用メモリ | 85,248 KB |
| 実行使用メモリ | 66,688 KB |
| 最終ジャッジ日時 | 2026-04-03 21:28:04 |
| 合計ジャッジ時間 | 784 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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