結果

問題 No.2706 One Nafmo
ユーザー wa
提出日時 2024-04-07 19:39:41
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 211 bytes
コンパイル時間 576 ms
コンパイル使用メモリ 66,564 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-10-01 04:39:28
合計ジャッジ時間 1,157 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<vector>
using namespace std;

int main() {
	int A, B, X; cin >> A >> B >> X;
	int ans = 0; int res = 0;
	while (res < X) {
		res = res + A;
		ans = ans + B;
	}
	cout << ans << endl;
}
0