Skip to content

BanYeah/BOJ-Solutions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BOJ-Solutions


About

Solved.ac프로필


Solving Memo

반올림

#include <iomanip>
#include <cmath>

/* 중략 */

double ratio = 3.14;

// 소수점 아래 두자리 수에서 반올림
round(ratio * 10) / 10;
cout << << std::fixed << std::setprecision(1) << ratio << "%" << endl;

About

Solutions of Problem Solving in Baekjoon Online Judge

Topics

Resources

Stars

Watchers

Forks

Languages