結果
| 問題 |
No.268 ラッピング(Easy)
|
| コンテスト | |
| ユーザー |
hama_du
|
| 提出日時 | 2015-11-20 18:25:36 |
| 言語 | Go (1.23.4) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 324 bytes |
| コンパイル時間 | 10,641 ms |
| コンパイル使用メモリ | 219,852 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-10 20:10:35 |
| 合計ジャッジ時間 | 11,653 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 10 |
ソースコード
package main
import (
"fmt"
"sort"
)
func main() {
l1, l2, l3 := 0, 0, 0
r, b, y := 0, 0, 0
fmt.Scan(&l1, &l2, &l3, &r, &b, &y)
size := []int{l1+l2, l2+l3, l3+l1}
cnt := []int{r, b, y}
sort.Ints(size)
sort.Ints(cnt)
total := 0
for i := 0; i < 3; i++ {
total += size[i] * cnt[2-i] * 2
}
fmt.Println(total)
}
hama_du