2018 d10 p1 & p2
This commit is contained in:
parent
ebce3e7583
commit
018011dd27
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
build
|
||||
frames
|
||||
.DS_Store
|
369
2018/10/input.txt
Normal file
369
2018/10/input.txt
Normal file
|
@ -0,0 +1,369 @@
|
|||
position=<-30052, -9918> velocity=< 3, 1>
|
||||
position=< 20349, -50260> velocity=<-2, 5>
|
||||
position=< 40505, -40169> velocity=<-4, 4>
|
||||
position=< 30444, 50599> velocity=<-3, -5>
|
||||
position=< 40549, -50259> velocity=<-4, 5>
|
||||
position=< 30454, -30087> velocity=<-3, 3>
|
||||
position=< 50623, 20347> velocity=<-5, -2>
|
||||
position=< 30439, -50262> velocity=<-3, 5>
|
||||
position=< 50623, 40516> velocity=<-5, -4>
|
||||
position=<-40143, -30090> velocity=< 4, 3>
|
||||
position=< 50594, 50602> velocity=<-5, -5>
|
||||
position=< -9884, -30087> velocity=< 1, 3>
|
||||
position=<-19958, -40168> velocity=< 2, 4>
|
||||
position=< 20357, 40513> velocity=<-2, -4>
|
||||
position=<-50240, 30431> velocity=< 5, -3>
|
||||
position=< 20351, 40516> velocity=<-2, -4>
|
||||
position=<-50257, -20005> velocity=< 5, 2>
|
||||
position=<-30073, 10253> velocity=< 3, -1>
|
||||
position=<-50265, 50597> velocity=< 5, -5>
|
||||
position=<-40154, 50601> velocity=< 4, -5>
|
||||
position=<-19987, -40168> velocity=< 2, 4>
|
||||
position=<-19987, -30087> velocity=< 2, 3>
|
||||
position=<-50257, 30425> velocity=< 5, -3>
|
||||
position=< 40558, 30425> velocity=<-4, -3>
|
||||
position=<-19990, 10256> velocity=< 2, -1>
|
||||
position=<-19979, 30425> velocity=< 2, -3>
|
||||
position=<-19976, -50254> velocity=< 2, 5>
|
||||
position=< 30446, -40172> velocity=<-3, 4>
|
||||
position=<-40157, 40515> velocity=< 4, -4>
|
||||
position=<-40143, 20342> velocity=< 4, -2>
|
||||
position=< 30467, -50255> velocity=<-3, 5>
|
||||
position=<-30040, 50606> velocity=< 3, -5>
|
||||
position=<-30037, 50605> velocity=< 3, -5>
|
||||
position=< 20382, -30086> velocity=<-2, 3>
|
||||
position=< 50594, 10262> velocity=<-5, -1>
|
||||
position=< 20342, 40515> velocity=<-2, -4>
|
||||
position=<-19963, -50258> velocity=< 2, 5>
|
||||
position=<-40135, 50599> velocity=< 4, -5>
|
||||
position=< 40558, 10262> velocity=<-4, -1>
|
||||
position=< 20366, -40177> velocity=<-2, 4>
|
||||
position=< -9888, -9919> velocity=< 1, 1>
|
||||
position=<-19998, 40511> velocity=< 2, -4>
|
||||
position=< 50608, 40516> velocity=<-5, -4>
|
||||
position=< 10263, 40520> velocity=<-1, -4>
|
||||
position=< 40521, -40171> velocity=<-4, 4>
|
||||
position=< 30427, -20005> velocity=<-3, 2>
|
||||
position=< 20333, -9916> velocity=<-2, 1>
|
||||
position=< -9909, -9913> velocity=< 1, 1>
|
||||
position=< 50628, 40511> velocity=<-5, -4>
|
||||
position=< 50610, 30430> velocity=<-5, -3>
|
||||
position=<-50248, 30433> velocity=< 5, -3>
|
||||
position=< 50612, 50599> velocity=<-5, -5>
|
||||
position=<-50253, -40170> velocity=< 5, 4>
|
||||
position=< -9880, 40513> velocity=< 1, -4>
|
||||
position=< 20362, 10256> velocity=<-2, -1>
|
||||
position=< -9877, -30087> velocity=< 1, 3>
|
||||
position=<-40182, -30082> velocity=< 4, 3>
|
||||
position=<-50240, -20003> velocity=< 5, 2>
|
||||
position=<-40138, 10255> velocity=< 4, -1>
|
||||
position=<-50221, 20348> velocity=< 5, -2>
|
||||
position=< -9896, -9917> velocity=< 1, 1>
|
||||
position=<-50209, 40516> velocity=< 5, -4>
|
||||
position=< 20352, 50602> velocity=<-2, -5>
|
||||
position=< 50607, -19998> velocity=<-5, 2>
|
||||
position=<-19995, -30087> velocity=< 2, 3>
|
||||
position=<-20003, 40517> velocity=< 2, -4>
|
||||
position=<-50219, 30431> velocity=< 5, -3>
|
||||
position=< 40521, -20001> velocity=<-4, 2>
|
||||
position=<-30036, 20339> velocity=< 3, -2>
|
||||
position=< 50624, 10257> velocity=<-5, -1>
|
||||
position=<-50224, 40517> velocity=< 5, -4>
|
||||
position=< -9907, 20344> velocity=< 1, -2>
|
||||
position=< 40534, -40169> velocity=<-4, 4>
|
||||
position=<-30065, -20003> velocity=< 3, 2>
|
||||
position=< -9922, 20339> velocity=< 1, -2>
|
||||
position=<-30052, 50602> velocity=< 3, -5>
|
||||
position=< 10276, -50263> velocity=<-1, 5>
|
||||
position=< 50594, 10258> velocity=<-5, -1>
|
||||
position=< -9876, 10258> velocity=< 1, -1>
|
||||
position=<-20001, -30091> velocity=< 2, 3>
|
||||
position=<-50253, 50602> velocity=< 5, -5>
|
||||
position=<-40159, -20002> velocity=< 4, 2>
|
||||
position=<-50224, -30091> velocity=< 5, 3>
|
||||
position=<-20001, 40511> velocity=< 2, -4>
|
||||
position=< 20357, -40173> velocity=<-2, 4>
|
||||
position=< 50615, 10255> velocity=<-5, -1>
|
||||
position=< -9877, -50254> velocity=< 1, 5>
|
||||
position=< 30440, 40516> velocity=<-3, -4>
|
||||
position=< 30427, 50605> velocity=<-3, -5>
|
||||
position=< 30419, -30090> velocity=<-3, 3>
|
||||
position=< 20376, -20001> velocity=<-2, 2>
|
||||
position=< 10255, 20344> velocity=<-1, -2>
|
||||
position=< 30419, 20344> velocity=<-3, -2>
|
||||
position=< 50595, -40169> velocity=<-5, 4>
|
||||
position=<-30081, 40513> velocity=< 3, -4>
|
||||
position=<-40143, -30090> velocity=< 4, 3>
|
||||
position=< 40553, 20344> velocity=<-4, -2>
|
||||
position=< 40529, -40170> velocity=<-4, 4>
|
||||
position=< 30427, -50262> velocity=<-3, 5>
|
||||
position=<-50240, -19996> velocity=< 5, 2>
|
||||
position=<-50245, -30090> velocity=< 5, 3>
|
||||
position=< 30448, -30087> velocity=<-3, 3>
|
||||
position=< -9875, -40171> velocity=< 1, 4>
|
||||
position=< -9900, 50599> velocity=< 1, -5>
|
||||
position=<-19954, -40168> velocity=< 2, 4>
|
||||
position=< 40526, 40518> velocity=<-4, -4>
|
||||
position=<-20011, 30428> velocity=< 2, -3>
|
||||
position=< 10283, 10257> velocity=<-1, -1>
|
||||
position=<-40175, 40520> velocity=< 4, -4>
|
||||
position=< 50636, -9915> velocity=<-5, 1>
|
||||
position=< -9904, 10255> velocity=< 1, -1>
|
||||
position=< 30435, 40520> velocity=<-3, -4>
|
||||
position=< 30424, -50254> velocity=<-3, 5>
|
||||
position=< 20393, 50602> velocity=<-2, -5>
|
||||
position=<-50261, -30083> velocity=< 5, 3>
|
||||
position=<-30065, 10254> velocity=< 3, -1>
|
||||
position=<-30052, -40177> velocity=< 3, 4>
|
||||
position=< 50625, -50263> velocity=<-5, 5>
|
||||
position=<-40142, -20001> velocity=< 4, 2>
|
||||
position=< 20338, -19996> velocity=<-2, 2>
|
||||
position=< 50599, 50604> velocity=<-5, -5>
|
||||
position=< 40534, -40176> velocity=<-4, 4>
|
||||
position=<-50235, 20339> velocity=< 5, -2>
|
||||
position=<-30068, -9918> velocity=< 3, 1>
|
||||
position=<-40173, 20339> velocity=< 4, -2>
|
||||
position=<-30054, -9915> velocity=< 3, 1>
|
||||
position=< 10255, 20348> velocity=<-1, -2>
|
||||
position=<-40162, 40520> velocity=< 4, -4>
|
||||
position=<-40158, -9918> velocity=< 4, 1>
|
||||
position=< 40508, 20348> velocity=<-4, -2>
|
||||
position=< 10307, -40177> velocity=<-1, 4>
|
||||
position=< 40545, -50261> velocity=<-4, 5>
|
||||
position=<-30073, -40172> velocity=< 3, 4>
|
||||
position=<-50209, -9918> velocity=< 5, 1>
|
||||
position=< -9913, 40515> velocity=< 1, -4>
|
||||
position=< -9873, -50262> velocity=< 1, 5>
|
||||
position=< -9877, 10261> velocity=< 1, -1>
|
||||
position=<-50245, -30084> velocity=< 5, 3>
|
||||
position=< 30440, 50606> velocity=<-3, -5>
|
||||
position=<-40167, 40514> velocity=< 4, -4>
|
||||
position=<-30076, -50255> velocity=< 3, 5>
|
||||
position=< -9891, -19996> velocity=< 1, 2>
|
||||
position=< -9877, 20340> velocity=< 1, -2>
|
||||
position=< 20365, -9911> velocity=<-2, 1>
|
||||
position=<-50256, 10253> velocity=< 5, -1>
|
||||
position=< -9909, -19996> velocity=< 1, 2>
|
||||
position=< 30479, -9919> velocity=<-3, 1>
|
||||
position=<-30065, 10257> velocity=< 3, -1>
|
||||
position=< 50652, -9919> velocity=<-5, 1>
|
||||
position=< 20338, -9914> velocity=<-2, 1>
|
||||
position=<-30062, 20339> velocity=< 3, -2>
|
||||
position=< 20360, 10259> velocity=<-2, -1>
|
||||
position=< 40537, 50604> velocity=<-4, -5>
|
||||
position=<-50221, 50603> velocity=< 5, -5>
|
||||
position=< 40505, -30090> velocity=<-4, 3>
|
||||
position=< -9890, 20339> velocity=< 1, -2>
|
||||
position=<-30097, -50261> velocity=< 3, 5>
|
||||
position=<-19995, -30086> velocity=< 2, 3>
|
||||
position=< 20341, 10255> velocity=<-2, -1>
|
||||
position=<-19977, -20005> velocity=< 2, 2>
|
||||
position=<-30053, -50259> velocity=< 3, 5>
|
||||
position=<-30065, -40173> velocity=< 3, 4>
|
||||
position=< 50617, 50601> velocity=<-5, -5>
|
||||
position=< 50631, -40171> velocity=<-5, 4>
|
||||
position=< -9925, -9915> velocity=< 1, 1>
|
||||
position=<-40150, 10262> velocity=< 4, -1>
|
||||
position=< 40526, 40516> velocity=<-4, -4>
|
||||
position=<-30055, -9915> velocity=< 3, 1>
|
||||
position=<-50264, 30432> velocity=< 5, -3>
|
||||
position=< 10287, -20003> velocity=<-1, 2>
|
||||
position=< 40534, 20348> velocity=<-4, -2>
|
||||
position=<-19960, -19998> velocity=< 2, 2>
|
||||
position=< 30464, -40173> velocity=<-3, 4>
|
||||
position=<-50220, -50259> velocity=< 5, 5>
|
||||
position=< 40537, -9919> velocity=<-4, 1>
|
||||
position=< 20357, 20346> velocity=<-2, -2>
|
||||
position=< 40510, 50598> velocity=<-4, -5>
|
||||
position=< 50607, -40172> velocity=<-5, 4>
|
||||
position=< 40537, -19996> velocity=<-4, 2>
|
||||
position=< 50636, 10261> velocity=<-5, -1>
|
||||
position=< -9896, 30425> velocity=< 1, -3>
|
||||
position=< -9917, 10255> velocity=< 1, -1>
|
||||
position=<-50248, 50606> velocity=< 5, -5>
|
||||
position=<-50237, -9919> velocity=< 5, 1>
|
||||
position=<-30073, -20005> velocity=< 3, 2>
|
||||
position=< 40529, 50606> velocity=<-4, -5>
|
||||
position=< 50650, -30082> velocity=<-5, 3>
|
||||
position=<-30093, 10258> velocity=< 3, -1>
|
||||
position=< 30456, -40177> velocity=<-3, 4>
|
||||
position=< 40521, -40170> velocity=<-4, 4>
|
||||
position=< 30468, 10257> velocity=<-3, -1>
|
||||
position=< 10276, -50261> velocity=<-1, 5>
|
||||
position=< 30421, -9919> velocity=<-3, 1>
|
||||
position=< -9877, 20346> velocity=< 1, -2>
|
||||
position=< 10258, -40177> velocity=<-1, 4>
|
||||
position=<-50264, 40516> velocity=< 5, -4>
|
||||
position=< -9883, -40173> velocity=< 1, 4>
|
||||
position=<-40127, -50256> velocity=< 4, 5>
|
||||
position=< -9885, 20343> velocity=< 1, -2>
|
||||
position=< 20382, -9914> velocity=<-2, 1>
|
||||
position=<-30076, -19998> velocity=< 3, 2>
|
||||
position=<-30073, 50601> velocity=< 3, -5>
|
||||
position=< -9893, 20345> velocity=< 1, -2>
|
||||
position=< -9904, 10258> velocity=< 1, -1>
|
||||
position=< 20393, -40171> velocity=<-2, 4>
|
||||
position=<-19984, 50603> velocity=< 2, -5>
|
||||
position=< -9889, 20343> velocity=< 1, -2>
|
||||
position=<-19982, 40512> velocity=< 2, -4>
|
||||
position=<-20009, -40168> velocity=< 2, 4>
|
||||
position=<-30069, -19997> velocity=< 3, 2>
|
||||
position=<-19987, -30085> velocity=< 2, 3>
|
||||
position=< 10252, 10259> velocity=<-1, -1>
|
||||
position=< -9917, 30428> velocity=< 1, -3>
|
||||
position=< 10287, 20342> velocity=<-1, -2>
|
||||
position=<-50245, -20000> velocity=< 5, 2>
|
||||
position=<-40165, -40177> velocity=< 4, 4>
|
||||
position=<-40135, -50262> velocity=< 4, 5>
|
||||
position=<-19984, -30085> velocity=< 2, 3>
|
||||
position=< 30428, -30091> velocity=<-3, 3>
|
||||
position=<-30089, 30431> velocity=< 3, -3>
|
||||
position=< 30467, 20344> velocity=<-3, -2>
|
||||
position=<-19987, 40520> velocity=< 2, -4>
|
||||
position=<-30037, 40512> velocity=< 3, -4>
|
||||
position=< 40557, -50255> velocity=<-4, 5>
|
||||
position=< 40550, 10254> velocity=<-4, -1>
|
||||
position=<-40159, 10258> velocity=< 4, -1>
|
||||
position=< 40539, 20343> velocity=<-4, -2>
|
||||
position=< 30440, 50605> velocity=<-3, -5>
|
||||
position=< 30453, 30434> velocity=<-3, -3>
|
||||
position=< 40550, -30088> velocity=<-4, 3>
|
||||
position=<-40151, 10256> velocity=< 4, -1>
|
||||
position=< 10276, 40514> velocity=<-1, -4>
|
||||
position=< 10280, 20348> velocity=<-1, -2>
|
||||
position=<-20009, -30091> velocity=< 2, 3>
|
||||
position=< 30467, 50601> velocity=<-3, -5>
|
||||
position=< 30439, -20000> velocity=<-3, 2>
|
||||
position=< 10276, -20005> velocity=<-1, 2>
|
||||
position=< 40562, -30082> velocity=<-4, 3>
|
||||
position=<-19986, -20004> velocity=< 2, 2>
|
||||
position=< 20333, 10259> velocity=<-2, -1>
|
||||
position=<-50224, -9911> velocity=< 5, 1>
|
||||
position=< -9872, -9919> velocity=< 1, 1>
|
||||
position=< 10295, -30085> velocity=<-1, 3>
|
||||
position=<-19990, 30429> velocity=< 2, -3>
|
||||
position=< 10295, -30084> velocity=<-1, 3>
|
||||
position=< 30429, 40515> velocity=<-3, -4>
|
||||
position=< 20365, -30086> velocity=<-2, 3>
|
||||
position=< 50618, 10258> velocity=<-5, -1>
|
||||
position=<-20010, -9910> velocity=< 2, 1>
|
||||
position=< 20373, -40169> velocity=<-2, 4>
|
||||
position=< 10307, -50261> velocity=<-1, 5>
|
||||
position=< 20381, 10256> velocity=<-2, -1>
|
||||
position=< 40513, 40517> velocity=<-4, -4>
|
||||
position=< -9865, 20345> velocity=< 1, -2>
|
||||
position=< -9909, 20347> velocity=< 1, -2>
|
||||
position=< 10284, 20348> velocity=<-1, -2>
|
||||
position=<-30073, 20342> velocity=< 3, -2>
|
||||
position=<-30078, 30425> velocity=< 3, -3>
|
||||
position=< -9899, 20342> velocity=< 1, -2>
|
||||
position=< 20333, 30429> velocity=<-2, -3>
|
||||
position=< 10306, 10253> velocity=<-1, -1>
|
||||
position=<-50261, 10260> velocity=< 5, -1>
|
||||
position=< 30459, -9912> velocity=<-3, 1>
|
||||
position=< 10292, -40176> velocity=<-1, 4>
|
||||
position=< 20389, -30083> velocity=<-2, 3>
|
||||
position=<-40166, 20340> velocity=< 4, -2>
|
||||
position=< -9901, 20345> velocity=< 1, -2>
|
||||
position=< 40557, -20004> velocity=<-4, 2>
|
||||
position=<-40158, -30090> velocity=< 4, 3>
|
||||
position=<-50209, 10255> velocity=< 5, -1>
|
||||
position=<-50265, -40172> velocity=< 5, 4>
|
||||
position=<-50245, 50605> velocity=< 5, -5>
|
||||
position=< 30443, -40177> velocity=<-3, 4>
|
||||
position=< -9916, 20339> velocity=< 1, -2>
|
||||
position=< 50640, 50601> velocity=<-5, -5>
|
||||
position=<-19971, -20005> velocity=< 2, 2>
|
||||
position=< 40522, -9914> velocity=<-4, 1>
|
||||
position=< 50607, -19999> velocity=<-5, 2>
|
||||
position=<-50243, 40515> velocity=< 5, -4>
|
||||
position=<-50240, 10260> velocity=< 5, -1>
|
||||
position=< 40561, -19998> velocity=<-4, 2>
|
||||
position=<-50211, -50254> velocity=< 5, 5>
|
||||
position=<-40143, 30431> velocity=< 4, -3>
|
||||
position=< 30430, -50259> velocity=<-3, 5>
|
||||
position=< 30479, -20002> velocity=<-3, 2>
|
||||
position=<-30092, 20344> velocity=< 3, -2>
|
||||
position=<-30092, -40168> velocity=< 3, 4>
|
||||
position=< 50601, 10257> velocity=<-5, -1>
|
||||
position=< 20373, 40515> velocity=<-2, -4>
|
||||
position=< 30479, -19997> velocity=<-3, 2>
|
||||
position=<-40175, 50605> velocity=< 4, -5>
|
||||
position=< -9880, -40173> velocity=< 1, 4>
|
||||
position=< 20349, -50255> velocity=<-2, 5>
|
||||
position=< 20362, -9914> velocity=<-2, 1>
|
||||
position=<-30089, 50601> velocity=< 3, -5>
|
||||
position=< 30467, 10253> velocity=<-3, -1>
|
||||
position=< 40565, 30429> velocity=<-4, -3>
|
||||
position=<-40142, 10257> velocity=< 4, -1>
|
||||
position=< 50609, -50263> velocity=<-5, 5>
|
||||
position=< -9881, -40173> velocity=< 1, 4>
|
||||
position=< 50639, 40515> velocity=<-5, -4>
|
||||
position=<-50269, -40170> velocity=< 5, 4>
|
||||
position=< 40553, -9910> velocity=<-4, 1>
|
||||
position=< 30455, 30434> velocity=<-3, -3>
|
||||
position=< 20362, 10258> velocity=<-2, -1>
|
||||
position=< 40505, 50603> velocity=<-4, -5>
|
||||
position=<-19990, 10260> velocity=< 2, -1>
|
||||
position=< 30447, -19998> velocity=<-3, 2>
|
||||
position=<-40150, -30087> velocity=< 4, 3>
|
||||
position=< -9907, -40172> velocity=< 1, 4>
|
||||
position=<-30044, 20348> velocity=< 3, -2>
|
||||
position=<-40178, -9913> velocity=< 4, 1>
|
||||
position=<-50261, 30428> velocity=< 5, -3>
|
||||
position=<-40151, 20348> velocity=< 4, -2>
|
||||
position=<-50224, 30432> velocity=< 5, -3>
|
||||
position=< 50652, -50263> velocity=<-5, 5>
|
||||
position=<-19952, 50606> velocity=< 2, -5>
|
||||
position=< 30431, 40511> velocity=<-3, -4>
|
||||
position=< 30459, -30088> velocity=<-3, 3>
|
||||
position=< 50651, 20347> velocity=<-5, -2>
|
||||
position=< 10292, -30082> velocity=<-1, 3>
|
||||
position=< 20366, 10257> velocity=<-2, -1>
|
||||
position=<-19987, -9913> velocity=< 2, 1>
|
||||
position=< -9865, -40170> velocity=< 1, 4>
|
||||
position=< -9889, 50597> velocity=< 1, -5>
|
||||
position=<-30065, -50262> velocity=< 3, 5>
|
||||
position=< -9921, 20347> velocity=< 1, -2>
|
||||
position=<-30084, 10253> velocity=< 3, -1>
|
||||
position=< 10248, -20005> velocity=<-1, 2>
|
||||
position=< 20345, -9915> velocity=<-2, 1>
|
||||
position=< -9882, -9915> velocity=< 1, 1>
|
||||
position=<-30065, 50602> velocity=< 3, -5>
|
||||
position=< 40565, 50599> velocity=<-4, -5>
|
||||
position=< 20349, -50261> velocity=<-2, 5>
|
||||
position=<-19960, -19998> velocity=< 2, 2>
|
||||
position=< 10255, -50258> velocity=<-1, 5>
|
||||
position=< -9901, -50255> velocity=< 1, 5>
|
||||
position=<-50219, -9916> velocity=< 5, 1>
|
||||
position=< 40524, -30086> velocity=<-4, 3>
|
||||
position=< 40550, 50600> velocity=<-4, -5>
|
||||
position=<-50233, -30091> velocity=< 5, 3>
|
||||
position=< 30440, -50257> velocity=<-3, 5>
|
||||
position=< -9920, 50605> velocity=< 1, -5>
|
||||
position=< 40507, 20339> velocity=<-4, -2>
|
||||
position=< 10264, 30426> velocity=<-1, -3>
|
||||
position=< 40556, 20341> velocity=<-4, -2>
|
||||
position=< -9875, -9913> velocity=< 1, 1>
|
||||
position=<-30068, -50254> velocity=< 3, 5>
|
||||
position=< -9889, 30425> velocity=< 1, -3>
|
||||
position=<-20011, -40172> velocity=< 2, 4>
|
||||
position=<-50269, 10259> velocity=< 5, -1>
|
||||
position=<-40132, 30432> velocity=< 4, -3>
|
||||
position=< 40553, -9913> velocity=<-4, 1>
|
||||
position=<-30073, 10256> velocity=< 3, -1>
|
||||
position=<-30092, 20340> velocity=< 3, -2>
|
||||
position=< 40542, 50606> velocity=<-4, -5>
|
||||
position=<-50224, 20347> velocity=< 5, -2>
|
||||
position=<-40143, 50606> velocity=< 4, -5>
|
||||
position=<-19971, -20000> velocity=< 2, 2>
|
||||
position=< 40553, 20340> velocity=<-4, -2>
|
||||
position=<-30081, -20001> velocity=< 3, 2>
|
||||
position=<-30037, -40172> velocity=< 3, 4>
|
||||
position=< -9865, 30428> velocity=< 1, -3>
|
||||
position=< 30479, 20340> velocity=<-3, -2>
|
||||
position=< 30429, 20343> velocity=<-3, -2>
|
||||
position=<-19971, -40172> velocity=< 2, 4>
|
||||
position=< 30431, 50601> velocity=<-3, -5>
|
||||
position=<-19982, 10256> velocity=< 2, -1>
|
||||
position=< 20344, 20343> velocity=<-2, -2>
|
12
2018/10/java/README.md
Normal file
12
2018/10/java/README.md
Normal file
|
@ -0,0 +1,12 @@
|
|||
## How to Play!
|
||||
Download [processing](https://processing.org/download/) (for free) and run this script inside of it.
|
||||
|
||||
Zoom out a sufficient amount.
|
||||
Slow down and speed up time until you see the points align.
|
||||
#### Controls:
|
||||
* `+` | `-` - zoom in / out.
|
||||
* `>` | `<` - speed up / down.
|
||||
* `shift` + `>` | `<` - speed up / down (more).
|
||||
* `/` - set speed to `0`
|
||||
* ` ` (spacebar) takes a snapshot and saves it in `./frames/`.
|
||||
* arrow keys to move.
|
86
2018/10/java/java.pde
Normal file
86
2018/10/java/java.pde
Normal file
|
@ -0,0 +1,86 @@
|
|||
float[][] points = new float[370][4];
|
||||
float[] min = new float[] {0, 0},
|
||||
max = new float[] {0, 0},
|
||||
cen = new float[] {0, 0},
|
||||
size = new float[] {0, 0},
|
||||
tr = new float[] {0, 0};
|
||||
float zoom = 10;
|
||||
float speed = 1;
|
||||
float time = 0;
|
||||
|
||||
void setup(){
|
||||
String[] lines = loadStrings("../input.txt");
|
||||
for (int l = 0; l < lines.length; l++) {
|
||||
String[][] matches = matchAll(lines[l], "< *(-?\\d+), *(-?\\d+)>");
|
||||
if (matches.length == 2){
|
||||
points[l] = new float[]{
|
||||
Integer.parseInt(matches[0][1]),
|
||||
Integer.parseInt(matches[0][2]),
|
||||
Integer.parseInt(matches[1][1]),
|
||||
Integer.parseInt(matches[1][2])
|
||||
};
|
||||
for (int d = 0; d < 2; d++) {
|
||||
min[d] = min(min[d], points[l][d]);
|
||||
max[d] = max(max[d], points[l][d]);
|
||||
}
|
||||
}
|
||||
}
|
||||
size(500, 500);
|
||||
frameRate(30);
|
||||
background(200);
|
||||
}
|
||||
|
||||
void draw() {
|
||||
background(200);
|
||||
|
||||
// centering the image
|
||||
size = new float[]{
|
||||
(max[0]-cen[0])-(min[0]-cen[0]),
|
||||
(max[1]-cen[1])-(min[1]-cen[1])
|
||||
};
|
||||
cen = new float[]{(max[0]+min[0])/2, (max[1]+min[1])/2};
|
||||
|
||||
for (int i = 0; i < points.length; i++) {
|
||||
// drawing the image
|
||||
rect(width/2 + (points[i][0]-cen[0]+tr[0]) * zoom, height/2 + (points[i][1]-cen[1]+tr[1]) * zoom, zoom, zoom);
|
||||
// move the points
|
||||
points[i][0] += points[i][2]*((speed * speed * speed)/frameRate);
|
||||
points[i][1] += points[i][3]*((speed * speed * speed)/frameRate);
|
||||
// centering the image
|
||||
max = new float[]{max(max[0], points[i][0]), max(max[1], points[i][1])};
|
||||
min = new float[]{min(min[0], points[i][0]), min(min[1], points[i][1])};
|
||||
}
|
||||
time += ((speed * speed * speed)/frameRate);
|
||||
text("time: "+time,width/2,10);
|
||||
point(width/2, height/2);
|
||||
if (keyPressed){
|
||||
if (key == ' '){
|
||||
save("frames/"+frameCount+".jpg");
|
||||
} else if (key == '<') {
|
||||
speed -= 0.1;
|
||||
} else if (key == '>') {
|
||||
speed += 0.1;
|
||||
} else if (key == ',') {
|
||||
speed -= 0.01;
|
||||
} else if (key == '.') {
|
||||
speed += 0.01;
|
||||
} else if (key == '/') {
|
||||
speed = 0;
|
||||
} else if (key == '-') {
|
||||
zoom /= 1.2;
|
||||
} else if (key == '=') {
|
||||
zoom *= 1.2;
|
||||
} else if (keyCode == 37) {
|
||||
tr[0] += sqrt(zoom)/3;
|
||||
} else if (keyCode == 39) {
|
||||
tr[0] -= sqrt(zoom)/3;
|
||||
} else if (keyCode == 38) {
|
||||
tr[1] += sqrt(zoom)/3;
|
||||
} else if (keyCode == 40) {
|
||||
tr[1] -= sqrt(zoom)/3;
|
||||
}
|
||||
if (zoom <= 0) {
|
||||
zoom = abs(zoom) + 1;
|
||||
}
|
||||
}
|
||||
}
|
31
2018/10/test.txt
Normal file
31
2018/10/test.txt
Normal file
|
@ -0,0 +1,31 @@
|
|||
position=< 9, 1> velocity=< 0, 2>
|
||||
position=< 7, 0> velocity=<-1, 0>
|
||||
position=< 3, -2> velocity=<-1, 1>
|
||||
position=< 6, 10> velocity=<-2, -1>
|
||||
position=< 2, -4> velocity=< 2, 2>
|
||||
position=<-6, 10> velocity=< 2, -2>
|
||||
position=< 1, 8> velocity=< 1, -1>
|
||||
position=< 1, 7> velocity=< 1, 0>
|
||||
position=<-3, 11> velocity=< 1, -2>
|
||||
position=< 7, 6> velocity=<-1, -1>
|
||||
position=<-2, 3> velocity=< 1, 0>
|
||||
position=<-4, 3> velocity=< 2, 0>
|
||||
position=<10, -3> velocity=<-1, 1>
|
||||
position=< 5, 11> velocity=< 1, -2>
|
||||
position=< 4, 7> velocity=< 0, -1>
|
||||
position=< 8, -2> velocity=< 0, 1>
|
||||
position=<15, 0> velocity=<-2, 0>
|
||||
position=< 1, 6> velocity=< 1, 0>
|
||||
position=< 8, 9> velocity=< 0, -1>
|
||||
position=< 3, 3> velocity=<-1, 1>
|
||||
position=< 0, 5> velocity=< 0, -1>
|
||||
position=<-2, 2> velocity=< 2, 0>
|
||||
position=< 5, -2> velocity=< 1, 2>
|
||||
position=< 1, 4> velocity=< 2, 1>
|
||||
position=<-2, 7> velocity=< 2, -2>
|
||||
position=< 3, 6> velocity=<-1, -1>
|
||||
position=< 5, 0> velocity=< 1, 0>
|
||||
position=<-6, 0> velocity=< 2, 0>
|
||||
position=< 5, 9> velocity=< 1, -2>
|
||||
position=<14, 7> velocity=<-2, 0>
|
||||
position=<-3, 6> velocity=< 2, -1>
|
|
@ -8,21 +8,24 @@
|
|||
1. [js :star: :star:](https://adventofcode.com/2015/day/7 "see puzzle")
|
||||
1. [js :star: :star:](https://adventofcode.com/2015/day/8 "see puzzle")
|
||||
1. [js :star: :star:](https://adventofcode.com/2015/day/9 "see puzzle")
|
||||
1. [java :star: :star:](https://adventofcode.com/2015/day/9 "see puzzle")
|
||||
|
||||
# Languages Used
|
||||
### Python
|
||||
1. [-](https://adventofcode.com/2018/day/1 "see puzzle")
|
||||
1. [:star: :star:](https://adventofcode.com/2018/day/2 "see puzzle")
|
||||
1. [-](https://adventofcode.com/2018/day/3 "see puzzle")
|
||||
1. ...
|
||||
1. -
|
||||
1. :star: :star:
|
||||
1. -
|
||||
|
||||
### Node JS
|
||||
1. [:star: :star:](https://adventofcode.com/2018/day/1 "see puzzle")
|
||||
1. [-](https://adventofcode.com/2018/day/2 "see puzzle")
|
||||
1. [:star: :star:](https://adventofcode.com/2018/day/3 "see puzzle")
|
||||
1. [:star: :star:](https://adventofcode.com/2018/day/4 "see puzzle")
|
||||
1. [:star: :star:](https://adventofcode.com/2018/day/5 "see puzzle")
|
||||
1. [:star: :star:](https://adventofcode.com/2018/day/6 "see puzzle")
|
||||
1. [:star: :star:](https://adventofcode.com/2018/day/7 "see puzzle")
|
||||
1. [:star: :star:](https://adventofcode.com/2018/day/8 "see puzzle")
|
||||
1. [:star: :star:](https://adventofcode.com/2018/day/9 "see puzzle")
|
||||
1. :star: :star:
|
||||
1. -
|
||||
1. :star: :star:
|
||||
1. :star: :star:
|
||||
1. :star: :star:
|
||||
1. :star: :star:
|
||||
1. :star: :star:
|
||||
1. :star: :star:
|
||||
10. :star: :star:
|
||||
|
||||
### Java (Processing)
|
||||
10. :star: :star:
|
37
README.md
37
README.md
|
@ -10,24 +10,29 @@ if (advent) {
|
|||
|
||||
# Completed Challenges
|
||||
#### [2015](https://adventofcode.com/2015 "2015 puzzle calendar")
|
||||
1. [py :star: :star:](https://adventofcode.com/2015/day/1 "see puzzle")
|
||||
1. [js :star: :star:](https://adventofcode.com/2015/day/2 "see puzzle")
|
||||
1. [py :star: :star:](https://adventofcode.com/2015/day/3 "see puzzle")
|
||||
1. [py :star: :star:](https://adventofcode.com/2015/day/4 "see puzzle")
|
||||
1. [js :star: :star:](https://adventofcode.com/2015/day/5 "see puzzle")
|
||||
1. [js :star:](https://adventofcode.com/2015/day/6 "see puzzle")
|
||||
1. [:star: :star:](https://adventofcode.com/2015/day/1 "see puzzle")
|
||||
1. [:star: :star:](https://adventofcode.com/2015/day/2 "see puzzle")
|
||||
1. [:star: :star:](https://adventofcode.com/2015/day/3 "see puzzle")
|
||||
1. [:star: :star:](https://adventofcode.com/2015/day/4 "see puzzle")
|
||||
1. [:star: :star:](https://adventofcode.com/2015/day/5 "see puzzle")
|
||||
1. [:star:](https://adventofcode.com/2015/day/6 "see puzzle")
|
||||
|
||||
#### [2018](https://adventofcode.com/2018 "2018 puzzle calendar")
|
||||
1. [js :star: :star:](https://adventofcode.com/2015/day/1 "see puzzle")
|
||||
1. [py :star: :star:](https://adventofcode.com/2015/day/2 "see puzzle")
|
||||
1. [js :star: :star:](https://adventofcode.com/2015/day/3 "see puzzle")
|
||||
1. [js :star: :star:](https://adventofcode.com/2015/day/4 "see puzzle")
|
||||
1. [js :star: :star:](https://adventofcode.com/2015/day/5 "see puzzle")
|
||||
1. [js :star: :star:](https://adventofcode.com/2015/day/6 "see puzzle")
|
||||
1. [js :star: :star:](https://adventofcode.com/2015/day/7 "see puzzle")
|
||||
1. [js :star: :star:](https://adventofcode.com/2015/day/8 "see puzzle")
|
||||
1. [js :star: :star:](https://adventofcode.com/2015/day/9 "see puzzle")
|
||||
1. [:star: :star:](https://adventofcode.com/2015/day/1 "see puzzle")
|
||||
1. [:star: :star:](https://adventofcode.com/2015/day/2 "see puzzle")
|
||||
1. [:star: :star:](https://adventofcode.com/2015/day/3 "see puzzle")
|
||||
1. [:star: :star:](https://adventofcode.com/2015/day/4 "see puzzle")
|
||||
1. [:star: :star:](https://adventofcode.com/2015/day/5 "see puzzle")
|
||||
1. [:star: :star:](https://adventofcode.com/2015/day/6 "see puzzle")
|
||||
1. [:star: :star:](https://adventofcode.com/2015/day/7 "see puzzle")
|
||||
1. [:star: :star:](https://adventofcode.com/2015/day/8 "see puzzle")
|
||||
1. [:star: :star:](https://adventofcode.com/2015/day/9 "see puzzle")
|
||||
1. [:star: :star:](https://adventofcode.com/2015/day/9 "see puzzle")
|
||||
|
||||
## Languages Used
|
||||
* Python
|
||||
* Node JS
|
||||
- .py
|
||||
* Node JS
|
||||
- .js
|
||||
* Java (Processing)
|
||||
- .pde
|
Loading…
Reference in a new issue