코딩테스트/프로그래머스 - LV 0

[프로그래머스] 정수 부분

웅드 2024. 1. 25. 14:40

 

 

  • 풀이
#include <string>
#include <vector>

using namespace std;

int solution(double flo) {
    
    return (int)flo;
}
반응형