/ SeriousOJ /

Record Detail

Accepted


  
# Status Time Cost Memory Cost
#1 Accepted 1ms 532.0 KiB
#2 Accepted 1ms 324.0 KiB
#3 Accepted 1ms 536.0 KiB
#4 Accepted 1ms 320.0 KiB
#5 Accepted 1ms 532.0 KiB
#6 Accepted 2ms 532.0 KiB
#7 Accepted 2ms 532.0 KiB

Code

#include <bits/stdc++.h>
using namespace std;
using namespace chrono;

vector<string> strings{
        "RGB",
        "GRB",
        "GBR",
        "BGR",
        "BRG",
        "RBG"
};

signed main() {
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    cout.tie(nullptr);

    int n; cin >> n;
    for (int i = 1; i <= 10; i++) if (n*i % 10 == 0) {
        cout << i;
        break;
    }
}

Information

Submit By
Type
Submission
Problem
P1012 Zéros de fin
Language
C++17 (G++ 13.2.0)
Submit At
2025-07-14 18:21:58
Judged At
2025-07-14 18:21:58
Judged By
Score
100
Total Time
2ms
Peak Memory
536.0 KiB