結果
問題 | No.795 Restrictions!!!!!!!!!!!!!! |
ユーザー |
|
提出日時 | 2025-01-19 10:21:37 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 651 bytes |
コンパイル時間 | 466 ms |
コンパイル使用メモリ | 11,904 KB |
実行使用メモリ | 11,264 KB |
最終ジャッジ日時 | 2025-01-19 10:21:41 |
合計ジャッジ時間 | 2,293 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | RE * 20 |
ソースコード
def check_same_amount(inheritance_heir_A, inheritance_heir_B):if sum(inheritance_heir_A) != sum(inheritance_heir_B):for i in range(len(inheritance_heir_B)):coin_10 = inheritance_heir_B.pop()inheritance_heir_A.append(coin_10)if sum(inheritance_heir_A) == sum(inheritance_heir_B):return "YES"return "NO"return "YES"def main():N = int(input())M = int(input())inheritance_heir_A = [100] * Ninheritance_heir_B = [10] * Manswer = check_same_amount(inheritance_heir_A, inheritance_heir_B)print(answer)if __name__ == "__main__":main()