結果

問題 No.1729 ~サンプルはちゃんと見て!~ 16進数と8進数(1)
ユーザー take000
提出日時 2022-06-04 20:35:57
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 400 bytes
コンパイル時間 1,931 ms
コンパイル使用メモリ 198,072 KB
最終ジャッジ日時 2025-01-29 18:11:44
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 9 WA * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; ++i)
typedef long long ll;
using namespace std;

int main() {
    cin.tie(0);
    ios_base::sync_with_stdio(false);

    string S;
    cin >> S;

    set<char> st;
    for (char &c : S) {
        st.insert(c);
    }
    cout << "1";

    if (st.size() == 1)
        cout << " " << (S[0] - 'A' + 2);
    cout << "\n";

    return 0;
}
0