GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 100.0% 8 / 0 / 8
Functions: 100.0% 1 / 0 / 1
Branches: 58.3% 7 / 0 / 12

test/cpv/yukicoder/1236.cpp
Line Branch Exec Source
1 // competitive-verifier: PROBLEM https://yukicoder.me/problems/no/1236
2 #include "../../../src/math/ds/rational/lib.hpp"
3
4 using namespace tifa_libs;
5 23 int main() {
6
1/2
✓ Branch 2 taken 23 times.
✗ Branch 3 not taken.
23 std::cin.tie(nullptr)->std::ios::sync_with_stdio(false);
7 int a, b;
8
2/4
✓ Branch 1 taken 23 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 23 times.
✗ Branch 5 not taken.
23 std::cin >> a >> b;
9 23 rational<int> c(a * 60 + b), d(720, 11), x(0);
10
2/2
✓ Branch 2 taken 269 times.
✓ Branch 3 taken 23 times.
292 while (x < c) x += d;
11 23 x -= c;
12
2/4
✓ Branch 1 taken 23 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 23 times.
✗ Branch 5 not taken.
23 std::cout << x.num * 60 / x.den << "\n";
13 23 return 0;
14 }
15