|
|
back to boardNumbers don't have exaclty 2 digits after decimal point! This code gets WA 1: long long readLL() { string s; cin >> s; s.erase(s.find('.'),1); stringstream ss(s); long long x; ss >> x; return x; } And this code gets AC: long long readLL() { double d; cin >> d; return ll(d*100 + 0.0000001); } |
|
|