Accepted
Code
#include<bits/stdc++.h>
using namespace std;
#define ll long long int
int main()
{
ll n;
cin>>n;
ll op=n/500;
ll ok=(n%500)/5;
cout<<op*1000+ok*5<<endl;
}
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:36:32
- Judged At
- 2025-02-17 14:36:32
- Judged By
- Score
- 100
- Total Time
- 2ms
- Peak Memory
- 588.0 KiB