結果
| 問題 |
No.846 メダル
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-07-30 11:40:38 |
| 言語 | Python2 (2.7.18) |
| 結果 |
AC
|
| 実行時間 | 10 ms / 2,000 ms |
| コード長 | 187 bytes |
| コンパイル時間 | 44 ms |
| コンパイル使用メモリ | 6,784 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-10-07 02:55:44 |
| 合計ジャッジ時間 | 1,006 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / 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