結果

問題 No.604 誕生日のお小遣い
ユーザー olphe
提出日時 2017-12-04 00:01:25
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 472 bytes
コンパイル時間 741 ms
コンパイル使用メモリ 94,732 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-11-28 14:58:39
合計ジャッジ時間 1,697 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 2
other AC * 10 WA * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

#include "iostream"
#include "climits"
#include "list"
#include "queue"
#include "stack"
#include "set"
#include "functional"
#include "algorithm"
#include "string"
#include "map"
#include "iomanip"
#include "cmath"

using namespace std;

const long long int MOD = 1000000007;

long long int N, M, K, H, W, L, R;


int main() {
	ios::sync_with_stdio(false);
	cin.tie(0);

	cin >> N >> M >> K;
	L = K / (M + N - 1);
	cout << L + min(N,K % (M + N - 1)) << endl;
	return 0;
}
0