题解列表

筛选

2917: 奇数单增序列

摘要:解题思路:注意事项:参考代码:#include <stdio.h> int main() {     int n = 0, a[505] = {0}, q = 0;     scanf("%d……

2864: 单词替换

摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <string.h> int main() {     int n = 0;     char s[10……

2903: 不高兴的津津

摘要:解题思路:注意事项:参考代码:#include <stdio.h> int main() {     int a[8] = {0}, n = 0, max = 0, ans = 0;     ……

2886: 图像旋转

摘要:解题思路:注意事项:参考代码:#include <stdio.h> int main() {     int m = 0, n = 0, a[105][105] = {0}, b[105][10……

2800: 多边形内角和

摘要:解题思路:注意事项:参考代码:#include <stdio.h> int main() {     int n = 0, ans = 0;     scanf("%d", &n);    ……

1098: 陶陶摘苹果

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){    int n = 0, a[10] = {0}, ans = 0;    for (int i = 0; ……

记录自己答案:1025

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int a[9],b[10],n,i;    for(i=0;i<9;i++)    {        s……

1169基础解法(Python)

摘要:注意事项:因为sys.stdin直接读取输入流,则第一项是什么对我们而言不太重要,只需要判断这个列表是否为空即可因为是绝对值的大小排序,选用sorted()函数中的key参数设定排序的指标为abs()……

1013一行解(Python)

摘要:注意事项:要将字符串形式先转为数字(int整形)形式才能采用sum计算和参考代码:print(sum(map(int, list(map(lambda x : &#39;2&#39; * x, (i ……

C语言字符串

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    char a[5];    gets(a);    for(int i=0;i<3;i++)       ……