牛客7777779号
牛客7777779号
全部文章
分类
归档
标签
去牛客网
登录
/
注册
牛客7777779号的博客
全部文章
(共86篇)
题解 | #Simple Sorting#
#include <iostream> #include <cstring> #include <algorithm> #include <math.h> #include <string.h> #include <stdlib....
2023-03-05
0
202
题解 | #Mileage Bank#
#include <cmath> #include <iostream> #include<cstring> using namespace std; #define MAX 1000 struct licheng{ int len; char c...
2023-03-03
0
221
题解 | #Skew数#
用string存储大数 #include <cmath> #include <iostream> using namespace std; int main() { string n; while (cin >> n && n != "0") {...
2023-03-03
0
254
题解 | #反序相等#
由于1111*9=9999,即N不会超过1111,所以循环只需要从1000~1111即可。 #include <iostream> using namespace std; int main() { int temp = 0; //存储反序数 for (int i = ...
2023-03-01
0
179
题解 | #大整数的因子#
思路:计算机模拟手算除法取模运算用字符串存储大数;将c从高位开始,每一位对k取模,temp记录模;将temp*10 与下一位相加,重复第2步,直到temp取到c的个位;若temp%k==0,说明c可以整除k。 #include <iostream> using namespace std...
2023-03-01
0
225
题解 | #字符串连接#
#include <stdio.h> #define MAX 101 int main() { char str1[MAX], str2[MAX]; while (scanf("%s %s", &str1, &str2) != EOF) { // 注意 while 处理多...
2023-03-01
0
151
题解 | #字符串连接#
#include <iostream> using namespace std; int main() { string str1, str2; while (cin >> str1 >> str2) { // 注意 while 处理多个 cas...
2023-03-01
0
171
题解 | #合并符串#
#include <iostream> using namespace std; #define MAX 101 int main() { char str1[MAX], str2[MAX]; while (cin >> str1 >> str2)...
2023-03-01
0
236
题解 | #日期类#
c++格式输出指定位数:setw(位数值)补零输出:setfill('0') #include <iomanip> #include <iostream> using namespace std; int mon[12] = {31,28,31,30,31,30,31,31,...
2023-03-01
0
171
题解 | #对称矩阵#
#include <iostream> using namespace std; int main() { int n; while (cin >> n) { // 注意 while 处理多个 case int a[n][n]; //输...
2023-03-01
0
185
首页
上一页
1
2
3
4
5
6
7
8
9
下一页
末页