zoukankan      html  css  js  c++  java
  • 华为机试 取近似值

    简介

    简单

    code

    #include <iostream>
    #include <string>
    #include <vector>
    #include <algorithm>
    #include <math.h>
    #include <stdio.h>
    using namespace std;
     
    int main() {
        double n;
        cin >> n;
        
         printf("%d",(int)(n + 0.5));
        return 0;
    }
    
    Hope is a good thing,maybe the best of things,and no good thing ever dies.----------- Andy Dufresne
  • 相关阅读:
    [Linux]
    [Nginx]
    [Nginx]
    [Linux]
    [Linux]
    [Linux]
    [Linux]
    [Linux] -Docker修改空间大小
    [Linux]
    [MySql]
  • 原文地址:https://www.cnblogs.com/eat-too-much/p/14919867.html
Copyright © 2011-2022 走看看