当前你的浏览器版本过低,网站已在兼容模式下运行,兼容模式仅提供最小功能支持,网站样式可能显示不正常。
请尽快升级浏览器以体验网站在线编辑、在线运行等功能。
Byteasar likes to live risky. He runs with scissors, submits solutions to contest problems without testing on example inputs, and wants all his files to have path names that are exactly as long as the operating system allows (on Linux, for instance, this is 4095 characters).
The first line of input contains three positive integers: n (the number of directories other than the root directory), m (the number of files), and k (the desired path name length). The root directory has number 0, and all the remaining directories are numbered 1 through n. Files are numbered 1 through m. The second line contains the length s of the introduced symlink name (we don't care about the name itself, and assume it will not collide with anything else in the file system).
Your program should output m lines, one for each file. The J-th line should contain one word, YESor NO, answering the question: is it possible, by introducing a symlink of length s, to create a path name of length exactly k which refers to the file number j?
2 4 22 2 0 1 1 5 2 13 2 10 1 4 0 7
YES YES YES NO
| bzoj_id | 4122 |
| import_source_sha256 | 5ed5112ecd95128f6fa76bef2db569fa9d28daa1282130f87442eff1d40cbdc9 |
| bzoj_checker_pending | False |
| 时间上限 | 内存上限 |
| 10000 MS | 256 MB |