fork download
  1. #pragma indent
  2. using System.Console;
  3. using Nemerle.Collections;
  4.  
  5. def countLines=int.Parse(ReadLine());
  6.  
  7. foreach(countNumbersInLines in [1 .. countLines])
  8. def listOfIntegers = $[1..countNumbersInLines];
  9. def listOfIntegersReversedIfNeed =
  10. if( countNumbersInLines % 2 == 0 )
  11. List.Rev(listOfIntegers);
  12. else
  13. listOfIntegers;
  14. //def listOfString=listOfIntegersReversedIfNeed.Map(_.ToString());
  15. //def stringLine=string.Join("-", listOfString.ToArray());
  16. //WriteLine(stringLine)
Success #stdin #stdout 0.08s 19248KB
stdin
6
stdout
Standard output is empty