結果

問題 No.84 悪の算盤
ユーザー kano_town
提出日時 2014-12-05 20:45:02
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 280 bytes
コンパイル時間 3,742 ms
コンパイル使用メモリ 74,544 KB
実行使用メモリ 54,460 KB
最終ジャッジ日時 2024-06-11 15:46:22
合計ジャッジ時間 5,956 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 7 WA * 3
権限があれば一括ダウンロードができます

ソースコード

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