#include <iostream>using namespace std; int main() { int a; cin >> a; for(int i = 0; i < 9; i++){ int x; cin >> x; a -= x; } cout << a; return 0;}
9850 1050 800 420 380 600 820 2400 1800 980
600
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!