結果
| 問題 | No.846 メダル |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-07-30 11:40:38 |
| 言語 | PyPy2 (7.3.20) |
| 結果 |
AC
|
| 実行時間 | 52 ms / 2,000 ms |
| + 279µs | |
| コード長 | 187 bytes |
| 記録 | |
| コンパイル時間 | 66 ms |
| コンパイル使用メモリ | 81,024 KB |
| 実行使用メモリ | 81,280 KB |
| 最終ジャッジ日時 | 2026-07-18 20:10:11 |
| 合計ジャッジ時間 | 3,459 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 22 |
ソースコード
#yuki846 p,q,r=map(int,raw_input().split()) a,b,c=map(int,raw_input().split()) x=max((a-1)*p+1,(a+b-1)*q+1,(a+b+c-1)*r+1) y=min(a*p,(a+b)*q,(a+b+c)*r) if x>y: print -1 else: print x,y