結果

問題 No.668 6.0*10^23
コンテスト
ユーザー tsuchinaga
提出日時 2019-03-15 16:26:30
言語 Go
(1.25.7)
コンパイル:
env GOCACHE=/tmp go build _filename_
実行:
./Main
結果
AC  
実行時間 45 ms / 2,000 ms
コード長 330 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 11,473 ms
コンパイル使用メモリ 287,172 KB
実行使用メモリ 6,272 KB
最終ジャッジ日時 2026-03-22 21:48:38
合計ジャッジ時間 13,808 ms
ジャッジサーバーID
(参考情報)
judge3_1 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 50
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

package main

import (
	"fmt"
	"math"
	"strconv"
)

func main() {
	var a, b, c int
	var s string
	_, _ = fmt.Scan(&s)

	n, _ := strconv.Atoi(string(s[0:3]))
	n = int(math.Round(float64(n) / 10))
	t := strconv.Itoa(n)

	a = int(t[0] - '0')
	b = int(t[1] - '0')
	c = len(s) - 1 + len(t) - 2

	fmt.Printf("%d.%d*10^%d\n", a, b, c)
}
0