abc173_a - Payment
28 Jan 2021 — Tags: None
Click to show code.
using namespace std;
int main(void)
{
int n;
cin >> n;
cout << (1000 - (n % 1000)) % 1000 << endl;
return 0;
}
Click to show code.
using namespace std;
int main(void)
{
int n;
cin >> n;
cout << (1000 - (n % 1000)) % 1000 << endl;
return 0;
}