Flying Cat Penguin

ゆるゆる仕事、ソフトウェアテスティング関連のことについて綴ります。

AtCoder

AtCoder 修行日記#69

69日目 ABCのC問題に取り組み中。勉強用のコンテンツはここから。 https://kenkoooo.com/atcoder/#/table/ 進捗と一言感想 [C問題] 1問(残り139問) ABC095:Half and Half 他の方を参考にAC、パッと見では時間内に終わらなさそうだったけど、10万くらいだった…

AtCoder 修行日記#68

68日目 ABCのC問題に取り組み中。勉強用のコンテンツはここから。 https://kenkoooo.com/atcoder/#/table/ 進捗と一言感想 [C問題] 1問(残り140問) ABC079:Train Ticket 精々27通りなので総当たりで普通に解けました。組み合わせ便利…。 import itertools s …

AtCoder 修行日記#67

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)…

AtCoder 修行日記#66

66日目 ABCのC問題に取り組み中。勉強用のコンテンツはここから。 https://kenkoooo.com/atcoder/#/table/ 進捗と一言感想 [C問題] 1問(残り142問) ABC155:Poll 実装はすぐに思いつきましたが、辞書を利用する場合、二回並び替え(回数降順→インデックス昇順)…

AtCoder 修行日記#65

65日目 ABCのC問題に取り組み中。勉強用のコンテンツはここから。 https://kenkoooo.com/atcoder/#/table/ 進捗と一言感想 [C問題] 1問(残り145問) ABC161:Replacing Integer whileで回すくらいなら割り算したり掛け算するほうが楽だということがわかりまし…

AtCoder 修行日記#64

64日目 ABCのC問題に取り組み中。勉強用のコンテンツはここから。 https://kenkoooo.com/atcoder/#/table/ 進捗と一言感想 [C問題] 1問(残り143問) ABC158:Tax Increase 単純な割り算でやると誤差によって値が間違ってしまっていたので十分な数で処理をする…

AtCoder 修行日記#63

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…

AtCoder 修行日記#62

62日目 ABCのC問題に取り組み中。勉強用のコンテンツはここから。 https://kenkoooo.com/atcoder/#/table/ 進捗と一言感想 [C問題] 1問(残り146問) ABC149:Next Prime 時間切れになるかな…と思ったら大丈夫でした。 x = int(input()) while(True): if x < 2:…

AtCoder 修行日記#61

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) 参考 …

AtCoder 修行日記#60

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…

AtCoder 修行日記#59

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()] …

AtCoder 修行日記#58

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(…

AtCoder 修行日記#57

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…

AtCoder 修行日記#56

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()] …

AtCoder 修行日記#55

55日目 ABCのC問題に取り組み中。勉強用のコンテンツはここから。 https://kenkoooo.com/atcoder/#/table/ 進捗と一言感想 [C問題] 1問(残り150問) ABC163:management 単純な数え上げでできました。 参考 https://kenkoooo.com/atcoder/#/user/dandan611?use…

AtCoder 修行日記#54

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…

AtCoder 修行日記#53

53日目 ABCのC問題に取り組み中。勉強用のコンテンツはここから。 https://kenkoooo.com/atcoder/#/table/ 進捗と一言感想 [C問題] 1問(残り151問) ABC134:Exception Handling 嫌な予感はしていて、maxとfor文を使ったら時間切れ、解説を見て簡単な解放でAC…

AtCoder 修行日記#52

52日目 ABCのC問題に取り組み中。勉強用のコンテンツはここから。 https://kenkoooo.com/atcoder/#/table/ 進捗と一言感想 [C問題] 1問(残り154問) ABC136:Build Stairs 下記の方を参考にAC。よく考えれば解ける奴…。 スマートな解法も紹介されていましたが…

AtCoder 修行日記#51

51日目 ABCのB問題が終わりましたー! 次からは、いよいよアルゴリズムを考えられないと太刀打ちできないものが出てくるC問題を解いていきます。勉強用のコンテンツはここから。 https://kenkoooo.com/atcoder/#/table/ 進捗と一言感想 [B問題] 3問(残り0問)…

