Accepted
Code
#include <iostream>
using namespace std;
int main()
{
long long int a, b, c, d, e;
cin >> a;
b = a / 500;
c = a % 500;
d = c / 5;
e = (b * 1000) + (d * 5);
cout << e << endl;
return 0;
}
Information
- Submit By
- Type
- Submission
- Problem
- P1132 Festivity Frenzy!
- Contest
- Brain Booster #8
- Language
- C++17 (G++ 13.2.0)
- Submit At
- 2025-02-17 15:00:23
- Judged At
- 2025-02-17 15:00:23
- Judged By
- Score
- 100
- Total Time
- 2ms
- Peak Memory
- 772.0 KiB