QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#543929#13. Router5un_xiaomivita_mbox100 ✓866ms17780kbC++237.5kb2024-09-01 23:45:292024-09-01 23:45:29

Details

Tip: Click on the bar to expand more detailed information

Pretests


Final Tests

Test #1:

score: 10
Accepted
time: 0ms
memory: 3520kb

input:

1
4
/user/show
userShow
/user/edit
userEdit
/user/delete
userDelete
/message/send
messageSend
8
/user/show?handle=WJMZBMR
/user/edit?handle=WJMZBMR&type=doubi
/user/show2?handle=WJMZBMR
/user/delete?handle=WJMZBMR
/message/send?from=GuyUpLion&to=WJMZBMR&content=nishishabi
/sudo/user/deleteAll?force=...

output:

Case #1:
Request matches action "userShow" with parameters {"handle":"WJMZBMR"}
Request matches action "userEdit" with parameters {"handle":"WJMZBMR","type":"doubi"}
404 Not Found
Request matches action "userDelete" with parameters {"handle":"WJMZBMR"}
Request matches action "messageSend" with param...

result:

ok 9 lines

Test #2:

score: 10
Accepted
time: 172ms
memory: 15624kb

input:

5
20000
/Oo/pt/GI/7eSZo
GaWpHfuwXZ
/Oo/pt/GI/2fD4N
PelOZXZAdJ
/Oo/pt/GI/Fneu7
GRNGPVcQUD
/Oo/pt/GI/ff1OJ
YnLFicuZwm
/Oo/pt/GI/2YjXS
xeJnUIvjZf
/Oo/pt/GI/WEbeB
dfDQvEfExS
/Oo/pt/GI/UbdVz
znwCWkROhG
/Oo/pt/GI/MVncl
SbIoWskvhP
/Oo/pt/GI/t37hx
LmJAlDmtUs
/Oo/pt/GI/bdx1b
BMMmjHOTYt
/Oo/pt/GI/VkVdo
BZqDmn...

output:

