#include <deque> #include <iostream> #include <iterator> #include <vector> using namespace std; int main() { int n; cin >> n; deque<int> que; // que里面前面全是5的倍数,后面全是非5 3 的倍数 int sum = 0; int pos = 0; int sumFive = 0; while (n--) { ...