牛客440904392号
牛客440904392号
全部文章
分类
归档
标签
去牛客网
登录
/
注册
牛客440904392号的博客
全部文章
(共139篇)
题解 | #整型存储#
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); Revers...
2024-10-04
1
51
题解 | #复数#
#include <iostream> using namespace std; struct Complex { int real, imag; Complex operator+(const Complex &other) { int real...
2024-10-04
1
41
题解 | #日期类#
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int m ...
2024-10-04
1
48
题解 | #重载运算符#
from math import radians, sin class Angle: def __init__(self, degrees): self.degrees = degrees def __sub__(self, other): retur...
2024-10-04
1
48
题解 | #最长&最短文本#
s = [] while True: try: s.append(input()) except: s.sort(key=lambda x: len(x)) min_len = len(s[0]) max_len = l...
2024-10-03
1
56
题解 | #A+B#
//C++版代码 #include <iostream> #include <algorithm> using namespace std; int main() { string s, t; while (cin >> s >> t)...
2024-10-03
1
76
题解 | #最小年龄的3个职工#定义个小根堆就行
#include <iostream> #include <queue> using namespace std; struct Staff { int id; string name; int age; bool operator<(c...
2024-10-03
1
61
题解 | #字符串连接#我没用库函数啊!
//C语言版代码 #include <stdio.h> int main() { char s[100], t[100]; scanf("%s%s", s, t); printf("%s%s\n", s, t); r...
2024-10-03
1
50
题解 | #合并符串#直接按要求输出就行
#include <iostream> using namespace std; int main() { string s, t; cin >> s >> t; for (int i = 0; i < s.size() * 2; i...
2024-10-03
1
56
题解 | #调整方阵#
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n ...
2024-10-03
1
59
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页