結果
問題 | No.668 6.0*10^23 |
ユーザー |
|
提出日時 | 2018-04-08 00:15:25 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 4 ms / 2,000 ms |
コード長 | 227 bytes |
コンパイル時間 | 542 ms |
コンパイル使用メモリ | 65,780 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-30 05:46:39 |
合計ジャッジ時間 | 1,690 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 50 |
コンパイルメッセージ
main.cpp:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 4 | main() | ^~~~
ソースコード
#include<iostream>using namespace std;string s;main(){cin>>s;int a=((s[0]-48)*10+s[1]-48)*10+s[2]-48;if(a%10>4)a=a/10+1;else a=a/10;int f=-1;if(a>99)f++,a/=10;cout<<a/10<<"."<<a%10<<"*10^"<<s.size()+f<<endl;}