- 博客(12)
- 收藏
- 关注
原创 python中报错got multiple values for argument或者takes 0-5 positional argument but 6 were given
python中报错got multiple values for argument或者takes 0-5 positional argument but 6 were given。不需要这个类的self的函数不应该放在这个class里,但是放了一般第一个应该传入self。这是因为在class中的函数没有传入self而导致的参数错位等。
2023-10-10 16:12:37
2094
1
原创 Codeforces Round #788 (Div. 2)
前言省赛降至,我却还是这么菜(x一、A. Prof. Slim正数,负数,绝对值的考虑 #include<bits/stdc++.h>using namespace std;typedef pair<int,int> pr;const int inf =0x3f3f3f3f;#define IOS ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);#define in freopen("in.t.
2022-05-08 12:41:07
401
原创 Codeforces Round #786 (Div. 3)
前言第一次参加div3,不知道这场是不是算简单的,感觉就是暴力一、A. Number Transformation是否是因数,是则分解为 d * 1 * m #include<bits/stdc++.h>using namespace std;typedef pair<int,int> pr;const int inf =0x3f3f3f3f;#define IOS ios::sync_with_stdio(false);cin.tie(0);cou.
2022-05-04 15:51:21
534
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人