Time Exceeded
/in/foo.cc: In function 'int main()':
/in/foo.cc:14:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(int x=0;x<=n/a[1].s;x++)
^~~
/in/foo.cc:19:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
cout<<ans<<endl;
^~~~