Please subscribe to the official Codeforces channel in Telegram via the link https://t.me/codeforces_official. ×

Problem with Codeforces C++ 11 compiler?
Difference between en1 and en2, changed 1 character(s)
I've recently come across a very strange problem using C++ 11.↵

I submitted a solution for problem [problem:620C] using unordered_map and got TLE, then I submitted the exact same solution using map (it's supposed to be slower: 
($O(1)$ amortized VS $O(_{log}N)$ per operation) and it got Accepted with 280 ms.↵

Submission with unordered_map: [submission:15756653]↵

Submission with map: [submission:15759645]↵

Is this some kind of problem with the C++11 compiler used here on Codeforces? Anyone got a clue?

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English tenshi_kanade 2016-02-03 02:24:40 1 Tiny change: 'e slower: ($O(1)$ amo' -> 'e slower: $O(1)$ amo'
en1 English tenshi_kanade 2016-02-03 02:23:54 552 Initial revision (published)