2020-05-07から1日間の記事一覧

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

参照 atcoder.jp A問題 1分くらい。 n,a,b = map(int, input().split()) print(min(n*a,b)) B問題 制約条件も2≤N≤10,1≤D≤10なので、三重ループして解きます。 5分くらい。 N,D = map(int,input().split()) X = [list(map(int, input().split())) for j in ra…