結果
| 問題 |
No.1926 Sequence of Remainders
|
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2023-05-25 08:41:53 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 285 ms / 2,000 ms |
| コード長 | 220 bytes |
| コンパイル時間 | 506 ms |
| コンパイル使用メモリ | 66,892 KB |
| 最終ジャッジ日時 | 2025-02-13 04:59:46 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 35 |
ソースコード
#include <iostream>
using namespace std;
void solve(){
int n,m,k;cin>>n>>m>>k;
int nw = k%m;
if(m-n > nw)cout << nw << endl;
else cout << 0 << endl;
}
int main(){
int n;cin>>n;
for(int i = 0; n > i; i++)solve();
}