結果

問題 No.668 6.0*10^23
ユーザー aaaa3215aaaa3215
提出日時 2018-06-27 17:28:51
言語 C
(gcc 12.3.0)
結果
RE  
実行時間 -
コード長 425 bytes
コンパイル時間 1,055 ms
コンパイル使用メモリ 27,304 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-09-13 14:29:53
合計ジャッジ時間 2,773 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 AC 5 ms
4,380 KB
testcase_02 AC 3 ms
4,376 KB
testcase_03 AC 3 ms
4,380 KB
testcase_04 AC 2 ms
4,380 KB
testcase_05 AC 1 ms
4,376 KB
testcase_06 AC 3 ms
4,380 KB
testcase_07 AC 0 ms
4,380 KB
testcase_08 AC 0 ms
4,376 KB
testcase_09 AC 0 ms
4,376 KB
testcase_10 RE -
testcase_11 AC 5 ms
4,380 KB
testcase_12 AC 1 ms
4,380 KB
testcase_13 RE -
testcase_14 AC 4 ms
4,380 KB
testcase_15 RE -
testcase_16 RE -
testcase_17 AC 5 ms
4,376 KB
testcase_18 RE -
testcase_19 RE -
testcase_20 AC 3 ms
4,380 KB
testcase_21 AC 3 ms
4,380 KB
testcase_22 AC 5 ms
4,376 KB
testcase_23 AC 3 ms
4,380 KB
testcase_24 AC 1 ms
4,376 KB
testcase_25 AC 5 ms
4,376 KB
testcase_26 AC 1 ms
4,376 KB
testcase_27 AC 3 ms
4,376 KB
testcase_28 AC 4 ms
4,376 KB
testcase_29 AC 2 ms
4,376 KB
testcase_30 AC 5 ms
4,376 KB
testcase_31 AC 3 ms
4,376 KB
testcase_32 AC 1 ms
4,380 KB
testcase_33 AC 4 ms
4,380 KB
testcase_34 AC 2 ms
4,376 KB
testcase_35 AC 2 ms
4,376 KB
testcase_36 AC 4 ms
4,376 KB
testcase_37 AC 5 ms
4,380 KB
testcase_38 AC 3 ms
4,376 KB
testcase_39 AC 3 ms
4,380 KB
testcase_40 AC 4 ms
4,376 KB
testcase_41 AC 4 ms
4,380 KB
testcase_42 AC 3 ms
4,376 KB
testcase_43 AC 4 ms
4,376 KB
testcase_44 RE -
testcase_45 AC 1 ms
4,380 KB
testcase_46 AC 1 ms
4,376 KB
testcase_47 AC 1 ms
4,376 KB
testcase_48 AC 0 ms
4,376 KB
testcase_49 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<stdio.h>

int main(void) {
	char N[100001];
	int i = 0;
	do {
		scanf("%c", &N[i]);
		i++;
	} while (N[i - 1] != '\n');
	
	if ((N[2] >= '5')&&(N[1] == '9')){
			if (N[0] == '9') {
				printf("1.0*10^%d\n", i - 1);
				return 1;
			}
			N[0] = N[0] - '0' + '1';
			N[1] = '0';
	}

	else if ((N[2] >= '5') && (N[1] != '9')) {
		N[1] = N[1] - '0' + '1';
	}
		
	printf("%c.%c*10^%d\n", N[0], N[1], i - 2);

	return 0;

}
0