結果
問題 |
No.1926 Sequence of Remainders
|
ユーザー |
👑 |
提出日時 | 2023-05-25 08:40:26 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 219 bytes |
コンパイル時間 | 478 ms |
コンパイル使用メモリ | 65,996 KB |
最終ジャッジ日時 | 2025-02-13 04:59:34 |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 1 |
other | WA * 35 |
ソースコード
#include <iostream> using namespace std; void solve(){ int n,m,k;cin>>n>>m>>k; int nw = k%n; 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(); }