結果

問題 No.63 ポッキーゲーム
ユーザー (,,゚Д゚)TERIA な の で す(,,゚Д゚)TERIA な の で す
提出日時 2014-11-16 03:44:55
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 244 bytes
コンパイル時間 4,168 ms
コンパイル使用メモリ 71,636 KB
実行使用メモリ 57,744 KB
最終ジャッジ日時 2023-08-30 07:07:23
合計ジャッジ時間 7,168 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 124 ms
56,064 KB
testcase_01 AC 125 ms
55,436 KB
testcase_02 AC 124 ms
55,856 KB
testcase_03 AC 126 ms
53,700 KB
testcase_04 WA -
testcase_05 AC 123 ms
55,744 KB
testcase_06 AC 123 ms
55,436 KB
testcase_07 AC 121 ms
55,740 KB
testcase_08 AC 122 ms
55,404 KB
testcase_09 AC 125 ms
55,704 KB
testcase_10 AC 123 ms
55,896 KB
testcase_11 AC 124 ms
55,756 KB
testcase_12 AC 125 ms
57,708 KB
testcase_13 WA -
testcase_14 AC 122 ms
55,632 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 125 ms
55,760 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
public class Kyosaya{
	public static void main(String args[])
	{
		Scanner s=new Scanner(System.in);
		int pocky = s.nextInt();
		int gnaw = s.nextInt();
		System.out.println(pocky-(pocky-(pocky/gnaw/2)*gnaw));
	}
}
0