結果

問題 No.84 悪の算盤
ユーザー カニ戯(ryカニ戯(ry
提出日時 2015-02-25 13:30:31
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 205 bytes
コンパイル時間 1,868 ms
コンパイル使用メモリ 71,460 KB
実行使用メモリ 57,560 KB
最終ジャッジ日時 2023-09-06 04:27:43
合計ジャッジ時間 4,427 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
56,088 KB
testcase_01 AC 121 ms
55,764 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 123 ms
55,704 KB
testcase_05 AC 121 ms
55,628 KB
testcase_06 WA -
testcase_07 AC 122 ms
56,200 KB
testcase_08 WA -
testcase_09 AC 120 ms
55,848 KB
testcase_10 AC 121 ms
55,728 KB
testcase_11 AC 121 ms
55,844 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*C/(R==C?4:2)-1);
	}
}
0