Search found 3 matches

by crazytim
Sun Oct 25, 2015 9:36 am
Forum: Volume 129 (12900-12999)
Topic: 12980 - Keypad Problem
Replies: 0
Views: 578

12980 - Keypad Problem

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' ?
by crazytim
Sun Jul 19, 2015 8:34 am
Forum: Volume 129 (12900-12999)
Topic: 12908 - The book thief
Replies: 4
Views: 1080

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 much. I wo...
by crazytim
Tue Feb 17, 2015 10:59 am
Forum: Volume 116 (11600-11699)
Topic: 11624 - Fire!
Replies: 54
Views: 14997

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 <cstd...

Go to advanced search