随便构造一下
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | #include<cstdio> int main(){ freopen ( "2296.in" , "r" ,stdin); freopen ( "2296.out" , "w" ,stdout); long long a; int t; scanf ( "%d" ,&t); while (t--){ scanf ( "%lld" ,&a); if (a==0){ puts ( "-1" ); continue ;} printf ( "%lld\n" ,1234567890ll*1000000ll+a-(1234567890ll*1000000ll)%a); } return 0; } |