結果

問題 No.333 門松列を数え上げ
ユーザー angel_p_57angel_p_57
提出日時 2016-01-15 22:39:39
言語 Ruby
(3.3.0)
結果
AC  
実行時間 77 ms / 2,000 ms
コード長 49 bytes
コンパイル時間 59 ms
コンパイル使用メモリ 11,224 KB
実行使用メモリ 15,256 KB
最終ジャッジ日時 2023-08-27 01:29:58
合計ジャッジ時間 1,479 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
15,256 KB
testcase_01 AC 74 ms
15,044 KB
testcase_02 AC 74 ms
15,180 KB
testcase_03 AC 73 ms
15,040 KB
testcase_04 AC 73 ms
15,056 KB
testcase_05 AC 72 ms
15,156 KB
testcase_06 AC 77 ms
15,080 KB
testcase_07 AC 73 ms
14,976 KB
testcase_08 AC 72 ms
15,148 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

a,b=gets.split.map &:to_i
p a>b ?2e9.to_i-b-1:b-2
0