您当前的位置: 首页 > 

对方正在debug

暂无认证

  • 4浏览

    0关注

    399博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

Herdle(水/map)

对方正在debug 发布时间:2022-01-30 23:03:12 ,浏览量:4

题目

题意:给定两个3x3的二维字符数组s,t(由大写字母组成),问位置匹配且对应的值相同的数量,以及位置不匹配但值相同的数量。

思路:位置匹配且对应的值相同,直接统计,设为green。统计值相同的个数all。位置不匹配但值相同的数量,则为all-green。

#include 
using namespace std;
const int maxn = 110;
#define ll long long
const int num = 3;


string s[num], t[num];
int mp[26];
int main() {
	
	int green = 0, yellow = 0, all = 0;
	for (int i = 0; i > s[i];
		for (int j = 0; j  t[i];
		for (int j = 0; j             
关注
打赏
1664895754
查看更多评论
0.0457s