警钟砸烂

B2016 浮点数向零舍入

Wang_xin_chen @ 2024-07-09 17:23:16

十年OI一场空,不开long long见祖宗


by WEICY123 @ 2024-07-09 17:40:02

@Wang_xin_chen 怎么又绿了


by Wang_xin_chen @ 2024-07-09 20:50:30

@WEICY123 太不容易了


by Wang_xin_chen @ 2024-07-09 20:50:57

@WEICY123 2个月了


by yssbc @ 2024-07-10 22:03:03

@Wang_xin_chen 看我头像


by yssbc @ 2024-07-10 22:06:58

这样吗?:

#include<iostream>
using namespace std;
int main()
{
    long long a;
    double b;
    cin>>b;
    a=b;
    cout<<a;
    return 0;
}

by yssbc @ 2024-07-10 22:10:39

@Wang_xin_chen 借用一下你的头像

链接


by wangyizheng @ 2024-07-17 13:36:05

@yssbc 只要这样:

#include <bits/stdc++.h>
using namespace std;

signed main()
{
  long long a;
  cin>>a;
  cout<<a;
  return 0;
}

by yssbc @ 2024-07-17 21:21:17

@wangyizheng

厉害


|