結果

問題 No.1902 AC Ratio
ユーザー eagle
提出日時 2022-05-28 13:42:44
言語 Java
(openjdk 23)
結果
AC  
実行時間 108 ms / 2,000 ms
コード長 378 bytes
コンパイル時間 2,411 ms
コンパイル使用メモリ 73,760 KB
実行使用メモリ 41,208 KB
最終ジャッジ日時 2024-09-20 21:46:11
合計ジャッジ時間 4,877 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		String[] values = S.split("/");
		int A = Integer.parseInt(values[0]);
		int B = Integer.parseInt(values[1]);
		float f = (float)A / (float)B;
		System.out.println(f);
	}
}
0