Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
87454 黄睿杰 01第一个C++程序 C++ Accepted 0 MS 260 KB 177 2024-08-10 11:41:26

Tests(1/1):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int n,s=1; for(int i=2;i<=n;i++){ if(i%2==0) s+=i; if(i%2==1) s-=i; } cout<<"hello,lema"; return 0; }