题解列表

筛选

C二级辅导-进制转换 (C语言代码)

摘要:解题思路:printf函数输出本身就可以实现进制转换。%o为八进制,%d为十进制,%x为十六进制。注意事项:莫忘取地址符参考代码:#include<stdio.h>int main(){    int……

P1038 (C++代码)

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

P1055 (C++代码)

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>   using namespace std;   #define maxn 1000+5   #define IN……

P1052 (C++代码)

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; const int maxn=6e3+10; int n; int dp……