結果

問題 No.333 門松列を数え上げ
ユーザー izuru_matsuura
提出日時 2016-02-11 21:19:51
言語 D
(dmd 2.109.1)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 465 bytes
コンパイル時間 1,714 ms
コンパイル使用メモリ 147,064 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-12 02:50:51
合計ジャッジ時間 2,296 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

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