跳到正文

题解

题解:P16719 积点

_『星河』_约 1 分钟
原文
文章信息与版本

文章信息

收录
2026年5月31日
更新
2026年5月31日
篇幅
约 1 分钟
获赞
1
题目
P16719

版本

  1. v1当前

Upd

2026.5.31 初稿。

思路

签子。

输出 x−n mod xx-n\bmod x 即可。

AC Code

C++
#include<bits/stdc++.h>
using namespace std;
int x,n;
int main(){
    cin>>x>>n;
    cout<<x-n%x;
	return 0;
}
原文