首页
Python
Java
前端
数据库
Linux
Chatgpt专题
开发者工具箱
682专题
Leetcode. 682. Baseball Game
682. Baseball Game You’re now a baseball game point recorder. Given a list of strings, each string can be one of the 4 following types: Integer (one round’s score): Directly represents the numb
阅读更多...
Leetcode—682. 棒球比赛【简单】(stoi函数、accumulate函数)
2024每日刷题(120) Leetcode—682. 棒球比赛 实现代码 class Solution {public:int calPoints(vector<string>& operations) {vector<int> v;for(const string& oper: operations) {if(oper == "+") {v.push_back(v.back() +
阅读更多...
Codeforces Round #682 (Div. 2) C. Engineer Artem
传送门 参考国际象棋棋盘的染色方法。 给二维数组a[i][j]编号为i+j,它左右两边的编号为i+j-1,i+j+1显然i+j的奇偶性和他们不同 它上下的分别为i-1+j,i+1+j,同上; #include<bits/stdc++.h>using namespace std;typedef long long LL; typedef pair<int, int> P;c
阅读更多...
学习记录682@查准率与查全率真的必然负相关吗?
查准率和查全率定义 查准率与查全率真的必然负相关吗? 先说结论,两者并非绝对负相关,只是在统计学上表现出大概率的负相关性,而数学证明上无法严格证明两个的负相关性。 枚举来证明两者并非必然负相关 一组数据:A1、B1、C1、D0、E0、F0,其中1代表正例,0代表反例。 第一次分类预测:预测为正例的样本为:A1、B1、D0,预测为反例的样本为:C1、E0、F0,此时TP=2,FP=1 ,
阅读更多...