C++ Optimizations — Help!

Revision en3, by firegod_galactus, 2020-11-10 12:13:53

I am doing a task in which there are 300000(3e5) queries, after using assertion, I came to know only 5000 queries are left. I want to know if there are any other some c++ optimizations to squeeze my solution to AC.

I am currently using:
1. scanf
2. printf
3. #pragma GCC target ("avx2") #pragma GCC optimization ("O3") #pragma GCC optimization ("unroll-loops")
4. Fast I/O

Tags #c++, #optimization, #help

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en3 English firegod_galactus 2020-11-10 12:13:53 17 Tiny change: 'ps")` <br>' -> 'ps")` <br>\n4. `Fast I/O`'
en2 English firegod_galactus 2020-11-10 11:59:58 8
en1 English firegod_galactus 2020-11-10 11:59:26 417 Initial revision (published)