結果
問題 |
No.415 ぴょん
|
ユーザー |
|
提出日時 | 2021-06-22 00:32:32 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 220 bytes |
コンパイル時間 | 1,780 ms |
コンパイル使用メモリ | 165,120 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-22 22:59:14 |
合計ジャッジ時間 | 2,527 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 WA * 17 |
ソースコード
#include<bits/stdc++.h> using namespace std; int main(){ int n,d; cin>>n>>d; if(n==d)cout<<0<<endl; else if(n%d==1)cout<<n-1<<endl; else if(n%d==0)cout<<n/d-1<<endl; else cout<<n/(n%d)-1<<endl; }