結果

問題 No.1057 素敵な日
ユーザー 67oYG9nh2YMmIci
提出日時 2020-06-30 19:43:59
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 334 bytes
コンパイル時間 315 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-09-13 06:23:13
合計ジャッジ時間 1,006 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 1
other AC * 4 WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

A,B=map(int,input().split())
count=0
if A<B:
    small=A
    big=B
elif A>B:
    small=B
    big=A
else:
    count=A+B-1
if A!=B:
    big=big-1
    for i in range(1,big):
        if small-1>=0:
            count+=1
        else:
            break
        if big-1>=0:
            count+=1
        else :
            break
print(count)
0