diff --git a/solutions/beecrowd/2712/2712.py b/solutions/beecrowd/2712/2712.py new file mode 100644 index 00000000..d6c67643 --- /dev/null +++ b/solutions/beecrowd/2712/2712.py @@ -0,0 +1,26 @@ +import re + +def is_valid_plate(plate): + match = re.match(r'^[A-Z]{3}-\d{4}$', plate) + return bool(match) + +def get_restricted_day(plate): + match tuple(plate): + case [*_, '1' | '2']: + return 'MONDAY' + case [*_, '3' | '4']: + return 'TUESDAY' + case [*_, '5' | '6']: + return 'WEDNESDAY' + case [*_, '7' | '8']: + return 'THURSDAY' + case [*_, '9' | '0']: + return 'FRIDAY' + +n = int(input()) +for _ in range(n): + plate = input() + if is_valid_plate(plate): + print(get_restricted_day(plate)) + else: + print('FAILURE') diff --git a/solutions/beecrowd/2712/generate_in.sh b/solutions/beecrowd/2712/generate_in.sh new file mode 100755 index 00000000..dd61ede8 --- /dev/null +++ b/solutions/beecrowd/2712/generate_in.sh @@ -0,0 +1,44 @@ +#!/usr/bin/env bash + +set -euo pipefail + +LOWER_CASE_LETTERS=(a b c d e f g h i j k l m n o p q r s t u v w x y z) +UPPER_CASE_LETTERS=(A B C D E F G H I J K L M N O P Q R S T U V W X Y Z) +TESTCASES=1000 + +function generate_valid_car_plate { + echo -n "${UPPER_CASE_LETTERS[$((RANDOM % 26))]}" + echo -n "${UPPER_CASE_LETTERS[$((RANDOM % 26))]}" + echo -n "${UPPER_CASE_LETTERS[$((RANDOM % 26))]}" + echo -n "-" + echo -n "$((RANDOM % 10))" + echo -n "$((RANDOM % 10))" + echo -n "$((RANDOM % 10))" + echo "$((RANDOM % 10))" +} + +function generate_probably_invalid_car_plate { + for _ in $(seq $((RANDOM % 6 + 1))); do + if [[ $((RANDOM % 2)) -eq 0 ]]; then + echo -n "${UPPER_CASE_LETTERS[$((RANDOM % 26))]}" + else + echo -n "${LOWER_CASE_LETTERS[$((RANDOM % 26))]}" + fi + done + if [[ $((RANDOM % 2)) -eq 0 ]]; then + echo -n "-" + fi + for _ in $(seq $((RANDOM % 6 + 1))); do + echo -n "$((RANDOM % 10))" + done + echo +} + +echo "${TESTCASES}" +for _ in $(seq "${TESTCASES}"); do + if [[ $((RANDOM % 2)) -eq 0 ]]; then + generate_valid_car_plate + else + generate_probably_invalid_car_plate + fi +done diff --git a/solutions/beecrowd/2712/in.txt b/solutions/beecrowd/2712/in.txt new file mode 100644 index 00000000..1fb92e03 --- /dev/null +++ b/solutions/beecrowd/2712/in.txt @@ -0,0 +1,1001 @@ +1000 +RBQ-4690 +ZFO-9652 +VFN-7679 +YWI-9064 +yBem-988187 +SFc4 +QEI-1653 +UND-6122 +WCU-5310 +YJS-5110 +S-05302 +LYZ-4875 +Q-6 +YKQR-61739 +LCA-9267 +AAL-1131 +VYX-3800 +NPpJuX-9 +Pd-645921 +EEA-1483 +qBBwFt3990 +dTtgwP-093 +aJB-380894 +PHQ-5176 +Umn-939 +WZOzqV-111 +mgvgzR199 +JMM-0907 +AXE-7467 +SFD-3825 +YEK-7961 +MRU-9611 +ZXli-22724 +KmBSG-897 +k-58 +ZYR-6207 +PKF-6758 +MIS-1887 +IJE-4483 +gat-9527 +XIV-1686 +FMM-6503 +MQL-6971 +t2 +BRW-0991 +IYW-4125 +XER-5352 +pcWYO275 +ysdi789 +IBN-2917 +UYL-8876 +HGN-5096 +FMN-4199 +Ptbeb110502 +MNZ-9162 +TFC-1234 +QPczO2330 +TIK-6348 +QKU-8930 +XBD-7744 +BJE-7355 +BVW-3907 +PaDLnb739 +EFZ437 +mW0 +mTFn-48 +IVE-5340 +UQwzb-04338 +LFM-5491 +KEH-5376 +XZX-9713 +us-217274 +CIO-2425 +mOJw-337 +PKX-6522 +YJX-9373 +BNH-2045 +OID-2920 +IEH-3838 +JTB-3947 +xw64054 +SGC-4929 +JKY-1053 +j-680469 +U34 +Ge06 +ALZ-4732 +Oanl75575 +cgU-915974 +LQX-9524 +ZFQ-7529 +UAW-9026 +cE86076 +bPYNy122511 +Xf2483 +YAW-7442 +RWF-6152 +qMVmY-9119 +KUD-6727 +PBqyz925556 +MJG-9273 +CBG-1340 +THI-7697 +AZE-4120 +WhKG3886 +qeqNS99 +eNiE-77 +C2 +wDcPts-948222 +XAQ-6942 +YPW-7310 +RJG-9952 +l-41739 +abqj70 +u-233 +CHQZP9694 +VCR-4879 +BSj55 +SVE-7851 +SI93708 +CNE191 +ZYO-7240 +OEAa487 +ANK-1807 +PVS-5850 +iPL5 +ZTT-9934 +XQA-4785 +BOuEaz-77 +EQZ-6360 +Sg-79021 +ZymTRp37191 +jhfShN-24 +CZV-5958 +Dt-3788 +LCP-2130 +FAX-7070 +QYG-3009 +udYJ205539 +ZXa-110 +DRY-4115 +bcLNih-4472 +Ck6 +TTO-2991 +xZTVg-30422 +asg353615 +Wx-9696 +BAF-5208 +B4894 +BBC-0364 +JAW-8570 +LPH-4772 +b-44318 +LWZb16 +RUQ-5830 +CKc8674 +Xjby09917 +jhsuGy-78998 +blPU2038 +DAw5 +HEO-0687 +T-34 +JFA-9439 +OVB-6292 +XZS-2721 +d-676 +NN58954 +mog-7 +jz-0120 +Nob-36467 +xvn-5721 +LZN-3780 +v-305401 +LJQ-9068 +lcl3 +fu18 +HQM-9264 +v03899 +IBV-7846 +OYO-8830 +JRU-6230 +WNB611 +MPB-2128 +INU-5898 +DFA-0951 +WBhR02 +JUs383664 +PJAPzv7 +PCZ-6553 +WwuqH-07 +gzQRlW8383 +LIS-3949 +ITS-7590 +x685 +ZUW-4888 +SHA-1533 +BAA-1487 +RJfXC35796 +AeYIvx-026 +CRH-4743 +o069 +GoDm-6 +MCy-3 +DObEoZ-98 +CEds-747610 +DTN-1891 +GxGETm14599 +SXF-6112 +FTC-4494 +DNJW-7 +GTY-1745 +KPM-2838 +FwDgUm-70 +IQF-9393 +VnjF091 +THI-0033 +Rf-504992 +bVmt474138 +TrE02651 +sK688 +MOZ-0509 +KOL-8827 +UGH-6318 +VUU-9565 +GfnbXJ-081 +q12 +rdZqn7 +BKW-2376 +RSA-5625 +cbbVUV-813 +QIB-2411 +hzWR67 +YVM-8248 +OQuVw7484 +qcZaF-72 +U98 +SSQ-9978 +ENM-7026 +l796357 +ALG-4411 +bha-214066 +IOF-5947 +mbLk-104 +lQoS214830 +JiLr-139 +bnqc-7 +fpvK710 +GFV-2181 +pssye-56 +ZhB9 +OHS-8865 +OzLzO-3750 +MYP-7323 +IMW-0273 +MNB-9682 +Bot9 +OFK-2341 +Wk-15 +TAH-5679 +wC-6 +GWC-0428 +vckJDV88 +rp250 +SUP-7545 +pwexAa-92 +OQX-1219 +xM948687 +kTj-8 +UEQ-2686 +AC-1 +MFQ-3040 +js-47684 +qSAxUj002386 +CbKQIb-804091 +aGDj33 +on1 +P-714 +DOU-2902 +BI-844 +DTM-6310 +MFN-2755 +PLP-3358 +WDL-0832 +sMOHK888 +bCft3 +OEX-6225 +W217095 +QCP-3403 +DzfYii3432 +EWP-5684 +lA90 +JMT-0408 +Yz9367 +WGB-1687 +g-84089 +ORM-7738 +yRq-8836 +xOyAPn-64863 +OUW-5038 +QGK-5640 +mxhad715288 +j-9 +xlr9 +LSZ-1649 +aRGSsn-768 +po3025 +gQGh18 +XLE-3134 +ZVnBJC104 +EBR-0738 +JOI-2860 +OHUF-258701 +SVU-0222 +SER-0230 +ROB-4003 +YVP-7434 +mqW-6 +LFC-0832 +ZQW-4201 +NLN-8947 +JgR9 +TMG-0480 +HPC-8522 +tp05385 +AJqDo58 +Dsueh10 +QLS-6980 +BVY-9732 +SCF-1504 +wZy8 +ERD-5853 +V-512 +H3 +GCj022 +FIH-5712 +AMQ-0549 +koncqV-40666 +XSF-0351 +hqrLJ-519 +NSO-0679 +HAC-1108 +BJCc7241 +Gp567 +YBI-5736 +yit665 +LVC-7552 +jT32591 +ZX-19654 +CWW-8643 +CUO-7188 +NXX-2452 +i97484 +MSJ-2787 +hReS-0647 +MAW-7174 +LPDNoS-404497 +msn-40 +MWORh-69 +YLn-9 +NDY-4661 +tKoj-081 +zpjYaj-1097 +yQ67 +OJN-7768 +Oqquxw-7 +ZwaTkx-8552 +DIQ-4318 +U81 +QEI-4919 +NRL-4798 +OJT-7587 +nEsmbs2861 +wij6 +ioD-16043 +YJH-8267 +WOH-2360 +FwFUO-06006 +htx-28408 +mpEb-0880 +TKDZ74 +RpMElT-895870 +k-0895 +HDC-3046 +KHS-0951 +NxHw-1 +FGX-0018 +JeGfc-30759 +qC14 +TXW-7776 +cfvtU7701 +ahHoey-431934 +ICR-7604 +Fkfza-6830 +uwiP23552 +PTKwDk50327 +IJG-0256 +OOZ-3019 +NXC-5096 +v671 +Qsoa2 +BQbF536651 +QZh-782851 +OIB-8395 +YNR-0632 +TTkYym1 +V61664 +OEB-9419 +DMV-3358 +kFWXeM-7252 +GQJ-2959 +GTL-6376 +oK-2932 +wMayG-27847 +PLL-4862 +seQOp887 +WUX-6540 +PDQ-5470 +etL93 +B-39853 +SCB-9765 +cV79 +LHN-0394 +Ukb6 +ZQzlU-6640 +OBI-7411 +OpYU01411 +CXF-5385 +KJM-8414 +S697494 +pQFpfS858 +HNC-1342 +x-23 +ow06363 +YHI-3631 +VOC-4737 +XQS-6083 +P2 +aeUgz-33 +AK-855256 +TNB-1876 +be252 +INP-2881 +nqtKEa-5808 +r-535 +bWtJOF9 +QVQ-6761 +wp-9 +tkEKUu-916 +QEL-5203 +RTB-9775 +VJMGDf-7921 +MFD-9233 +BXU-0853 +VHU-7287 +KtL-723246 +H-44392 +WHV-4408 +VFV-5095 +lAOimS0 +C40538 +HAT-9275 +R93608 +XDU-5926 +biokH246623 +aq60 +YLW-1683 +KDzvf-9 +mxjgRv734016 +IKP-6185 +F46 +JYNNJ827 +IIP-4327 +JjB-18427 +ONW-2816 +Qtu-1 +CJX-9945 +BYY-4952 +NQA-1740 +BHW-6954 +WQS-4242 +NAG-5280 +hlqYr002 +L-156 +ISX-9852 +bv61 +YDO-8896 +NHM-1983 +GUos-068975 +X0 +JFG-0645 +CBYJ-0368 +K098385 +TIH-3013 +ph-04829 +GNC-8430 +umgvQ-0 +DTA-3775 +o4 +u890 +YNR-2668 +odVmO17630 +wWSYD1958 +nqV-31405 +BSify-3027 +h-18 +gthDza21 +MFR-8282 +B608 +OYN-0839 +XTY-0263 +FSC-7007 +l727 +JSB-7170 +VNN-9873 +KMG-6143 +CNI-7627 +ZQZ-6785 +T-99143 +IXU-8724 +AIV-2203 +VNV-1090 +IQJ-4060 +CEE-1666 +WLH-2068 +fDTt35057 +SDhc15658 +HWL-5215 +EYK-8282 +EPV-7183 +j-96412 +rLl27674 +STcUv-03138 +JYM-4846 +XGmEei90036 +osJe-65 +FNZ-2713 +FGT-4707 +SMQ-9913 +OGN-9372 +VHN-0472 +UKVAT-21 +qzD69 +XWA-1079 +JPE-3688 +HZXTd690 +ezF67975 +WHN-4284 +gffSHq-13 +WDV-2556 +EGS-3778 +bAI688771 +E20 +ysyOVT-1512 +Cce-202 +Yz399 +wbsO24240 +MIN-6175 +BVF-6747 +YQG-6582 +LHB-1734 +HLL-5802 +Ku-862263 +HOR-1588 +bF-6 +ZSbZXO-470896 +eWQKoI-017 +Oidpq926383 +zw-485 +IPC-7600 +GBP-4179 +ePTf100 +FCB-5924 +baGV-0141 +KIC-4670 +VPI-9487 +CBO-7229 +SMP-4166 +by03 +RTH-3559 +YTL-1406 +IXD-4979 +m7 +wQQhAv-028531 +TBD-2493 +DYWIe16 +WEE-2580 +XRA-3624 +VAN-7315 +GBA-1031 +SNM-5478 +ZRM-4778 +eqQMPx-19 +WLH-5128 +nMw7511 +AAG-9455 +qeJ448 +FWE-9056 +LLR-8518 +VBE-3061 +GQuH174357 +Ot-672367 +ZgYBDP-632 +CN67312 +nUCV-6 +UYF-9235 +NuoKWy-520661 +LHM2989 +RXT-5902 +VAL-1222 +YXQ-2344 +HDX-3884 +CVB-4836 +NBC-3979 +NAK-7986 +oCi63 +kH0968 +IPJ-8270 +QIK-2995 +CEH-2585 +FGW-8777 +YDX-9009 +XZR-2746 +LKZ-6550 +LUP-3342 +R-024 +yBWs421700 +J-237 +kvP-412696 +sHs8585 +JUVOcn575714 +ynz-308094 +JTG-0939 +XPSwM-3256 +UNP16681 +E56 +FGW-7165 +UIQ-2325 +SRS-5751 +CRL-2503 +BV6406 +RCS-5921 +x6 +TCD-7425 +PAT-4070 +BER-0057 +KnmUc-21517 +YGX-5996 +OYT-2969 +LSD-9450 +DQT-732 +XGR-5146 +JTE-3256 +IDM-2196 +UWGv7 +CZE-0945 +UuwAW87610 +TQyeWh984324 +MSN-7125 +DOH-8476 +CWG-0664 +evBcp-27039 +CsaX-49 +xBmn6 +RXN-4893 +MJT-4189 +W-488 +NN706800 +AdcuIh994098 +r984947 +Gvv-019 +wiqMbT-75407 +XDB-6586 +GOO-5282 +uS-0 +ku2978 +C52961 +oNUSN16 +UCY-4920 +WZV-0373 +aQP-98047 +LOZ64706 +GUC-4435 +ZeR028080 +RMG-2717 +MB-8156 +zyXeh-5736 +MWN-9572 +ZCM-5860 +Fab353 +XU-44 +IGT-8559 +uTV58377 +IpJ-953243 +PQZ-1162 +sQIKgy0 +SPC-2529 +JSY-1304 +sTr-051714 +GBJ-4620 +puFNpj-0 +IER-1012 +KZE-9689 +YQF-5541 +CIN-3584 +YWL2 +Rdq002166 +ZXC-7288 +RUG-0401 +KSJ-2462 +RIO-3992 +nPpMl77 +pa790789 +LY03036 +VDR-1585 +eW1 +GSN-1550 +QWT-2431 +Od31 +EKGmOa13183 +PLT-2536 +PDH-3708 +FSA-0870 +bvMm-69 +FEH-0810 +ZBW-6838 +HXT-2469 +VKV-8133 +oXTZi-01929 +LW3 +C5187 +WXF-9090 +WTE-9529 +QkZwZ4 +AY-64 +DWK-2831 +RSU-1447 +xx6383 +WLM-6152 +sbD553 +LOZ-8100 +QRL-7282 +QZQ-2591 +WLY-4230 +RGF-2799 +OOB-1494 +MWK-4040 +QtkOpF99 +aifuJy9116 +IHL-1087 +MHW-0988 +EKQ-6171 +P-522522 +IMQ-3884 +YqF-8490 +BAI-1530 +BAH-0771 +K-8978 +EUC-5006 +DKB-6012 +WGF-6434 +HWV-9855 +GtBOoF4687 +CPS-0553 +hg935 +DCI2469 +ZH-79112 +Zc-1 +RFN-4603 +LL-258800 +TIW-6697 +MTE-1831 +INNXeu-45 +cuN-9 +mzN13320 +ysO-86138 +uMYHY-9 +z84865 +YPB-2208 +PChSli0 +Q-97923 +DFR-6028 +PCY-2300 +OLZ-1095 +ztBnIT050 +WAQ-5648 +j122285 +A-5572 +Djhdr13341 +WCB-7904 +vKg-73661 +qunz-38 +KFQ-2293 +BLR-3040 +ETW-9584 +VS6 +AWH-2086 +NRWz05630 +FEHQmO-014 +TQM-1142 +sNRfer-471767 +TKX-8284 +CKI-6220 +x-699762 +PKI-3410 +Z-008 +dTgC-5796 +oucXk78 +AzxWtK-843303 +ZOQ-7765 +QDD-7715 +XXJ-8515 +GKZ-2533 +PKZ-4420 +cybH-3 +HQK-3437 +LMT-1613 +UHG-9277 +KBX-7341 +Tytwn7224 +GRQ-3856 +pVK-378146 +QKZ-2721 +bmENT-05 +kv6 +Vp68 +EdSIbz-8 +GTOM36335 +VVY-1531 +QMY-1574 +rOw-756 +ZAR-3360 +ADH-4907 +OWW-6498 +NDG-9026 +BUR-8017 +BKG-0694 +PlJbDx-6790 +kLjd-538 +eU3 +JiPi-04234 +jkUhPH-08746 +vhv28032 +MBE-7631 +dOYf-62 +fMWfG-756 +WAM-2489 +GXN-6792 +vE77015 +JbeS215148 +VPD-9070 +TWA-3269 +TCQ-1502 +BGQ-6998 +OQU-1262 +RkPG-126771 +FYO-8006 +Cr-507126 +GNB-1573 +Fbu5926 +QXG-8705 +GFI-9860 +UDK-1735 +K-229 +KhC4 +FI-21677 +VHS-0647 +M-805532 +SQe-12501 +uWmTFC68 +YDT-8912 +DV829 +AQT-6649 +Qq47 +QbNsb42 +NUP-5959 +FBX-0313 +I37 +tmn54945 +PEB-4494 +UFW-9104 +EX959161 +MPM-1972 +bo77 +COADn0 +JRYCra021155 +OW050 +NIT-2795 +P-592858 +TLD-8849 +WjaBag-9 +URJ-0134 +UDJ-1670 +ZTJ-2224 +OFK-4086 +YWD-0857 +ExmwPc-723175 +CBA-8790 +WoI-7 +XLP-0242 +MZN-3037 +MN05 +INN-2239 +s-01 +XVY-0097 +HFE-4112 +GmR92946 +ELZ-7262 +TJN-8582 +KXG-5002 +oVPvz-4363 +FOF-5011 +trDSfY-303 +MVT-7882 +Vf8 +SRH-3533 +FUL-3999 +hmG700 +BGJ-1313 +PlUL91637 +XMQ-8774 +Q-147 +IDR-7432 +WRN-5407 +k303 +FfLeD-70713 +ZU9 +PLU-7458 +LG-8787 +KXH-3396 +SmfQA54835 +UWH-2885 +DYO-5442 +XRA-5470 +bIn2564 +IXN-0571 +oARpWF-298 +UD-493493 +MMS-9854 +LjjxB-16 +RQF-1426 +KRW-5408 +bTPdC6413 +LNW-5856 +LqPl-815881 +huu777 +wHPH199 +TXIhZY25 +SBU-5198 +xXy-577 +HCB-8206 +Y-539158 +SCP-3124 +GNE-7587 +arDdt-1482 +edIPBi3934 +XEcR-9 +qUdHk22 +POQ-62063 +ZXY-6944 +t43771 +eRtkN-388 +kvQCG-0753 +lsefXR-5695 +GHlYi61 +IZI-1554 +Z450791 +UXR-0083 +d327731 +PVT-9352 +ZXS-7615 +EPW-1085 +SdsWCU06 +GLT-9379 +kVz-407283 +P5169 +RGaoh-408 +JVU-7926 +q-6252 +wGjlXl03339 +sLvqei-6205 +lyno68556 +LNX-5467 +f-61069 +Tu70635 +eJ-21 +DKM-8594 +WVxEib31854 +FGF-3782 +D-592854 +QKX-0550 +hPLMNQ-145106 +RTOZ0 +NPK-9843 +ODS-5021 +HWW-8899 +QQS-8860 +EEL-4176 +jffAYT3200 +CVy7 +VUB-9936 diff --git a/solutions/beecrowd/2712/out.txt b/solutions/beecrowd/2712/out.txt new file mode 100644 index 00000000..150f897d --- /dev/null +++ b/solutions/beecrowd/2712/out.txt @@ -0,0 +1,1000 @@ +FRIDAY +MONDAY +FRIDAY +TUESDAY +FAILURE +FAILURE +TUESDAY +MONDAY +FRIDAY +FRIDAY +FAILURE +WEDNESDAY +FAILURE +FAILURE +THURSDAY +MONDAY +FRIDAY +FAILURE +FAILURE +TUESDAY +FAILURE +FAILURE +FAILURE +WEDNESDAY +FAILURE +FAILURE +FAILURE +THURSDAY +THURSDAY +WEDNESDAY +MONDAY +MONDAY +FAILURE +FAILURE +FAILURE +THURSDAY +THURSDAY +THURSDAY +TUESDAY +FAILURE +WEDNESDAY +TUESDAY +MONDAY +FAILURE +MONDAY +WEDNESDAY +MONDAY +FAILURE +FAILURE +THURSDAY +WEDNESDAY +WEDNESDAY +FRIDAY +FAILURE +MONDAY +TUESDAY +FAILURE +THURSDAY +FRIDAY +TUESDAY +WEDNESDAY +THURSDAY +FAILURE +FAILURE +FAILURE +FAILURE +FRIDAY +FAILURE +MONDAY +WEDNESDAY +TUESDAY +FAILURE +WEDNESDAY +FAILURE +MONDAY +TUESDAY +WEDNESDAY +FRIDAY +THURSDAY +THURSDAY +FAILURE +FRIDAY +TUESDAY +FAILURE +FAILURE +FAILURE +MONDAY +FAILURE +FAILURE +TUESDAY +FRIDAY +WEDNESDAY +FAILURE +FAILURE +FAILURE +MONDAY +MONDAY +FAILURE +THURSDAY +FAILURE +TUESDAY +FRIDAY +THURSDAY +FRIDAY +FAILURE +FAILURE +FAILURE +FAILURE +FAILURE +MONDAY +FRIDAY +MONDAY +FAILURE +FAILURE +FAILURE +FAILURE +FRIDAY +FAILURE +MONDAY +FAILURE +FAILURE +FRIDAY +FAILURE +THURSDAY +FRIDAY +FAILURE +TUESDAY +WEDNESDAY +FAILURE +FRIDAY +FAILURE +FAILURE +FAILURE +THURSDAY +FAILURE +FRIDAY +FRIDAY +FRIDAY +FAILURE +FAILURE +WEDNESDAY +FAILURE +FAILURE +MONDAY +FAILURE +FAILURE +FAILURE +THURSDAY +FAILURE +TUESDAY +FRIDAY +MONDAY +FAILURE +FAILURE +FRIDAY +FAILURE +FAILURE +FAILURE +FAILURE +FAILURE +THURSDAY +FAILURE +FRIDAY +MONDAY +MONDAY +FAILURE +FAILURE +FAILURE +FAILURE +FAILURE +FAILURE +FRIDAY +FAILURE +THURSDAY +FAILURE +FAILURE +TUESDAY +FAILURE +WEDNESDAY +FRIDAY +FRIDAY +FAILURE +THURSDAY +THURSDAY +MONDAY +FAILURE +FAILURE +FAILURE +TUESDAY +FAILURE +FAILURE +FRIDAY +FRIDAY +FAILURE +THURSDAY +TUESDAY +THURSDAY +FAILURE +FAILURE +TUESDAY +FAILURE +FAILURE +FAILURE +FAILURE +FAILURE +MONDAY +FAILURE +MONDAY +TUESDAY +FAILURE +WEDNESDAY +THURSDAY +FAILURE +TUESDAY +FAILURE +TUESDAY +FAILURE +FAILURE +FAILURE +FAILURE +FRIDAY +THURSDAY +THURSDAY +WEDNESDAY +FAILURE +FAILURE +FAILURE +WEDNESDAY +WEDNESDAY +FAILURE +MONDAY +FAILURE +THURSDAY +FAILURE +FAILURE +FAILURE +THURSDAY +WEDNESDAY +FAILURE +MONDAY +FAILURE +THURSDAY +FAILURE +FAILURE +FAILURE +FAILURE +FAILURE +MONDAY +FAILURE +FAILURE +WEDNESDAY +FAILURE +TUESDAY +TUESDAY +MONDAY +FAILURE +MONDAY +FAILURE +FRIDAY +FAILURE +THURSDAY +FAILURE +FAILURE +WEDNESDAY +FAILURE +FRIDAY +FAILURE +FAILURE +WEDNESDAY +FAILURE +FRIDAY +FAILURE +FAILURE +FAILURE +FAILURE +FAILURE +FAILURE +MONDAY +FAILURE +FRIDAY +WEDNESDAY +THURSDAY +MONDAY +FAILURE +FAILURE +WEDNESDAY +FAILURE +TUESDAY +FAILURE +TUESDAY +FAILURE +THURSDAY +FAILURE +THURSDAY +FAILURE +THURSDAY +FAILURE +FAILURE +THURSDAY +FRIDAY +FAILURE +FAILURE +FAILURE +FRIDAY +FAILURE +FAILURE +FAILURE +TUESDAY +FAILURE +THURSDAY +FRIDAY +FAILURE +MONDAY +FRIDAY +TUESDAY +TUESDAY +FAILURE +MONDAY +MONDAY +THURSDAY +FAILURE +FRIDAY +MONDAY +FAILURE +FAILURE +FAILURE +FRIDAY +MONDAY +TUESDAY +FAILURE +TUESDAY +FAILURE +FAILURE +FAILURE +MONDAY +FRIDAY +FAILURE +MONDAY +FAILURE +FRIDAY +THURSDAY +FAILURE +FAILURE +WEDNESDAY +FAILURE +MONDAY +FAILURE +FAILURE +TUESDAY +THURSDAY +MONDAY +FAILURE +THURSDAY +FAILURE +TUESDAY +FAILURE +FAILURE +FAILURE +FAILURE +MONDAY +FAILURE +FAILURE +FAILURE +THURSDAY +FAILURE +FAILURE +THURSDAY +FAILURE +FRIDAY +THURSDAY +THURSDAY +FAILURE +FAILURE +FAILURE +THURSDAY +FRIDAY +FAILURE +FAILURE +FAILURE +FAILURE +FAILURE +FAILURE +WEDNESDAY +MONDAY +FAILURE +THURSDAY +FAILURE +FAILURE +WEDNESDAY +FAILURE +FAILURE +TUESDAY +FAILURE +FAILURE +FAILURE +WEDNESDAY +FRIDAY +WEDNESDAY +FAILURE +FAILURE +FAILURE +FAILURE +WEDNESDAY +MONDAY +FAILURE +FAILURE +FRIDAY +THURSDAY +FAILURE +FRIDAY +WEDNESDAY +FAILURE +FAILURE +MONDAY +FAILURE +FRIDAY +FRIDAY +FAILURE +FAILURE +WEDNESDAY +FAILURE +TUESDAY +FAILURE +FAILURE +MONDAY +FAILURE +WEDNESDAY +TUESDAY +FAILURE +FAILURE +MONDAY +FAILURE +FAILURE +MONDAY +THURSDAY +TUESDAY +FAILURE +FAILURE +FAILURE +WEDNESDAY +FAILURE +MONDAY +FAILURE +FAILURE +FAILURE +MONDAY +FAILURE +FAILURE +TUESDAY +WEDNESDAY +FAILURE +TUESDAY +TUESDAY +THURSDAY +FAILURE +FAILURE +THURSDAY +WEDNESDAY +FAILURE +FAILURE +WEDNESDAY +FAILURE +WEDNESDAY +FAILURE +FAILURE +TUESDAY +FAILURE +FAILURE +WEDNESDAY +FAILURE +FAILURE +THURSDAY +FAILURE +WEDNESDAY +FAILURE +WEDNESDAY +MONDAY +FRIDAY +TUESDAY +MONDAY +FRIDAY +FAILURE +FAILURE +MONDAY +FAILURE +WEDNESDAY +TUESDAY +FAILURE +FAILURE +WEDNESDAY +FAILURE +FAILURE +TUESDAY +FAILURE +FRIDAY +FAILURE +WEDNESDAY +FAILURE +FAILURE +THURSDAY +FAILURE +FAILURE +FAILURE +FAILURE +FAILURE +FAILURE +MONDAY +FAILURE +FRIDAY +TUESDAY +THURSDAY +FAILURE +FRIDAY +TUESDAY +TUESDAY +THURSDAY +WEDNESDAY +FAILURE +TUESDAY +TUESDAY +FRIDAY +FRIDAY +WEDNESDAY +THURSDAY +FAILURE +FAILURE +WEDNESDAY +MONDAY +TUESDAY +FAILURE +FAILURE +FAILURE +WEDNESDAY +FAILURE +FAILURE +TUESDAY +THURSDAY +TUESDAY +MONDAY +MONDAY +FAILURE +FAILURE +FRIDAY +THURSDAY +FAILURE +FAILURE +TUESDAY +FAILURE +WEDNESDAY +THURSDAY +FAILURE +FAILURE +FAILURE +FAILURE +FAILURE +FAILURE +WEDNESDAY +THURSDAY +MONDAY +TUESDAY +MONDAY +FAILURE +THURSDAY +FAILURE +FAILURE +FAILURE +FAILURE +FAILURE +FRIDAY +FRIDAY +FAILURE +TUESDAY +FAILURE +FRIDAY +THURSDAY +FRIDAY +WEDNESDAY +FAILURE +FRIDAY +WEDNESDAY +FRIDAY +FAILURE +FAILURE +TUESDAY +FAILURE +FRIDAY +TUESDAY +WEDNESDAY +MONDAY +THURSDAY +THURSDAY +FAILURE +THURSDAY +FAILURE +WEDNESDAY +FAILURE +WEDNESDAY +THURSDAY +MONDAY +FAILURE +FAILURE +FAILURE +FAILURE +FAILURE +WEDNESDAY +FAILURE +FAILURE +MONDAY +MONDAY +TUESDAY +TUESDAY +WEDNESDAY +FRIDAY +WEDNESDAY +FAILURE +FAILURE +FRIDAY +WEDNESDAY +WEDNESDAY +THURSDAY +FRIDAY +WEDNESDAY +FRIDAY +MONDAY +FAILURE +FAILURE +FAILURE +FAILURE +FAILURE +FAILURE +FAILURE +FRIDAY +FAILURE +FAILURE +FAILURE +WEDNESDAY +WEDNESDAY +MONDAY +TUESDAY +FAILURE +MONDAY +FAILURE +WEDNESDAY +FRIDAY +THURSDAY +FAILURE +WEDNESDAY +FRIDAY +FRIDAY +FAILURE +WEDNESDAY +WEDNESDAY +WEDNESDAY +FAILURE +WEDNESDAY +FAILURE +FAILURE +WEDNESDAY +WEDNESDAY +TUESDAY +FAILURE +FAILURE +FAILURE +TUESDAY +FRIDAY +FAILURE +FAILURE +FAILURE +FAILURE +FAILURE +FAILURE +WEDNESDAY +MONDAY +FAILURE +FAILURE +FAILURE +FAILURE +FRIDAY +TUESDAY +FAILURE +FAILURE +WEDNESDAY +FAILURE +THURSDAY +FAILURE +FAILURE +MONDAY +FRIDAY +FAILURE +FAILURE +FRIDAY +FAILURE +FAILURE +MONDAY +FAILURE +FRIDAY +TUESDAY +FAILURE +FRIDAY +FAILURE +MONDAY +FRIDAY +MONDAY +TUESDAY +FAILURE +FAILURE +THURSDAY +MONDAY +MONDAY +MONDAY +FAILURE +FAILURE +FAILURE +WEDNESDAY +FAILURE +FRIDAY +MONDAY +FAILURE +FAILURE +WEDNESDAY +THURSDAY +FRIDAY +FAILURE +FRIDAY +THURSDAY +FRIDAY +TUESDAY +FAILURE +FAILURE +FAILURE +FRIDAY +FRIDAY +FAILURE +FAILURE +MONDAY +THURSDAY +FAILURE +MONDAY +FAILURE +FRIDAY +MONDAY +MONDAY +FRIDAY +FRIDAY +TUESDAY +FRIDAY +FAILURE +FAILURE +THURSDAY +THURSDAY +MONDAY +FAILURE +TUESDAY +FAILURE +FRIDAY +MONDAY +FAILURE +WEDNESDAY +MONDAY +TUESDAY +WEDNESDAY +FAILURE +TUESDAY +FAILURE +FAILURE +FAILURE +FAILURE +TUESDAY +FAILURE +THURSDAY +MONDAY +FAILURE +FAILURE +FAILURE +FAILURE +FAILURE +FAILURE +THURSDAY +FAILURE +FAILURE +THURSDAY +FRIDAY +WEDNESDAY +FAILURE +THURSDAY +FAILURE +FAILURE +FAILURE +TUESDAY +FAILURE +FAILURE +TUESDAY +FRIDAY +TUESDAY +FAILURE +WEDNESDAY +FAILURE +FAILURE +MONDAY +FAILURE +TUESDAY +FRIDAY +FAILURE +FRIDAY +FAILURE +FAILURE +FAILURE +FAILURE +WEDNESDAY +WEDNESDAY +WEDNESDAY +TUESDAY +FRIDAY +FAILURE +THURSDAY +TUESDAY +THURSDAY +MONDAY +FAILURE +WEDNESDAY +FAILURE +MONDAY +FAILURE +FAILURE +FAILURE +FAILURE +FAILURE +MONDAY +TUESDAY +FAILURE +FRIDAY +THURSDAY +THURSDAY +WEDNESDAY +THURSDAY +TUESDAY +FAILURE +FAILURE +FAILURE +FAILURE +FAILURE +FAILURE +MONDAY +FAILURE +FAILURE +FRIDAY +MONDAY +FAILURE +FAILURE +FRIDAY +FRIDAY +MONDAY +THURSDAY +MONDAY +FAILURE +WEDNESDAY +FAILURE +TUESDAY +FAILURE +WEDNESDAY +FRIDAY +WEDNESDAY +FAILURE +FAILURE +FAILURE +THURSDAY +FAILURE +FAILURE +FAILURE +MONDAY +FAILURE +FRIDAY +FAILURE +FAILURE +FRIDAY +TUESDAY +FAILURE +FAILURE +TUESDAY +TUESDAY +FAILURE +MONDAY +FAILURE +FAILURE +FAILURE +FAILURE +WEDNESDAY +FAILURE +FRIDAY +FAILURE +TUESDAY +FRIDAY +TUESDAY +WEDNESDAY +THURSDAY +FAILURE +FRIDAY +FAILURE +MONDAY +THURSDAY +FAILURE +FRIDAY +FAILURE +THURSDAY +MONDAY +FAILURE +MONDAY +MONDAY +MONDAY +FAILURE +MONDAY +FAILURE +MONDAY +FAILURE +TUESDAY +FRIDAY +FAILURE +TUESDAY +FAILURE +TUESDAY +FAILURE +MONDAY +THURSDAY +FAILURE +FAILURE +FAILURE +THURSDAY +FAILURE +WEDNESDAY +FAILURE +WEDNESDAY +MONDAY +FRIDAY +FAILURE +MONDAY +FAILURE +FAILURE +TUESDAY +FAILURE +WEDNESDAY +THURSDAY +FAILURE +WEDNESDAY +FAILURE +FAILURE +FAILURE +FAILURE +THURSDAY +FAILURE +WEDNESDAY +FAILURE +TUESDAY +THURSDAY +FAILURE +FAILURE +FAILURE +FAILURE +FAILURE +TUESDAY +FAILURE +FAILURE +FAILURE +FAILURE +FAILURE +TUESDAY +FAILURE +TUESDAY +FAILURE +MONDAY +WEDNESDAY +WEDNESDAY +FAILURE +FRIDAY +FAILURE +FAILURE +FAILURE +WEDNESDAY +FAILURE +FAILURE +FAILURE +FAILURE +THURSDAY +FAILURE +FAILURE +FAILURE +TUESDAY +FAILURE +MONDAY +FAILURE +FRIDAY +FAILURE +FAILURE +TUESDAY +MONDAY +FRIDAY +FRIDAY +WEDNESDAY +FAILURE +FAILURE +WEDNESDAY diff --git a/solutions/beecrowd/2712/problem.md b/solutions/beecrowd/2712/problem.md new file mode 100644 index 00000000..f522b67f --- /dev/null +++ b/solutions/beecrowd/2712/problem.md @@ -0,0 +1,38 @@ +https://judge.beecrowd.com/en/problems/view/2712 + +# Vehicular Restriction + +The vehicle restriction of São Paulo city is a restriction on the circulation of +motor vehicles in the city. Implemented since 1996 with the aim of improving +environmental conditions by reducing the burden of pollutants in the atmosphere, +it has consolidated itself as an instrument to reduce congestion in the main +highways of the city, during peak times. In the boundary ways, traffic of trucks +and automobiles that are within the restriction is not allowed. There is a scale +that determines on which days of the week which vehicles can not travel. This +scale is governed by the last digit of the vehicle nameplate, being: + +- Monday, final digit of board 1 and 2 +- Tuesday, final digit of plate 3 and 4 +- Wednesday, digit end of plate 5 and 6 +- Thursday, final digit of plate 7 and 8 +- Friday, final digit of plate 9 and 0 + +The drivers who are caught violating the traffic restriction are charged with a +fine and four points in the driver's license. + +## Input + +The first entry line represents the number of $N$ tests $(1 \leq N < 1000)$ that +should be considered. The other entries are string with maximum size $S (1 \leq +S \leq 100)$ representing each card to be analyzed, so that each card is on a +single entry line. The expected format for a valid car plate in São Paulo is +"**AAA-9999**", such that A is a valid character in [A-Z], and 9 is a valid +numeric digit in [0-9]. + +## Output + +The set of valid values ​​as output are: MONDAY, TUESDAY, WEDNESDAY, THURSDAY +and FRIDAY, according to the predefined constraint table, and FAILURE if the +board does not present the defined pattern. + + diff --git a/solutions/beecrowd/2712/tags.txt b/solutions/beecrowd/2712/tags.txt new file mode 100644 index 00000000..ae224c24 --- /dev/null +++ b/solutions/beecrowd/2712/tags.txt @@ -0,0 +1 @@ +beginner