Wrong Answer
Code
#include <iostream>
using namespace std;
int main() {
    long long N , k , rem_tokens , total_points;
    cin >> N;
    k = N / 500; 
    rem_tokens = N % 500; 
    total_points = (k * 1000) + rem_tokens; 
    cout << total_points << endl;
    return 0;
}Information
- Submit By
- Type
- Submission
- Problem
- P1132 B. Festivity Frenzy!
- Contest
- Brain Booster #8
- Language
- C++17 (G++ 13.2.0)
- Submit At
- 2025-02-17 16:59:54
- Judged At
- 2025-02-17 16:59:54
- Judged By
- Score
- 10
- Total Time
- 1ms
- Peak Memory
- 532.0 KiB