結果
問題 | No.27 板の準備 |
ユーザー | pluto77 |
提出日時 | 2016-10-09 09:51:16 |
言語 | PyPy2 (7.3.15) |
結果 |
AC
|
実行時間 | 270 ms / 5,000 ms |
コード長 | 361 bytes |
コンパイル時間 | 2,283 ms |
コンパイル使用メモリ | 76,288 KB |
実行使用メモリ | 78,592 KB |
最終ジャッジ日時 | 2024-12-26 12:51:14 |
合計ジャッジ時間 | 7,102 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 18 |
ソースコード
#yuki_27 INF=1000 v=map(int,raw_input().split()) res=INF for a in xrange(1,31): for b in xrange(1,31): for c in xrange(1,31): temp=0 for x in v: rtemp=INF for i in xrange(31): for j in xrange(31): k=x-i*a-j*b if k<0: break if k%c==0: rtemp=min(rtemp,i+j+k/c) temp+=rtemp res=min(res,temp) print res