結果
問題 | No.1926 Sequence of Remainders |
ユーザー |
👑 |
提出日時 | 2022-05-06 21:24:59 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 41 ms / 2,000 ms |
コード長 | 230 bytes |
コンパイル時間 | 225 ms |
コンパイル使用メモリ | 28,160 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-05 22:27:35 |
合計ジャッジ時間 | 4,648 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 35 |
ソースコード
#include <stdio.h>int main(){int t, T, N, M, K;scanf("%d", &T);for (t = 1; t <= T; t++) {scanf("%d %d %d", &N, &M, &K);if (K % M < M - N) printf("%d\n", K % M);else printf("0\n");}fflush(stdout);return 0;}