AtCoder

AtCoder

AtCoderでPythonの勉強 その9

AtCoder Beggineres Selection 問9、ABC085C - Otoshidama です。問題文日本でよく使われる紙幣は、10000 円札、5000 円札、1000 円札です。以下、「お札」とはこれらのみを指します。青...
AtCoder

AtCoderでPythonの勉強 その8

AtCoder Beggineres Selection 問8、ABC085B - Kagami Mochi です。問題文X 段重ねの鏡餅 (X≥1) とは、X 枚の円形の餅を縦に積み重ねたものであって、どの餅もその真下の餅より直径が小さい...
AtCoder

AtCoderでPythonの勉強 その7

AtCoder Beggineres Selection、問7 ABC088B - Card Game for Two です問題文N 枚のカードがあります.i 枚目のカードには ai という数が書かれています.Alice と Bob は, ...
AtCoder

AtCoderでPythonの勉強 その6

AtCoder Beggineres Selection、問6 ABC083B - Some Sums です問題文1 以上 N 以下の整数のうち、10 進法での各桁の和が A 以上 B 以下であるものの総和を求めてください。制約・1 ≤ N...
AtCoder

AtCoderでPythonの勉強 その5

AtCoder Beggineres Selection、問5 ABC087B - Coins です問題文あなたは、500円玉を A 枚、100円玉を B 枚、50円玉を C 枚持っています。 これらの硬貨の中から何枚かを選び、合計金額をち...
AtCoder

AtCoderでPythonの勉強 その4

AtCoder Beggineres Selectionの問4、ABC081B - Shift onlyです問題文黒板に N 個の正の整数 A1,…,AN が書かれています.すぬけ君は,黒板に書かれている整数がすべて偶数であるとき,次の操作...
AtCoder

AtCoderでPythonの勉強 その3

AtCoder Beggineres Selectionの問3、ABC081A - Placing Marblesです問題文すぬけ君は1,2,3 の番号がついた3つのマスからなるマス目を持っています。各マスには0か1が書かれており、マスiに...
AtCoder

AtCoderでPythonの勉強 その2

AtCoder Beggineres Selectionの問2、ABC086A - Productです問題文シカのAtCoDeerくんは二つの正整数a,bを見つけました。aとbの積が偶数か奇数か判定してください。制約1≤a,b≤10000a...
AtCoder

AtCoderでPythonの勉強 その1

(7月29日のできごと)Pythonのごく基本的な文法は覚えてると思うので(すぐ後にわかったけど、勘違いでした)習うより慣れろ。で、5年ぶりにAtCoderに挑戦。と思ったけど、Pythonでいきなりコンテスト参加はハードルが高すぎるのでま...