A new kind of ransomware written in Python has upped the encryption game by using a unique key for every file it encrypts on a victim's machine, researchers have warned. The ransomware, dubbed CryPy, ...
を比較して賛成の人の方が多いときにYesと出力します。 制約からNは奇数なので同点がないことに注意が必要です。 文字列の比較は計算量がかかりますが、 今回は制約が少ないので、 単純に比較で実装できそうです。 問題文より Sの末尾3文字がTのいずれか ...
# 入力 N, A, B = map(int, input().split()) C = list(map(int, input().split())) # 選択肢があっていれば、選択肢の番号を出力する。 for i in range(N): if C[i] == A+B: print(i+1) 選択肢を順番に見ていき、A+Bと一致すれば選択肢の番号を出力する。
一部の結果でアクセス不可の可能性があるため、非表示になっています。
アクセス不可の結果を表示する