結果
| 問題 | No.1729 ~サンプルはちゃんと見て!~ 16進数と8進数(1) | 
| コンテスト | |
| ユーザー |  platinum | 
| 提出日時 | 2021-11-05 21:25:35 | 
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 419 bytes | 
| コンパイル時間 | 2,694 ms | 
| コンパイル使用メモリ | 191,728 KB | 
| 最終ジャッジ日時 | 2025-01-25 11:56:34 | 
| ジャッジサーバーID (参考情報) | judge2 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 9 WA * 15 | 
ソースコード
#include <bits/stdc++.h>
#define rep(i,n) for(int i = 0; i < (int)(n); i++)
using namespace std;
using LL = long long;
using P = pair<int,int>;
using vv = vector<vector<int>>;
const int INF = (int)1e9;
const LL LINF = (LL)1e18;
int main(){
	string S;
	cin >> S;
	int N = S.size();
	rep(i,N-1){
		if(S[i] != S[i+1]){
			cout << 1 << endl;
			return 0;
		}
	}
	cout << 1 << " " << S[0] - 'A' + 2 << endl;
	return 0;
}
            
            
            
        