結果

問題 No.820 Power of Two
ユーザー Ytz_IchiYtz_Ichi
提出日時 2020-02-21 02:27:28
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 71 bytes
コンパイル時間 36 ms
コンパイル使用メモリ 7,424 KB
実行使用メモリ 12,288 KB
最終ジャッジ日時 2024-04-17 06:40:21
合計ジャッジ時間 1,611 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 88 ms
12,288 KB
testcase_01 AC 82 ms
12,160 KB
testcase_02 AC 95 ms
12,288 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 87 ms
12,160 KB
testcase_06 AC 85 ms
12,160 KB
testcase_07 AC 82 ms
12,288 KB
testcase_08 AC 82 ms
12,288 KB
testcase_09 AC 79 ms
12,032 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

a,b=gets.chop.split.map(&:to_i)
c=0
if a>b then
  c=2**(a-b)
end
puts c
0