| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 1 초 (추가 시간 없음) | 2048 MB | 1067 | 842 | 764 | 80.506% |
Eddy is overseeing construction of some new slot machines. His slot machines consist of three wheels, each of which can show one of several different digits. When activated, each wheel shows a random digit. The goal is for all wheels to be able to show the digit 7ドル$.
A slot machine is good if each wheel is capable of showing the digit 7ドル,ドル and bad otherwise. For a given slot machine, determine if it is good or bad.
The first line contains a single integer $n$ $(1 \leq n \leq 10),ドル which is the number of different digits on each wheel. Each wheel has the same number of digits.
Each of the next three lines contains $n$ distinct digits (in the range from 0ドル$ to 9ドル$). These are the digits on each of the three wheels.
Output a single integer, which is 777ドル$ if the slot machine is good, 0ドル$ otherwise.
2 0 7 7 3 7 0
777
2 0 7 7 3 3 9
0
ICPC > Regionals > North America > Pacific Northwest Regional > 2023 ICPC Pacific Northwest Region > Division 1 M번
ICPC > Regionals > North America > Pacific Northwest Regional > 2023 ICPC Pacific Northwest Region > Division 2 F번
ICPC > Regionals > North America > Mid-Central Regional > 2023 Mid-Central USA Programming Contest G번
ICPC > Regionals > North America > South Central USA Regional > 2023 South Central USA Regional Contest > Division 2 H번
ICPC > Regionals > North America > Mid-Atlantic Regional > 2023 Mid-Atlantic USA Regional Contest > Division 2 H번
ICPC > Regionals > North America > Southeast USA Regional > 2023 Southeast USA Regional Programming Contest > Division 2 H번