Codeforces Round #585 DIV2 A問題 (500pt)
Problem description
省略
省略
C++に変換後のコードはこちら
//no-unlocked
{
int A1, A2, K1, K2, N;
int i, j, res1, res2;
rd(A1, A2, K1, K2, N);
if(K1 > K2) swap(K1, K2), swap(A1, A2);
res1 = max(0, N - (K1-1) * A1 - (K2-1) * A2);
i = min(A1, N / K1);
j = (N-i*K1) / K2;
res2 = i + j;
wt(res1, res2);
}
Current time: 2024年04月20日20時50分39秒
Last modified: 2019年09月16日01時48分51秒 (by laycrs)
Tags: Competitive_Programming_Incomplete Codeforces CF585 CF_Div2_A
トップページに戻る
Logged in as: unknown user (not login)