| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 2319 | 顾顺 | 奇数及偶数和 | C++ | Wrong Answer | 0 | 0 MS | 244 KB | 273 | 2019-11-17 09:32:00 |
#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+=i; //y=y+1; } } //p=p-1; //y=y+1; cout<<p<<"\\"<<y; return 0; }