Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|

Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |

Language: Transferring Sylla
Description After recapturing Sylla, the Company plans to establish a new secure system, a transferring net! The new system is designed as follows: The Company staff choose Given a design of a transferring net, your work is to inspect whether it reaches such security level. Input The input consists of several test cases. The input ends by two zeroes. Output For each test case output "YES" if it reaches such security level, "NO" otherwise. Sample Input 4 6 0 1 0 2 0 3 1 2 1 3 2 3 4 5 0 1 0 2 0 3 1 2 1 3 7 6 0 1 0 2 0 3 1 2 1 3 2 3 0 0 Sample Output YES NO NO Source |

[Submit] [Go Back] [Status] [Discuss]

All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di

Any problem, Please Contact Administrator