結果
| 問題 | No.846 メダル |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-07-30 11:40:38 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 82 ms / 2,000 ms |
| コード長 | 187 bytes |
| 記録 | |
| コンパイル時間 | 153 ms |
| コンパイル使用メモリ | 77,472 KB |
| 最終ジャッジ日時 | 2025-12-04 01:51:28 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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