提交时间:2026-06-12 14:58:25

运行 ID: 91039

#include <bits/stdc++.h> using namespace std ; int t , b ; map <int , int> mp ; int main() { cin >> t ; for(int i = 1 ; i <= 100 ; i++ ) { mp[i * i * i * i] = i ; } for(int i = 1 ; i <= t ; i++ ) { cin >> b ; if(mp[b]) cout << mp[b] << endl ; else cout << -1 << endl ; } return 0 ; }