题解 | #Energy Synergy Matrix#

宙天

https://ac.nowcoder.com/acm/contest/120563/A

F题题解:

0:代表小小红

1:代表小红

2:代表小紫

alt

代码演示:

#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;
}
全部评论

相关推荐

程序员小白条:三方不签,不就是纯实习骗人吗,还是小公司,没毛了
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务