結果
| 問題 | No.285 消費税2 |
| コンテスト | |
| ユーザー |
samplelpmas
|
| 提出日時 | 2017-05-13 19:28:50 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 171 ms / 2,000 ms |
| コード長 | 369 bytes |
| 記録 | |
| コンパイル時間 | 2,470 ms |
| コンパイル使用メモリ | 75,960 KB |
| 実行使用メモリ | 42,840 KB |
| 最終ジャッジ日時 | 2024-09-15 12:18:26 |
| 合計ジャッジ時間 | 8,395 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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