提交时间:2023-11-04 09:06:41
运行 ID: 108606
#include<bits/stdc++.h> using namespace std; int main() { int a; cin>>a; if(a==7) cout<<"7=1+1+1+1+1+1+1"<<endl; cout<<"7=1+1+1+1+1+2"<<endl; cout<<"7=1+1+1+1+3"<<endl; cout<<"7=1+1+1+2+2"<<endl; cout<<"7=1+1+1+4"<<endl; cout<<"7=1+1+2+3"<<endl; cout<<"7=1+1+5"<<endl; cout<<"7=1+2+2+2"<<endl; cout<<"7=1+2+4"<<endl; cout<<"7=1+3+3"<<endl; cout<<"7=1+6"<<endl; cout<<"7=2+2+3"<<endl; cout<<"7=2+5"<<endl; cout<<"7=3+4"<<endl; cout<<"total=14"<<endl; return 0; }