urashima0429

覚書

2019-05-21から1日間の記事一覧

ABC126C Dice and Coin

atcoder.jp 考えたこと 愚直に各の確率を求めればよい。 以下のコードだとだが、テストケースの 14.txt だけどうしても通らず…。 なにか間違っているのか、それとも精度が足りないのか…。 #include <iostream> #include <math.h> #include <iomanip> #include <algorithm> using namespace std; int</algorithm></iomanip></math.h></iostream>…