fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. int cnt = 0;
  7. for(int i=361; i<720; i++){
  8. if((360*i)%(i-360)==0){
  9. cnt++;
  10. cout<<i<<" ";
  11. }
  12. }
  13.  
  14. cout<<2*cnt +1;
  15. return 0;
  16. }
Success #stdin #stdout 0s 4400KB
stdin
Standard input is empty
stdout
361 362 363 364 365 366 368 369 370 372 375 376 378 380 384 385 387 390 392 396 400 405 408 410 414 420 424 432 435 440 441 450 456 460 468 480 495 504 510 520 522 540 552 560 576 585 600 630 648 660 680 684 105