题解 | #Energy Synergy Matrix#
宙天
https://ac.nowcoder.com/acm/contest/120563/A
F题题解:
0:代表小小红
1:代表小红
2:代表小紫
代码演示:
#include<bits/stdc++.h>
using namespace std;
#define int long long
#define endl '\n'
const int N = 500010;
void solve(){
int n;
cin>>n;
cout<<(n-1)+n/5<<endl;
}
signed main(){
ios::sync_with_stdio(false);cin.tie(0),cout.tie(0);
int T=1;cin>>T;
while(T--){
solve();
}
return 0;
}

查看27道真题和解析