結果
問題 |
No.1372 Median of Submasks
|
ユーザー |
![]() |
提出日時 | 2020-10-07 03:20:24 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 245 bytes |
コンパイル時間 | 409 ms |
コンパイル使用メモリ | 53,112 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-20 03:13:46 |
合計ジャッジ時間 | 1,244 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 24 |
ソースコード
#include <iostream> #include <cassert> #define llint long long using namespace std; llint n; int main(void) { cin >> n; assert(n >= 1 && n < (1LL<<60)); llint ans = 1; for(; (ans<<1) <= n; ans<<=1); cout << ans << endl; return 0; }