AtCoder 修行日記#50

50日目 ABCのB問題を実施中。勉強用のコンテンツはここから。 https://kenkoooo.com/atcoder/#/table/ 進捗と一言感想 [B問題] 3問(残り3問) ABC022:Bumble Bee 10**5のオーダーなので行けると思ってメモ化を使って解くことができました。 n = int(input()) …

AtCoder 修行日記#49

49日目 ABCのB問題を実施中。勉強用のコンテンツはここから。 https://kenkoooo.com/atcoder/#/table/ 進捗と一言感想 [B問題] 1問(残り6問) ABC057:Checkpoints 考え方はあっていたのですが、最小の順番を出すところで間違えてしまっていました。 なんでも…

AtCoder 修行日記#48

48日目 ABCのB問題を実施中。勉強用のコンテンツはここから。 https://kenkoooo.com/atcoder/#/table/ 進捗と一言感想 [B問題] 1問(残り7問) ABC040:□□□□□ 平方根のスタートで詰まってました…。 効率的に解くなら…と、nを2で割った時の計算範囲にしてました…

AtCoder 修行日記#47

47日目 ABCのB問題を実施中。勉強用のコンテンツはここから。 https://kenkoooo.com/atcoder/#/table/ 進捗と一言感想 [B問題] 1問(残り8問) ABC023:手芸王 冗長な気もしましたが、何とかできました。 文字列の処理は慣れてきた感があります。(残っている問…

AtCoder 修行日記#46

45日目 ABCのB問題を実施中。勉強用のコンテンツはここから。 https://kenkoooo.com/atcoder/#/table/ 進捗と一言感想 [B問題] 2問(残り9問) ABC006:トリボナッチ数列 再帰関数を使わないために、辞書を利用するも慣れてきました。 n = int(input()) tribona…

AtCoder 修行日記#45

45日目 ABCのB問題を実施中。勉強用のコンテンツはここから。 https://kenkoooo.com/atcoder/#/table/ 進捗と一言感想 [B問題] 1問(残り11問) ABC019:高橋くんと文字列圧縮 ややこしい実装にしてしまった気がしなくもない。他の方の回答を見てみましたが、fo…

AtCoder 修行日記#44

44日目 ABCのB問題を実施中。勉強用のコンテンツはここから。 https://kenkoooo.com/atcoder/#/table/ 進捗と一言感想 [A問題] 1問(残り0問) ABC174:Air Conditioner 特になし [B問題] 4問(残り13問) ABC003:AtCoderトランプ 文字列の存在を見てやる問題は結…

AtCoder 修行日記#43

43日目 ABCのB問題を実施中。勉強用のコンテンツはここから。 https://kenkoooo.com/atcoder/#/table/ 進捗と一言感想 [B問題] 1問(残り15問) ABC107:Grid Compression 横は単純に調べることでできたのですが、行列自体を削除しまい、どうも縦が適切の出力で…

AtCoder 修行日記#42

42日目 ABCのB問題を実施中。勉強用のコンテンツはここから。 https://kenkoooo.com/atcoder/#/table/ 進捗と一言感想 [B問題] 1問(残り16問) ABC032:高橋君とパスワード rangeが0以下だと動かない仕様だったのですんなりできました。 s = input() k = int(i…

AtCoder 修行日記#41

41日目 ABCのB問題を実施中。勉強用のコンテンツはここから。 https://kenkoooo.com/atcoder/#/table/ 進捗と一言感想 [B問題] 1問(残り17問) ABC060:Choose Integers 解説を見ているが解答方法はわかるが、 なぜそうなるかはあんまりぴんと来ていない…要復…

AtCoder 修行日記#40

40日目 ABCのB問題を実施中。勉強用のコンテンツはここから。 https://kenkoooo.com/atcoder/#/table/ 進捗と一言感想 [B問題] 1問(残り18問) ABC017:choku語 これでいけるかな…と心配でしたがすんなりいけました。 s = input() rem = ["o","k","u","ch"] fo…