結果
| 問題 |
No.415 ぴょん
|
| ユーザー |
srup٩(๑`н´๑)۶
|
| 提出日時 | 2016-08-26 22:39:00 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 356 bytes |
| コンパイル時間 | 709 ms |
| コンパイル使用メモリ | 63,764 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-08 09:34:43 |
| 合計ジャッジ時間 | 1,365 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 13 WA * 14 |
ソースコード
#include <iostream>
#include <algorithm>
#include <vector>
#include <map>
#include <cstring>
using namespace std;
typedef long long ll;
#define rep(i,n) for(int i=0;i<(n);i++)
int main(void){
ll n, d; cin >> n >> d;
if(n % 2 == 1){
printf("%lld\n", n - 1);
return 0;
}else if(n == d){
printf("0\n");
}
printf("%lld\n", n / d - 1);
return 0;
}
srup٩(๑`н´๑)۶