結果
問題 |
No.1057 素敵な日
|
ユーザー |
![]() |
提出日時 | 2020-05-30 22:58:17 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 327 bytes |
コンパイル時間 | 386 ms |
コンパイル使用メモリ | 12,800 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-11-08 16:47:30 |
合計ジャッジ時間 | 1,218 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 5 WA * 2 |
ソースコード
a,b = map(int,input().split()) lists = [] for i in range(a+b+1): if i % 2 == 0: if a != 0: lists.append("A") a -= 1 else: if b != 0: lists.append("B") b -= 1 cnt = 0 for i in range(1,len(lists)): if lists[i] != lists[i-1]: cnt += 1 print(cnt)