In 1 second or 2 second or 3 second highest how much loop executed ?? How to i find it by own experiment..In generally our IDE(i used codeblocks ) don't give proper executed time..
# | User | Rating |
---|---|---|
1 | tourist | 3947 |
2 | jiangly | 3734 |
3 | Radewoosh | 3646 |
4 | jqdai0815 | 3620 |
4 | Benq | 3620 |
6 | orzdevinwang | 3612 |
7 | ecnerwala | 3581 |
8 | Geothermal | 3569 |
8 | cnnfls_csy | 3569 |
10 | ksun48 | 3479 |
# | User | Contrib. |
---|---|---|
1 | awoo | 162 |
2 | maomao90 | 160 |
3 | nor | 156 |
4 | cry | 155 |
4 | adamant | 155 |
4 | atcoder_official | 155 |
4 | -is-this-fft- | 155 |
8 | maroonrk | 153 |
9 | SecondThread | 147 |
10 | Petr | 146 |
In 1 second or 2 second or 3 second highest how much loop executed ?? How to i find it by own experiment..In generally our IDE(i used codeblocks ) don't give proper executed time..
Name |
---|
It's around 10^8 iterations in 1 second.
No. It really depends what is inside the loop. If the loop has simple array access, + or — or multiplication, with integer numbers, then it will take like around 0.6 second or even less on CF. If the loop contains long long operations with division or modular arithmetic, it might take way more.
No. Sometimes 1000^3 passes in 1 second, I used N=1000 Floyd N^3 algorithm and got 960ms in a Korean ps site.
But, if your program is constant-heavy(ex.set), you sometimes don't make 5*10^7.
The following is an example that demonstrates measuring the average elapsed time per iteration when computing the sum of an arithmetic series. Example. The example is based on the timer class that was presented in previous blog A simple five lines of code C++ timer class to measure elapsed time. The same example gave 0.2782 nsec average execution time per iteration when compiled using GNU G++17 9.2.0 64-bit compiler and run on Codeforces using Custom Invocation.