Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
91033 sh25_shenpy 202412GESP二级01 C++ 编译错误 0 MS 0 KB 377 2026-06-12 14:57:51

Tests(0/0):


#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].count()) cout << mp[b] << endl ; else cout << -1 << endl ; } return 0 ; }


测评信息: