結果

問題 No.388 階段 (1)
ユーザー kapokapo
提出日時 2016-07-08 23:33:59
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 344 bytes
コンパイル時間 465 ms
コンパイル使用メモリ 62,996 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-04-21 08:28:13
合計ジャッジ時間 1,294 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#define _CRT_SECURE_NO_WARNINGS // #pragma warning(disable:4996)
#include <iostream>
#include <algorithm>
#include <vector>
#include <string>
#include <functional>
using namespace std; 


int main()
{
	int S, F;
	cin >> S >> F;

	if(!S) {
		cout << 1 << endl;
		return 0;
	}

	int ans = S/F;
	if (S&F) ans++;
	cout << ans << endl;
	return 0;
}
0