| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 2314 | 顾顺 | 奇数及偶数和 | C++ | Wrong Answer | 0 | 0 MS | 256 KB | 269 | 2019-11-17 09:27:49 |
#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; }