結果

問題 No.570 3人兄弟(その1)
ユーザー noriocnorioc
提出日時 2018-02-04 23:58:10
言語 D
(dmd 2.109.1)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 502 bytes
コンパイル時間 770 ms
コンパイル使用メモリ 114,100 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-12 23:47:40
合計ジャッジ時間 1,195 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

import std.algorithm;
import std.array;
import std.conv;
import std.math;
import std.range;
import std.stdio;
import std.string;
import std.typecons;

T read(T)() { return readln.chomp.to!T; }
T[] reads(T)() { return readln.split.to!(T[]); }
alias readint = read!int;
alias readints = reads!int;

void main() {
    int a = readint;
    int b = readint;
    int c = readint;

    auto xs = [tuple(a, "A"), tuple(b, "B"), tuple(c, "C")];
    foreach_reverse (x; xs.sort) {
        writeln(x[1]);
    }
}
0