結果
問題 | No.63 ポッキーゲーム |
ユーザー |
![]() |
提出日時 | 2016-05-03 20:35:32 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 368 ms / 5,000 ms |
コード長 | 387 bytes |
コンパイル時間 | 2,176 ms |
コンパイル使用メモリ | 74,960 KB |
実行使用メモリ | 37,756 KB |
最終ジャッジ日時 | 2024-12-24 05:06:16 |
合計ジャッジ時間 | 5,527 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 22 |
ソースコード
import java.io.*;class no63{public static void main(String args[])throws IOException{BufferedReader sc=new BufferedReader(new InputStreamReader(System.in));String lk[]=sc.readLine().split(" ");int l,k,ans=0;l=Integer.parseInt(lk[0]);k=Integer.parseInt(lk[1]);while(l>0){l-=2*k;if(l<=0)break;ans++;}System.out.println(ans*k);}}