結果

問題 No.1713 trick or treat!
ユーザー danieldaniel
提出日時 2022-01-11 01:10:39
言語 Java21
(openjdk 21)
結果
AC  
実行時間 117 ms / 2,000 ms
コード長 448 bytes
コンパイル時間 6,752 ms
コンパイル使用メモリ 73,136 KB
実行使用メモリ 55,940 KB
最終ジャッジ日時 2023-08-09 05:34:15
合計ジャッジ時間 8,223 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 115 ms
55,676 KB
testcase_01 AC 116 ms
55,696 KB
testcase_02 AC 115 ms
55,448 KB
testcase_03 AC 117 ms
55,436 KB
testcase_04 AC 115 ms
55,744 KB
testcase_05 AC 116 ms
55,652 KB
testcase_06 AC 114 ms
55,940 KB
testcase_07 AC 116 ms
55,748 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package com.example;

import java.util.Scanner;

/**
 * Hello world!
 *
 */
public class App {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = Integer.parseInt(sc.next());
        int b = Integer.parseInt(sc.next());
        int c = a | b;
        long d = 1;
        for (int i = 1; i <= c; i ++) {
            d *= i;
        };
        System.out.println(d);
        sc.close();
    }
}
0