Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
47161 | menziyi | 练27.2 布纳特难题 | C++ | No Test Data | 0 MS | 0 KB | 176 | 2024-05-12 17:17:23 |
#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<<"="<<s<<endl; } return 0; }