結果

問題 No.668 6.0*10^23
ユーザー aaaa3215aaaa3215
提出日時 2018-06-27 17:48:59
言語 C
(gcc 12.3.0)
結果
RE  
実行時間 -
コード長 416 bytes
コンパイル時間 908 ms
コンパイル使用メモリ 26,840 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-09-13 14:30:34
合計ジャッジ時間 3,119 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include<stdio.h>

int main(void) {
	char N[100010];
	long long i;

	scanf("%s", &N);
	
	for (i = 0; N[i] != '\0'; i++);

	if ((N[2] >= '5')&&(N[1] == '9')){
			if (N[0] == '9') {
				printf("1.0*10^%lld\n", i);
				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^%lld\n", N[0], N[1], i - 1);

	return 0;

}
0