test/cpv/aizu-alds1/alds1_1_c.cpp
| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | // competitive-verifier: PROBLEM https://onlinejudge.u-aizu.ac.jp/courses/lesson/1/ALDS1/all/ALDS1_1_C | ||
| 2 | #include "../../../src/nt/is_prime/lib.hpp" | ||
| 3 | |||
| 4 | using namespace tifa_libs; | ||
| 5 | 4 | int main() { | |
| 6 |
1/2✓ Branch 2 taken 4 times.
✗ Branch 3 not taken.
|
4 | std::cin.tie(nullptr)->std::ios::sync_with_stdio(false); |
| 7 | u32 t; | ||
| 8 |
1/2✓ Branch 1 taken 4 times.
✗ Branch 2 not taken.
|
4 | std::cin >> t; |
| 9 | 4 | u32 cnt = 0; | |
| 10 |
2/2✓ Branch 0 taken 11116 times.
✓ Branch 1 taken 4 times.
|
11120 | while (t--) { |
| 11 | u32 p; | ||
| 12 |
1/2✓ Branch 1 taken 11116 times.
✗ Branch 2 not taken.
|
11116 | std::cin >> p; |
| 13 | 11116 | cnt += is_prime(p); | |
| 14 | } | ||
| 15 |
2/4✓ Branch 1 taken 4 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 4 times.
✗ Branch 5 not taken.
|
4 | std::cout << cnt << '\n'; |
| 16 | 4 | return 0; | |
| 17 | } | ||
| 18 |