A. Fox And Snake 代碼可能有點挫,但能夠快速A掉就夠了。 1 #include <cstdio> 2 3 int main() 4 { 5 //freopen("in.txt", "r", stdin); 6 7 int n, m; 8 scanf("%d%d", &n, &m); 9 for(int i = 1; i <= n; +
文章目錄A. Pretty PermutationsB. Pleasant PairsC. Great Graphs A. Pretty Permutations There are nnn cats in a line, labeled from 111 to nnn, with the iii-th cat at position iii. They are bored of gyrating in the same spot all day, so they want to reorder