結果
| 問題 | No.1176 少ない質問 |
| コンテスト | |
| ユーザー |
akane
|
| 提出日時 | 2020-08-21 21:45:37 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 352 bytes |
| 記録 | |
| コンパイル時間 | 2,002 ms |
| コンパイル使用メモリ | 191,696 KB |
| 最終ジャッジ日時 | 2025-01-13 05:34:43 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 20 WA * 1 |
ソースコード
#include <bits/stdc++.h>
#define rep(i,n) for (int i=0; i < (n); i++)
using namespace std;
using ll = long long;
int main(){
ios::sync_with_stdio(false);
ll A; cin>>A;
ll ans = 150;
for(ll i=2; i<120; i++){
for(ll j=1; i+j<120; j++){
if(pow(i,j)>A) ans = min(ans, i*j);
}
}
cout << ans << endl;
}
akane