提交时间:2020-11-18 18:54:08
运行 ID: 9744
#include<bits/stdc++.h> using namespace std; int main(){ int ans,n,fu=0,shu,fu1=0; cin>>n; while(n--){ cin>>shu; ans=shu; for(int i=1;i<=shu;i++){ fu=i; if(fu%10==7){ ans--; continue; } fu/=10; if(fu<0)continue; } cout<<ans; } }