結果
| 問題 |
No.2629 A replace B replace C
|
| コンテスト | |
| ユーザー |
noya2
|
| 提出日時 | 2024-02-11 17:11:55 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 676 bytes |
| コンパイル時間 | 9,317 ms |
| コンパイル使用メモリ | 338,564 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-09-28 18:17:24 |
| 合計ジャッジ時間 | 10,253 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 5 |
| other | WA * 34 RE * 27 |
ソースコード
#include<bits/stdc++.h>
#include"testlib.h"
using namespace std;
using ll = long long;
const ll Nmin = 1, Nmax = 100'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");
}
}
noya2