fork download
  1. using System;
  2. using System.Text;
  3. using System.Collections.Generic;
  4. public class Test
  5. {
  6. public static void Main()
  7. {
  8. string[] poczatek = Console.ReadLine().Trim().Split(':');
  9. int[] czas = new int[]
  10. {
  11. int.Parse(poczatek[0]),
  12. int.Parse(poczatek[1])
  13. };
  14. string p;
  15. List<int> przerwy = new List<int>();
  16. while ((p = Console.ReadLine()) != null)
  17. {
  18. przerwy.Add(int.Parse(p));
  19. }
  20. Console.WriteLine(string.Format("{1:00}:{2:00}"), czas[0], czas[1]);
  21. }
  22. }
Runtime error #stdin #stdout 0.04s 39656KB
stdin
08:00
15
15
15
stdout
Standard output is empty