Python
71日目 ABCのC問題に取り組み中。 茶色レベルのD問題も余裕があれば取り組み中。勉強用のコンテンツはここから。 https://kenkoooo.com/atcoder/#/table/ 進捗と一言感想 [C問題] 1問(残り137問) ABC069:4-adjacent 解説と他の方の回答を見てAC。数の並びは…
70日目 ABCのC問題に取り組み中。 茶色レベルのD問題もコンテスト時に触れられるようになってきたので少しづつ解いてこうと思います。勉強用のコンテンツはここから。 https://kenkoooo.com/atcoder/#/table/ 進捗と一言感想 [C問題] 1問(残り138問) ABC115:…
69日目 ABCのC問題に取り組み中。勉強用のコンテンツはここから。 https://kenkoooo.com/atcoder/#/table/ 進捗と一言感想 [C問題] 1問(残り139問) ABC095:Half and Half 他の方を参考にAC、パッと見では時間内に終わらなさそうだったけど、10万くらいだった…
68日目 ABCのC問題に取り組み中。勉強用のコンテンツはここから。 https://kenkoooo.com/atcoder/#/table/ 進捗と一言感想 [C問題] 1問(残り140問) ABC079:Train Ticket 精々27通りなので総当たりで普通に解けました。組み合わせ便利…。 import itertools s …
67日目 ABCのC問題に取り組み中。勉強用のコンテンツはここから。 https://kenkoooo.com/atcoder/#/table/ 進捗と一言感想 [C問題] 1問(残り142問) ABC141:Attack Survival 特になし。 n, k, q = map(int, input().split()) scores = [k-q for i in range(n)…
66日目 ABCのC問題に取り組み中。勉強用のコンテンツはここから。 https://kenkoooo.com/atcoder/#/table/ 進捗と一言感想 [C問題] 1問(残り142問) ABC155:Poll 実装はすぐに思いつきましたが、辞書を利用する場合、二回並び替え(回数降順→インデックス昇順)…
65日目 ABCのC問題に取り組み中。勉強用のコンテンツはここから。 https://kenkoooo.com/atcoder/#/table/ 進捗と一言感想 [C問題] 1問(残り145問) ABC161:Replacing Integer whileで回すくらいなら割り算したり掛け算するほうが楽だということがわかりまし…
64日目 ABCのC問題に取り組み中。勉強用のコンテンツはここから。 https://kenkoooo.com/atcoder/#/table/ 進捗と一言感想 [C問題] 1問(残り143問) ABC158:Tax Increase 単純な割り算でやると誤差によって値が間違ってしまっていたので十分な数で処理をする…
63日目 ABCのC問題に取り組み中。勉強用のコンテンツはここから。 https://kenkoooo.com/atcoder/#/table/ 進捗と一言感想 [A問題] 0問(残り0問) ABC177:Don't be late 最初にあまりの考慮を忘れて、WAに…。 d, t ,s = map(int, input().split()) m = d//s i…
62日目 ABCのC問題に取り組み中。勉強用のコンテンツはここから。 https://kenkoooo.com/atcoder/#/table/ 進捗と一言感想 [C問題] 1問(残り146問) ABC149:Next Prime 時間切れになるかな…と思ったら大丈夫でした。 x = int(input()) while(True): if x < 2:…
61日目 ABCのC問題に取り組み中。勉強用のコンテンツはここから。 https://kenkoooo.com/atcoder/#/table/ 進捗と一言感想 [C問題] 1問(残り147問) ABC159:Maximum Volume 特になし。 import math l = int(input()) v = math.pow(l/3.0, 3.0) print(v) 参考 …
60日目 ABCのC問題に取り組み中。勉強用のコンテンツはここから。 https://kenkoooo.com/atcoder/#/table/ 進捗と一言感想 [C問題] 2問(残り148問) ABC012:九九足し算 特になし。 n = int(input()) sum = 0 for i in range(9): for j in range(9): sum += (i…
59日目 ABCのC問題に取り組み中。勉強用のコンテンツはここから。 https://kenkoooo.com/atcoder/#/table/ 進捗と一言感想 [C問題] 1問(残り149問) ABC060:Sentou 特になし。 n, t = map(int, input().split()) tn = [int(num) for num in input().split()] …
58日目 ABCのC問題に取り組み中。勉強用のコンテンツはここから。 https://kenkoooo.com/atcoder/#/table/ 進捗と一言感想 [A問題] 1問(残り0問) ABC176:Takoyaki 特になし。 n, x, t = map(int, input().split()) if n%x == 0: print(t*n//x) else : print(…
57日目 ABCのC問題に取り組み中。勉強用のコンテンツはここから。 https://kenkoooo.com/atcoder/#/table/ 進捗と一言感想 [C問題] 1問(残り148問) ABC041:背の順 特になし。 n = int(input()) ln = [int(num) for num in input().split()] an = {} for i in…
56日目 ABCのC問題に取り組み中。勉強用のコンテンツはここから。 https://kenkoooo.com/atcoder/#/table/ 進捗と一言感想 [C問題] 1問(残り149問) ABC060:Sentou 特になし。 n, t = map(int, input().split()) tn = [int(num) for num in input().split()] …
55日目 ABCのC問題に取り組み中。勉強用のコンテンツはここから。 https://kenkoooo.com/atcoder/#/table/ 進捗と一言感想 [C問題] 1問(残り150問) ABC163:management 単純な数え上げでできました。 参考 https://kenkoooo.com/atcoder/#/user/dandan611?use…
54日目 ABCのC問題に取り組み中。勉強用のコンテンツはここから。 https://kenkoooo.com/atcoder/#/table/ 進捗と一言感想 [A問題] 1問(残り0問) ABC175:Rainy Season 特になし s = input() answer = 0 count = 0 for i in range(len(s)): if s[i] == "R": c…
53日目 ABCのC問題に取り組み中。勉強用のコンテンツはここから。 https://kenkoooo.com/atcoder/#/table/ 進捗と一言感想 [C問題] 1問(残り151問) ABC134:Exception Handling 嫌な予感はしていて、maxとfor文を使ったら時間切れ、解説を見て簡単な解放でAC…
52日目 ABCのC問題に取り組み中。勉強用のコンテンツはここから。 https://kenkoooo.com/atcoder/#/table/ 進捗と一言感想 [C問題] 1問(残り154問) ABC136:Build Stairs 下記の方を参考にAC。よく考えれば解ける奴…。 スマートな解法も紹介されていましたが…
51日目 ABCのB問題が終わりましたー! 次からは、いよいよアルゴリズムを考えられないと太刀打ちできないものが出てくるC問題を解いていきます。勉強用のコンテンツはここから。 https://kenkoooo.com/atcoder/#/table/ 進捗と一言感想 [B問題] 3問(残り0問)…
50日目 ABCのB問題を実施中。勉強用のコンテンツはここから。 https://kenkoooo.com/atcoder/#/table/ 進捗と一言感想 [B問題] 3問(残り3問) ABC022:Bumble Bee 10**5のオーダーなので行けると思ってメモ化を使って解くことができました。 n = int(input()) …
49日目 ABCのB問題を実施中。勉強用のコンテンツはここから。 https://kenkoooo.com/atcoder/#/table/ 進捗と一言感想 [B問題] 1問(残り6問) ABC057:Checkpoints 考え方はあっていたのですが、最小の順番を出すところで間違えてしまっていました。 なんでも…
48日目 ABCのB問題を実施中。勉強用のコンテンツはここから。 https://kenkoooo.com/atcoder/#/table/ 進捗と一言感想 [B問題] 1問(残り7問) ABC040:□□□□□ 平方根のスタートで詰まってました…。 効率的に解くなら…と、nを2で割った時の計算範囲にしてました…
47日目 ABCのB問題を実施中。勉強用のコンテンツはここから。 https://kenkoooo.com/atcoder/#/table/ 進捗と一言感想 [B問題] 1問(残り8問) ABC023:手芸王 冗長な気もしましたが、何とかできました。 文字列の処理は慣れてきた感があります。(残っている問…
45日目 ABCのB問題を実施中。勉強用のコンテンツはここから。 https://kenkoooo.com/atcoder/#/table/ 進捗と一言感想 [B問題] 2問(残り9問) ABC006:トリボナッチ数列 再帰関数を使わないために、辞書を利用するも慣れてきました。 n = int(input()) tribona…
45日目 ABCのB問題を実施中。勉強用のコンテンツはここから。 https://kenkoooo.com/atcoder/#/table/ 進捗と一言感想 [B問題] 1問(残り11問) ABC019:高橋くんと文字列圧縮 ややこしい実装にしてしまった気がしなくもない。他の方の回答を見てみましたが、fo…
44日目 ABCのB問題を実施中。勉強用のコンテンツはここから。 https://kenkoooo.com/atcoder/#/table/ 進捗と一言感想 [A問題] 1問(残り0問) ABC174:Air Conditioner 特になし [B問題] 4問(残り13問) ABC003:AtCoderトランプ 文字列の存在を見てやる問題は結…
43日目 ABCのB問題を実施中。勉強用のコンテンツはここから。 https://kenkoooo.com/atcoder/#/table/ 進捗と一言感想 [B問題] 1問(残り15問) ABC107:Grid Compression 横は単純に調べることでできたのですが、行列自体を削除しまい、どうも縦が適切の出力で…
42日目 ABCのB問題を実施中。勉強用のコンテンツはここから。 https://kenkoooo.com/atcoder/#/table/ 進捗と一言感想 [B問題] 1問(残り16問) ABC032:高橋君とパスワード rangeが0以下だと動かない仕様だったのですんなりできました。 s = input() k = int(i…