05 2022 档案

摘要:A - Move Right 给一个四位的二进制,输出右移一位的结果 #include <bits/stdc++.h> using namespace std; int n; string s ; int main() { cin >> s; cout << '0'; for( int i = 0 阅读全文
posted @ 2022-05-24 16:55 PHarr 阅读(52) 评论(0) 推荐(0)
摘要:A. Lucky? 给n 个长度6 的数,问前三位和后三位中0 的数量是否相同 #include <bits/stdc++.h> using namespace std; string s; int main(){ int t = read(); while( t -- ){ cin >> s; i 阅读全文
posted @ 2022-05-24 15:37 PHarr 阅读(123) 评论(0) 推荐(0)
摘要:# 理解 Python中的数据类型 在 Python 中变量的数据类型是动态推断的,并且可以自动进行转换 ```python x = 4 x = "four" ``` 因为Python 是由 C 编写的所以 Python 的整形实际上是 C 中的一个结构体,通过储存一些额外的信息 Python 可以 阅读全文
posted @ 2022-05-22 15:44 PHarr 阅读(83) 评论(0) 推荐(0)