結果
| 問題 |
No.570 3人兄弟(その1)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-10-06 22:25:34 |
| 言語 | D (dmd 2.109.1) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 706 bytes |
| コンパイル時間 | 776 ms |
| コンパイル使用メモリ | 123,768 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-12 21:59:44 |
| 合計ジャッジ時間 | 1,311 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 5 |
ソースコード
import std.algorithm, std.conv, std.range, std.stdio, std.string;
import std.container; // SList, DList, BinaryHeap
import std.typecons; // Tuple, Nullable, BigFlags
import std.math; // math functions
import std.numeric; // gcd, fft
import std.bigint; // BigInt
import std.random; // random
import std.bitmanip; // BitArray
import core.bitop; // bit operation
import std.regex; // RegEx
import std.uni; // unicode
void main()
{
auto h = iota(3).map!(_ => readln.chomp.to!int).array;
struct HI { int i; char j; }
auto hi = new HI[](h.length);
foreach (i; 0..h.length) hi[i] = HI(h[i], cast(char)(i + 'A'));
hi.sort!"a.i > b.i"();
foreach (hii; hi) writeln(hii.j);
}