結果

問題 No.560 ふしぎなナップサック
ユーザー lam6er
提出日時 2025-03-20 18:45:36
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 39 ms / 2,000 ms
コード長 202 bytes
コンパイル時間 175 ms
コンパイル使用メモリ 82,564 KB
実行使用メモリ 52,828 KB
最終ジャッジ日時 2025-03-20 18:46:00
合計ジャッジ時間 1,575 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

M, N = map(int, input().split())
result = M + N / 3
if isinstance(result, int) or result.is_integer():
    print(int(result))
else:
    # Format to 12 decimal places
    print("{0:.12f}".format(result))
0