#include <bits/stdc++.h> using namespace std; int main() { int a,b,c,d; cin>>a>>b>>c>>d; cout<<" "<<a+b+c+d<<endl; return 0; }$$
#include<bits/stdc++.h> using namespace std; int main(){ int a,b,c,d; cin >> a >> b >> c >> d ; cout<<a+b+c+d; return 0; }
#include<iostream> using namespace std; int main(){ int a,b,c,d; while(true){ cin>>a>>b>>c>>d; if(a>=0&&a<=100&& b>=0&&b<=100&& c>=0&&c<=100&& d>=0&&d<=100){ break; }else{ cout<<"输入的分数格式不对重新输入"<<endl; } } cout<<a+b+c+d; return 0; }
使用您的 蒙青创OJ 通用账户