結果
| 問題 | 
                            No.668 6.0*10^23
                             | 
                    
| コンテスト | |
| ユーザー | 
                             6soukiti29
                         | 
                    
| 提出日時 | 2018-03-23 23:09:55 | 
| 言語 | Nim  (2.2.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 275 bytes | 
| コンパイル時間 | 2,985 ms | 
| コンパイル使用メモリ | 65,916 KB | 
| 実行使用メモリ | 6,948 KB | 
| 最終ジャッジ日時 | 2024-06-30 05:21:58 | 
| 合計ジャッジ時間 | 4,305 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 38 WA * 12 | 
コンパイルメッセージ
/home/judge/data/code/Main.nim(1, 8) Warning: imported and not used: 'sequtils' [UnusedImport] /home/judge/data/code/Main.nim(1, 26) Warning: imported and not used: 'math' [UnusedImport]
ソースコード
import sequtils,strutils,math
var
    S = stdin.readline
    i : int
    n : int
i = S[0..2].parseInt
n = S.len - 1
if i mod 10 > 5:
    i += 10 - (i mod 10)
else:
    i -= i mod 10
if i >= 1000:
    n += 1
    i = i div 10
echo(formatFloat(i / 100, ffDecimal, 1), "*10^", n)
            
            
            
        
            
6soukiti29