Състезние
18.11.2017:
https://www.hackerrank.com/nbu-november-2017-programming-contest
задачите
от състезанието,
резултати,
тестове и решения на авторите:
a.cpp a.inp
a.sol
4315949638438141
d.cpp d.in
d.out
2 3
0 0
4 4
0 0
0 1
0 0
0 0
0 0
755 754
3365 3366
f.cpp
#include <iostream>
using namespace std;
int t, a, b, v;
int main()
{
while(cin >> a >> b
>> v)
{
// cout << a << b
<< v << " ----" << endl;
cout <<
(v-b-1)/(a-b)+1 << endl;
}
return 0;
}
f.inp
f.out
4
2
999999901
101
3
5
9
1772265
499999999
991234132
499607942
998875538
997685400
i.cpp i.in i.out
j.cpp
j.in
10
2 3 4
12 19 13
9 39 41
15 16 19
36 7 33
24 35 38
0 58 30
29 30 23
58 2 29
60 0 30
j.out
1
-11077
896886
5005
-856681
38769214
29065024282889672
34597290
1810502068789568
118264581564861424