题解列表
1032: [编程入门]自定义函数之字符串连接
摘要:解题思路:注意事项:参考代码:#include<stdio.h>
int main()
{
char st;
while((st=getchar())!=EOF){
if(st==……
C语言入门scanf和printf,浮点数
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ double F,T; scanf("%lf",&F); T=5.0*(F-32.0)/9.0;……
分段函数(if简单应用)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int x,y; scanf("%d",&x); if(x<1) y=x; el……
简单易懂,暴力开解(残稿,有问题,不完全)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,s,i,d=2; scanf("%d",&n); if(n<5){ for(i……
题目 1806: [编程基础]输入输出练习之第二个数字
摘要:解题思路:定义一个数组,利用数组地址指定输出值。注意事项:数组定义为int型,而不是char。参考代码:#include<stdio.h>int main(){ int a[3]; for……
信息学奥赛一本通T1245-不重复地输出数-题解(各语言代码)
摘要:**python**
```python
input()
print(*sorted(set(map(int,input().split()))))
```
**java**
```jav……
信息学奥赛一本通T1308-高精除-题解
摘要:**python**
```python
print(*divmod(int(input()),int(input())),sep='\n')
```
**java**
```java
i……
信息学奥赛一本通T1422-活动安排(贪心算法)
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;struct Node{ int x, y;}I[1005];int cmp(……
完全背包问题(C++)
摘要:解题思路:把“完全背包问题”转化成“01背包问题”来做。看似有无限多的物品,但背包只有那么大。注意事项:和上一题稍有不同,输出记得加“max=”。参考代码:由“01背包问题”的代码更改而来,第9行是增……