結果

問題 No.1362 [Zelkova 8th Tune] Black Sheep
ユーザー rogi52rogi52
提出日時 2022-09-27 12:33:23
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 9 ms / 1,000 ms
コード長 458 bytes
コンパイル時間 2,126 ms
コンパイル使用メモリ 206,752 KB
実行使用メモリ 7,672 KB
最終ジャッジ日時 2023-08-24 03:47:26
合計ジャッジ時間 4,805 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,380 KB
testcase_01 AC 2 ms
4,376 KB
testcase_02 AC 2 ms
4,376 KB
testcase_03 AC 2 ms
4,376 KB
testcase_04 AC 2 ms
4,376 KB
testcase_05 AC 2 ms
4,380 KB
testcase_06 AC 1 ms
4,376 KB
testcase_07 AC 2 ms
4,376 KB
testcase_08 AC 1 ms
4,380 KB
testcase_09 AC 2 ms
4,384 KB
testcase_10 AC 2 ms
4,380 KB
testcase_11 AC 2 ms
4,380 KB
testcase_12 AC 1 ms
4,376 KB
testcase_13 AC 8 ms
7,020 KB
testcase_14 AC 7 ms
5,664 KB
testcase_15 AC 2 ms
4,376 KB
testcase_16 AC 4 ms
4,380 KB
testcase_17 AC 8 ms
7,208 KB
testcase_18 AC 5 ms
5,304 KB
testcase_19 AC 7 ms
5,752 KB
testcase_20 AC 6 ms
5,572 KB
testcase_21 AC 5 ms
4,384 KB
testcase_22 AC 8 ms
6,864 KB
testcase_23 AC 8 ms
7,472 KB
testcase_24 AC 7 ms
5,956 KB
testcase_25 AC 9 ms
7,512 KB
testcase_26 AC 9 ms
7,508 KB
testcase_27 AC 9 ms
7,672 KB
testcase_28 AC 9 ms
7,532 KB
testcase_29 AC 8 ms
5,680 KB
testcase_30 AC 8 ms
5,648 KB
testcase_31 AC 8 ms
5,844 KB
testcase_32 AC 8 ms
5,764 KB
testcase_33 AC 9 ms
7,512 KB
testcase_34 AC 8 ms
5,768 KB
testcase_35 AC 2 ms
4,376 KB
testcase_36 AC 2 ms
4,376 KB
testcase_37 AC 2 ms
4,380 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

int main(){
    cin.tie(0);
    ios::sync_with_stdio(0);
    
    string s; cin >> s;
    map<char,vector<int>> mp;
    for(int i = 0; i < int(s.size()); i++) mp[s[i]].push_back(i);
    for(auto e : mp) {
        if(e.second.size() == 1u) {
            cout << e.second[0] + 1 << " " << e.first << endl;
            return 0;
        }
    }
}
0