2020.08.15 [NOIP Improvement Group] Simulation summary reflection

Score: Zero

This game is so difficult QAQ

to sum up

T1 :

This question is the shortest path of a cactus. I thought about it for a while during the game, and found that it didn't seem to be good, so I scored an ordinary shortest path, but I didn't expect it to blow up. . . Where is the pot? Please see the code below.

for (R int i=1;i<=m;i++) 
	x=read(),y=read(),z=read(),add(x,y,z),add(y,x,z);

This is correct, the following is during the game

for (R int i=1;i<=m;i++) 
	x=read(),y=read(),z=read(),add(x,y,z),add(y,z,x);

Did you notice any difference? I added the wrong side to the star plus! ! !

30 minutes to get rough~~~

T2:

Estimated score: 30, actual: 0
is another violent question wrong! ! ! ! ! ! !
So where is this problem?
The variance formula is missing a square! ! ! ! !
So it blew up again. . .

for (R int i=1;i<=s;i++) ans=ans+abs(sum,1.0*a[i])*abs(sum,1.0*a[i]);

Compared

for (R int i=1;i<=s;i++) ans=ans+abs(sum,1.0*a[i]);

Really disgusting. . .

T3&T4:

This time I finally didn’t explode, because I didn’t take these two questions. I
really have no idea after reading the questions! ! !
So goodbye!

Reflection

Be careful, then be careful! ! !
Points that can be obtained with violence must be obtained next time.
After playing multiple matches, be serious and check the code carefully .

Otherwise-the tragedy repeats itself!

Guess you like

Origin blog.csdn.net/qq_49972640/article/details/108023565