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
- Sun Oct 25, 2015 9:36 am
- Forum: Volume 129 (12900-12999)
- Topic: 12980 - Keypad Problem
- Replies: 0
- Views: 1745
- Sun Jul 19, 2015 8:34 am
- Forum: Volume 129 (12900-12999)
- Topic: 12908 - The book thief
- Replies: 4
- Views: 1837
Re: 12908 - The book thief
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 ...
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 ...
- Tue Feb 17, 2015 10:59 am
- Forum: Volume 116 (11600-11699)
- Topic: 11624 - Fire!
- Replies: 54
- Views: 24200
Re: 11624 - Fire!
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 ...
But actually, I got TLE many times and don't know why. Can someone help me to point where is wrong?
#include <iostream>
#include ...