← Back to List

2845번: 파티가 끝나고 난 뒤 ↗

Solutions

C++14
163 B | 163 chars
#include <iostream>
using namespace std;
int n,m,ar[10];
int main()
{
	cin>>n>>m;
	for(int x=0; x<5; x++)cin>>ar[x];
	for(int x=0; x<5; x++)cout<<ar[x]-n*m<<" ";
}