AC后的奇思妙想
查看原帖
AC后的奇思妙想
947863
SHC_CENSORED楼主2023/11/25 18:47

纸张的骗分 20

#include<bits/stdc++.h>
using namespace std;
int n,sum;
int main(){
	ios::sync_with_stdio(0);cin.tie(0);
	cin>>n;
	for(int i=1;i<=n;i++){
		sum+=i;
	}
	cout<<sum-1;
	return 0;
}
2023/11/25 18:47
加载中...