結果
| 問題 |
No.136 Yet Another GCD Problem
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-08-07 15:32:14 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 8 ms / 5,000 ms |
| コード長 | 254 bytes |
| コンパイル時間 | 2,268 ms |
| コンパイル使用メモリ | 191,420 KB |
| 最終ジャッジ日時 | 2025-01-07 10:56:54 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 39 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
int n;cin>>n;
for (int i=2;i+i<=n;i++) {
if (n%i==0) {
cout<<n/i<<endl;
return 0;
}
}
cout<<1<<endl;
return 0;
}