結果

問題 No.84 悪の算盤
ユーザー ixmelixmel
提出日時 2017-04-22 22:33:08
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 125 bytes
コンパイル時間 99 ms
コンパイル使用メモリ 10,660 KB
実行使用メモリ 7,948 KB
最終ジャッジ日時 2023-09-28 21:33:50
合計ジャッジ時間 1,164 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
7,776 KB
testcase_01 AC 16 ms
7,684 KB
testcase_02 AC 17 ms
7,848 KB
testcase_03 AC 16 ms
7,796 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 16 ms
7,764 KB
testcase_07 AC 16 ms
7,856 KB
testcase_08 AC 16 ms
7,772 KB
testcase_09 AC 15 ms
7,792 KB
testcase_10 AC 16 ms
7,760 KB
testcase_11 AC 16 ms
7,808 KB
testcase_12 AC 16 ms
7,684 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b=map(int,input().split())
if a==b:
	if a%2:
		a//=2
		print(a*(a+1))
	else:
		a//=2
		print(a*a)
else:print((a*b+1)//2-1)
0