Code Festival A If you cannot solve this by toto

#define _CRT_SECURE_NO_WARNINGS\x0d
#include <cstdio>\x0d
int main(){\x0d
\x09int N,i,m,A;\x0d
\x09while (scanf("%d",&N)!=EOF){\x0d
\x09\x09scanf("%d",&m);int s=m;\x0d
\x09\x09for (i=1;i<N;i++){scanf("%d",&A);s+=A;}\x0d
\x09\x09if (m>(int)(s/(N*2)))printf("Pass\n");\x0d
\x09\x09else printf("Fail\n");}\x0d
\x09return 0;}

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

download

return to the top page