算呗
2025-08-11 17:14:31
发布于:浙江
3阅读
0回复
0点赞
#include <bits/stdc++.h>
using namespace std;
string zm[30] = {"one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten", "eleven", "twelve", "thirteen", "fourteen", "fifteen", "sixteen", "seventeen", "eighteen", "nineteen", "twenty","a", "both", "another", "first", "second", "third"};
int sz[30] = {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,1,2,1,1,2,3};
int a[7],cnt;
int main() {
string s;
for(int i = 1;i <= 6;i++){
cin >> s;
for(int j = 0;j < 26;j++){
if(zm[j] == s && sz[j] * sz[j] % 100 != 0){
a[cnt++] = sz[j] * sz[j] % 100;
}
}
}
sort(a,a + cnt);
cout << a[0];
for(int i = 1;i < cnt;i++){
if(a[i] < 10) cout << 0 << a[i];
else cout << a[i];
}
return 0;
}
这里空空如也
有帮助,赞一个