1 条题解
-
1
#include <bits/stdc++.h> using namespace std; long long a[100005]; int main() { for (int i = 1; i <= 100000; i++) a[i] = i * i * i * i; int t, s; cin >> t; for (int i = 1; i <= t; i++) { cin >> s; for (int j = 1; j <= 100; j++) { if (a[j] > s) { cout << "-1" << endl; break; } else { if (a[j] == s) { cout << j << endl; break; } } } } return 0; }
- 1
信息
- ID
- 3512
- 时间
- 1000ms
- 内存
- 256MiB
- 难度
- 8
- 标签
- 递交数
- 104
- 已通过
- 19
- 上传者