赵卿与
赵卿与
全部文章
分类
归档
标签
去牛客网
登录
/
注册
赵卿与的博客
全部文章
(共6篇)
题解 | A+B
#include <stdio.h> int main() { for (int a, b, v, c; scanf("%d%c", &a, &c) == 2; printf("%d\n", a + b)) { ...
2026-03-04
0
31
题解 | 最大连续子序列
#include <stdio.h> int main() { for (int n, a0, ai, y, S, L, R, l, al; scanf("%d", &n) == 1 && n > 0; p...
2026-03-04
1
38
题解 | 2023_老鼠回家路_1533
#include <stdio.h> int main() { int ix, j = -1; char id, stk[4000]; while (scanf("%hhd-%d", &id, &ix) == 2 &&a...
2026-03-03
1
29
题解 | Friend
from math import gcd from sys import stdin from bisect import bisect_left from typing import Tuple, List, Set, Dict def solve_a(l: List[int]): l...
2026-02-20
0
23
题解 | N的阶乘
使用10000进制,即可只用算1位的乘法并进位。最后除最高位都用%04d格式输出即可。 #include <algorithm> #include <vector> #include <iostream> using namespace std; void mul...
2026-01-31
0
48
题解 | 等差数列
from sys import stderr, stdout stderr = stdout def calc(up): i0, v0 = up[0] i1, v1 = up[1] k = (v1 - v0) // (i1 - i0) b = v0 - i0 *...
2026-01-18
0
39