結果
問題 |
No.810 割った余りの個数
|
ユーザー |
![]() |
提出日時 | 2019-08-11 19:16:34 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 242 bytes |
コンパイル時間 | 655 ms |
コンパイル使用メモリ | 65,696 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-13 22:59:32 |
合計ジャッジ時間 | 1,692 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 19 WA * 11 |
ソースコード
#include<iostream> #include<algorithm> using namespace std; using lint=int64_t; int main() { lint L,R,M; cin >> L >> R >> M; lint LL=L%M; lint RR=R%M; if(RR-LL>=0)cout << RR-LL+1; else cout << M-LL+RR+1; cout << endl; return 0; }