結果
| 問題 | 
                            No.1176 少ない質問
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2020-08-22 00:38:19 | 
| 言語 | C++14  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 3 ms / 1,000 ms | 
| コード長 | 492 bytes | 
| コンパイル時間 | 639 ms | 
| コンパイル使用メモリ | 83,724 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-10-15 06:34:56 | 
| 合計ジャッジ時間 | 1,309 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 21 | 
ソースコード
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <functional>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
using ll = long long;
int main() {
  ll a;
  cin >> a;
  int ans = 10000;
  for(int i = 1; i < 100; i++) {
    for(int j = 1; j < 100; j++) {
      if(a <= pow(i, j)) {
        ans = min(ans, i * j);
      }
    }
  }
  cout << ans << endl;
  return 0;
}