input q n q行 F a b或者Q a b output face left face top face right 可以用map或者线段树做 //map #include<cstdio> #include<map> using namespace std; map<int, char>a; int main() { int n, t, i, d2, d1, r, l, s; char com; map<int, char>::iterator p,…
D. Points time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Pete and Bob invented a new interesting game. Bob takes a sheet of paper and locates a Cartesian coordinate system on it as follow…