题解
2025-07-10 22:25:01
发布于:江苏
5阅读
0回复
0点赞
#include<iostream>
using namespace std;
int main(){
int t;
cin >> t;
int a[t + 1];
for(int i = 1; i <= t; i++){
cin >> a[i];
}
int b[t + 1] , c = 1;
for(int i = 1; i <= 1666; i++){
if(i % 3 == 0)continue;
if(i % 10 == 3)continue;
for(int j = 1; j <= t; j++){
if(a[j] == c){
b[j] = i;
}
}
c++;
}
for(int i = 1; i <= t; i++){
cout << b[i] << endl;
}
return 0;
}
这里空空如也
有帮助,赞一个