提交时间:2019-11-17 09:27:49
运行 ID: 2314
#include<bits/stdc++.h> using namespace std; int main(){ int n,i,y,b,p,j; cin>>n; for(int i=0;i<=n;i++){ if(i%2!=0){ p+=i; //p=p-1; } if(i%2==0){ //i--; y+=n; //y=y+1; } } p=p-1; y=y+1; cout<<p<<"\\"<<y; return 0; }