From 04add7b4ff30ceefa7aa92789c7f8cb869e25d32 Mon Sep 17 00:00:00 2001 From: Danny Harpigny Date: Thu, 14 Dec 2023 21:08:01 +0100 Subject: [PATCH] --- .editorconfig | 8 ++++ .git-crypt/.gitattributes | 4 -- ...291402D67B7CD30974E81B7139FBBEA22D1CEC.gpg | Bin 597 -> 0 bytes .gitattributes | 1 - .gitignore | 6 +++ 2023/01/both.nim | 39 ++++++++++++++++++ 2023/02/first.nim | 39 ++++++++++++++++++ session.example.key | 1 + session.key | Bin 151 -> 0 bytes 9 files changed, 93 insertions(+), 5 deletions(-) create mode 100644 .editorconfig delete mode 100644 .git-crypt/.gitattributes delete mode 100644 .git-crypt/keys/default/0/49291402D67B7CD30974E81B7139FBBEA22D1CEC.gpg delete mode 100644 .gitattributes create mode 100644 2023/01/both.nim create mode 100644 2023/02/first.nim create mode 100644 session.example.key delete mode 100644 session.key diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..b7382b0 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,8 @@ +root = true + +[*] +charset = utf-8 + +[*.nim] +indent_style = space +indent_size = 2 \ No newline at end of file diff --git a/.git-crypt/.gitattributes b/.git-crypt/.gitattributes deleted file mode 100644 index 665b10e..0000000 --- a/.git-crypt/.gitattributes +++ /dev/null @@ -1,4 +0,0 @@ -# Do not edit this file. To specify the files to encrypt, create your own -# .gitattributes file in the directory where your files are. -* !filter !diff -*.gpg binary diff --git a/.git-crypt/keys/default/0/49291402D67B7CD30974E81B7139FBBEA22D1CEC.gpg b/.git-crypt/keys/default/0/49291402D67B7CD30974E81B7139FBBEA22D1CEC.gpg deleted file mode 100644 index 8f3bd3cafb838f15cf7f67a244ed0ab8f8399622..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 597 zcmV-b0;>Im0gMClu#MJzG@G zYEiAQu;EedLe$Q_cnIA&jKtjR^4+iGg*quNSQ%YeR)IV+4A1#iHnvr$y_rUCDdbPK zrQ-=Zk40miKi*9{0M^{P!(&?STwvCDt<7Hm_N>U5b%=;ApKF`wJ zs-|Pejn0fV$uEC6`he4jrb+*v#)N@z6*}z*e-L*XTeB1Cv^1O+TT11S=cF3%;fU=bC{UyCFevbJq!0MkJexm!Mn2R z{*nt@6oGrzeTu4YnerdO_Y!trZw(HU8<9(=TV6cp>zaNhypUGDJbx#u_|8H0u$4zL zTwd0h&<`Cl<-U`1+mN+L(MPSTmoajh@%xYx=bk3;nLYAIG maxRedCubes: + break verifyGameSet + of "green": + if cubeCount > maxGreenCubes: + break verifyGameSet + of "blue": + if cubeCount > maxBlueCubes: + break verifyGameSet + else: + discard + sum += gameID + +echo fmt"Answer: {sum}" \ No newline at end of file diff --git a/session.example.key b/session.example.key new file mode 100644 index 0000000..fa5a9c8 --- /dev/null +++ b/session.example.key @@ -0,0 +1 @@ +Rename this file to `session.key` and put your session key in it. \ No newline at end of file diff --git a/session.key b/session.key deleted file mode 100644 index 2c9eb747335351662fab252dbc15d5cb9c326aef..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 151 zcmV;I0BHXJM@dveQdv+`0CgoHi0a~MiG^@lh?bKvw|@UaXF_er`$jKsQ(je>|DX0C zv5$D~V@&m0FC98dV&KTn3q>v{H0MUJK+Bt*)62ELm6*+Ssua;-X+bPun_eHBXz=?x zQ+^K6)idl%2