fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main(){
  5. int a[10009],n=1,m=2,b[10009];
  6. while(cin>>a[n]){
  7. n++;
  8. }
  9. cout<<n;
  10. }
Success #stdin #stdout 0.01s 5240KB
stdin
2 4 1 0 1 9 8 0

1 1 0 8 2 0 0 9
stdout
17