結果
| 問題 |
No.415 ぴょん
|
| ユーザー |
kurenai3110
|
| 提出日時 | 2016-08-26 23:16:35 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 235 bytes |
| コンパイル時間 | 488 ms |
| コンパイル使用メモリ | 56,444 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-08 09:48:06 |
| 合計ジャッジ時間 | 1,406 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 15 WA * 12 |
ソースコード
#include <iostream>
#include <vector>
using namespace std;
int main()
{
int n, d;
cin >> n >> d;
if (n == d) {
cout << 0 << endl;
}
if (!(n%d)) {
cout << n / d -1 << endl;
}
else {
cout << n - 1 << endl;
}
return 0;
}
kurenai3110