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 = List.Map(listOfIntegersReversedIfNeed, _.ToString());
  15. def arrayOfString = array[listOfString];
  16. //def stringLine = string.Join("-", arrayOfString);
  17. //WriteLine(stringLine)
Success #stdin #stdout 0.09s 19576KB
stdin
6
stdout
Standard output is empty