結果
| 問題 |
No.1729 ~サンプルはちゃんと見て!~ 16進数と8進数(1)
|
| コンテスト | |
| ユーザー |
naskya
|
| 提出日時 | 2021-10-09 03:35:53 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 339 bytes |
| コンパイル時間 | 1,286 ms |
| コンパイル使用メモリ | 73,932 KB |
| 最終ジャッジ日時 | 2025-01-24 23:46:06 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 9 WA * 15 |
ソースコード
#include <algorithm>
#include <iostream>
#include <string>
int main() {
std::string N;
std::cin >> N;
std::sort(std::begin(N), std::end(N));
N.erase(std::unique(std::begin(N), std::end(N)), std::end(N));
if (std::size(N) == 1) {
std::cout << "1 " << (N.front() - 'A' + 2) << '\n';
} else {
std::cout << "1\n";
}
}
naskya