导航
统计
- 随笔 - 204
- 文章 - 0
- 评论 - 0
- 阅读 - 22366
04 2021 档案
-
leetcode周赛 238
摘要:A:水题 1 class Solution { 2 public: 3 int sumBase(int n, int k) { 4 int res=0; 5 while(n){ 6 res+=n%k; 7 n/=k; 8 } 9 return res; 10 } 11 }; B:给定一个数组和一个可 阅读全文
-
数据结构--表达式求值
摘要:https://www.acwing.com/problem/content/3305/ 1 #include<iostream> 2 #include<cstring> 3 #include<string> 4 #include<unordered_map> 5 #include<stack> 6 阅读全文
-
Codeforces Round #713
摘要:又是该LL用int了,什么时候才能不犯病啊。 A:水题,让你找出3个以上的数组中不同的那个数 我是直接分情况。 1 #include<iostream> 2 #include<vector> 3 using namespace std; 4 const int N=110; 5 int a[N]; 阅读全文