fork download
  1. using System;
  2. using System.Linq;
  3.  
  4. public class Test
  5. {
  6. public static void Main()
  7. {
  8. Console.WriteLine(string.Join("\n", Enumerable.Range(0, 1000).Where(n => n.ToString().Sum(c => c - '0') == 15)));
  9. }
  10. }
Success #stdin #stdout 0.02s 16008KB
stdin
Standard input is empty
stdout
69
78
87
96
159
168
177
186
195
249
258
267
276
285
294
339
348
357
366
375
384
393
429
438
447
456
465
474
483
492
519
528
537
546
555
564
573
582
591
609
618
627
636
645
654
663
672
681
690
708
717
726
735
744
753
762
771
780
807
816
825
834
843
852
861
870
906
915
924
933
942
951
960