题解 1231: 菜鸟解法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,j,n,a[30][30]; while(scanf("%d",&n)==1){ …… 题解列表 2024年11月23日 0 点赞 0 评论 293 浏览 评分:9.9
编写题解 2330: 信息学奥赛一本通T1178-成绩排序(Python) 摘要:解题思路:利用sorted()函数进行排序注意事项:首先按成绩排序,如果成绩相同则按名字升序参考代码:n = int(input())sc_dict = {}for i in range(n): …… 题解列表 2024年11月23日 0 点赞 0 评论 327 浏览 评分:9.9
3031: 分解因数 摘要:解题思路:注意事项:参考代码:#include <iostream> #include <stdlib.h> #include <stdbool.h> #include <stdio.h> #…… 题解列表 2024年11月23日 0 点赞 0 评论 695 浏览 评分:9.9
[编程入门]自定义函数处理素数-题解(Java代码) 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args) {…… 题解列表 2024年11月24日 0 点赞 0 评论 222 浏览 评分:9.9
2749: Hello, World! 摘要:解题思路:注意事项:参考代码:#include<iosteam> using namespace std; int main() …… 题解列表 2024年11月24日 2 点赞 0 评论 680 浏览 评分:9.9
编写题解 1141: C语言训练-百钱百鸡问题 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>int main() {printf("cock=0,hen=25,chicken=75\ncock=4,hen=18,c…… 题解列表 2024年11月24日 2 点赞 1 评论 287 浏览 评分:9.9
编写题解 3008: 买笔 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ long long x; cin>>x; if(x…… 题解列表 2024年11月24日 1 点赞 2 评论 190 浏览 评分:9.9
期末来临了,班长小Q决定将剩余班费x元钱,用于购买若干支钢笔奖励给一些学习好、表现好的同学。已知商店里有三种钢笔,它们的单价为6元、5元和4元。小Q想买尽量多的笔(鼓励尽量多的同学),同时他又不想有剩 摘要:解题思路:优先买4元x/4=0 全买4元x/4=1 买1个5元x/4=2 买1个6元x/4=3 买1个5元 买1个6元注意事项:参考代码:#include <bits/stdc++.h>usi…… 题解列表 2024年11月24日 1 点赞 1 评论 501 浏览 评分:9.9
编写题解 2772: 苹果和虫子 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int x,y,n; cin>>n>>x>>y; if(y…… 题解列表 2024年11月24日 2 点赞 0 评论 265 浏览 评分:9.9
编写题解 1764: 循环入门练习1 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int s=0; for(int i=0;i<=1000;…… 题解列表 2024年11月24日 2 点赞 0 评论 142 浏览 评分:9.9