April 29, 2024, 7:56 a.m. |
+3 |
Experience for voted solution LurkAndLoiter: 3 on operand &-CDG.Axel |
April 5, 2024, 3:24 p.m. |
+4 |
Experience for voted solution StefanPochmann: 2 on One liner-CDG.Axel |
April 5, 2024, 11:16 a.m. |
+1 |
Experience for voted solution eugene128736871: 1 on One liner (long line)-CDG.Axel |
April 2, 2024, 6:52 p.m. |
+2 |
Experience for voted solution nahandove: 2 on Dict comprehension-CDG.Axel |
March 23, 2024, 3:56 p.m. |
+5 |
Experience for appreciated comment dan_rue: 1 on CDG.Axel: Really cool idea! But you can replace the matrix transpose with rotation to shorten the solution: fo... |
March 23, 2024, 3:56 p.m. |
+1 |
Experience for voted comment dan_rue: 1 on CDG.Axel: Really cool idea! But you can replace the matrix transpose with rotation to shorten the solution: fo... |
March 23, 2024, 3:52 p.m. |
+1 |
Experience for voted comment dan_rue: 1 on CDG.Axel: It's not shorter, but you might find this useful. nb.append(number % base) number = number // base -... |
March 23, 2024, 3:52 p.m. |
+5 |
Experience for appreciated comment dan_rue: 1 on CDG.Axel: It's not shorter, but you might find this useful. nb.append(number % base) number = number // base -... |
March 23, 2024, 3:49 p.m. |
+1 |
Experience for voted comment dan_rue: 1 on CDG.Axel: Wow, it seems a bit cumbersome :) By the way, I have 10- and 8-lines solutions for this task. They c... |
March 23, 2024, 3:49 p.m. |
+5 |
Experience for appreciated comment dan_rue: 1 on CDG.Axel: Wow, it seems a bit cumbersome :) By the way, I have 10- and 8-lines solutions for this task. They c... |
March 23, 2024, 3:48 p.m. |
+1 |
Experience for voted comment dan_rue: 1 on CDG.Axel: Here's a good example of 'how not to write code' :) |
March 23, 2024, 3:43 p.m. |
+1 |
Experience for voted comment dan_rue: 1 on CDG.Axel: Why are you ignore tuple sorting? It can help to avoid key sorting. |
March 23, 2024, 3:43 p.m. |
+5 |
Experience for appreciated comment dan_rue: 1 on CDG.Axel: Why are you ignore tuple sorting? It can help to avoid key sorting. |
March 23, 2024, 3:36 p.m. |
+5 |
Experience for appreciated comment dan_rue: 1 on CDG.Axel: Great! However, there are some optimizations that could be made. time[0:2] --> time[:2] time[3:5] --... |
March 23, 2024, 3:36 p.m. |
+1 |
Experience for voted comment dan_rue: 1 on CDG.Axel: Great! However, there are some optimizations that could be made. time[0:2] --> time[:2] time[3:5] --... |
March 13, 2024, 9:47 p.m. |
+5 |
Experience for voted solution dan_rue: 5 on Make it shorter (commented)!-CDG.Axel |
Feb. 20, 2024, 8 a.m. |
+6 |
Experience for voted solution tamagoyaki: 5 on 8 lines proc-CDG.Axel |
Feb. 7, 2024, 10:27 a.m. |
+5 |
Experience for voted solution bsquare: 4 on 10 lines, commented-CDG.Axel |
Feb. 7, 2024, 9:54 a.m. |
+24 |
Experience for voted solution tamagoyaki: 5 on 7 lines proc-CDG.Axel |
Feb. 1, 2024, 4:15 p.m. |
+5 |
Experience for voted solution o.kovalev: 5 on 10 lines proc, simple-CDG.Axel |
Feb. 1, 2024, 9:29 a.m. |
+2 |
Experience for voted solution Polundra: 1 on math is not programming (4 lines)!-CDG.Axel |
Jan. 22, 2024, 10:26 p.m. |
+2 |
Experience for voted solution waffell: 1 on 4 lines - redundant calcs-CDG.Axel |
Jan. 15, 2024, 8:25 a.m. |
+3 |
Experience for voted solution Pactp: 3 on Pythonic-CDG.Axel |
Jan. 15, 2024, 8:19 a.m. |
+3 |
Experience for voted solution Pactp: 3 on sum with for in one line-CDG.Axel |
Jan. 15, 2024, 8:15 a.m. |
+5 |
Experience for voted solution Pactp: 3 on 78 symbols proc-CDG.Axel |
Jan. 10, 2024, 7:08 a.m. |
+7 |
Experience for voted solution tamagoyaki: 5 on 8 lines proc-CDG.Axel |
Dec. 29, 2023, 10:51 a.m. |
+5 |
Experience for voted solution Nocturne13: 3 on math.gcd-CDG.Axel |
Dec. 8, 2023, 12:34 p.m. |
+1 |
Experience for voted solution Polundra: 1 on some cheat-CDG.Axel |
Dec. 7, 2023, 9:50 a.m. |
+18 |
Experience for voted solution U.V: 2 on one line recursive with @lru_cache -CDG.Axel |
Dec. 5, 2023, 5:45 p.m. |
+33 |
Experience for voted solution Evgeny_Andronov: 5 on 5 lines brute force-CDG.Axel |
Dec. 4, 2023, 8:15 a.m. |
+17 |
Experience for voted solution o.kovalev: 3 on one line 51 symbols-CDG.Axel |
Nov. 15, 2023, 12:20 p.m. |
+10 |
Experience for voted solution Pactp: 3 on Dumb solution-CDG.Axel |
Nov. 8, 2023, 11:44 a.m. |
+15 |
Experience for voted solution Nocturne13: 3 on 7 lines proc (commented)-CDG.Axel |
Nov. 6, 2023, 1:23 a.m. |
+1 |
Experience for voted solution koharuaoki: 1 on 6 solutions, different speed (fastest with map)-CDG.Axel |
Nov. 5, 2023, 9:30 p.m. |
+5 |
Experience for voted solution Pactp: 3 on timedelta & weekday-CDG.Axel |
Nov. 5, 2023, 6:23 p.m. |
+3 |
Experience for voted solution Pactp: 3 on Make it shorter (commented)!-CDG.Axel |
Nov. 3, 2023, 12:50 a.m. |
+4 |
Experience for voted solution lorddblade: 4 on Dict comprehension-CDG.Axel |
Nov. 2, 2023, 3:12 p.m. |
+5 |
Experience for voted solution jullios1104: 5 on bit_count-CDG.Axel |
Nov. 2, 2023, 2:58 p.m. |
+1 |
Experience for voted solution thz: 1 on Dict comprehension-CDG.Axel |
Oct. 23, 2023, 1:57 p.m. |
+7 |
Experience for voted solution gleb10101010101: 5 on nExT stage 4-CDG.Axel |
Oct. 12, 2023, 5:27 a.m. |
+24 |
Experience for voted solution flatline: 5 on 9 lines proc-CDG.Axel |
Oct. 4, 2023, 1:34 p.m. |
+4 |
Experience for voted solution yufengyuyun: 4 on 5 lines-CDG.Axel |
Oct. 4, 2023, 11:18 a.m. |
+5 |
Experience for voted solution Patrick_vG: 4 on 10 lines proc, simple-CDG.Axel |
Sept. 28, 2023, 7:02 p.m. |
+3 |
Experience for voted solution Pactp: 3 on One liner - sorted tuple-CDG.Axel |
Sept. 11, 2023, 6:32 a.m. |
+1 |
Experience for voted solution olena.rudenko: 1 on 6 lines, commented-CDG.Axel |
Aug. 30, 2023, 7:11 p.m. |
+5 |
Experience for voted solution H0r4c3: 5 on 7 lines-CDG.Axel |
Aug. 30, 2023, 6:04 p.m. |
-2 |
Experience for voted solution smalcom: -1 on 5 lines, commented-CDG.Axel |
Aug. 28, 2023, 12:03 p.m. |
+21 |
Experience for voted solution mildm: 4 on Non-recursive 6 lines-CDG.Axel |
Aug. 26, 2023, 2:49 p.m. |
+2 |
Experience for voted solution Vladislav_Vostrikov: 1 on 10 lines, commented-CDG.Axel |
Aug. 26, 2023, 11:13 a.m. |
+5 |
Experience for voted solution smalcom: 2 on For test-CDG.Axel |
Aug. 6, 2023, 9:34 a.m. |
+2 |
Experience for voted solution mennadiego: 2 on 2 + 1 long lines-CDG.Axel |
Aug. 5, 2023, 11:59 p.m. |
+24 |
Experience for voted solution albertwijayatj: 5 on 2 lines proc (one long)-CDG.Axel |
July 19, 2023, 9:02 a.m. |
+3 |
Experience for voted solution Pactp: 3 on First-CDG.Axel |
July 19, 2023, 7:36 a.m. |
+3 |
Experience for voted solution Pactp: 3 on First-CDG.Axel |
July 19, 2023, 7:33 a.m. |
+3 |
Experience for voted solution Pactp: 3 on one line or break-CDG.Axel |
July 14, 2023, 9 a.m. |
+5 |
Experience for appreciated comment flowerinapot: 1 on CDG.Axel: Можно попробовать сделать для воина функцию make_hit(self, target), и пихнуть туда всю логику удара.... |
July 14, 2023, 9 a.m. |
+1 |
Experience for voted comment flowerinapot: 1 on CDG.Axel: Можно попробовать сделать для воина функцию make_hit(self, target), и пихнуть туда всю логику удара.... |
July 10, 2023, 10:32 a.m. |
+1 |
Experience for voted comment flowerinapot: 1 on CDG.Axel: Looks great! But you may declare constructors something like this: class Warrior: def __init__(self,... |
July 10, 2023, 10:32 a.m. |
+5 |
Experience for appreciated comment flowerinapot: 1 on CDG.Axel: Looks great! But you may declare constructors something like this: class Warrior: def __init__(self,... |
July 10, 2023, 10:32 a.m. |
+1 |
Experience for voted comment flowerinapot: 1 on CDG.Axel: Мне первые задачи тоже было влом укорачивать :) Кончилось всё тем, что я Варлордсов упихнул в 150 ст... |
July 10, 2023, 10:32 a.m. |
+5 |
Experience for appreciated comment flowerinapot: 1 on CDG.Axel: Мне первые задачи тоже было влом укорачивать :) Кончилось всё тем, что я Варлордсов упихнул в 150 ст... |
July 10, 2023, 10:32 a.m. |
+5 |
Experience for appreciated comment flowerinapot: 1 on CDG.Axel: Для для is_alive можно использовать декоратор \@property. Уберет кучу строчек кода (минимум 4) @prop... |
July 10, 2023, 10:32 a.m. |
+1 |
Experience for voted comment flowerinapot: 1 on CDG.Axel: Для для is_alive можно использовать декоратор \@property. Уберет кучу строчек кода (минимум 4) @prop... |
July 10, 2023, 1:33 a.m. |
+5 |
Experience for voted solution conscloud: 4 on 13 lines proc-CDG.Axel |
July 8, 2023, 8:42 a.m. |
+5 |
Experience for appreciated comment flowerinapot: 1 on CDG.Axel: А список это тоже класс ) если честно, тут вообще всё классы.. Даже bool, который (внезапно) унаслед... |
July 8, 2023, 8:42 a.m. |
+1 |
Experience for voted comment flowerinapot: 1 on CDG.Axel: А список это тоже класс ) если честно, тут вообще всё классы.. Даже bool, который (внезапно) унаслед... |
July 8, 2023, 8:42 a.m. |
+5 |
Experience for appreciated comment flowerinapot: 1 on CDG.Axel: Существование армии, как отдельного класса практически полностью теряет смысл. Ну а вообще лучше про... |
July 8, 2023, 8:42 a.m. |
+1 |
Experience for voted comment flowerinapot: 1 on CDG.Axel: Существование армии, как отдельного класса практически полностью теряет смысл. Ну а вообще лучше про... |
July 8, 2023, 8:41 a.m. |
+5 |
Experience for appreciated comment flowerinapot: 1 on CDG.Axel: Начитался в детстве умных книжек про ООП и про приватные свойства ) |
July 8, 2023, 8:41 a.m. |
+1 |
Experience for voted comment flowerinapot: 1 on CDG.Axel: Начитался в детстве умных книжек про ООП и про приватные свойства ) |
July 8, 2023, 8:41 a.m. |
+1 |
Experience for voted comment flowerinapot: 1 on CDG.Axel: Да, выйдет даже чуть короче ) while army1.units and army2.units: но я специально старался снаружи не... |
July 8, 2023, 8:41 a.m. |
+5 |
Experience for appreciated comment flowerinapot: 1 on CDG.Axel: Да, выйдет даже чуть короче ) while army1.units and army2.units: но я специально старался снаружи не... |
July 8, 2023, 8:41 a.m. |
+5 |
Experience for appreciated comment flowerinapot: 1 on CDG.Axel: Угу - всё просто @property def is_alive(self): return bool(self.units) |
July 8, 2023, 8:41 a.m. |
+1 |
Experience for voted comment flowerinapot: 1 on CDG.Axel: Угу - всё просто @property def is_alive(self): return bool(self.units) |
July 8, 2023, 8:39 a.m. |
+5 |
Experience for appreciated comment flowerinapot: 1 on CDG.Axel: Примерно вот так: def fight(army1: Army, army2: Army): while army1.is_alive and army2.is_alive: del ... |
July 8, 2023, 8:39 a.m. |
+1 |
Experience for voted comment flowerinapot: 1 on CDG.Axel: Примерно вот так: def fight(army1: Army, army2: Army): while army1.is_alive and army2.is_alive: del ... |
July 8, 2023, 8:38 a.m. |
+5 |
Experience for appreciated comment flowerinapot: 1 on CDG.Axel: Слишком страшная функция def fight(self, army1, army2) :) Можно сделать так... Запилить isalive для ... |
July 8, 2023, 8:38 a.m. |
+1 |
Experience for voted comment flowerinapot: 1 on CDG.Axel: Слишком страшная функция def fight(self, army1, army2) :) Можно сделать так... Запилить isalive для ... |
July 7, 2023, 7:11 a.m. |
+6 |
Experience for voted solution Pactp: 4 on One line proc-CDG.Axel |
July 4, 2023, 12:30 p.m. |
+7 |
Experience for voted solution dig: 5 on 7 lines proc-CDG.Axel |
July 3, 2023, 12:45 p.m. |
+2 |
Experience for voted solution luckywalkmir: 2 on One liner 59 symbols-CDG.Axel |
June 30, 2023, 9:33 a.m. |
+6 |
Experience for voted solution flowerinapot: 5 on 6 lines, commented-CDG.Axel |
June 12, 2023, 9:59 p.m. |
+4 |
Experience for voted solution BootzenKatzen: 4 on One liner-CDG.Axel |
June 10, 2023, 11:09 p.m. |
+1 |
Experience for voted solution s0ci0pat: 1 on 5 lines-CDG.Axel |
June 7, 2023, 12:35 p.m. |
+5 |
Experience for voted solution flowerinapot: 5 on One liner + 2 another solution-CDG.Axel |
June 6, 2023, 7:36 a.m. |
+1 |
Experience for voted comment tom83jelinek: 1 on CDG.Axel: a slightly longer in symbols than with zip, but faster return sum([(b - a).total_seconds() for a, b ... |
June 5, 2023, 6:54 p.m. |
+1 |
Experience for voted comment flowerinapot: 1 on CDG.Axel: Interesting 'except IndexError' application! Better than use 'I love python' task for it :) |
June 5, 2023, 6:54 p.m. |
+5 |
Experience for appreciated comment flowerinapot: 1 on CDG.Axel: Interesting 'except IndexError' application! Better than use 'I love python' task for it :) |
June 4, 2023, 4:29 p.m. |
+1 |
Experience for voted solution earthlifer.1: 1 on operand &-CDG.Axel |
May 30, 2023, 7:37 p.m. |
+5 |
Experience for voted solution U.V: 3 on non-int one-liner-CDG.Axel |
May 29, 2023, 8:31 p.m. |
+2 |
Experience for voted solution malion: 2 on 7 lines-CDG.Axel |
May 29, 2023, 8:07 p.m. |
+1 |
Experience for voted comment dig: 1 on CDG.Axel: Nice idea with reduce! Btw: return reduce(two_equal, elements) if len(elements) > 1 else True --> # ... |
May 29, 2023, 8:07 p.m. |
+5 |
Experience for appreciated comment dig: 1 on CDG.Axel: Nice idea with reduce! Btw: return reduce(two_equal, elements) if len(elements) > 1 else True --> # ... |
May 29, 2023, 7:42 p.m. |
+6 |
Experience for voted solution Pavellver: 4 on reduce filtered map!-CDG.Axel |
May 29, 2023, 6:09 p.m. |
+4 |
Experience for voted solution tregubovvn: 4 on Python 3.10-CDG.Axel |
May 29, 2023, 3:41 p.m. |
+5 |
Experience for voted solution matthewwdaly: 3 on 3 lines proc (commented)-CDG.Axel |
May 28, 2023, 5:48 p.m. |
+14 |
Experience for voted solution Pavellver: 5 on Two lines proc-CDG.Axel |
May 24, 2023, 2:33 p.m. |
+21 |
Experience for voted solution flatline: 4 on 1 line and 3 line solutions-CDG.Axel |
May 22, 2023, 6:33 p.m. |
+14 |
Experience for voted solution Pavellver: 5 on Clear recursion-CDG.Axel |
May 22, 2023, 5:32 p.m. |
+14 |
Experience for voted solution kdim: 3 on 6 lines, commented-CDG.Axel |