結果
| 問題 |
No.1628 Sorting Integers (MAX of M)
|
| コンテスト | |
| ユーザー |
toshiro_yanagi
|
| 提出日時 | 2022-07-02 09:47:02 |
| 言語 | Go (1.23.4) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 305 bytes |
| コンパイル時間 | 12,912 ms |
| コンパイル使用メモリ | 220,272 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-26 23:46:26 |
| 合計ジャッジ時間 | 13,769 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 6 |
ソースコード
package main
import (
"fmt"
"strconv"
)
func main() {
var n int
fmt.Scan(&n)
c := make([]int, 10)
for i := range make([]struct{}, 9) {
fmt.Scan(&c[i+1])
}
ans := ""
for i := len(c) - 1; i >= 0; i-- {
for range make([]struct{}, c[i]) {
ans += strconv.Itoa(i)
}
}
fmt.Println(ans)
}
toshiro_yanagi