結果
| 問題 | No.285 消費税2 |
| コンテスト | |
| ユーザー |
samplelpmas
|
| 提出日時 | 2017-05-13 19:28:50 |
| 言語 | Java (openjdk 26.0.2.1 + ac-library) |
| 結果 |
AC
不安定
|
| 実行時間 | 64 ms / 2,000 ms |
| + 283µs | |
| コード長 | 369 bytes |
| 記録 | |
| コンパイル時間 | 1,499 ms |
| コンパイル使用メモリ | 84,928 KB |
| 実行使用メモリ | 43,628 KB |
| 最終ジャッジ日時 | 2026-08-28 00:13:22 |
| 合計ジャッジ時間 | 4,985 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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