i need your perspective

Revision en2, by mac_n_cheese_pog, 2021-08-10 13:54:44

all this time i am actually trying to remember as many tricks as possible instead of trying to get it first.its like the case where a kid cant do multiplication because they dont know what it is.

an example of a trick i learned is getting total sum of input.for example we have an array

a[5]={1,2,3,4,5}

at first i do not know how to get the sum of the numbers of the array.eventually i searched about it on the internet.i found out that its possible by making an additional variable like int sum=0.(i found this out when i was a total newbie)

my problem is that wnever i attend a contest,i feel like the problem is very new and thus making me stuck.the problem seems very strange to me and i couldnt find a common trick to tackle the problem.and i always think my training became a waste since everytime i encounter a problem,its brand new.its no tlike a common topic like taking sum or maybe some formula.

i really need your perspective to overcome my problem

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English mac_n_cheese_pog 2021-08-10 13:54:44 2 Tiny change: 'ke int sum-0.(i found' -> 'ke int sum=0.(i found'
en1 English mac_n_cheese_pog 2021-08-10 13:53:52 1011 Initial revision (published)