This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
[問題] | |
https://atcoder.jp/contests/abc174/tasks/abc174_d | |
[解説] | |
https://youtu.be/h0MGG8rxrYc?t=3591 | |
すげーな、鮮やか | |
''' | |
import sys |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
[問題] | |
https://atcoder.jp/contests/abc170/tasks/abc170_b | |
[解説] | |
https://blog.hamayanhamayan.com/entry/2020/06/14/231810 | |
制約がひくいから、基本総当たりで問題ないみたいだ。 | |
2次方程式の計算で出しちゃったけど。 | |
''' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
[問題] | |
https://atcoder.jp/contests/abc175/tasks/abc175_b | |
[解説] | |
https://atcoder.jp/contests/abc175/editorial/50 | |
[参考] | |
http://physics.thick.jp/Mathematics_A/Section5/5-3.html | |
三角形には、2つの辺の長さを足し合わせると残りの1つの辺の長さより長くなる。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
[問題] | |
https://atcoder.jp/contests/abc175/tasks/abc175_c | |
''' | |
import sys | |
import math | |
sys.setrecursionlimit(10 ** 6) # 再帰上限の引き上げ | |
input = sys.stdin.readline |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
[問題] | |
https://atcoder.jp/contests/abc177/tasks/abc177_d | |
[解説] | |
https://atcoder.jp/contests/abc177/editorial/90 | |
[参考] | |
AtCoder Beginner Contest 206(Sponsored by Panasonic) [ D - KAIBUNsyo ]をPythonでUnionFindを使って解く | |
https://uchidama.hatenablog.com/entry/2021/06/22/170804 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
[問題] | |
https://atcoder.jp/contests/abc177/tasks/abc177_c | |
[解説] | |
https://youtu.be/D6dr2CrEgns?t=1154 | |
言われりゃ、そうかって感じだけど、この計算量減らしは、みんな気がついちゃうの? | |
むずくねー!? | |
''' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
[問題] | |
https://atcoder.jp/contests/abc177/tasks/abc177_b | |
[解説] | |
https://atcoder.jp/contests/abc177/editorial/87 | |
''' | |
import sys |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
[問題] | |
https://atcoder.jp/contests/abc180/tasks/abc180_d | |
[解説] | |
https://youtu.be/r4ujcFBDBw4?t=2603 | |
基本このsnukeさんの解説が、わかりやすい | |
https://atcoder.jp/contests/abc180/editorial/219 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
[問題] | |
https://atcoder.jp/contests/abc089/tasks/abc089_c | |
[参考] | |
Python defaultdict の使い方 | |
https://qiita.com/xza/items/72a1b07fcf64d1f4bdb7 | |
Pythonで階乗、順列・組み合わせを計算、生成 | |
https://note.nkmk.me/python-math-factorial-permutations-combinations/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
[問題] | |
https://atcoder.jp/contests/abc170/tasks/abc170_d | |
[解説] | |
https://youtu.be/IhnlLGb-rzg?t=1775 | |
snukeさんの説明に基づいて実装している | |
[結果] | |
Python(3.8.2) AC 509ms |