結果
| 問題 | No.2071 Shift and OR |
| コンテスト | |
| ユーザー |
siman
|
| 提出日時 | 2022-09-18 13:47:04 |
| 言語 | Ruby (4.0.2) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 135 bytes |
| 記録 | |
| コンパイル時間 | 490 ms |
| コンパイル使用メモリ | 8,832 KB |
| 実行使用メモリ | 27,136 KB |
| 最終ジャッジ日時 | 2026-05-28 12:02:52 |
| 合計ジャッジ時間 | 3,693 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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
siman