結果
問題 | No.63 ポッキーゲーム |
ユーザー |
![]() |
提出日時 | 2018-11-20 05:43:21 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 156 ms / 5,000 ms |
コード長 | 262 bytes |
コンパイル時間 | 1,978 ms |
コンパイル使用メモリ | 74,724 KB |
実行使用メモリ | 41,676 KB |
最終ジャッジ日時 | 2024-12-24 15:23:41 |
合計ジャッジ時間 | 6,058 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 22 |
ソースコード
import java.util.Scanner;public class Main{public static void main(String args[])throws Exception{Scanner sc = new Scanner(System.in);int L = sc.nextInt();int K = sc.nextInt();int time = (L-1)/(2*K);System.out.println(time * K);}}