摘要:
原题链接 题解 对于最后一个A,其右边的B都能走 对于倒数第二个A,他能走到第一个A之前的位置 ... 第一个A到最后一个B的距离 code #include<bits/stdc++.h> using namespace std; int a[15]; int solve() { int n; ci 阅读全文
摘要:
原题链接 题解 对于 \(n\) 来说,所有数都比他小,所以他一定能到达数组末尾 对于 \(n-1\) 来说,同理 ... 所以 1 一定要在开头 code #include<bits/stdc++.h> using namespace std; int a[15]; bool solve() { 阅读全文
