結果
| 問題 | No.1713 trick or treat! |
| コンテスト | |
| ユーザー |
ks2m
|
| 提出日時 | 2021-10-22 21:21:49 |
| 言語 | Java (openjdk 26.0.2.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 56 ms / 2,000 ms |
| + 868µs | |
| コード長 | 323 bytes |
| 記録 | |
| コンパイル時間 | 1,430 ms |
| コンパイル使用メモリ | 84,180 KB |
| 実行使用メモリ | 45,520 KB |
| 最終ジャッジ日時 | 2026-09-02 23:05:32 |
| 合計ジャッジ時間 | 2,963 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 5 |
ソースコード
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
sc.close();
int c = a | b;
long ans = 1;
for (int i = 1; i <= c; i++) {
ans *= i;
}
System.out.println(ans);
}
}
ks2m