Submission
Status:
[PPPPPPPPPP]
Subtask/Task Score:
{100/100}
Score: 100
User: maxprogoji
Problemset: บาร์โค้ด
Language: cpp
Time: 0.002 second
Submitted On: 2025-10-05 13:00:39
#include <iostream>
using namespace std;
int main(){
string g;
cin >> g;
if((((((int)g[1] + (int)g[3] + (int)g[5] + (int)g[7] + (int)g[9]+ (int)g[11]) * 3) + ((int)g[0] + (int)g[2] + (int)g[4] + (int)g[6] + (int)g[8]+ (int)g[10])) + g[12]) % 10 == 0) cout << "YES";
else cout << "NO";
}