結果

問題 No.333 門松列を数え上げ
コンテスト
ユーザー izuru_matsuura
提出日時 2016-02-11 21:19:51
言語 D
(dmd 2.112.0)
コンパイル:
dmd -fPIE -m64 -w -wi -O -release -inline -I/opt/dmd/src/druntime/import/ -I/opt/dmd/src/phobos -L-L/opt/dmd/linux/lib64/ -fPIC _filename_
実行:
./Main
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 465 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 1,663 ms
コンパイル使用メモリ 127,880 KB
実行使用メモリ 7,716 KB
最終ジャッジ日時 2026-03-05 06:36:21
合計ジャッジ時間 2,058 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 7
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

import std.stdio;
import std.ascii;
import std.range;
import std.array;
import std.functional;
import std.algorithm;
import std.conv;
import std.container;
import std.math;
import std.numeric;
import std.string;
import std.random;
import std.regex;
import std.typecons;

void main() {
    int a, b;
    scanf("%d %d\n", &a, &b);
    if (a < b) {
        writefln("%d", b - 2);
    } else {
        assert(a > b);
        writefln("%d", 2000000000 - b - 1);
    }
}
0