結果
| 問題 | 
                            No.1362 [Zelkova 8th Tune] Black Sheep
                             | 
                    
| コンテスト | |
| ユーザー | 
                             kpinkcat
                         | 
                    
| 提出日時 | 2023-09-04 02:05:23 | 
| 言語 | C++17  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 535 bytes | 
| コンパイル時間 | 1,809 ms | 
| コンパイル使用メモリ | 194,620 KB | 
| 最終ジャッジ日時 | 2025-02-16 18:31:59 | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 34 WA * 4 | 
ソースコード
#include <bits/stdc++.h>
#include<iostream>
#include<map>
#include<vector>
#include <algorithm>
#include<math.h>
#include <iomanip>
#include<set>
#include <numeric>
#include<string>
using namespace std;
int main()
{
    string s;
    cin >> s;
    string same="", diff ="";
    if (s[0] == s[1]) same += s[0];
    else if (s[0] == s[2]) same += s[0];
    else if (s[1] == s[2]) same += s[0];
    for (int i = 0; i < s.size() -1; i++){
        if (s[i] != same[0]){
            cout << i + 1 << " " << s[i] << endl;
        } 
    }
}
            
            
            
        
            
kpinkcat