結果
問題 |
No.1902 AC Ratio
|
ユーザー |
|
提出日時 | 2024-05-06 02:32:39 |
言語 | Go (1.23.4) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 267 bytes |
コンパイル時間 | 15,672 ms |
コンパイル使用メモリ | 235,436 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-28 04:44:22 |
合計ジャッジ時間 | 15,733 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 15 |
ソースコード
// No.1902 AC Ratio package main import ( "fmt" "strconv" "strings" ) func main() { var s string fmt.Scan(&s) correct, total, _ := strings.Cut(s, "/") c, _ := strconv.ParseFloat(correct, 64) t, _ := strconv.ParseFloat(total, 64) fmt.Printf("%.5f", c/t) }