Case #1:
Request matches action "qryXhOAkdN" with parameters {}
Request matches action "WdLaIPgxLe" with parameters {"BeA":"cC7D","EtX":"27vv","kIz":"KrMG"}
404 Not Found
404 Not Found
404 Not Found
404 Not Found
Request matches action "LMgsDMAtVl" with parameters {"FvU":"blOL","LCR":"iXzR","Mlk":"Q...

result:

ok 100005 lines

Test #3:

score: 10
Accepted
time: 171ms
memory: 15296kb

input:

5
20000
/mT/kR/E7/nf7mU
DtXyJptWQE
/mT/kR/E7/HbMdw
CInmqffDmM
/mT/kR/E7/UwmxK
nhKDxbSBoH
/mT/kR/E7/QPWxn
hPnPoWNeeW
/mT/kR/E7/nO0wW
wjKYbvenJJ
/mT/kR/E7/A9FO5
lVhKuozrNs
/mT/kR/E7/sauoC
TghZLVCkbg
/mT/kR/E7/7OhtX
WvPSUjCneI
/mT/kR/E7/NaC3w
fRClfNGnPI
/mT/kR/E7/KVt5P
BAZrgwzBXb
/mT/kR/E7/5ma44
FhEBYy...

output:

Case #1:
Request matches action "NAwUKiVdkz" with parameters {"BCb":"uIAS","Bqx":"YL1q","RZT":"UT33","kDU":"edgN"}
Request matches action "RVnVUywRFD" with parameters {}
404 Not Found
404 Not Found
404 Not Found
404 Not Found
Request matches action "dUfdJhrOeU" with parameters {"TvA":"LixU","VFR":"r...

result:

ok 100005 lines

Test #4:

score: 10
Accepted
time: 1ms
memory: 3808kb

input:

3
3
/user/:id/show
userShow
/message/list
messageList
/message/:id/show
messageShow
id [0-9]{2,4}
3
/message/list
/user/123/show?avatar=true
/message/5312/show?page=1
1
/foo/:id/:bar/:bar
fun
id [0-9]{2,4}
bar [a-z]{1,3}
1
/foo/777/az/bc?bar=xyz&bar=zzz
2
/user/:handle/show
userShow
/user/:id/show
u...

output:

Case #1:
Request matches action "messageList" with parameters {}
Request matches action "userShow" with parameters {"avatar":"true","id":"123"}
Request matches action "messageShow" with parameters {"id":"5312","page":"1"}
Case #2:
Request matches action "fun" with parameters {"bar":["az","bc","xyz",...

result:

ok 11 lines

Test #5:

score: 10
Accepted
time: 0ms
memory: 3688kb

input:

2
5
/user/:userHandle/show
userShow
/user/:userHandle/edit
userEdit
/message/send
messageSend
/message/:messageId/show
messageShow
/user/:userHandle/setBirthday/:date
userSetBirthday
userHandle ([A-Z]|[a-z]){4,10}
messageId ([a-z]|[0-9]){8,8}
date (19[0-9]{2,2}|200[0-9]|201[0-4])(0[1-9]|1[0-2])
15
/...

output:

Case #1:
Request matches action "userShow" with parameters {"userHandle":"crash"}
404 Not Found
Request matches action "userEdit" with parameters {"type":"doubi","userHandle":"WJMZBMR"}
Request matches action "userShow" with parameters {"avatar":"true","userHandle":"WJMZBMR"}
Request matches action ...

result:

ok 24 lines

Test #6:

score: 10
Accepted
time: 1ms
memory: 3812kb

input:

1
9
/a/:expA
testA
/b/:expB
testB
/c/:expC
testC
/d/:expD
testD
/e/:expE
testE
/f/:expF
testF
/g/:expG
testG
/h/:expH
testH
/i/:expI
testI
expA a([b-c]{0,})(c{1,}d)
expB a([b-c]{0,})c{0,}
expC (a|b|c|d|e)f
expD a{1,}b{1,}c
expE (((((((((a)))))))))
expF a[b-d]e
expG (ab{4,5}){0,1}bc
expH (a{1,}|b){1,...

output:

Case #1:
Request matches action "testA" with parameters {"expA":"acd"}
404 Not Found
Request matches action "testA" with parameters {"expA":"accd"}
404 Not Found
Request matches action "testA" with parameters {"expA":"abbbccbbcbcd"}
Request matches action "testB" with parameters {"expB":"a"}
Request...

result:

ok 40 lines

Test #7:

score: 10
Accepted
time: 468ms
memory: 15544kb

input:

5
20000
/:d/Xa/pF/qR/AHOJi
KcioVpFutT
/:B/Xa/pF/qR/vPS8a
olfLwawkjj
/:h/Xa/pF/qR/F9pAn
DlvayDMhBr
/:X/Xa/pF/qR/dbiqh
hgWRSuyKJb
/:B/Xa/pF/qR/bYxcI
NMAhONaRqV
/:w/Xa/pF/qR/sUqgS
jnwOPhLTBc
/:e/Xa/pF/qR/jbDTg
OYXysAcgaI
/:a/Xa/pF/qR/nkDlc
MmCDeWkbOh
/:m/Xa/pF/qR/3Fu9U
IWsFasuAYF
/:r/Xa/pF/qR/GBJqj
Udl...

output:

Case #1:
404 Not Found
404 Not Found
Request matches action "XCOwpXeehZ" with parameters {"J":"JRj","Ttq":"sste","pLg":"6I7n"}
Request matches action "FwqgIOXQtx" with parameters {"AMy":"60KP","L":"LxX","QKC":"hXVY","pjN":"yRYY"}
404 Not Found
Request matches action "ORqyPOphpD" with parameters {"G"...

result:

ok 100005 lines

Test #8:

score: 10
Accepted
time: 656ms
memory: 15684kb

input:

5
20000
/:p/AG/I2/:W/qR/yR/WQp1B
OMguaUOWeL
/:X/AG/I2/:j/qR/yR/LExvw
ruPRaSFReN
/:f/AG/I2/:R/qR/yR/h69ms
mZeBvBQGPt
/:S/AG/I2/:L/qR/yR/wqMnI
mTAgDZIBZn
/:K/AG/I2/:u/qR/yR/kH2fk
liGLUxZthV
/:r/AG/I2/:N/qR/yR/AOZUz
vvywfMeRgD
/:e/AG/I2/:P/qR/yR/aR1Ub
IdxTrlllRD
/:i/AG/I2/:D/qR/yR/F70ob
bdERKpqhRA
/:c/...

output:

Case #1:
404 Not Found
Request matches action "UJzLRpXcUj" with parameters {"T":"TWw","v":"vlM"}
404 Not Found
404 Not Found
404 Not Found
404 Not Found
404 Not Found
404 Not Found
404 Not Found
Request matches action "iMRSvVsKSv" with parameters {"L":"LfF","P":"PuhY","Whi":"aZEY","kkj":"vffu","ofH"...

result:

ok 100005 lines

Test #9:

score: 10
Accepted
time: 860ms
memory: 17608kb

input:

5
20000
/:W/Qf/ZL/:S/ok/Pz/vTPCO
tTkHRaRZOl
/:y/Qf/ZL/:O/ok/Pz/GXn08
IyKwbtDosO
/:m/Qf/ZL/:b/ok/Pz/Yo5aY
MyqsYbMazS
/:y/Qf/ZL/:W/ok/Pz/ohE9i
yCdMJvQuei
/:b/Qf/ZL/:y/ok/Pz/mSLAu
SnVLmwLWHv
/:w/Qf/ZL/:S/ok/Pz/e2uK0
pKIGBMNGKW
/:B/Qf/ZL/:J/ok/Pz/6QCz6
CXMuvGooBL
/:W/Qf/ZL/:l/ok/Pz/FvMe5
mcaSoGnfmS
/:C/...

output:

Case #1:
404 Not Found
404 Not Found
Request matches action "PUECawPkdL" with parameters {"ddC":"p7aW","e":"ewA","tSn":"SpjF","y":"y","yIh":"XUcc","yac":"PXA3"}
404 Not Found
Request matches action "tWONOjhdZa" with parameters {"F":"F","qqV":"q2RY","u":"u"}
Request matches action "MDjliQiVbq" with p...

result:

ok 100005 lines

Test #10:

score: 10
Accepted
time: 866ms
memory: 17780kb

input:

5
20000
/:M/hP/QZ/:b/xN/mD/fH1G5
JHPsElQRqL
/:Q/hP/QZ/:c/xN/mD/UfLUT
wisHKFtBQg
/:O/hP/QZ/:p/xN/mD/nHH8x
opUNFZFexx
/:S/hP/QZ/:N/xN/mD/6ricK
tNIcIMuMzZ
/:x/hP/QZ/:i/xN/mD/wLNM3
qlrVWOLgqJ
/:Q/hP/QZ/:T/xN/mD/SUqgU
SREHWjveiD
/:M/hP/QZ/:p/xN/mD/LdLlM
UIctkUvzse
/:E/hP/QZ/:A/xN/mD/4IzTw
gibBlpIuOC
/:a/...

output:

Case #1:
404 Not Found
404 Not Found
404 Not Found
404 Not Found
404 Not Found
404 Not Found
404 Not Found
404 Not Found
404 Not Found
404 Not Found
404 Not Found
Request matches action "LyharhUmMM" with parameters {"D":"D","f":"f2w","gFf":"kde2","kpw":"OvUn","mQB":"4Si4"}
404 Not Found
404 Not Foun...

result:

ok 100005 lines