結果
| 問題 | No.1628 Sorting Integers (MAX of M) |
| コンテスト | |
| ユーザー |
kokatsu
|
| 提出日時 | 2022-06-01 21:41:24 |
| 言語 | D (dmd 2.112.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 230 bytes |
| 記録 | |
| コンパイル時間 | 1,810 ms |
| コンパイル使用メモリ | 193,632 KB |
| 実行使用メモリ | 7,716 KB |
| 最終ジャッジ日時 | 2026-03-06 20:11:48 |
| 合計ジャッジ時間 | 2,379 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 6 |
コンパイルメッセージ
/home/linuxbrew/.linuxbrew/opt/dmd/include/dlang/dmd/core/checkedint.d(814): Warning: cannot inline function `core.checkedint.mulu!().mulu`
ulong mulu()(ulong x, uint y, ref bool overflow)
^
ソースコード
import std;
void main() {
long N;
readf("%d\n", N);
auto c = readln.chomp.split.to!(long[]);
dchar[] res;
foreach_reverse (i, x; c) {
res ~= to!dchar(i+'1').repeat(x).array;
}
res.writeln;
}
kokatsu