結果
問題 |
No.63 ポッキーゲーム
|
ユーザー |
![]() |
提出日時 | 2016-10-27 11:53:09 |
言語 | Java (openjdk 23) |
結果 |
WA
|
実行時間 | - |
コード長 | 434 bytes |
コンパイル時間 | 2,577 ms |
コンパイル使用メモリ | 74,368 KB |
実行使用メモリ | 41,908 KB |
最終ジャッジ日時 | 2024-11-24 04:54:20 |
合計ジャッジ時間 | 5,766 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 6 WA * 16 |
ソースコード
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); double pockyLength = sc.nextInt(); double perCrunchLength = sc.nextInt(); int numCrunch = (int) (Math.ceil(pockyLength / 2 * perCrunchLength) - 1); int eatPockyLenght = (int) (numCrunch * perCrunchLength); System.out.println(eatPockyLenght); } }