Problem I/S. 49. (December 2020)
I/S. 49. Subscribers can reach the text of the problem after signing in. The text will be public from December 28, 2020.]
(10 pont)
Deadline expired on January 15, 2021.
Sorry, the solution is available only in Hungarian. Google translation
Egy lehetséges beolvasás c++ nyelven:
cin >> ora >> c >> perc; //ora INT, majd ':' karakter, majd perc INT
getline(cin, s); //maradék sor
s = s.substr(s.findlastof(' ')+1, s.length()-s.findlastof(' ')); //utolsó ' '-nél vágás
vagany = stoi(s);
A gyors megoldáshoz ki kellett használni, hogy a vonatok indulási sorrendben vannak, és minden vágányra (max. 100) eltárolni, mikor indult a legutolsó vonat. Ebből az információból könnyen számítható a megoldás. Oda kell figyelni arra, ha az adott vágányon az az első vonat.
Statistics:
16 students sent a solution. 10 points: Sándor Péter, Varga 256 Péter. 9 points: Bagladi Milán Zsolt. 8 points: 1 student. 7 points: 1 student. 4 points: 1 student. 3 points: 4 students. 2 points: 1 student. 1 point: 2 students. 0 point: 3 students.
Problems in Information Technology of KöMaL, December 2020