結果
| 問題 |
No.375 立方体のN等分 (1)
|
| コンテスト | |
| ユーザー |
_Victorique__
|
| 提出日時 | 2016-06-04 23:05:30 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 286 bytes |
| コンパイル時間 | 526 ms |
| コンパイル使用メモリ | 54,364 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-10-08 09:13:40 |
| 合計ジャッジ時間 | 1,547 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | WA * 32 |
ソースコード
#include<iostream>
using namespace std;
int main() {
int n, N = 0 , Tmin = 1, Tmax;
cin >> n;
Tmax = n - 1;
if (n % 2 == 0) {
while (n != 1) {
N = n / 2;
n = N;
Tmin++;
}
cout << Tmin << " " << Tmax << endl;
}
else cout << Tmax << " " << Tmax << endl;
return 0;
}
_Victorique__