Accepted
Code
#include <iostream>
using namespace std;
int main() {
long long n;
cin>>n;
long long l=n/500;
long long b=(n%500)/5;
long long fp = l*1000+b*5;
cout<<fp<<endl;
return 0;
}
Information
- Submit By
- Type
- Submission
- Problem
- P1132 Festivity Frenzy!
- Contest
- Brain Booster #8
- Language
- C++11 (G++ 13.2.0)
- Submit At
- 2025-02-17 15:04:03
- Judged At
- 2025-02-17 15:04:03
- Judged By
- Score
- 100
- Total Time
- 1ms
- Peak Memory
- 764.0 KiB