Compare commits
3 Commits
fe417025bd
...
18fdc0cb34
Author | SHA1 | Date |
---|---|---|
Gregory Eremin | 18fdc0cb34 | |
Gregory Eremin | c88f6f0c60 | |
Gregory Eremin | 1d1c91cc88 |
18
LICENSE
18
LICENSE
|
@ -1,8 +1,18 @@
|
||||||
Copyright 2023 Gregory Eremin
|
Copyright 2023 Gregory Eremin
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||||
|
this software and associated documentation files (the "Software"), to deal in
|
||||||
|
the Software without restriction, including without limitation the rights to
|
||||||
|
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
||||||
|
the Software, and to permit persons to whom the Software is furnished to do so,
|
||||||
|
subject to the following conditions:
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||||
|
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
||||||
|
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||||
|
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||||
|
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
|
@ -0,0 +1,300 @@
|
||||||
|
hDsDDttbhsmshNNWMNWGbTNqZq
|
||||||
|
VQfjnlFvnQFRdZWdVtqMGdWW
|
||||||
|
zvvvRnFFfjjlRBlBPzgQgRvvmtrmhHcptLHCDhcHHmLsBmsB
|
||||||
|
FrzFvvdTDcTnmTzdDTTzdvWmjhgVPrhSljSQSPwPjPjPjSVC
|
||||||
|
sMsGbqGsbbRqRbBMBGRMbLpNSSpjhlQljHVClhjgPjjPhlVp
|
||||||
|
sNbGtJbMfssNtvcnWFVmnvDd
|
||||||
|
TNfmdFJmfdZMQffVRQVV
|
||||||
|
jVHBCcDSjWrMZjvg
|
||||||
|
SShSbCGpcBtBtwtVLJJddmtLmT
|
||||||
|
CtpNftbNWbtSJDHqGZJFLfLr
|
||||||
|
dPsHlsRBHcZdqDFDZwwJ
|
||||||
|
snjVlvTPlPjVlQlHWjpSmzgNNzSmtpSm
|
||||||
|
qhZtSVqCqThGcGzZnnfZcB
|
||||||
|
WbddWbDwrBzcpzHpBb
|
||||||
|
DBBMFWRJDrDFWLWljCqjQjFvtCsqTjqs
|
||||||
|
vhFTzRzzTmPvbplWFtQttQQZtZhMZqcqSQ
|
||||||
|
fJVCfDfJNCLDwJNGmssZgwqgZcmtgcms
|
||||||
|
VmdVNLHGGVDBdfLCHnLGHnbWpTplWbddRTlzplWPpbFp
|
||||||
|
smwtNVqRjNmZjZBDSvzSzl
|
||||||
|
FnTJFcTTFccCrJGTLncdCCcPJZfBBDSlSJwZDlggSffvgSSf
|
||||||
|
FWTFGLFWLCPWrCnFnQWNbQVVwphhmHHbptVsss
|
||||||
|
BrrgrtgfBpPFhhgMWq
|
||||||
|
ZGvsvDGClvsSRScpGBhPphWMPhhTNh
|
||||||
|
SBSBdBZCcdwHrVQwQr
|
||||||
|
qmFqdVtqsVdzqGbwMJwGPpmPHM
|
||||||
|
ZjTjLQLLDrrLjcFhlfrGHppfbJwGpMMpGHwRCC
|
||||||
|
BTlZjrBBBcLTcDrjBlThWBjBtWNqnSzSnsSdvsFggNnqVVnv
|
||||||
|
zVvmjGgpcJnbTTTJHRHSRb
|
||||||
|
NPFrFQfCLPrdRlbtQRRvBtHb
|
||||||
|
frMLqPFMrfrPLCwqqNvjczwwnmwggGmssnmnnm
|
||||||
|
HbFJhhshsffcvslmGmLFrQBrlFTG
|
||||||
|
jNRPwwPjSPCdCdvRzRBTlRzmGrmB
|
||||||
|
nCSWdNjCCPqvtttZnDscth
|
||||||
|
ScSrRTPcSSDRWSptWcdmmWGbmGGLmLJvNJNbbJ
|
||||||
|
flzHjFpZjFfjjgszjlqzJNnnvsmbMmGvJLNNbmJv
|
||||||
|
jFZFVpffpVlqfQhgtTwcTVtrTcRBwBTD
|
||||||
|
rHrdGSMSSbZbjShj
|
||||||
|
qZfDBBvllvvWLtqbbQwhJjbtwbnQgN
|
||||||
|
WzWlzZmLWBLZLzCzrHMVcRrMRFRCCccF
|
||||||
|
BzdplppDlBBrqWnjFMBWqNWq
|
||||||
|
whZhZSSHhhVSrvSgHPvgvjnFTPsFFnnNTcjTFnTTsc
|
||||||
|
HLCwVSfZLffSHhLvwtQbJbrdGlRRrGdmpztG
|
||||||
|
grDFfDlfCftCzCfNztclNFrBNQjbZjJjjPPVsjNvsbvPsj
|
||||||
|
HwwTpGpRwMdpHWhvjzVsPJjJGVvVZs
|
||||||
|
ShphRpwzMWdpHdwWHwMpnHwLDmmgcLCCDtLDCCSlcgcfCD
|
||||||
|
ccqqLLqCqTSlZMLQMllZTvnNfjddttmmDpRJjvhfpfthRmdf
|
||||||
|
rbVssWwggFrGsWzPbVFGJpftQRPDmQDpdPmdJmfR
|
||||||
|
bBHWWHzWHWWHrsVbsFgwbFqqMLTnBclTMMSnLnqLqMQZ
|
||||||
|
CcSPGCCPrdPtdjcsBLDghbVLhqDl
|
||||||
|
vMJwTHzPvzVwqBBDblls
|
||||||
|
QNvMFfRMJHPZHjnfWmdftSjSnp
|
||||||
|
dnBCPhhBCrQfChdbNVGLszzDzVDsTbWT
|
||||||
|
HgcJgpppPqqHwPwJSczVzDssNNVWTtqVVGts
|
||||||
|
JHRFpjFccplcRwPJpHPScpMPQmCdBQQfQjjhCfBCrQQvdmnn
|
||||||
|
rQGmVRLRbDRHmmZLGBGVLHBVFspSstWWWNJcsgpQTSsNppJS
|
||||||
|
qlldhPdfCgnspJFWCFsFNT
|
||||||
|
jMMzwndfhnwPfqPMjgjMVBrGBmrHDHLZbjRGHbHj
|
||||||
|
wzpZfzHRSRfzgHfffZwwStCtSrBhBBCTrtFhhBFG
|
||||||
|
QPjQQQDcDWJNFWtrtWrGmTCMtmBW
|
||||||
|
lDvvDQcdjQcQLvlDwnpFgbbznZZglZsl
|
||||||
|
RfMFTMFrVrSRFPlFSfVlHpLqgzpHBLzHBBVzVpHG
|
||||||
|
CchbhcwdmdJmwJJtGgnqzppLmGGBQqQp
|
||||||
|
hCsstCJwLvMRvsZsTR
|
||||||
|
fQlfMlNClQhhZhrlWrWw
|
||||||
|
njDbnTDTBtGjmrGvSh
|
||||||
|
bgshBdBcDbTTdnnnTqcqLgqfpfQppCsCMsHHVVpHHNCHFF
|
||||||
|
PbCnTbzJnqQNzbbTNDdpwcmjDmwjGQjccw
|
||||||
|
hWgvSdLvwcGjSpSm
|
||||||
|
vVfrFvvhHFTZndJq
|
||||||
|
FFvRVCRqVRcfsDLrgqGNWjjHfhQQzGWjQHzN
|
||||||
|
ppJPBwplwSBJTmPpTzWWStzHHjNNLNzHNh
|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LMLMBMlVlVschsNpDGpdNsGc
|
||||||
|
tqFSmnmnnttGfDqNcfvNDD
|
||||||
|
nzRHnrwrrWRrrzHtbMlTMBjCvWLgBBMl
|
||||||
|
pCBlRvzwzlCzvZqqDwzmvgtsLsQdgZsgPNtdrsWrst
|
||||||
|
JbGjbGVGHSFbhbnhTShSTbQtQrPsLsHLQgNRtsgdQsLP
|
||||||
|
GnnbJbGMGbSjjbSbCzqlwMRRDzqzMBBv
|
||||||
|
TTVRJVMWMshSQtjSVTQJRQlcCBncJccdppnJcBBDngFpgP
|
||||||
|
frvfzfHrwzZNrtNwzzzZncCCZFdFFCgBDpPcBcBg
|
||||||
|
LwNGbqwvmvvtbNQjQlVVRWTGTQWM
|
||||||
|
RnggwVLRLDfCVZhfpDGGMGMGcGzGNHvv
|
||||||
|
jmmWBTSsBmFmSzctsqpccHvzpN
|
||||||
|
SBSrTblSQPbQhNwwZfPVdZPf
|
||||||
|
CCvCwzfNStLzfrbmMJbZMtlsbJMW
|
||||||
|
gPPPBqDjBcPFpVgBRbnMsVsbJZnWsdbSbM
|
||||||
|
qgDPHjHcPhpDRRpPBRpCGSLwvHQwGfzrHLGLTL
|
||||||
|
CLGqDZZLTdddPsdJpq
|
||||||
|
gbRbbnghnrWvgrdJdSTRSsVNJlld
|
||||||
|
hMnwrjnnjggvnLDwGffTfwCZZZ
|
||||||
|
NzJHbNHNNzJzgmHmzpQSvvLqbLsVVsVGvB
|
||||||
|
WtWhtWDdrZldDWrWTlZgppVVsqQTVQBqsGqBsQVp
|
||||||
|
jWjWRRRlPcHRwJgw
|
||||||
|
CCnnFTmnPCMCRNfnwGwdfzvwwl
|
||||||
|
VQQVShDSSshhDDtDLhjccGjLBBzBzlZflNZvwZzdwBzpSNNZ
|
||||||
|
QLHhJDDhDhgscgtjbGHTrWbrTbRmbFrm
|
||||||
|
CJbLvJvbwtFHqvLzwJqqqtHWTWRgDScDRSWQQjTRcWRDLT
|
||||||
|
mssGsMNphZMNsPPBnhSjRgdnQRdWgdjgrcDn
|
||||||
|
GGmBMMsffmslMGshZlMphGqCzHCbzlbvzqwzzgFJggCF
|
||||||
|
WCgWBphpWLQZQpgdhGdwmfbfFRVRjRTbbSFttdbSbT
|
||||||
|
qqrZnDNqZJDTVzRjVFbfSN
|
||||||
|
rPMvqJJqrJMPJnZMZZgLPgLWLggWQghwhmBh
|
||||||
|
CWGGzdHHmPPSmPsC
|
||||||
|
LqwlZwRLrPMQlMqrlbZrQRsSNsmssSNSsNcBNpgmsJ
|
||||||
|
lwLDQhrDMQqPGfhzGGjhGn
|
||||||
|
ZqDlZssCqJJMvpdBpBBmBQSMRp
|
||||||
|
wLgVcbgFLzTLTNNZmNNRdjdRmF
|
||||||
|
HZHbctWTwgVWgsfrnnPqlnsWlD
|
||||||
|
RSnwSPFcLnFPnRwjzctzbGNlZgNbbGdGpLhZdpgM
|
||||||
|
BqqBfMvTmmJqDgGNVdGVbVJJZG
|
||||||
|
vsTDfqBmHmMWQCwjtrHjjSFFnRSn
|
||||||
|
LsCmmcDHRjdtNMstwwzJ
|
||||||
|
TvThqfBFBNTnnndTtL
|
||||||
|
lvGQfbFQGblFrRccLRSSlPPVHS
|
||||||
|
qbLpqTHSqpbqbrPcQgjPDjcdDL
|
||||||
|
gnzhhBBwBWZzMglmjDrDPjvfdvQPdwtd
|
||||||
|
WZZzZZlZmhsMmFgRBBBzHHJpNJGVRSJVGTVpNqCH
|
||||||
|
JDphhGhDdGzWRBnvqqLDNLMnLw
|
||||||
|
gsrTHHffTHPcrPrlHCNZhvBZnZNLhPvBNwvh
|
||||||
|
sHVCSsSghJpSJjQh
|
||||||
|
JTMGlfjlTdqjnqbnqFwqmnbQ
|
||||||
|
PBZhBBcWRZprPZcZDDCZTZRgnnzwbbsbnvhbvznFsNFFvvNQ
|
||||||
|
BcWrVgCCZTDRDrlGttfVtMddSJlH
|
||||||
|
vwwvpVbSvnSRRmfMCmTHVHTBHB
|
||||||
|
QLZgDPgSDgGTMZfmTTBZ
|
||||||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qhRcBZZtRg
|
|
@ -1,5 +1,5 @@
|
||||||
#load "str.cma" ;;
|
#load "str.cma" ;;
|
||||||
#use "lib/file_utils.ml" ;;
|
#use "lib/utils.ml" ;;
|
||||||
|
|
||||||
let top n calories =
|
let top n calories =
|
||||||
let topn = List.filteri (fun i _ -> i < n) calories in
|
let topn = List.filteri (fun i _ -> i < n) calories in
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#use "lib/file_utils.ml" ;;
|
#use "lib/utils.ml" ;;
|
||||||
|
|
||||||
type shape = Rock | Paper | Scissors
|
type shape = Rock | Paper | Scissors
|
||||||
type outcome = Win | Tie | Loss
|
type outcome = Win | Tie | Loss
|
||||||
|
|
|
@ -0,0 +1,55 @@
|
||||||
|
#use "lib/utils.ml" ;;
|
||||||
|
|
||||||
|
let priority_of_item c =
|
||||||
|
(* ASCII lower case is 97-122, upper case is 65-90 *)
|
||||||
|
(* Lower case start at 1, upper case at 27 *)
|
||||||
|
let code = Char.code c in
|
||||||
|
if code > 90
|
||||||
|
then code - 96
|
||||||
|
else code - 65 + 27
|
||||||
|
in
|
||||||
|
|
||||||
|
let sum_of_priorities fn str =
|
||||||
|
let chars = List.sort_uniq compare (list_of_chars str) in
|
||||||
|
List.fold_left fn 0 chars
|
||||||
|
in
|
||||||
|
|
||||||
|
let sum_rucksack_priorities lines =
|
||||||
|
let rucksack_priority str =
|
||||||
|
let len2 = (String.length str)/2 in
|
||||||
|
let comp1 = String.sub str 0 len2 in
|
||||||
|
let comp2 = String.sub str len2 len2 in
|
||||||
|
let char_priority agg c =
|
||||||
|
if String.contains comp2 c
|
||||||
|
then (agg + priority_of_item c)
|
||||||
|
else agg
|
||||||
|
in
|
||||||
|
sum_of_priorities char_priority comp1
|
||||||
|
in
|
||||||
|
List.fold_left (+) 0 (List.map rucksack_priority lines)
|
||||||
|
in
|
||||||
|
|
||||||
|
let rec sum_badge_priorities sum lines =
|
||||||
|
let common_badge_priority str1 str2 str3 =
|
||||||
|
let char_priority agg c =
|
||||||
|
if String.contains str2 c && String.contains str3 c
|
||||||
|
then (agg + priority_of_item c)
|
||||||
|
else agg
|
||||||
|
in
|
||||||
|
sum_of_priorities char_priority str1
|
||||||
|
in
|
||||||
|
match lines with
|
||||||
|
| [] -> sum
|
||||||
|
| hd1 :: tl1 -> match tl1 with
|
||||||
|
| [] -> failwith "number of rows must be divisible by 3"
|
||||||
|
| hd2 :: tl2 -> match tl2 with
|
||||||
|
| [] -> failwith "number of rows must be divisible by 3"
|
||||||
|
| hd3 :: tl3 -> sum_badge_priorities (sum + common_badge_priority hd1 hd2 hd3) tl3
|
||||||
|
in
|
||||||
|
|
||||||
|
let contents = read_file "inputs/3.txt" in
|
||||||
|
let lines = List.filter (fun l -> String.trim l <> "") (String.split_on_char '\n' contents) in
|
||||||
|
let sum1 = sum_rucksack_priorities lines in
|
||||||
|
let sum2 = sum_badge_priorities 0 lines in
|
||||||
|
Printf.printf "Part 1: %d\n" sum1;
|
||||||
|
Printf.printf "Part 2: %d\n" sum2
|
|
@ -4,3 +4,5 @@ let read_file filename =
|
||||||
close_in ch;
|
close_in ch;
|
||||||
s
|
s
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
let list_of_chars str = List.init (String.length str) (String.get str)
|
Loading…
Reference in New Issue