結果
| 問題 |
No.2622 Dam
|
| コンテスト | |
| ユーザー |
ntuda
|
| 提出日時 | 2024-02-09 23:49:10 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 63 ms / 2,000 ms |
| コード長 | 329 bytes |
| コンパイル時間 | 384 ms |
| コンパイル使用メモリ | 82,452 KB |
| 実行使用メモリ | 68,096 KB |
| 最終ジャッジ日時 | 2024-09-28 16:42:06 |
| 合計ジャッジ時間 | 1,084 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 5 |
ソースコード
for _ in range(int(input())):
V,X,Fo,Fi,Q,R = map(int,input().split())
inc = (Fi - Fo) * R
dec = Fo * (Q - R)
if inc < 0:
print("Zero")
elif inc > dec:
print("Overflow")
elif X + inc > V:
print("Overflow")
elif inc == dec:
print("Safe")
else:
print("Zero")
ntuda