結果
| 問題 |
No.415 ぴょん
|
| ユーザー |
kurenai3110
|
| 提出日時 | 2016-08-26 23:12:56 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 232 bytes |
| コンパイル時間 | 466 ms |
| コンパイル使用メモリ | 56,540 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-11-08 09:46:15 |
| 合計ジャッジ時間 | 1,304 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 WA * 16 |
ソースコード
#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 << endl;
}
else {
cout << n - 1 << endl;
}
return 0;
}
kurenai3110