結果
| 問題 | No.2007 Arbitrary Mod (Easy) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-05-07 16:46:44 |
| 言語 | Java (openjdk 25.0.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 385 bytes |
| 記録 | |
| コンパイル時間 | 3,960 ms |
| コンパイル使用メモリ | 74,344 KB |
| 実行使用メモリ | 41,520 KB |
| 最終ジャッジ日時 | 2024-11-24 16:08:58 |
| 合計ジャッジ時間 | 10,025 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 10 WA * 20 |
ソースコード
import java.util.Scanner;
public class Arbitrary_Mod_2007 {
public static void log(Object obj) {
System.out.println(obj.toString());
}
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int x = 10000000;
long h = (long) Math.floor(Math.pow(sc.nextLong(),sc.nextLong()));
log(x);
log(h%x);
}
}