题解列表

筛选

chatgpt给出的解答

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

c语言代码解决问题

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int n, m, a[1000], i, sum[1000] = {0}, j,k=0,y, x = 0……

1211基础解法(Python)

摘要:注意事项:用import sys的情况下进行多行输入第一个测试点有问题,但是结果没有错误,所以这两种方式有什么区别呢?参考代码:while True:    try:        a,b = map……

删除单词后缀

摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main {    public static void main(String[] args……

字符串移位包含问题

摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main {    public static void main(String[] args……

棋盘游戏 DFS

摘要:广搜太麻烦了,深搜水了过去参考代码:#include<stdio.h>#include<math.h>#include<string.h>int book[10], x[10], y[10], ex[……

[编程入门]报数问题

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

[编程入门]Sn的公式求和

摘要:参考代码:#include<bits/stdc++.h>using namespace std;int main(){    int n,Sn=2,a=2;    cin>>n;    for(int……

完数的判断

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