結果

問題 No.1680 Sum and Difference
ユーザー Eki1009Eki1009
提出日時 2021-09-17 21:35:42
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 74 ms / 1,000 ms
コード長 101 bytes
コンパイル時間 291 ms
コンパイル使用メモリ 86,932 KB
実行使用メモリ 71,584 KB
最終ジャッジ日時 2023-09-12 06:59:34
合計ジャッジ時間 2,926 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,584 KB
testcase_01 AC 71 ms
71,568 KB
testcase_02 AC 72 ms
71,412 KB
testcase_03 AC 72 ms
71,436 KB
testcase_04 AC 72 ms
71,344 KB
testcase_05 AC 72 ms
71,368 KB
testcase_06 AC 72 ms
71,388 KB
testcase_07 AC 71 ms
71,400 KB
testcase_08 AC 71 ms
71,464 KB
testcase_09 AC 71 ms
71,180 KB
testcase_10 AC 72 ms
71,576 KB
testcase_11 AC 70 ms
71,432 KB
testcase_12 AC 74 ms
71,328 KB
testcase_13 AC 72 ms
71,580 KB
testcase_14 AC 72 ms
71,464 KB
testcase_15 AC 72 ms
71,436 KB
testcase_16 AC 72 ms
71,456 KB
testcase_17 AC 72 ms
71,108 KB
testcase_18 AC 71 ms
71,380 KB
testcase_19 AC 71 ms
71,388 KB
testcase_20 AC 71 ms
71,392 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a, b = map(int, input().split())
c, d = 1+a//2*2, 1+b//2*2
print((c*d+(2*a+1-c)*(2*b+1-d))%(10**9+7))
0