A. Watching a movie time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output You have decided to watch the best moments of some movie. There are two buttons on your player: Watch the current minute…
嗯... 题目链接:https://www.luogu.org/problem/P2239 这道题首先不能暴力建图,没有简单方法,只有进行进行找规律. AC代码: #include<cstdio> #include<iostream> using namespace std; inline int work(int n, int x, int y){ ) return y; ; * n - - y; ) * n - - x; , x - , y - ) + * (n - ); }…