当前你的浏览器版本过低,网站已在兼容模式下运行,兼容模式仅提供最小功能支持,网站样式可能显示不正常。
请尽快升级浏览器以体验网站在线编辑、在线运行等功能。
* Line 1: A single integer: N
* Lines 2..N + 1: Line i+1 will contain 1 integer: 0 if the ith
character of the string is '(', and 1 if the ith character of the string is ')'
第1行:N,平衡字符串长度
第2至N+1行:Linei+1 整数0或1,0代表字符‘(’,1代表‘)’
* Line 1: The score of the string. Since this number can get quite large, output the score modulo 12345678910.
计算字符串得分,结果对12345678910取模
6 0 0 1 1 0 1 INPUT DETAILS: This corresponds to the string "(())()".
3
| bzoj_id | 3300 |
| import_source_sha256 | 4812df3ebdf92336d533538a3da55095ab471e361d1f117899e7b41b7a35d7c5 |
| bzoj_checker_pending | False |
| 时间上限 | 内存上限 |
| 10000 MS | 128 MB |