結果
| 問題 | 
                            No.285 消費税2
                             | 
                    
| コンテスト | |
| ユーザー | 
                             samplelpmas
                         | 
                    
| 提出日時 | 2017-05-13 19:38:15 | 
| 言語 | Java  (openjdk 23)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 166 ms / 2,000 ms | 
| コード長 | 369 bytes | 
| コンパイル時間 | 2,403 ms | 
| コンパイル使用メモリ | 76,152 KB | 
| 実行使用メモリ | 42,788 KB | 
| 最終ジャッジ日時 | 2024-09-15 12:18:40 | 
| 合計ジャッジ時間 | 8,495 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge6 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 4 | 
| other | AC * 26 | 
ソースコード
import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        long d = sc.nextLong();
        d *= 108;
        long integerPart = d / 100;
        long fractionalPart = d % 100;
        System.out.println(integerPart + "." + fractionalPart / 10 + fractionalPart % 10);
    }
}
            
            
            
        
            
samplelpmas