TopCoder

User's AC Ratio

NaN% (0/0)

Submission's AC Ratio

NaN% (0/0)

Tags

Description

Input Format

Output Format

Sample Input 1

4 3
1 2 1
1 3 1
1 4 1
1 2 3
4 5
1 2 2
2 3 2
3 4 2
1 2 3 5 8

Sample Output 1

YYN
NYNNN

Hints

Problem Source

Migrated from old NTUJ.

shik

Subtasks

No. Testdata Range Score

Testdata and Limits

No. Time Limit (ms) Memory Limit (VSS, KiB) Output Limit (KiB) Subtasks
0 3000 65536 2000