fork(1) download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7.  
  8. int v;
  9. int react;
  10. int brake;
  11. int stop;
  12.  
  13. v = int.Parse(Console.ReadLine());
  14.  
  15.  
  16. react = (v / 10) * 3;
  17. brake = (v / 10) * (v / 10);
  18. stop = react + brake;
  19.  
  20. Console.WriteLine(react);
  21. Console.WriteLine(brake);
  22. Console.WriteLine(stop);
  23.  
  24. }
  25. }
Success #stdin #stdout 0.05s 23984KB
stdin
50
stdout
15
25
40