結果
問題 | No.2622 Dam |
ユーザー | ゼット |
提出日時 | 2024-02-09 21:40:14 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 55 ms / 2,000 ms |
コード長 | 297 bytes |
コンパイル時間 | 201 ms |
コンパイル使用メモリ | 81,700 KB |
実行使用メモリ | 67,980 KB |
最終ジャッジ日時 | 2024-02-09 21:40:15 |
合計ジャッジ時間 | 929 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 33 ms
53,460 KB |
testcase_01 | AC | 55 ms
65,920 KB |
testcase_02 | AC | 51 ms
65,920 KB |
testcase_03 | AC | 53 ms
67,980 KB |
testcase_04 | AC | 51 ms
67,980 KB |
testcase_05 | AC | 52 ms
67,980 KB |
ソースコード
Q=int(input()) for _ in range(Q): V,X,f1,f2,q,r=map(int,input().split()) if f1>=f2: print('Zero') continue if X+(f2-f1)*r>V: print('Overflow') continue tin=r*f2 tout=q*f1 if tin>tout: print('Overflow') elif tin<tout: print('Zero') else: print('Safe')