結果
| 問題 | No.668 6.0*10^23 |
| コンテスト | |
| ユーザー |
ngtkana
|
| 提出日時 | 2020-03-15 15:05:36 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 431 bytes |
| 記録 | |
| コンパイル時間 | 1,348 ms |
| コンパイル使用メモリ | 211,852 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-06-09 01:28:35 |
| 合計ジャッジ時間 | 2,934 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 50 |
ソースコード
#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));
lint d=s.length()-1;
if('4'<s.at(2))n++;
if(n==100)n=10,d++;
std::string t=std::to_string(n);
std::cout<<t.at(0)<<'.'<<t.substr(1,2)<<"*10^"<<d<<'\n';
}
ngtkana