Code Festival A If you cannot solve this by thunder

using System;class A{static void Main(){for(;;){var t=Console.ReadLine();if(t==null)break;string[]s=t.Split(' ');int n=s.Length;int S=0;for(int i=1;i<n;i++)S+=(int.Parse(s[i]));Console.WriteLine(int.Parse(s[1])<=(S/(n-1)/2)?"Fail":"Pass");}}}

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

download

return to the top page