結果
| 問題 | 
                            No.485 方程式のお勉強
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2017-04-14 10:46:54 | 
| 言語 | Java  (openjdk 23)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 516 bytes | 
| コンパイル時間 | 2,121 ms | 
| コンパイル使用メモリ | 77,124 KB | 
| 実行使用メモリ | 42,792 KB | 
| 最終ジャッジ日時 | 2024-07-18 15:14:33 | 
| 合計ジャッジ時間 | 5,593 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | WA * 4 | 
| other | WA * 13 | 
ソースコード
import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int A = Integer.parseInt(sc.next());
        int B = Integer.parseInt(sc.next());
        double D = (double)B / A;
        System.out.println(D + " " + Math.floor(D) + " " + (D - Math.floor(D)));
        if (D - Math.floor(D) == 0.0) {
            System.out.printf("%d\n", (int)Math.floor(D));
        } else {
            System.out.println("NO");
        }
    }
}