以下の内容はhttps://blog.hamayanhamayan.com/entry/2019/11/23/155829より取得しました。


Live Performers [TSG LIVE! 4 プログラミングコンテスト A]

https://www.hackerrank.com/contests/tsg-live-4-programming-contest/challenges/tsg-live-4-procon-live-performer

解法

https://www.hackerrank.com/contests/tsg-live-4-programming-contest/challenges/tsg-live-4-procon-live-performer/submissions/code/1317856170

1つの枠でK人必要ということは、全員フル動員で出動可能な枠はM/Kとなる。
これが、N以上かどうかを判定すればいい。

int N, M, K;
//---------------------------------------------------------------------------------------------------
void _main() {
    cin >> N >> M >> K;
    
    if (N <= M / K) cout << "Yes" << endl;
    else cout << "No" << endl;
}



以上の内容はhttps://blog.hamayanhamayan.com/entry/2019/11/23/155829より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14