結果

問題 No.2480 Sequence Sum
ユーザー achapiachapi
提出日時 2023-09-22 21:32:08
言語 C++17(gcc12)
(gcc 12.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 180 bytes
コンパイル時間 2,188 ms
コンパイル使用メモリ 200,236 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-07-08 12:13:17
合計ジャッジ時間 2,261 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 1 WA * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main() {
	int N;
	cin >> N;
	for (int i = 2; i <= N; i++){
		if (N % i != 0){
			cout << N - i - 1 << endl;
			return 0;
		}
	}
}
0