結果

問題 No.84 悪の算盤
ユーザー kano_townkano_town
提出日時 2014-12-05 20:45:02
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 280 bytes
コンパイル時間 3,974 ms
コンパイル使用メモリ 71,620 KB
実行使用メモリ 58,156 KB
最終ジャッジ日時 2023-09-02 08:55:05
合計ジャッジ時間 6,608 ms
ジャッジサーバーID
(参考情報)
judge16 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
55,900 KB
testcase_01 AC 122 ms
55,796 KB
testcase_02 AC 124 ms
56,004 KB
testcase_03 AC 123 ms
56,000 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 133 ms
55,824 KB
testcase_08 AC 122 ms
56,100 KB
testcase_09 AC 122 ms
56,136 KB
testcase_10 AC 127 ms
55,768 KB
testcase_11 AC 124 ms
56,052 KB
testcase_12 AC 126 ms
55,788 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Yukicoder84 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		long R = sc.nextLong(), C = sc.nextLong();
		long b = R % 2 == 0 || C % 2 == 0 ? 1 : 0;
		System.out.println(R * C / 2L - b);
	}
}
0