結果
問題 |
No.63 ポッキーゲーム
|
ユーザー |
![]() |
提出日時 | 2022-06-10 14:56:18 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 122 ms / 5,000 ms |
コード長 | 396 bytes |
コンパイル時間 | 2,483 ms |
コンパイル使用メモリ | 73,692 KB |
実行使用メモリ | 41,476 KB |
最終ジャッジ日時 | 2024-09-21 05:46:29 |
合計ジャッジ時間 | 5,955 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 22 |
ソースコード
import java.util.*; public class Main { public static void main(String[] args) throws Exception { // Your code here! Scanner sc=new Scanner(System.in); String[] line; line=sc.nextLine().split(" "); int tmp=Integer.parseInt(line[0]); int tmp1=Integer.parseInt(line[1]); tmp=(tmp-1)/2/tmp1*tmp1; System.out.println(tmp); } }