結果

問題 No.2622 Dam
ユーザー sasa8uyauyasasa8uyauya
提出日時 2024-02-09 21:30:17
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 63 ms / 2,000 ms
コード長 274 bytes
コンパイル時間 176 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 67,852 KB
最終ジャッジ日時 2024-02-09 21:30:18
合計ジャッジ時間 1,027 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 33 ms
53,332 KB
testcase_01 AC 62 ms
65,792 KB
testcase_02 AC 62 ms
65,792 KB
testcase_03 AC 63 ms
67,852 KB
testcase_04 AC 60 ms
67,852 KB
testcase_05 AC 60 ms
67,852 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

T=int(input())
for _ in range(T):
  v,x,fo,fi,q,r=map(int,input().split())
  if fi<=fo:
    print("Zero")
  elif x+(fi-fo)*r>v:
    print("Overflow")
  elif (fi-fo)*r-fo*(q-r)==0:
    print("Safe")
  elif (fi-fo)*r-fo*(q-r)>0:
    print("Overflow")
  else:
    print("Zero")
0