結果
| 問題 |
No.1372 Median of Submasks
|
| コンテスト | |
| ユーザー |
wotsushi
|
| 提出日時 | 2020-10-31 15:36:43 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 361 bytes |
| コンパイル時間 | 1,815 ms |
| コンパイル使用メモリ | 191,868 KB |
| 最終ジャッジ日時 | 2025-01-15 18:34:10 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 16 WA * 8 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
// 最下位の桁を0ビット目として、59ビット目をチェックできていない場合にWAになるかチェック
int main() {
long long N;
cin >> N;
for (int i = 58; i >= 0; --i) {
if (N & (1LL << i)) {
long long ans = 1LL << i;
cout << ans << endl;
break;
}
}
}
wotsushi