結果

問題 No.1362 [Zelkova 8th Tune] Black Sheep
ユーザー oooooba
提出日時 2021-07-09 21:48:32
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 24 ms / 1,000 ms
コード長 585 bytes
コンパイル時間 1,216 ms
コンパイル使用メモリ 120,048 KB
最終ジャッジ日時 2025-01-22 21:26:43
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 38
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <algorithm>
#include <array>
#include <cmath>
#include <cstdio>
#include <deque>
#include <iomanip>
#include <iostream>
#include <numeric>
#include <optional>
#include <queue>
#include <set>
#include <stack>
#include <unordered_map>
#include <unordered_set>
#include <vector>

using namespace std;

int main() {
    string s;
    cin >> s;
    unordered_map<char, int32_t> mp;
    for (auto c : s) {
        ++mp[c];
    }
    for (auto &&p : mp) {
        if (p.second == 1) {
            cout << s.find(p.first) + 1 << " " << p.first << endl;
        }
    }
    return 0;
}
0