結果
問題 |
No.745 letinopia raoha
|
ユーザー |
|
提出日時 | 2019-07-08 00:05:04 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 120 ms / 2,000 ms |
コード長 | 616 bytes |
コンパイル時間 | 2,953 ms |
コンパイル使用メモリ | 80,484 KB |
実行使用メモリ | 41,632 KB |
最終ジャッジ日時 | 2024-10-05 20:49:35 |
合計ジャッジ時間 | 4,714 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 8 |
ソースコード
import java.util.*; import java.io.*; import java.math.*; public class No745 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(), b = sc.nextInt(), c = sc.nextInt(), d = sc.nextInt(); int o = 0 , k = 0; if(d >= 10) { System.out.println("Impossible"); return; } for(int i = 0; i < b; i++) { o += (int)Math.pow(2, i / 100) * 50; } for(int i = b; i < a + b; i++) { o += (int)Math.pow(2, i / 100) * 100; } System.out.println("Possible"); System.out.println(o); } }