ajout première partie
This commit is contained in:
parent
071cf40b21
commit
2ea70eaa93
3 changed files with 328 additions and 1 deletions
|
@ -18,7 +18,7 @@ mono jour10.exe
|
||||||
| 5 | Cobol | gnucobol | cobc -x jour5.cob | ./jour5 | |
|
| 5 | Cobol | gnucobol | cobc -x jour5.cob | ./jour5 | |
|
||||||
| 6 | | | | | |
|
| 6 | | | | | |
|
||||||
| 7 | | | | | |
|
| 7 | | | | | |
|
||||||
| 8 | | | | | |
|
| 8 | Perl | | | perl jour8.pl | |
|
||||||
| 9 | | | | | |
|
| 9 | | | | | |
|
||||||
| 10 |Visual Basic | vbnc | vbnc jour10.vbs | mono jour10.exe | |
|
| 10 |Visual Basic | vbnc | vbnc jour10.vbs | mono jour10.exe | |
|
||||||
| 11 | Lua | | | lua jour11.lua | |
|
| 11 | Lua | | | lua jour11.lua | |
|
||||||
|
@ -112,6 +112,13 @@ sed -Ei 's/^[0-9]{6}/ /g' jour5.cob
|
||||||
## Jour 6
|
## Jour 6
|
||||||
## Jour 7
|
## Jour 7
|
||||||
## Jour 8
|
## Jour 8
|
||||||
|
|
||||||
|
Le langage utilisé est le **Perl**. Il suffit d’utiliser la commande `perl` qui va exécuter le fichier.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
perl jour8.pl
|
||||||
|
```
|
||||||
|
|
||||||
## Jour 9
|
## Jour 9
|
||||||
|
|
||||||
## Jour 10
|
## Jour 10
|
||||||
|
|
300
jour08/input
Normal file
300
jour08/input
Normal file
|
@ -0,0 +1,300 @@
|
||||||
|
"qxfcsmh"
|
||||||
|
"ffsfyxbyuhqkpwatkjgudo"
|
||||||
|
"byc\x9dyxuafof\\\xa6uf\\axfozomj\\olh\x6a"
|
||||||
|
"jtqvz"
|
||||||
|
"uzezxa\"jgbmojtwyfbfguz"
|
||||||
|
"vqsremfk\x8fxiknektafj"
|
||||||
|
"wzntebpxnnt\"vqndz\"i\x47vvjqo\""
|
||||||
|
"higvez\"k\"riewqk"
|
||||||
|
"dlkrbhbrlfrp\\damiauyucwhty"
|
||||||
|
"d\""
|
||||||
|
"qlz"
|
||||||
|
"ku"
|
||||||
|
"yy\"\"uoao\"uripabop"
|
||||||
|
"saduyrntuswlnlkuppdro\\sicxosted"
|
||||||
|
"tj"
|
||||||
|
"zzphopswlwdhebwkxeurvizdv"
|
||||||
|
"xfoheirjoakrpofles\"nfu"
|
||||||
|
"q\xb7oh\"p\xce\"n"
|
||||||
|
"qeendp\"ercwgywdjeylxcv"
|
||||||
|
"dcmem"
|
||||||
|
"\"i\x13r\"l"
|
||||||
|
"ikso\xdcbvqnbrjduh\"uqudzki\xderwk"
|
||||||
|
"wfdsn"
|
||||||
|
"pwynglklryhtsqbno"
|
||||||
|
"hcoj\x63iccz\"v\"ttr"
|
||||||
|
"zf\x23\\hlj\\kkce\\d\\asy\"yyfestwcdxyfj"
|
||||||
|
"xs"
|
||||||
|
"m\"tvltapxdvtrxiy"
|
||||||
|
"bmud"
|
||||||
|
"k\"a"
|
||||||
|
"b\"oas"
|
||||||
|
"\"yexnjjupoqsxyqnquy\"uzfdvetqrc"
|
||||||
|
"vdw\xe3olxfgujaj"
|
||||||
|
"qomcxdnd\"\\cfoe\""
|
||||||
|
"fpul"
|
||||||
|
"m\"avamefphkpv"
|
||||||
|
"vvdnb\\x\\uhnxfw\"dpubfkxfmeuhnxisd"
|
||||||
|
"hey\\"
|
||||||
|
"ldaeigghlfey"
|
||||||
|
"eure\"hoy\xa5iezjp\\tm"
|
||||||
|
"yygb\"twbj\\r\"\x10gmxuhmp\""
|
||||||
|
"weirebp\x39mqonbtmfmd"
|
||||||
|
"ltuz\\hs\"e"
|
||||||
|
"ysvmpc"
|
||||||
|
"g\x8amjtt\"megl\"omsaihifwa"
|
||||||
|
"yimmm"
|
||||||
|
"iiyqfalh"
|
||||||
|
"cwknlaaf"
|
||||||
|
"q\x37feg\xc6s\"xx"
|
||||||
|
"uayrgeurgyp\\oi"
|
||||||
|
"xhug\"pt\"axugllbdiggzhvy"
|
||||||
|
"kdaarqmsjfx\xc3d"
|
||||||
|
"\"vkwla"
|
||||||
|
"d\""
|
||||||
|
"tmroz\"bvfinxoe\\mum\"wmm"
|
||||||
|
"\"n\"bbswxne\\p\\yr\"qhwpdd"
|
||||||
|
"skzlkietklkqovjhvj\xfe"
|
||||||
|
"pbg\\pab\"bubqaf\"obzcwxwywbs\\dhtq"
|
||||||
|
"xxjidvqh\"lx\\wu\"ij"
|
||||||
|
"daef\x5fe\x5b\\kbeeb\x13qnydtboof"
|
||||||
|
"ogvazaqy\"j\x73"
|
||||||
|
"y"
|
||||||
|
"n\"tibetedldy\\gsamm\"nwu"
|
||||||
|
"wldkvgdtqulwkad"
|
||||||
|
"dpmxnj"
|
||||||
|
"twybw\"cdvf\"mjdajurokbce"
|
||||||
|
"ru\"\\lasij\"i"
|
||||||
|
"roc\\vra\\lhrm"
|
||||||
|
"pbkt\x60booz\"fjlkc"
|
||||||
|
"j\x4dytvjwrzt"
|
||||||
|
"\\uiwjkniumxcs"
|
||||||
|
"cbhm\"nexccior\"v\"j\"nazxilmfp\x47"
|
||||||
|
"qdxngevzrlgoq"
|
||||||
|
"\"lrzxftytpobsdfyrtdqpjbpuwmm\x9e"
|
||||||
|
"mdag\x0asnck\xc2ggj\"slb\"fjy"
|
||||||
|
"wyqkhjuazdtcgkcxvjkpnjdae"
|
||||||
|
"aixfk\xc0iom\x21vueob"
|
||||||
|
"dkiiakyjpkffqlluhaetires"
|
||||||
|
"ysspv\"lysgkvnmwbbsy"
|
||||||
|
"gy\"ryexcjjxdm\"xswssgtr"
|
||||||
|
"s"
|
||||||
|
"ddxv"
|
||||||
|
"qwt\"\x27puilb\"pslmbrsxhrz"
|
||||||
|
"qdg\xc9e\\qwtknlvkol\x54oqvmchn\\"
|
||||||
|
"lvo"
|
||||||
|
"b"
|
||||||
|
"fk\"aa\"\"yenwch\\\\on"
|
||||||
|
"srig\x63hpwaavs\\\x80qzk\"xa\"\xe6u\\wr"
|
||||||
|
"yxjxuj\"ghyhhxfj\"\xa6qvatre"
|
||||||
|
"yoktqxjxkzrklkoeroil"
|
||||||
|
"\"jfmik\""
|
||||||
|
"smgseztzdwldikbqrh\""
|
||||||
|
"jftahgctf\"hoqy"
|
||||||
|
"tcnhicr\"znpgckt\"ble"
|
||||||
|
"vqktnkodh\"lo\"a\\bkmdjqqnsqr"
|
||||||
|
"ztnirfzqq"
|
||||||
|
"s"
|
||||||
|
"xx"
|
||||||
|
"iqj\"y\\hqgzflwrdsusasekyrxbp\\ad"
|
||||||
|
"\\xzjhlaiynkioz\"\"bxepzimvgwt"
|
||||||
|
"s\x36rbw"
|
||||||
|
"mniieztwrisvdx"
|
||||||
|
"atyfxioy\x2b\\"
|
||||||
|
"irde\x85\x5cvbah\\jekw\"ia"
|
||||||
|
"bdmftlhkwrprmpat\"prfaocvp"
|
||||||
|
"w\\k"
|
||||||
|
"umbpausy"
|
||||||
|
"zfauhpsangy"
|
||||||
|
"p\"zqyw"
|
||||||
|
"wtztypyqvnnxzvlvipnq\"zu"
|
||||||
|
"deicgwq\\oqvajpbov\\or\"kgplwu"
|
||||||
|
"mbzlfgpi\\\\zqcidjpzqdzxityxa"
|
||||||
|
"lfkxvhma"
|
||||||
|
"\xf2yduqzqr\"\\fak\"p\"n"
|
||||||
|
"mpajacfuxotonpadvng"
|
||||||
|
"anb\\telzvcdu\\a\xf2flfq"
|
||||||
|
"lrs\"ebethwpmuuc\"\x86ygr"
|
||||||
|
"qmvdbhtumzc\"ci"
|
||||||
|
"meet"
|
||||||
|
"yopg\x0fdxdq\"h\\ugsu\xffmolxjv"
|
||||||
|
"uhy"
|
||||||
|
"fzgidrtzycsireghazscvmwcfmw\\t"
|
||||||
|
"cqohkhpgvpru"
|
||||||
|
"bihyigtnvmevx\"xx"
|
||||||
|
"xz"
|
||||||
|
"zofomwotzuxsjk\"q\"mc\"js\"dnmalhxd"
|
||||||
|
"\\ktnddux\\fqvt\"ibnjntjcbn"
|
||||||
|
"ia"
|
||||||
|
"htjadnefwetyp\xd5kbrwfycbyy"
|
||||||
|
"\"\\hkuxqddnao"
|
||||||
|
"meqqsz\x83luecpgaem"
|
||||||
|
"cvks\x87frvxo\"svqivqsdpgwhukmju"
|
||||||
|
"sgmxiai\\o\"riufxwjfigr\xdf"
|
||||||
|
"fgywdfecqufccpcdn"
|
||||||
|
"faghjoq\x28abxnpxj"
|
||||||
|
"zuppgzcfb\"dctvp\"elup\"zxkopx"
|
||||||
|
"xqs\x45xxdqcihbwghmzoa"
|
||||||
|
"anbnlp\\cgcvm\"hc"
|
||||||
|
"xf\"fgrngwzys"
|
||||||
|
"nrxsjduedcy\x24"
|
||||||
|
"\x71sxl\"gj\"sds\"ulcruguz\\t\\ssvjcwhi"
|
||||||
|
"jhj\"msch"
|
||||||
|
"qpovolktfwyiuyicbfeeju\x01"
|
||||||
|
"nkyxmb\"qyqultgt\"nmvzvvnxnb"
|
||||||
|
"ycsrkbstgzqb\"uv\\cisn"
|
||||||
|
"s"
|
||||||
|
"ueptjnn\"\"sh"
|
||||||
|
"lp\"z\"d\"mxtxiy"
|
||||||
|
"yzjtvockdnvbubqabjourf\"k\"uoxwle"
|
||||||
|
"\x82\"wqm\""
|
||||||
|
"\xb5cwtuks\x5fpgh"
|
||||||
|
"wd"
|
||||||
|
"tbvf"
|
||||||
|
"ttbmzdgn"
|
||||||
|
"vfpiyfdejyrlbgcdtwzbnm"
|
||||||
|
"uc"
|
||||||
|
"otdcmhpjagqix"
|
||||||
|
"\\\xb1qso\"s"
|
||||||
|
"scowax"
|
||||||
|
"behpstjdh\xccqlgnqjyz\"eesn"
|
||||||
|
"r\xe1cbnjwzveoomkzlo\\kxlfouhm"
|
||||||
|
"jgrl"
|
||||||
|
"kzqs\\r"
|
||||||
|
"ctscb\x7fthwkdyko\"\x62pkf\"d\xe6knmhurg"
|
||||||
|
"tc\"kw\x3ftt"
|
||||||
|
"bxb\x5ccl"
|
||||||
|
"jyrmfbphsldwpq"
|
||||||
|
"jylpvysl\"\"juducjg"
|
||||||
|
"en\\m\"kxpq\"wpb\\\""
|
||||||
|
"madouht\"bmdwvnyqvpnawiphgac\""
|
||||||
|
"vuxpk\"ltucrw"
|
||||||
|
"aae\x60arr"
|
||||||
|
"ttitnne\"kilkrgssnr\xfdurzh"
|
||||||
|
"oalw"
|
||||||
|
"pc\"\"gktkdykzbdpkwigucqni\"nxiqx"
|
||||||
|
"dbrsaj"
|
||||||
|
"bgzsowyxcbrvhtvekhsh\"qgd"
|
||||||
|
"kudfemvk\"\"\"hkbrbil\"chkqoa"
|
||||||
|
"zjzgj\\ekbhyfzufy"
|
||||||
|
"\\acos\"fqekuxqzxbmkbnn\x1ejzwrm"
|
||||||
|
"elxahvudn\"txtmomotgw"
|
||||||
|
"\x2eoxmwdhelpr\"cgi\xf7pzvb"
|
||||||
|
"eapheklx"
|
||||||
|
"hfvma\"mietvc\"tszbbm\"czex"
|
||||||
|
"h\"iiockj\\\xc1et"
|
||||||
|
"d\"rmjjftm"
|
||||||
|
"qlvhdcbqtyrhlc\\"
|
||||||
|
"yy\"rsucjtulm\"coryri\"eqjlbmk"
|
||||||
|
"tv"
|
||||||
|
"r\"bfuht\\jjgujp\""
|
||||||
|
"kukxvuauamtdosngdjlkauylttaokaj"
|
||||||
|
"srgost\"\"rbkcqtlccu\x65ohjptstrjkzy"
|
||||||
|
"yxwxl\\yjilwwxffrjjuazmzjs"
|
||||||
|
"dxlw\\fkstu\"hjrtiafhyuoh\"sewabne"
|
||||||
|
"\x88sj\"v"
|
||||||
|
"rfzprz\xec\"oxqclu\"krzefp\\q"
|
||||||
|
"cfmhdbjuhrcymgxpylllyvpni"
|
||||||
|
"ucrmjvmimmcq\x88\xd9\"lz"
|
||||||
|
"lujtt\""
|
||||||
|
"gvbqoixn\"pmledpjmo\"flydnwkfxllf"
|
||||||
|
"dvxqlbshhmelsk\x8big\"l"
|
||||||
|
"mx\x54lma\x8bbguxejg"
|
||||||
|
"\x66jdati\xeceieo"
|
||||||
|
"\"iyyupixei\x54ff"
|
||||||
|
"xohzf\"rbxsoksxamiu"
|
||||||
|
"vlhthspeshzbppa\x4drhqnohjop\"\"mfjd"
|
||||||
|
"f\"tvxxla\"vurian\"\"idjq\x3aptm\xc3olep"
|
||||||
|
"gzqz"
|
||||||
|
"kbq\\wogye\\altvi\\hbvmodny"
|
||||||
|
"j\xd8"
|
||||||
|
"ofjozdhkblvndl"
|
||||||
|
"hbitoupimbawimxlxqze"
|
||||||
|
"ypeleimnme"
|
||||||
|
"xfwdrzsc\\oxqamawyizvi\\y"
|
||||||
|
"enoikppx\xa1ixe\"yo\"gumye"
|
||||||
|
"fb"
|
||||||
|
"vzf"
|
||||||
|
"zxidr"
|
||||||
|
"cu\x31beirsywtskq"
|
||||||
|
"lxpjbvqzztafwezd"
|
||||||
|
"\\jyxeuo\x18bv"
|
||||||
|
"b\"vawc\"p\\\\giern\"b"
|
||||||
|
"odizunx\"\"t\\yicdn\"x\"sdiz"
|
||||||
|
"\"\"tebrtsi"
|
||||||
|
"ctyzsxv\xa6pegfkwsi\"tgyltaakytccb"
|
||||||
|
"htxwbofchvmzbppycccliyik\xe5a"
|
||||||
|
"ggsslefamsklezqkrd"
|
||||||
|
"rcep\"fnimwvvdx\"l"
|
||||||
|
"zyrzlqmd\x12egvqs\\llqyie"
|
||||||
|
"\x07gsqyrr\\rcyhyspsvn"
|
||||||
|
"butg\""
|
||||||
|
"gb"
|
||||||
|
"gywkoxf\"jsg\\wtopxvumirqxlwz"
|
||||||
|
"rj\"ir\"wldwveair\x2es\"dhjrdehbqnzl"
|
||||||
|
"ru\"elktnsbxufk\\ejufjfjlevt\\lrzd"
|
||||||
|
"\"widsvok"
|
||||||
|
"oy\"\x81nuesvw"
|
||||||
|
"ay"
|
||||||
|
"syticfac\x1cfjsivwlmy\"pumsqlqqzx"
|
||||||
|
"m"
|
||||||
|
"rjjkfh\x78cf\x2brgceg\"jmdyas\"\\xlv\xb6p"
|
||||||
|
"tmuvo\"\x3ffdqdovjmdmkgpstotojkv\"as"
|
||||||
|
"jd\\ojvynhxllfzzxvbn\"wrpphcvx"
|
||||||
|
"pz"
|
||||||
|
"\"twr"
|
||||||
|
"n\\hdzmxe\"mzjjeadlz"
|
||||||
|
"fb\"rprxuagvahjnri"
|
||||||
|
"rfmexmjjgh\\xrnmyvnatrvfruflaqjnd"
|
||||||
|
"obbbde\"co\"qr\"qpiwjgqahqm\\jjp\""
|
||||||
|
"vpbq\"\"y\"czk\\b\x52ed\"lnzepobp"
|
||||||
|
"syzeajzfarplydipny\"y\"\xe8ad"
|
||||||
|
"mpyodwb"
|
||||||
|
"\x47rakphlqqptd"
|
||||||
|
"wa\"oj\"aiy"
|
||||||
|
"a"
|
||||||
|
"ropozx"
|
||||||
|
"q\x51nbtlwa"
|
||||||
|
"etukvgx\\jqxlkq"
|
||||||
|
"\"tp\"rah\"pg\"s\"bpdtes\\tkasdhqd"
|
||||||
|
"dn\"qqpkikadowssb\xcah\"dzpsf\\ect\"jdh"
|
||||||
|
"pxunovbbrrn\\vullyn\"bno\"\"\"myfxlp\""
|
||||||
|
"qaixyazuryvkmoulhcqaotegfj\\mpzm"
|
||||||
|
"bvfrbicutzbjwn\\oml\"cf\"d\"ezcpv\"j"
|
||||||
|
"rmbrdtneudemigdhelmb"
|
||||||
|
"aq\\aurmbhy"
|
||||||
|
"wujqvzw"
|
||||||
|
"gf\"tssmvm\"gm\"hu\x9a\xb7yjawsa"
|
||||||
|
"hrhqqxow\xe2gsydtdspcfqy\"zw\\ou"
|
||||||
|
"ianwwf\\yko\\tdujhhqdi"
|
||||||
|
"xylz\"zpvpab"
|
||||||
|
"lwuopbeeegp"
|
||||||
|
"aoop\x49jhhcexdmdtun"
|
||||||
|
"\\\\mouqqcsgmz"
|
||||||
|
"tltuvwhveau\x43b\"ymxjlcgiymcynwt"
|
||||||
|
"gsugerumpyuhtjljbhrdyoj"
|
||||||
|
"lnjm\xb8wg\"ajh"
|
||||||
|
"zmspue\"nfttdon\\b\"eww"
|
||||||
|
"\"w\x67jwaq\x7ernmyvs\\rmdsuwydsd\"th"
|
||||||
|
"ogtgvtlmcvgllyv"
|
||||||
|
"z\"fqi\"rvddoehrciyl"
|
||||||
|
"yustxxtot\"muec\"xvfdbzunzvveq"
|
||||||
|
"mqslw"
|
||||||
|
"txqnyvzmibqgjs\xb6xy\x86nfalfyx"
|
||||||
|
"kzhehlmkholov"
|
||||||
|
"plpmywcnirrjutjguosh\\"
|
||||||
|
"pydbnqofv\"dn\\m"
|
||||||
|
"aegqof"
|
||||||
|
"eambmxt\\dxagoogl\\zapfwwlmk"
|
||||||
|
"afbmqitxxqhddlozuxcpjxgh"
|
||||||
|
"vgts"
|
||||||
|
"bfdpqtoxzzhmzcilehnflna"
|
||||||
|
"s\"idpz"
|
||||||
|
"\xcfhgly\"nlmztwybx\"ecezmsxaqw"
|
||||||
|
"aackfgndqcqiy"
|
||||||
|
"\x22unqdlsrvgzfaohoffgxzfpir\"s"
|
||||||
|
"abh\"ydv\"kbpdhrerl"
|
||||||
|
"bdzpg"
|
||||||
|
"ekwgkywtmzp"
|
||||||
|
"wtoodejqmrrgslhvnk\"pi\"ldnogpth"
|
||||||
|
"njro\x68qgbx\xe4af\"\\suan"
|
20
jour08/jour8.pl
Normal file
20
jour08/jour8.pl
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
use strict;
|
||||||
|
use warnings;
|
||||||
|
|
||||||
|
my $file = 'input';
|
||||||
|
my $total = 0;
|
||||||
|
my $tmp;
|
||||||
|
open(FH, '<:encoding(UTF-8)', $file) or die $!;
|
||||||
|
|
||||||
|
print "Traitement de la première partie…\n";
|
||||||
|
|
||||||
|
while (<FH>) {
|
||||||
|
$tmp = eval $_;
|
||||||
|
chomp($_);
|
||||||
|
chomp($tmp);
|
||||||
|
$total = $total + length($_) - length($tmp);
|
||||||
|
}
|
||||||
|
|
||||||
|
close(FH);
|
||||||
|
|
||||||
|
print "Le total est : $total.\n";
|
Loading…
Reference in a new issue