結果
| 問題 | No.1057 素敵な日 |
| コンテスト | |
| ユーザー |
67oYG9nh2YMmIci
|
| 提出日時 | 2020-06-30 19:43:59 |
| 言語 | Python3 (3.14.2 + numpy 2.4.0 + scipy 1.16.3) |
| 結果 |
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 |
ソースコード
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)
67oYG9nh2YMmIci