結果
| 問題 |
No.169 何分かかるの!?
|
| ユーザー |
Maeda
|
| 提出日時 | 2025-08-25 15:46:17 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 416 bytes |
| コンパイル時間 | 2,106 ms |
| コンパイル使用メモリ | 78,296 KB |
| 実行使用メモリ | 46,892 KB |
| 最終ジャッジ日時 | 2025-08-25 15:46:25 |
| 合計ジャッジ時間 | 6,504 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 2 |
| other | WA * 22 |
ソースコード
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
double k = scan.nextInt();
double s = scan.nextInt();
double now = 100 - k;
System.out.println("残り:" + now + "%");
double parsent = s / now;
System.out.println("1%辺り:" + now + "分");
System.out.println(String.format("%.0f", (parsent * 100)));
}
}
Maeda