結果
| 問題 |
No.858 わり算
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-08-30 11:18:40 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 414 bytes |
| コンパイル時間 | 3,399 ms |
| コンパイル使用メモリ | 74,648 KB |
| 実行使用メモリ | 53,960 KB |
| 最終ジャッジ日時 | 2024-11-20 19:37:27 |
| 合計ジャッジ時間 | 5,310 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 6 WA * 1 |
ソースコード
package con_level_1half;
import java.util.Scanner;
public class Con858 {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
int A = s.nextInt() , B = s.nextInt();
s.close();
StringBuilder stb = new StringBuilder();
stb.append(A/B);
stb.append(".");
int r = A%B * 10;
for(int i = 0;i < 50;i++){
stb.append(r/B);
r = r%B * 10;
}
System.out.println(stb);
}
}