Submission

Status:

[PPPPPPPPPP]

Subtask/Task Score:

{100/100}

Score: 100

User: ThreeDee

Problemset: บาร์โค้ด

Language: cpp

Time: 0.002 second

Submitted On: 2026-08-01 10:43:38

#include <iostream>
using namespace std;
int main(){
	string a;
	cin>>a;
	int check=(a[1]+a[3]+a[5]+a[7]+a[9]+a[11])*3+a[0]+a[2]+a[4]+a[6]+a[8]+a[10]+a[12]-1200;
	if(check%10==0){
		cout<<"YES";
	}
	else {
		cout<<"NO";
	}
	return 0;
}