結果
問題 |
No.285 消費税2
|
ユーザー |
![]() |
提出日時 | 2017-05-13 19:21:48 |
言語 | Java (openjdk 23) |
結果 |
WA
|
実行時間 | - |
コード長 | 342 bytes |
コンパイル時間 | 2,283 ms |
コンパイル使用メモリ | 76,544 KB |
実行使用メモリ | 42,416 KB |
最終ジャッジ日時 | 2024-09-15 12:18:13 |
合計ジャッジ時間 | 8,085 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 22 WA * 4 |
ソースコード
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); } }