結果
問題 | No.63 ポッキーゲーム |
ユーザー |
|
提出日時 | 2018-04-10 20:10:30 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 369 ms / 5,000 ms |
コード長 | 367 bytes |
コンパイル時間 | 2,148 ms |
コンパイル使用メモリ | 74,924 KB |
実行使用メモリ | 54,228 KB |
最終ジャッジ日時 | 2024-06-26 20:56:52 |
合計ジャッジ時間 | 6,644 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 22 |
ソースコード
import java.io.*;import java.util.*;class Main{public static void main(String[] args) throws IOException{Scanner scan=new Scanner(System.in);int l=Integer.parseInt(scan.next());int k=Integer.parseInt(scan.next());int count=0;while(l>2*k){l-=2*k;count++;}int yuu=k*count;System.out.println(yuu);}}