70分,求条
查看原帖
70分,求条
1267566
20240220ZHM楼主2025/7/29 16:21
#include<bits/stdc++.h>
#define int long long
using namespace std;
int n,m,s;
bool f;
string st;
signed main(){
	ios::sync_with_stdio(false);
	cin.tie(nullptr);
	cin>>n>>m;
	while(n--) {
		cin>>st;
		f=true;
		s=1;
		for(int i=0;i<st.size()&&f;i++) {
			s=s*(st[i]-'0');
			f=(s<=m);
		}
		cout<<(f?"kawaii":"dame")<<endl;
		
	}
 	return 0;
}


2025/7/29 16:21
加载中...