結果
問題 |
No.333 門松列を数え上げ
|
ユーザー |
![]() |
提出日時 | 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 |
ソースコード
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; }