摘要:
题目中只说明了给出的字符是在0~35的,并没有说明数的进制也是在0~35的。 想当然的认为两个数的进制都是在这个范围,并没有想到还需要二分范围。 另外在运算过程中容易爆long long,需要注意判断。 #include <bits/stdc++.h> #define ll long long us 阅读全文
摘要:
遍历某一目录下的所有文件或文档,并输出 #!/bin/bash for file in /home/linux/* do if [ -d "$file" ] then echo "$file is directory" elif [ -f "$file" ] then echo "$file is 阅读全文