結果
| 問題 | No.375 立方体のN等分 (1) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-10-23 11:27:47 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 358 bytes |
| 記録 | |
| コンパイル時間 | 415 ms |
| コンパイル使用メモリ | 70,144 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-05-17 22:17:52 |
| 合計ジャッジ時間 | 1,788 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | WA * 32 |
ソースコード
#include <iostream>
#include <cstdint>
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
int64_t n;
cin >> n;
int Tmax = n - 1;
if (n & 1) {
cout << Tmax << " " << Tmax << endl;
} else {
int Tmin = 0;
while (n > 0) {
n = n >> 1;
Tmin++;
}
cout << Tmin << " " << Tmax << endl;
}
}