YottaGin

Freedom is a responsible choice.

[Python] ABC015 A

2019/12/9 2019/12/9 プログラミング

問題

A – 高橋くんの研修

回答

A = input()
B = input()

if len(A) > len (B):
    print(A)
else:
    print(B)

Atcoder, Python GinO

関連記事

[Python] ABC003 D

D - AtCoder社の冬 import math # 順列 def P(n, r): return math.factorial(n)//math.factorial(n-r) # 組み合わせ def C(n, r): return P(n, r)/...

記事を読む

condaコマンド

windows、Anaconda Command Prompt上でanacondaを使う際のcondaコマンドについて、備忘録的にまとめます。 公式コマンドレファレンス Command reference ライブラリ一覧 インストールしたライブラリ一覧を...

記事を読む

[Python] ABC018 D 30点

問題 D - バレンタインデー 回答 AtCoder Beginner Contest 018 解説 from AtCoder Inc. itertools.combinations を使い、全ての組み合わせを列挙します。 imp...

記事を読む

[Python] ABC019 D

問題 D - 高橋くんと木の直径 回答 20点回答 全て探索します。 AtCoder Beginner Contest 019 解説 from AtCoder Inc. import sys N = int(input())...

記事を読む

[データ構造] スタック

スタック スタックは、コンピュータで用いられる基本的なデータ構造の1つで、データを後入れ先出し(LIFO: Last In First Out;FILO: First In Last Out)の構造で保持するものである。抽象データ型としてのそれを指すこ...

記事を読む


Public Domain YottaGin No Rights Reserved.