結果

問題 No.1680 Sum and Difference
ユーザー tassei903tassei903
提出日時 2021-09-17 21:39:49
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 72 ms / 1,000 ms
コード長 469 bytes
コンパイル時間 851 ms
コンパイル使用メモリ 87,172 KB
実行使用メモリ 71,380 KB
最終ジャッジ日時 2023-09-12 07:06:16
合計ジャッジ時間 3,450 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,052 KB
testcase_01 AC 70 ms
71,076 KB
testcase_02 AC 71 ms
70,876 KB
testcase_03 AC 69 ms
71,316 KB
testcase_04 AC 70 ms
71,124 KB
testcase_05 AC 69 ms
71,188 KB
testcase_06 AC 70 ms
71,380 KB
testcase_07 AC 70 ms
71,064 KB
testcase_08 AC 71 ms
71,152 KB
testcase_09 AC 72 ms
71,180 KB
testcase_10 AC 68 ms
70,988 KB
testcase_11 AC 68 ms
71,352 KB
testcase_12 AC 70 ms
71,220 KB
testcase_13 AC 71 ms
71,192 KB
testcase_14 AC 70 ms
71,104 KB
testcase_15 AC 70 ms
71,260 KB
testcase_16 AC 70 ms
71,248 KB
testcase_17 AC 71 ms
71,128 KB
testcase_18 AC 70 ms
71,216 KB
testcase_19 AC 70 ms
71,028 KB
testcase_20 AC 71 ms
71,216 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = lambda :sys.stdin.readline()[:-1]
ni = lambda :int(input())
na = lambda :list(map(int,input().split()))
sys.setrecursionlimit(10**7)
yes = lambda :print("yes");Yes = lambda :print("Yes");YES = lambda : print("YES")
no = lambda :print("no");No = lambda :print("No");NO = lambda : print("NO")
#######################################################################

a,b = na()
mod = 10**9+7
print(((a//2*2+1)*(b//2*2+1)+((a+1)//2*2)*((b+1)//2*2))%mod)
0