งาน
งานของคุณคือการแปลงข้อความเป็นการสะกดการันต์ในยุคกลาง
รายละเอียด
jจะถูกแปลงiและการJIuและUที่จุดเริ่มต้นของคำจะถูกแปลงเป็นvและVตามลำดับvและVที่ใดก็ได้ยกเว้นจุดเริ่มต้นของคำจะถูกแปลงเป็นuและUตามลำดับsจะถูกแปลงเป็นſ(U + 017F)sเว้นแต่ในตอนท้ายของคำหรือนำหน้าด้วยอีก
รายละเอียด
abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZคำที่ถูกกำหนดให้เป็นลำดับของตัวอักษรใน- ทุกคำจะมีตัวอักษรอย่างน้อยสองตัว
- ข้อมูลที่ป้อนจะประกอบด้วยอักขระ ASCII ที่พิมพ์ได้เท่านั้น(U + 0020 - U + 007E)
sจะมีการเกิดขึ้นของมากกว่าสองติดต่อกัน นั่นคือsssจะไม่เป็นสตริงย่อยของอินพุต
Testcases
คำเดี่ยว:
Input Output
------------------------
Joy Ioy
joy ioy
Universe Vniuerſe
universe vniuerſe
Success Succeſs
successfull ſucceſsfull
Supervise Superuiſe
supervise ſuperuiſe
Super-vise Super-viſe
I've I've
majors maiors
UNIVERSE VNIUERSE
0universe 0vniuerſe
0verify 0verify
I0ve I0ve
_UU_ _VU_
_VV_ _VU_
ss_ ſs_
ทั้งย่อหน้า:
Input: Christian Reader, I have for thy use collected this small Concordance, with no small labour. For being to comprise much in little roome, I was to make choyse of the most principall and usefull places, and to rank them under such words as I thought most essentiall and materiall in the sentence, because the scant roome allotted unto me, would not permit that I should expresse them under every word in the verse, as it is the manner in large Concordances.
Output: Chriſtian Reader, I haue for thy vſe collected this ſmall Concordance, with no ſmall labour. For being to compriſe much in little roome, I was to make choyſe of the moſt principall and vſefull places, and to rank them vnder ſuch words as I thought moſt eſsentiall and materiall in the ſentence, becauſe the ſcant roome allotted vnto me, would not permit that I ſhould expreſse them vnder euery word in the verſe, as it is the manner in large Concordances.
SHA-256กัญชาของการส่งออกของ testcase ที่ผ่านมาคือ
5641899e7d55e6d1fc6e9aa4804f2710e883146bac0e757308afc58521621644
คำปฏิเสธ
Medievall orthographie ไม่ได้เป็นเช่นนั้น Pleaſe อย่าบ่นถ้าคุณ ſhall ſee olde จองกับออร์โธกราฟที่แตกต่าง
ſเป็น 1 ไบต์ได้ไหม
Super-viseกลายเป็นSuper-viſe?