結果

問題 No.477 MVP
ユーザー dashi_dragonsdashi_dragons
提出日時 2017-02-09 01:04:01
言語 C90
(gcc 11.4.0)
結果
AC  
実行時間 1 ms / 1,000 ms
コード長 361 bytes
コンパイル時間 604 ms
コンパイル使用メモリ 23,168 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-08-26 17:42:57
合計ジャッジ時間 1,255 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 0 ms
4,380 KB
testcase_01 AC 1 ms
4,380 KB
testcase_02 AC 1 ms
4,376 KB
testcase_03 AC 0 ms
4,380 KB
testcase_04 AC 1 ms
4,376 KB
testcase_05 AC 1 ms
4,376 KB
testcase_06 AC 0 ms
4,376 KB
testcase_07 AC 0 ms
4,376 KB
testcase_08 AC 0 ms
4,376 KB
testcase_09 AC 1 ms
4,376 KB
testcase_10 AC 1 ms
4,376 KB
testcase_11 AC 0 ms
4,380 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>

unsigned long select_mvp(unsigned long hp,unsigned long mvp_num);

int main(){

	unsigned long hp,mvp_num;
	char buf[40];

	fgets(buf,40,stdin);
	sscanf(buf,"%ld %ld",&hp,&mvp_num);

	printf("%ld\n",select_mvp(hp,mvp_num));
	
	return 0;
}


unsigned long select_mvp(unsigned long hp,unsigned long mvp_num){

	return hp / (mvp_num + 1) + 1;
}
0