fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main() {
  5.  
  6. int n,a,b,c,x;
  7. cin >> a>>b>>c>>n;
  8. x=a+b+c;
  9. for (int i=1;i<=n;i++){
  10. cout << x << endl;
  11. }
  12. }
  13.  
  14.  
  15.  
Success #stdin #stdout 0.01s 5324KB
stdin
3
110
100
111
stdout
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213
213