Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
180601 罗嘉为 开关灯2 C++ No Test Data 0 0 MS 0 KB 212 2024-08-21 16:27:35

Tests(0/0):


#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; }