Code Festival A If you cannot solve this by taki

#include <iostream>\x0d
using namespace std;\x0d
int main() {\x0d
  int n, m, t;\x0d
  while (cin >> n) {\x0d
    cin >> m;\x0d
    int sum = m;\x0d
    for (int i = 1; i < n; i++) {\x0d
      cin >> t;\x0d
      sum += t;\x0d
    cout << (m * 2 * n <= sum ? "Fail" : "Pass") << endl;\x0d
return 0;\x0d

Note that non-ascii characters in the above source code will be escaped (such as \x9f).


return to the top page