結果
問題 | No.668 6.0*10^23 |
ユーザー |
|
提出日時 | 2018-10-18 19:28:10 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 358 bytes |
コンパイル時間 | 318 ms |
コンパイル使用メモリ | 27,648 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-01 04:54:33 |
合計ジャッジ時間 | 1,531 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 50 |
ソースコード
#include <stdio.h>#include <string.h>int main(void){char N[100002];int length;scanf("%s", N);length = strlen(N);if (N[2] >= '5') {if (N[1] == '9') {N[1] = '0';if (N[0] == '9') {N[0] = '1';++length;}else ++N[0];}else ++N[1];}printf("%c.%c*10^%d", N[0], N[1], length - 1);return 0;}