← Back to List

5565번: 영수증 ↗

Solutions

C++14
140 B | 140 chars
#include <iostream>
using namespace std;
int Sum,A;
int main()
{
	cin>>Sum;
	for(int x=0; x<9; x++)
	{
		cin>>A;
		Sum-=A;
	}
	cout<<Sum;
}