結果

問題 No.1941 CHECKER×CHECKER(1)
ユーザー sorag
提出日時 2022-07-18 02:02:53
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 251 bytes
コンパイル時間 529 ms
コンパイル使用メモリ 66,304 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-06-30 01:42:30
合計ジャッジ時間 1,201 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 7 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<vector>
using namespace std;

int main() {
	string s1, s2, s3,a;
	cin >> s1 >> s2 >> s3;
	for (int i = 0; i < 3; i++) {
		if (s1[i] == s3[i] and s1[i] != s2[i]) a = "Yes";
		else  a="No";
	}
	cout << a<< endl;
	return 0;
}
0