nyoj 稍具技巧的题
韩信点兵 nyoj 34
这题可以用中国剩余定理(这个我不会),我用的只是从1到105逐个搜索
#include<iostream>#include<cstdio>using namespace std;int main(){ long long int n, m; scanf("%lld", &n); while(n--) { scanf("%lld", &m); printf("%lld\n", (m-1)*1000+471); } return 0;}0