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