A ring is compose of n circles as shown in diagram. Put natural number 1, 2, ..., n into each circle separately, and the sum of numbers in two adjacen Read More
posted @ 2017-03-30 17:56 地对地导弹2 Views(140) Comments(0) Diggs(0)
# include <cstdio> # include <cmath> # include <algorithm> using namespace std; int n, s[10]; int main(){ int i, j, k, a, b, c, ans; scanf("%d", &n); Read More
posted @ 2017-03-30 16:58 地对地导弹2 Views(109) Comments(0) Diggs(0)