https://www.acmicpc.net/problem/13909
#include <bits/stdc++.h>
#define endl "\n"
using namespace std;
void CPP_INIT() {
ios::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
}
int main(void) {
CPP_INIT();
int input;
cin >> input;
cout << int(sqrt(input));
}
'알고리즘' 카테고리의 다른 글
C++ 알고리즘 - 백준 17103 골드바흐 파티션 (에라토스테네스의 체) (0) | 2025.01.12 |
---|---|
C++ 알고리즘 - 백준 4948 베르트랑 공준 (에라토스테네스의 체) (0) | 2025.01.12 |
C++ 알고리즘 - 백준 4134 다음 소수 (0) | 2025.01.12 |
C++ 알고리즘 - 백준 2485 가로수 (0) | 2025.01.12 |
C++ 알고리즘 - 백준 1735 분수 합 (0) | 2025.01.11 |