#include <iomanip>
#include <cmath>
/* 중략 */
double ratio = 3.14;
// 소수점 아래 두자리 수에서 반올림
round(ratio * 10) / 10;
cout << << std::fixed << std::setprecision(1) << ratio << "%" << endl;
-
Notifications
You must be signed in to change notification settings - Fork 0
Solutions of Problem Solving in Baekjoon Online Judge
BanYeah/BOJ-Solutions
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Solutions of Problem Solving in Baekjoon Online Judge