結果

問題 No.333 門松列を数え上げ
ユーザー toshiro_yanagi
提出日時 2018-06-11 13:07:09
言語 Nim
(2.2.0)
結果
WA  
実行時間 -
コード長 160 bytes
コンパイル時間 3,078 ms
コンパイル使用メモリ 66,456 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-30 13:30:46
合計ジャッジ時間 3,671 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 2 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

import strutils, sequtils, math

const D = 2 * 10 ^ 9

let AB = stdin.readLine.split.map parseInt
let (A, B) = (AB[0], AB[1])

echo if A < B: A - 1 else: D - A
0