I am confused with this problem, that is, can we press '-' key in the beginning ?
For example, can we display -2 by pressing '-' and '2' ?
Search found 3 matches
Search found 3 matches • Page 1 of 1
- Sun Jul 19, 2015 8:34 am
- Forum: Volume 129 (12900-12999)
- Topic: 12908 - The book thief
- Replies: 4
- Views: 1046
I got TLE for the first time. And I also tried the following tips for I/O: ios_base::sync_with_stdio(0); cin.tie(0); But I still got TLE. Finally, I use scanf/printf instead of cin/cout, and got Accepted with 0.142s. In my experience, the difference between these two approaches wasn't too much. I wo...
- Tue Feb 17, 2015 10:59 am
- Forum: Volume 116 (11600-11699)
- Topic: 11624 - Fire!
- Replies: 54
- Views: 14669
I think my approach to this problem can run in time limit. I let all the fires move one step before Joe moves until he escapes the maze or he is surrounded by fires. But actually, I got TLE many times and don't know why. Can someone help me to point where is wrong? #include <iostream> #include <cstd...