結果

問題 No.1680 Sum and Difference
ユーザー roarisroaris
提出日時 2021-10-26 18:55:53
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 41 ms / 1,000 ms
コード長 123 bytes
コンパイル時間 249 ms
コンパイル使用メモリ 82,424 KB
実行使用メモリ 53,560 KB
最終ジャッジ日時 2024-04-15 18:04:21
合計ジャッジ時間 2,005 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 39 ms
52,736 KB
testcase_01 AC 41 ms
52,684 KB
testcase_02 AC 41 ms
52,876 KB
testcase_03 AC 41 ms
52,616 KB
testcase_04 AC 41 ms
51,940 KB
testcase_05 AC 39 ms
51,824 KB
testcase_06 AC 39 ms
52,768 KB
testcase_07 AC 39 ms
51,872 KB
testcase_08 AC 40 ms
53,164 KB
testcase_09 AC 39 ms
52,276 KB
testcase_10 AC 39 ms
52,348 KB
testcase_11 AC 40 ms
52,388 KB
testcase_12 AC 40 ms
52,468 KB
testcase_13 AC 39 ms
52,676 KB
testcase_14 AC 39 ms
52,460 KB
testcase_15 AC 39 ms
52,320 KB
testcase_16 AC 39 ms
52,548 KB
testcase_17 AC 39 ms
53,560 KB
testcase_18 AC 39 ms
52,240 KB
testcase_19 AC 40 ms
51,876 KB
testcase_20 AC 40 ms
51,876 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

A, B = map(int, input().split())
ea = 2*(A//2)+1
oa = 2*A+1-ea
eb = 2*(B//2)+1
ob = 2*B+1-eb
print((ea*eb+oa*ob)%(10**9+7))
0