题解列表
1274: 排座椅[NOIP2008 年普及组]
摘要:```cpp
#include
#include
using namespace std;
struct ff
{
int x,y,p,q;
}a[2001];
struct ……
1273: ISBN码(c++代码)
摘要:```cpp
#include
using namespace std;
int main()
{
string s;
while(cin>>s)
{
……
1272: 采药[NOIP2005复赛普及组]
摘要:```cpp
#include
using namespace std;
int a[1001];
int main()
{
int t,m,i,j,k,l,sj[101],jz[……
数字整除——17的倍数
摘要:解题思路:不知道为什么,老是报错说是输入有问题,可能不能用input()吧,参考了一下其他作者的代码,终于成功了,我是新手,还有好多东西不懂,慢慢来,发个题解记录一下吧注意事项:1、那个sys.std……
巧用中位数,通过small和big的关系进行分类讨论
摘要:解题思路:注意事项:参考代码:n=int(input())a=list(map(int,input().split()))b=[0]*len(a)d=sorted(a)mid=d[len(d)//2]……
1271: 矩形滑雪场
摘要:```cpp
#include
using namespace std;
int n,m,a[1001][1001],b[1001][1001],u[4]={0,0,-1,1},v[4]={-……
1270: 贝茜的训练
摘要:```cpp
#include
using namespace std;
const int N=1e5+1;
char a[N];
int main()
{
int time……
弟弟的作业——判断算式是否正确
摘要:解题思路:参考了其他作者的代码,利用‘==’,判断算式是否成立注意事项:参考代码:def check(L): if '?' in L: return 0 el……
利用c++结构体重构小于计算来使用sort排序
摘要:解题思路:创建结构体用number存储数值,len存储各各数位相加的结果。根据题意定义小于运算,然后可以直接使用c++内置的sort函数进行排序。注意事项:参考代码:#include<bits/std……