题解列表

筛选

内码对称 (C++代码)

摘要:解题思路:        把10进制变成32位二进制存储,判断对称即可。核心代码:    arr[i] = (num >> i) & 1参考代码:#include<bits/stdc++.h> us……

P1019 (C++代码)

摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cmath> #include<algorithm> using namespace std; const……

Tom数 (C++代码)

摘要:#include <iostream> #include  <cmath> using namespace std; long long  n; int main() {     whil……

程序员的表白 (C语言代码)

摘要:解题思路:根据u字格式 利用for循环扫描打印 将u 分为两部分 竖线部分 和横线部分 分别打印 竖线部分有n行 每行有n+2 列 用两个循环嵌套即可注意事项:参考代码:#include<stdio.……