fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int N, K;
  6. cin>>N>>K;
  7. for (int i = 10; i <= 99; i++){
  8. if (i%N ==K) {
  9. cout<<i<< " ";
  10. }
  11. }
  12. return 0;
  13. }
Success #stdin #stdout 0.01s 5284KB
stdin
5 1
stdout
11 16 21 26 31 36 41 46 51 56 61 66 71 76 81 86 91 96