結果

問題 No.415 ぴょん
ユーザー masa
提出日時 2016-08-26 23:15:51
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 181 bytes
コンパイル時間 510 ms
コンパイル使用メモリ 62,336 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-08 09:47:56
合計ジャッジ時間 1,417 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 17 WA * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <cstdio>

using namespace std;

int main() {
	int n, d;

	cin >> n >> d;

	int ans = n % d == 0 ? n / d : n;
	ans--;
	cout << ans << endl;
	return 0;
}
0