2020-04-21から1日間の記事一覧

AtCoder Beginner Contest 153 過去問 (A~C)

参照 atcoder.jp A問題 難なく突破 import math h,a = map(int, input().split()) print(math.ceil(h/a)) B問題 こちらも難なく突破 h,n = map(int, input().split()) a = list(map(int,input().split())) if h>sum(a):print('No') else:print('Yes') C問題 …

AtCoder Beginner Contest 152 過去問 (A~C)

参照 atcoder.jp A問題 難なく突破 n,m = map(int, input().split()) print('Yes') if n==m else print('No') B問題 こちらも難なく突破 a,b = input().split() print(sorted([a*int(b),b*int(a)])[0]) C問題 配列Pが並べられており、i番目の数字より前の数…

Gitで発生したエラー【Updates were rejected because the tip of your current branch is behind】

gitで初歩的なエラー $(master) git push origin master ! [rejected] master -> master (non-fast-forward) error: failed to push some refs to 'https://github.com/xxxxxxxxxxx/Vue-website.git' hint: Updates were rejected because the tip of your c…