結果

問題 No.668 6.0*10^23
ユーザー ngtkana
提出日時 2020-03-15 15:04:09
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 393 bytes
コンパイル時間 2,247 ms
コンパイル使用メモリ 193,904 KB
最終ジャッジ日時 2025-01-09 06:58:26
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 41 WA * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using lint=long long;
int main(){
    std::cin.tie(nullptr);std::ios_base::sync_with_stdio(false);
    std::cout.setf(std::ios_base::fixed);std::cout.precision(15);
    std::string s;std::cin>>s;
    lint n=std::stoll(s.substr(0,2));
    if('4'<s.at(2))n++;
    std::string t=std::to_string(n);
    std::cout<<t.at(0)<<'.'<<t.substr(1,2)<<"*10^"<<s.length()-1<<'\n';
}
0