fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. for(int i=0;i<1000;i++)
  7. {
  8. int b;
  9. b=11*i-1;
  10. if(b%210==0)
  11. {cout<<i;
  12. break;}
  13. }
  14. return 0;
  15. }
Success #stdin #stdout 0s 3296KB
stdin
Standard input is empty
stdout
191