[KenOI 2025] 倍数题题解
注意到只有
所以
代码:
#include<bits/stdc++.h>
using namespace std;
long long t,n;
int main(){
cin >> t;
while(t--){
cin >> n;
cout << (long long)sqrt(n) / 3 << '\n';
}
return 0;
}
注意到只有
所以
代码:
#include<bits/stdc++.h>
using namespace std;
long long t,n;
int main(){
cin >> t;
while(t--){
cin >> n;
cout << (long long)sqrt(n) / 3 << '\n';
}
return 0;
}