結果
| 問題 | No.2629 A replace B replace C | 
| コンテスト | |
| ユーザー |  noya2 | 
| 提出日時 | 2024-02-11 17:13:02 | 
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 676 bytes | 
| コンパイル時間 | 9,174 ms | 
| コンパイル使用メモリ | 337,592 KB | 
| 実行使用メモリ | 6,824 KB | 
| 最終ジャッジ日時 | 2024-09-28 18:17:36 | 
| 合計ジャッジ時間 | 11,438 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | WA * 5 | 
| other | WA * 61 | 
ソースコード
#include<bits/stdc++.h>
#include"testlib.h"
using namespace std;
using ll = long long;
const ll Nmin = 1, Nmax = 200'000;
int main(){
    registerValidation();
    ll n = inf.readLong(Nmin,Nmax);
    inf.readEoln();
    string s = inf.readString();
    string t = inf.readString();
    inf.readEof();
    inf.ensuref((int)(s.size()) == n, "size of s must be N");
    inf.ensuref((int)(t.size()) == n, "size of t must be N");
    for (auto c : s){
        inf.ensuref(c == 'A' || c == 'B' || c == 'C', "S must be consist of only A or B or C");
    }
    for (auto c : t){
        inf.ensuref(c == 'A' || c == 'B' || c == 'C', "T must be consist of only A or B or C");
    }
}
            
            
            
        