- noip 2001 一元三次方程求解(引例)
- TYVJ 1696(引例)
- TYVJ 1938
- TYVJ 1609
- TYVJ 1176
Last active
August 29, 2015 14:05
-
-
Save chengluyu/4e53e2c3ccaaf789aca5 to your computer and use it in GitHub Desktop.
Problems to solve.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var fs = require("fs"); | |
| var content = fs.readFileSync(process.argv[2], "utf8"); | |
| var url_makers = { | |
| "poj": function (id) { | |
| return "http://poj.org/problem?id=" + id; | |
| }, | |
| "hdu": function (id) { | |
| return "http://acm.hdu.edu.cn/showproblem.php?pid=" + id; | |
| }, | |
| "tyvj": function (id) { | |
| return "http://www.tyvj.cn/Problem_Show.aspx?id=" + id; | |
| }, | |
| "vijos": function (id) { | |
| return "https://www.vijos.org/p/" + id; | |
| } | |
| }; | |
| content = content.replace(/^(?:\* )?([a-z]+) ?(\d{3,4}) ?(\(.+\))?$/mg, function (str) { | |
| var result = str.match(/(?:\* )?([a-z]+) ?(\d{3,4}) ?(\(.+\))?/); | |
| // console.log(result); | |
| // return str; | |
| var website = result[1], pid = result[2], attach = result[3]; | |
| return '* [' + website.toUpperCase() + ' ' + pid + | |
| (attach || '') + | |
| '](' + url_makers[website](pid) + ')'; | |
| }); | |
| fs.writeFileSync("./output.txt", content); |
- hdu 1002
- hdu 1042
- hdu 1316
- tyvj 1382
- poj 1001(*)
- tyvj 1651(**)
- poj 1061
- poj 2115
- poj 2689
- poj 1222
- vijos 1052
- tyvj 1822
- tyvj 1118
- tyvj 1119
- poj 1028
- poj 1363
- tyvj 1393
- poj 3125
- tyvj 1066
- poj 2823(引例)
- poj 2796
- poj 3250
- poj 2559
- tyvj 1607
- poj 2442
- poj 1655(引例)
- tyvj 1520(引例)
- poj 1308
- tyvj 1033
- tyvj 2039(*)
- tyvj 1251
- tyvj 1017
- tyvj 1700(*)
- tyvj 1680(*)
- poj 1703(*)
- tyvj 1202
- tyvj 2004
- tyvj 1831
- tyvj 1307
- tyvj 1221
- tyvj 1238(*)
- tyvj 1111
- poj 1236
- poj 2553
- poj 2186
-
tyvj 1004
-
tyvj 1254
-
poj 1080(*)
-
tyvj 1213(*)
-
tyvj 1050
-
tyvj 1055
-
tyvj 1073
-
tyvj 1097(*)
-
tyvj 1005
-
tyvj 1202 (数数食物链)
-
tyvj 1258
-
tyvj 1052
-
tyvj 1051
-
tyvj 1513
-
poj 1947(**)
-
tyvj 1305
-
tyvj 1144(弱化)
-
tyvj 1313
-
poj 2373
-
tyvj 1044
-
tyvj 1124
-
tyvj 1195
-
tyvj 1198
-
tyvj 1046(*)
-
tyvj 1061(*)
-
tyvj 1114(*)
-
tyvj 1209(*)
-
tyvj 1365(*)
-
tyvj 1387
-
tyvj 1402
-
tyvj 1416(*)
- tyvj 1009
- tyvj 1029
- tyvj 1053(*)
- tyvj 1152
- poj 2141
- poj 1488
- poj 3461
- poj 2406
- poj 1961
- poj 3630
- tyvj 1112
- tyvj 1315(*)
- tyvj 2046
- poj 2299
- tyvj 1384(*)
- noip 2001 一元三次方程求解(引例)
- tyvj 1696(引例)
- tyvj 1938
- tyvj 1609
- tyvj 1176
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment