結果

問題 No.84 悪の算盤
ユーザー tentententen
提出日時 2020-11-17 13:49:52
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 255 bytes
コンパイル時間 3,416 ms
コンパイル使用メモリ 71,108 KB
実行使用メモリ 56,076 KB
最終ジャッジ日時 2023-09-30 14:11:53
合計ジャッジ時間 4,461 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 127 ms
55,912 KB
testcase_01 AC 128 ms
55,708 KB
testcase_02 AC 127 ms
55,816 KB
testcase_03 AC 126 ms
55,468 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 128 ms
55,980 KB
testcase_08 AC 126 ms
55,808 KB
testcase_09 AC 125 ms
56,076 KB
testcase_10 AC 125 ms
55,768 KB
testcase_11 AC 126 ms
55,712 KB
testcase_12 AC 126 ms
56,064 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        long x = sc.nextLong() * sc.nextLong();
        long ans = (x + 1) / 2 - 1;
        System.out.println(ans);
    }
}
0