天乔巴夏、
天乔巴夏、
全部文章
分类
题解(31)
归档
标签
去牛客网
登录
/
注册
天乔巴夏、的博客
全部文章
(共31篇)
题解 | #八进制#
#include <iostream> #include <cstring> #include <algorithm> using namespace std; int main() { int n; while(cin >> n)...
C++
2022-01-12
0
233
题解 | #剩下的树#
# include<stdio.h> # include<string.h> const int N = 10005; int buf[N]; int main() { int L, M; while(scanf("%d%d", &L, &M) !...
C++
2022-01-12
0
303
题解 | #进制转换#
注意需要读取一行即可,因为字符串中有空格! #include<iostream> #include<cstring> using namespace std; int main() { string s, ans; while(getline(cin, s...
C++
2022-01-12
0
202
题解 | #进制转换#
yxc高精度除法 #include<iostream> #include<cstring> #include<algorithm> #include<vector> using namespace std; vector<int> di...
C++
2022-01-12
0
297
题解 | #数制转换#
#include<iostream> #include<string> #include<algorithm> using namespace std; // 将x 抓化为 m进制 string get(long x, int m) { string a...
C++
2022-01-11
0
311
题解 | #Digital Roots#
#include<iostream> using namespace std; int main() { int n; while(cin >> n) { int x = n; while(x / 10 != 0) { int t = x, sum...
C++
2022-01-11
1
216
题解 | #对称平方数#
解1 #include<iostream> using namespace std; bool check(int x) { if(x == 0) return true; int c = 0, sum = 0, t = x; while(x != 0) { c = x...
C++
2022-01-11
0
385
题解 | #对称平方数1#
#include<iostream> using namespace std; bool check(int x) { if(x == 0) return true; int c = 0, sum = 0, t = x; while(x != 0) { c = x % ...
C++
2022-01-11
0
199
题解 | #反序数#
#include<iostream> using namespace std; int getNum(int i, int j, int k, int p) { return i * 1000 + j * 100 + k * 10 + p; } int main() { for(i...
C++
2022-01-11
0
241
题解 | #特殊乘法#
解法一 #include<iostream> using namespace std; long long res; int a, b, sum; // 123 45 int a_buf[20], b_buf[20], a_idx = 0, b_idx = 0; int main() ...
C++
2022-01-11
2
278
首页
上一页
1
2
3
4
下一页
末页