Wrong Answer
Code
#include<bits/stdc++.h>
using namespace std;
int main()
{
int N,lanterns,joytokens,points,banners;
cout<<"Enter a number= ";
cin>>N;
joytokens= N%500;
banners = joytokens/5;
lanterns = N/500;
points =(banners*5)+(lanterns*1000);
cout<<"Maximum number of festivity points: "<<points;
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:58:42
- Judged At
- 2025-02-17 15:58:42
- Judged By
- Score
- 0
- Total Time
- 1ms
- Peak Memory
- 540.0 KiB