a | s | k
5,000000 | 0,000000 | 0,000000
9,000000 | 5,000000 | 1,000000
13,000000 | 14,000000 | 2,000000
17,000000 | 27,000000 | 3,000000
21,000000 | 44,000000 | 4,000000
25,000000 | 65,000000 | 5,000000
29,000000 | 90,000000 | 6,000000
33,000000 | 119,000000 | 7,000000
37,000000 | 152,000000 | 8,000000
41,000000 | 189,000000 | 9,000000
45,000000 | 230,000000 | 10,000000
49,000000 | 275,000000 | 11,000000
53,000000 | 324,000000 | 12,000000
K = 12.0
2) код на c#
static void Main(string[] args) { int a, b; a = Convert.ToInt32(Console.ReadLine()); b = Convert.ToInt32(Console.ReadLine()); if (a > 2) { Console.WriteLine(a / 2); Console.WriteLine(b - 1); } }
3) Код на vb
dim a as integer = 0
dim b as integer = 0
a = cint(console.readline())
b = cint(console.readline())
if a > 2 then
console.writeline( a / 2)
console.writeline(b - 1)
end if