結果
問題 |
No.63 ポッキーゲーム
|
ユーザー |
![]() |
提出日時 | 2018-06-04 11:19:40 |
言語 | Java (openjdk 23) |
結果 |
WA
|
実行時間 | - |
コード長 | 360 bytes |
コンパイル時間 | 2,127 ms |
コンパイル使用メモリ | 74,592 KB |
実行使用メモリ | 56,324 KB |
最終ジャッジ日時 | 2024-06-30 09:33:56 |
合計ジャッジ時間 | 7,300 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 22 |
ソースコード
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int l = scan.nextInt(); int k = scan.nextInt(); int c = 0; while (l > 0) { l -= 2 * k; c++; } System.err.println((c - 1) * k); scan.close(); } }