Educational Codeforces Round 112 (Rated for Div. 2) 题解
题目链接:http://codeforces.com/contest/1555A. PizzaForcessolve: gcd是120,但是要处理240之内的最优情况,因为121就不是120+1。#include<bits/stdc++.h>using namespace std;#define inf 0x3f3f3f3ftypedef long long ll;const int mx = 3e2 + 10;int sum[mx];int main(){ mem.