結果

問題 No.136 Yet Another GCD Problem
ユーザー square1001
提出日時 2018-05-28 19:43:19
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 3 ms / 5,000 ms
コード長 176 bytes
コンパイル時間 630 ms
コンパイル使用メモリ 63,472 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-30 07:51:45
合計ジャッジ時間 1,885 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 39
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;
int N;
int main() {
	cin >> N;
	int mx = 1;
	for(int i = 1; i < N; i++) {
		if(N % i == 0) mx = i;
	}
	cout << mx << '\n';
	return 0;
}
0