結果
| 問題 |
No.375 立方体のN等分 (1)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-10-23 11:27:47 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 358 bytes |
| コンパイル時間 | 568 ms |
| コンパイル使用メモリ | 53,848 KB |
| 実行使用メモリ | 6,816 KB |
| 最終ジャッジ日時 | 2024-11-24 01:54:14 |
| 合計ジャッジ時間 | 1,563 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
}
}