結果

問題 No.63 ポッキーゲーム
ユーザー yamaken1343yamaken1343
提出日時 2015-10-26 22:10:50
言語 C++11
(gcc 11.4.0)
結果
RE  
実行時間 -
コード長 147 bytes
コンパイル時間 158 ms
コンパイル使用メモリ 24,848 KB
実行使用メモリ 4,508 KB
最終ジャッジ日時 2023-10-01 00:37:28
合計ジャッジ時間 2,258 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 AC 2 ms
4,376 KB
testcase_02 RE -
testcase_03 WA -
testcase_04 AC 1 ms
4,380 KB
testcase_05 AC 1 ms
4,380 KB
testcase_06 AC 1 ms
4,376 KB
testcase_07 WA -
testcase_08 AC 1 ms
4,380 KB
testcase_09 AC 1 ms
4,376 KB
testcase_10 AC 2 ms
4,376 KB
testcase_11 RE -
testcase_12 AC 2 ms
4,380 KB
testcase_13 RE -
testcase_14 AC 1 ms
4,376 KB
testcase_15 AC 2 ms
4,380 KB
testcase_16 WA -
testcase_17 RE -
testcase_18 AC 1 ms
4,380 KB
testcase_19 AC 2 ms
4,376 KB
testcase_20 RE -
testcase_21 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>

int main(void){
	int l,k,a;
	
	scanf("%d%d",&l, &k);
	
	a = l/(k*2);
	if(l%(k/2) == 0) a--;
	
	printf("%d",k*a);
	
	return 0;
}
0