結果
問題 | No.333 門松列を数え上げ |
ユーザー |
![]() |
提出日時 | 2016-02-25 01:08:04 |
言語 | D (dmd 2.109.1) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 293 bytes |
コンパイル時間 | 795 ms |
コンパイル使用メモリ | 109,184 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-12 03:06:31 |
合計ジャッジ時間 | 1,282 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 7 |
ソースコード
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]; ((A < B ? A - 1 : 2000000000 - A) + abs(B - A) - 1).writeln; }