提交时间:2024-08-21 16:27:35
运行 ID: 180601
#include <bits/stdc++.h> using namespace std; int n, ans; int main(){ cin >> n; for(int i = 1; i <= n; i++){ if((int)sqrt(i) * (int)sqrt(i) == i){ ans++; } } cout << ans; return 0; }