题解列表

筛选

1132基础解法(Python)

摘要:注意事项:用sys.stdin避免输入异常,此题因为-1即表示终止,且不存在多个-1或者-1后仍有输入的情形,所以难度大大降低参考代码:import syslst = []for line in sy……

排序排序排序排序 C

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){         int n,i,j,t;         int min,min_i;         sca……

1173一行解(Python)

摘要:解题思路:注意事项:参考代码:import mathimport sysfor line in sys.stdin:print(&#39;{:.2f}&#39;.format((4/3)*math.p……

剪刀石头布C++

摘要:解题思路:  一一比较注意事项:参考代码:#include<iostream>using namespace std;int main(){    int a, b;    cin >> a >> b……

字符串拷贝简易版

摘要:解题思路:输入一串字符串,然后直接从输入的m个字符中从第n个开始截断输出注意事项:注意数组是从0开始计数,所以第一个字符对应的数组下标为0参考代码:#include <stdio.h>int main……

1172基础解法(Python)

摘要:参考代码:import sysfor line in sys.stdin :    line = list(map(float, line.split()))    print(&#39;{:.2f}……

输出N以内的所有完数1017

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