YottaGin

Freedom is a responsible choice.

[Python] ABC005 A

2019/4/16 プログラミング

問題

A – おいしいたこ焼きの作り方

回答

割り算するだけ。

import sys
# input処理を高速化する
input = sys.stdin.readline

def main():
    X, Y = list(map(int, input().split()))
    ans = Y // X
    print(ans)
    
main()

Atcoder, Python GinO

関連記事

[Python] ABC002 C

C - 直訴 xa, ya, xb, yb, xc, yc = map(int, input().split()) #(xa, ya)が原点になるように三角形を平行移動する。 a = xb - xa b = yb - ya c = xc - xa d = yc - y...

記事を読む

[Python] ABC014 A

問題 A - けんしょう先生のお菓子配り 回答 a = int(input()) b = int(input()) remainder = a % b shortage = 0 if remainder > 0: shortage = b - ...

記事を読む

[Python] ABC001 A

A - 積雪深差 h1 = int(input()) h2 = int(input()) print(h1-h2) さすがに解ける。 int(input()) input()はstirngを返すのでint()でintに変換する。

記事を読む

[Python] ABC017 A

問題 A - プロコン 回答 s1, e1 = map(int, input().split()) s2, e2 = map(int, input().split()) s3, e3 = map(int, input().split()) sum_sco...

記事を読む

[Python] ABC009 D

問題 D - 漸化式 スライド 56ページ以後 解けない…。 途中まで まず、漸化式をそのままコードにしてみます。 入力例3はものすごく時間がかかります。 K, M = map(int, input().split()) A...

記事を読む


Public Domain YottaGin No Rights Reserved.