結果
問題 | No.810 割った余りの個数 |
ユーザー |
|
提出日時 | 2019-04-12 21:25:02 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 239 bytes |
コンパイル時間 | 1,704 ms |
コンパイル使用メモリ | 166,416 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-14 17:01:28 |
合計ジャッジ時間 | 2,523 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 30 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main(){ cin.tie(0); ios::sync_with_stdio(false); int L,R,M; while(cin >> L >> R >> M){ if(R-L+1 <= M) cout << R-L+1 << endl; else cout << M << endl; } return 0; }