fork download
  1. #include <iostream>
  2.  
  3. bool IsKisuu(std::size_t N){
  4. if (N == 0)return false;
  5. while (N != 0){
  6. if (N % 2 == 0) return false;
  7. N /= 10;
  8. }
  9.  
  10. return true;
  11. }
  12.  
  13. int main(){
  14. for (std::size_t i = 0; i < 1000; i++){
  15. if (IsKisuu(i) == true) std::cout << i << ',';
  16. }
  17.  
  18. return 0;
  19. }
Success #stdin #stdout 0s 3296KB
stdin
Standard input is empty
stdout
1,3,5,7,9,11,13,15,17,19,31,33,35,37,39,51,53,55,57,59,71,73,75,77,79,91,93,95,97,99,111,113,115,117,119,131,133,135,137,139,151,153,155,157,159,171,173,175,177,179,191,193,195,197,199,311,313,315,317,319,331,333,335,337,339,351,353,355,357,359,371,373,375,377,379,391,393,395,397,399,511,513,515,517,519,531,533,535,537,539,551,553,555,557,559,571,573,575,577,579,591,593,595,597,599,711,713,715,717,719,731,733,735,737,739,751,753,755,757,759,771,773,775,777,779,791,793,795,797,799,911,913,915,917,919,931,933,935,937,939,951,953,955,957,959,971,973,975,977,979,991,993,995,997,999,