結果
| 問題 | No.1926 Sequence of Remainders |
| コンテスト | |
| ユーザー |
monnu
|
| 提出日時 | 2022-05-06 21:27:52 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 154 ms / 2,000 ms |
| コード長 | 409 bytes |
| 記録 | |
| コンパイル時間 | 2,869 ms |
| コンパイル使用メモリ | 244,356 KB |
| 実行使用メモリ | 6,144 KB |
| 最終ジャッジ日時 | 2026-03-27 08:47:57 |
| 合計ジャッジ時間 | 10,375 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 35 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#include <atcoder/all>
using namespace atcoder;
using ll=long long;
using Graph=vector<vector<int>>;
#define INF 1000000000
#define MOD 998244353
#define MAX 200000
void solve(){
int N,M,K;
cin>>N>>M>>K;
int a=K%M;
if(a<M-N){
cout<<a<<'\n';
}else{
cout<<0<<'\n';
}
}
int main(){
int T;
cin>>T;
for(int i=0;i<T;i++){
solve();
}
}
monnu