結果
問題 | No.1713 trick or treat! |
ユーザー |
|
提出日時 | 2022-01-11 01:10:39 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 130 ms / 2,000 ms |
コード長 | 448 bytes |
コンパイル時間 | 3,718 ms |
コンパイル使用メモリ | 76,108 KB |
実行使用メモリ | 54,268 KB |
最終ジャッジ日時 | 2024-11-14 11:22:59 |
合計ジャッジ時間 | 5,561 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 5 |
ソースコード
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();}}