SRM 608, D2, 250-Pointer (OneDimensionalRobotEasy)
James S. Plank
Mon Aug 29 10:44:06 EDT 2016
Problem Statement
.
A
main()
with the examples compiled in.
A skeleton that compiles with
main.cpp
.
Problem Given in Topcoder
: 2014
Competitors who opened the problem
: 1195
Competitors who submitted a solution
: 1162
Number of correct solutions
: 1120
Accuracy (percentage correct vs those who opened)
: 93.72%
Average Correct Time
: 7 minutes, 57 seconds.
Your goal here is simply to simulate the robot. Monitor its position in an integer, and run through the command string, updating the robot's position.
My Solution.