Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
47162 | C++|付浩泽 | 练27.2 布纳特难题 | C++ | No Test Data | 0 MS | 0 KB | 171 | 2024-05-12 17:18:46 |
#include<iostream> using namespace std; int main(){ int s=0; for(int i=1;i<=5;i++){ s+=i; if(i!=5) cout<<i<<"+"; else cout<<i<<"="<<endl; } return 0; }