結果
| 問題 | No.2071 Shift and OR | 
| コンテスト | |
| ユーザー |  siman | 
| 提出日時 | 2022-09-18 13:47:04 | 
| 言語 | Ruby (3.4.1) | 
| 結果 | 
                                RE
                                 
                             | 
| 実行時間 | - | 
| コード長 | 135 bytes | 
| コンパイル時間 | 133 ms | 
| コンパイル使用メモリ | 7,424 KB | 
| 実行使用メモリ | 25,088 KB | 
| 最終ジャッジ日時 | 2024-12-22 01:16:51 | 
| 合計ジャッジ時間 | 5,311 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | RE * 3 | 
| other | AC * 7 RE * 30 | 
コンパイルメッセージ
Syntax OK
ソースコード
N = gets.to_i A = gets.split.map(&:to_i) def shift(x) x / 2 + 2 ** 15 * (x % 2) end if N >= 16 puts 2 ** 16 - 1 else raise end
