goo blog サービス終了のお知らせ 

ねおぺぶろぐ

プライバシーポリシーはdocomo社のものに準拠します

メモ 難しいB問題

2023年06月10日 | Pythonチャレンジ
B - Power Socket https://atcoder.jp/contests/abc139/tasks/abc139_b#愚直に引き算 a, b = map(int, input().split()) #ans = (b - 1 + a - 2) // (a - 1) #print(ans) cnt=0 if b==1:print(0) else: . . . 本文を読む

dp3

2023年06月10日 | Pythonチャレンジ
F - LCS https://atcoder.jp/contests/dp/tasks/dp_fhttps://enakai00.hatenablog.com/entry/2021/07/15/224339nmax = 3005  # 配列の最大長 s = [''] * nmax  # 文字列 s を格納する配列 t = [''] * nmax  # . . . 本文を読む

dp2

2023年06月08日 | Pythonチャレンジ
C - Vacation https://ebisuke33.hatenablog.com/entry/edpc-c入力例13A   B   C10 40 7020 50 8030 60 90[[0, 10,  90, 150, ・・・n], →A、C、B [0, 40, 120, 180, ・・・n], →B、C、B  . . . 本文を読む

dp

2023年06月06日 | Pythonチャレンジ
https://qiita.com/drken/items/dc53c683d6de8aeacf5aA 問題 - Frog 1https://atcoder.jp/contests/dp/tasks/dp_a#41994584 n = int(input()) h = list(map(int, input().split())) # cost[i]: 足場iにたどり着くための最小コスト . . . 本文を読む

paiza

2023年06月04日 | Pythonチャレンジ
アカウント削除されてたやっぱりBランクこっちは視覚的に解りやすいし仕様がスッと入ってくるこのBランクは思ったより難しかったAランクいけるかなぁいけたぜやったーー! . . . 本文を読む