Accepted
Code
/**
* ! @Author : - Mohammed Murshedur Rahman
* ? Date & Time : - 2025-02-17 20:38
* * BANGLADESH : - SYLHET
*/
#include<iostream>
using namespace std;
using ll = long long;
void solve()
{
ll n; cin >> n;
ll lan = n/500;
ll rem = n%500;
ll ban = rem /5;
cout << (lan*1000)+(ban*5);
}
int main()
{
solve();
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 14:40:53
- Judged At
- 2025-02-17 14:40:53
- Judged By
- Score
- 100
- Total Time
- 4ms
- Peak Memory
- 532.0 KiB