結果

問題 No.84 悪の算盤
ユーザー カニ戯(ryカニ戯(ry
提出日時 2015-02-25 13:31:28
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 220 bytes
コンパイル時間 1,919 ms
コンパイル使用メモリ 70,956 KB
実行使用メモリ 58,012 KB
最終ジャッジ日時 2023-09-06 04:28:00
合計ジャッジ時間 4,401 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
55,756 KB
testcase_01 AC 117 ms
55,752 KB
testcase_02 AC 118 ms
55,660 KB
testcase_03 WA -
testcase_04 AC 120 ms
55,916 KB
testcase_05 AC 121 ms
55,396 KB
testcase_06 WA -
testcase_07 AC 123 ms
55,424 KB
testcase_08 WA -
testcase_09 AC 123 ms
56,004 KB
testcase_10 AC 121 ms
55,864 KB
testcase_11 AC 120 ms
55,892 KB
testcase_12 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;


public class Main {
	public static void main(String[] a) {
		Scanner s=new Scanner(System.in);
		long R=s.nextLong(),C=s.nextLong();
		System.out.println((R==1&&C==1)?0:R*C/(R==C?4:2)-1);
	}
}
0