Quantcast
Channel: 初心者タグが付けられた新着記事 - Qiita
Viewing all articles
Browse latest Browse all 21085

Pythonで毎日AtCoder #17

$
0
0

はじめに

前回
今日から類題を解きます。

#17

考えたこと
ABC064-A
倍数判定するだけ

r,g,b=map(str,input().split())n=int(r+g+b)ifn%4==0:print('YES')else:print('NO')

ABC088-A
nを500で割った余りを1円玉で払えるかを考えています

n=int(input())a=int(input())m=n%500ifm<=a:print('Yes')else:print('No')

ABC082-A
math.ceilで切り上げ処理を行っています

importmatha,b=map(int,input().split())print(math.ceil((a+b)/2))

まとめ

明日からは一度に解く問題の量を増やしたい。
では、また


Viewing all articles
Browse latest Browse all 21085

Trending Articles