前4个TLE

P5082 成绩

请使用更快的输入方式
by rsrsr @ 2022-12-23 21:21:30


@[DAE_Goose](/user/741120) 1e7就不要用cin了吧
by SJH_qwq @ 2022-12-23 21:25:49


@[songjiahao_](/user/761125) 其实不影响,这样也AC: ``` /*********************************** .-'''''-. .' `. : : : : : _/| : : =/'/ : `._/ | .' ( / ,|...-' \_/^\/||__ _/~ `""~`"` \_ __/ -'/ `-._ `\ _\__ / /-'` `\ \ \-.\ *************************************/ #include<bits/stdc++.h> using namespace std; typedef long long ll ; typedef int ii ; typedef char cc ; typedef double dd ; typedef bool bb ; int main() { int nabcd; cin >> nabcd; long long total = 0; long long score = 0; long long losta = 0; cin >> n; int tabcd = 0; for(int iabcd = 1;iabcd <= nabcd;iabcd++){ cin >> tabcd; total += t; } for(int iabcd = 1;iabcd <= nabcd;iabcd++){ cin >> tabcd; score += t; } losta = total - score; total *= 3 score *= 2; cout << fixed << setprecision(6) << (total - score) / losta; return 0; } ```
by _O__o_ @ 2022-12-23 21:29:44


@[DAE_Goose](/user/741120) 啊这
by SJH_qwq @ 2022-12-23 21:32:38


|