結果

問題 No.333 門松列を数え上げ
ユーザー nak2yoshi
提出日時 2016-02-25 01:05:11
言語 D
(dmd 2.109.1)
結果
WA  
実行時間 -
コード長 291 bytes
コンパイル時間 873 ms
コンパイル使用メモリ 109,056 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-06-12 03:06:28
合計ジャッジ時間 1,270 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 2 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

import std.stdio,
       std.conv,
       std.string,
       std.range,
       std.math,
       std.bigint,
       std.algorithm;

void main()
{
    auto input = readln.split.to!(long[]);
    auto A = input[0], B = input[1];

    (abs(B - A) - 1 + A < B ? A - 1 : 2000000000 - A).writeln;
}
0