update many
This commit is contained in:
37
storage/zeta/cpp/6750.cpp
Normal file
37
storage/zeta/cpp/6750.cpp
Normal file
@@ -0,0 +1,37 @@
|
||||
#include <iostream>
|
||||
#include <stdint.h>
|
||||
#include <string>
|
||||
|
||||
#define let auto
|
||||
|
||||
typedef size_t usize;
|
||||
typedef int32_t i32;
|
||||
|
||||
using namespace std;
|
||||
|
||||
let main() -> i32 {
|
||||
let line = string();
|
||||
|
||||
cin >> line;
|
||||
let flag = true;
|
||||
for (let c: line) {
|
||||
switch (c) {
|
||||
case 'I':
|
||||
case 'O':
|
||||
case 'S':
|
||||
case 'H':
|
||||
case 'Z':
|
||||
case 'X':
|
||||
case 'N': {
|
||||
break;
|
||||
}
|
||||
default:
|
||||
flag = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
cout << (flag ? "YES" : "NO") << endl;
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user