結果
問題 |
No.668 6.0*10^23
|
ユーザー |
![]() |
提出日時 | 2018-11-13 15:13:26 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 6 ms / 2,000 ms |
コード長 | 418 bytes |
コンパイル時間 | 515 ms |
コンパイル使用メモリ | 53,724 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-01 05:07:26 |
合計ジャッジ時間 | 2,111 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 50 |
ソースコード
#include <iostream> int main() { char in; int a, b0, b1, c; c = 2; in = std::cin.get(); a = atoi(&in); in = std::cin.get(); b0 = atoi(&in); in = std::cin.get(); b1 = atoi(&in); if (b1 >= 5) b0++; if (b0 >= 10) { b0 = 0; a++; } if (a >= 10) { a = 1; c++; } std::cout << a << "." << b0 << "*10^"; while ((in = std::cin.get()) != '\n') { c++; } std::cout << c; return 0; }