Submission

Status:

-----PP---

Subtask/Task Score:

20/100

Score: 20

User: PutterThecityboy

Problemset: ลูกเต๋า

Language: cpp

Time: 0.002 second

Submitted On: 2026-10-08 21:02:35

#include <iostream>
using namespace std;
int main(){
    int c1;
    cin >> c1;
    int s1, s2, s3;
    s1 = c1 / 100;
    s2 = (c1 / 10) % 10;
    s3 = c1 % 10;

    if (s1 > 6) {
        cout << "ERROR";
    } else if (s2 > 6) {
        cout << "ERROR";
    } else if (s3 > 6) {
        cout << "ERROR";
    }

    return 0;
}