Hatena::Grouptopcoder

TopCoderの問題を解く

解いた問題の一覧表

2009-08-12

LevelUp

| 19:23

問題文

次のレベルアップまでに必要な経験値を求める。

244.32/250 - 00:04:07

class LevelUp {
    public:
        int toNextLevel(vector <int> expNeeded, int received) {
            for (int i = 0; i < expNeeded.size(); i++)
                if (received < expNeeded[i])
                    return expNeeded[i] - received;
            return 0;
        }
};

JusticeJustice2011/07/09 15:18Created the greatest artclies, you have.

dhumgkuquyrdhumgkuquyr2011/07/10 00:44RBBBkV <a href="http://hjbppmyhkpug.com/">hjbppmyhkpug</a>

oipwdeoipwde2011/07/11 20:03vO7rh7 <a href="http://ampmjgepjkgf.com/">ampmjgepjkgf</a>