glapul's blog

By glapul, 10 years ago, In English

Hi

I submitted the following code for 254A (div1) and got WA: http://codeforces.net/contest/444/submission/7022941 However, after changing long longs to ints and long doubles to doubles I got AC: http://codeforces.net/contest/444/submission/7027365

Could any of you explain why did it happen that way?

Regards

  • Vote: I like it
  • 0
  • Vote: I do not like it

»
10 years ago, # |
Rev. 3   Vote: I like it +8 Vote: I do not like it

scanf() doesn't work with long double in MinGW. Here was the same topic.