結果
問題 |
No.63 ポッキーゲーム
|
ユーザー |
|
提出日時 | 2021-02-12 19:43:54 |
言語 | Java (openjdk 23) |
結果 |
WA
|
実行時間 | - |
コード長 | 425 bytes |
コンパイル時間 | 2,839 ms |
コンパイル使用メモリ | 80,012 KB |
実行使用メモリ | 41,480 KB |
最終ジャッジ日時 | 2024-07-19 18:31:46 |
合計ジャッジ時間 | 5,908 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 15 WA * 7 |
ソースコード
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); int L=sc.nextInt(); //90 int K=sc.nextInt(); //20 *2 int result=0; for(int i = K * 2; i <= L; ){ if(K * 2 < L){ result+=K; } i+=K*2; } System.out.println(result); sc.close(); } }