AtCoder abc281 B
// compile: g++ -o data data.cpp -O3 -std=gnu++20 -Wall -Wextra -Wshadow -D_GLIBCXX_ASSERTIONS -ggdb3 -fmax-errors=2 -DLOCAL
// run: ./data
#include <bits/stdc++.h>
using namespace std;
#pragma GCC optimize("O3,unroll-loops")
#pragma GCC target("avx2,bmi,bmi2,lzcnt,popcnt")
#ifdef LOCAL
#include <debug/codeforces.h>
#define debug(x...) {_variables(#x);_print(x);}
#else
#define debug(x...)
#endif
template<typename...Args> void print_(Args...args){((cout<<args<<" "),...)<<endl;}
#define rep(i,a,b) for(int i=(a);i<(int)(b);++i)
#define sz(v) ((int)(v).size())
#define print(...) print_(__VA_ARGS__);
#define INTINF (int)(9223372036854775807)
#define int long long
#define MAXN 200010



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

    string s; cin >> s;
    int n = s.length();
    if (n != 8) {
        cout << "No" << endl;
        return 0;
    }
    if (s[0] < 'A' || s[0] > 'Z' || s[n-1] < 'A' || s[n-1] > 'Z') {
        cout << "No" << endl;
        return 0;
    }
    if (s[1] < '1' || s[1] > '9') {
        cout << "No" << endl;
        return 0;
    }
    for (int i = 2; i < n-1; ++i) {
        if (s[i] < '0' || s[i] > '9') {
            cout << "No" << endl;
            return 0;
        }
    }
    cout << "Yes" << endl;

    return 0;
}

Comments

  1. 4 months ago
    2025-12-06 2:31:09

    Yo, 990k! Just wanted to say I’ve been kicking around here for a few weeks, and it’s pretty solid. Games are smooth, and I actually managed to pull out a win last night. No complaints so far. Check ’em out! 990k

  2. 3 months ago
    2025-12-19 13:46:10

    Looking for some real gà chọi c1 action? Look no further! This site is dedicated to the toughest birds out there. Get your bets in and enjoy the show! gà chọi c1 is where it’s at.

  3. 3 months ago
    2025-12-29 6:14:24

    Heard Royal Jeet is giving out a welcome bonus. If you’re new to the site, might be worth claiming. Here’s where you can find the info: royaljeetwelcomebous

  4. 2 months ago
    2026-2-02 16:04:16

    Had a go with thabetcasino. The live dealer games are actually pretty solid. The site seemed reliable enough. Not the flashiest, but it gets the job done. If you’re into live casino action, give it a try! See for yourself at thabetcasino.

  5. 2 months ago
    2026-2-02 16:04:32

    For those searching for ‘rông bach kim’, look no further. Check it out and see if it helps you win! rông bach kim

  6. 2 months ago
    2026-2-02 16:04:48

    Ah, rongbachkim! Basically, if you are reading this, you are home. I’ve used it for ages and haven’t gone elsewhere. Get more details clicking here: rongbachkim

  7. 3 weeks ago
    2026-2-26 9:42:50

    88win4 keeps things interesting. Great variety of games with loads of chances to win. I always have a blast. Go for it 88win4.

  8. 3 weeks ago
    2026-2-26 9:43:06

    ABC8A8, huh? Gave it a spin. I gotta say it’s got some cool games. The interface is pretty clean too. Worth a look if you’re hunting for a new spot. abc8a8

  9. 3 weeks ago
    2026-2-26 9:43:21

    F8Bethos… not my favorite, TBH. Looks a bit outdated at first glance but I would be lying if I didn’t say they have some pretty sweet promos! Give them a chance, you may be positively surprised. f8bethos

Send Comment Edit Comment


				
|´・ω・)ノ
ヾ(≧∇≦*)ゝ
(☆ω☆)
(╯‵□′)╯︵┴─┴
 ̄﹃ ̄
(/ω\)
∠( ᐛ 」∠)_
(๑•̀ㅁ•́ฅ)
→_→
୧(๑•̀⌄•́๑)૭
٩(ˊᗜˋ*)و
(ノ°ο°)ノ
(´இ皿இ`)
⌇●﹏●⌇
(ฅ´ω`ฅ)
(╯°A°)╯︵○○○
φ( ̄∇ ̄o)
ヾ(´・ ・`。)ノ"
( ง ᵒ̌皿ᵒ̌)ง⁼³₌₃
(ó﹏ò。)
Σ(っ °Д °;)っ
( ,,´・ω・)ノ"(´っω・`。)
╮(╯▽╰)╭
o(*////▽////*)q
>﹏<
( ๑´•ω•) "(ㆆᴗㆆ)
😂
😀
😅
😊
🙂
🙃
😌
😍
😘
😜
😝
😏
😒
🙄
😳
😡
😔
😫
😱
😭
💩
👻
🙌
🖕
👍
👫
👬
👭
🌚
🌝
🙈
💊
😶
🙏
🍦
🍉
😣
Source: github.com/k4yt3x/flowerhd
颜文字
Emoji
小恐龙
花!
Previous
Next