题解列表
安之 第二小整数 STL解法
摘要:解题思路:用multiset 中对重复元素保留的方法进行编写!使用迭代器输出第二小的元素!注意事项:参考代码: #include <bits/stdc++.h>using nam……
注意空格(真是服了)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b; scanf("%d",&a); for(b=1;b<=a;b++) {……
循环单链表 #1770: [编程入门]链表之报数问题&约瑟夫环(C++)
摘要:这道题如果用不带头结点的循环单链表会少去两个特判
奈何作者带头结点的写习惯了,不带头结点的一时不会写了
```
#include
#define MAX 0x3f3f3f3f
#defi……
安之 用STL模拟栈的方法
摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ //3 123 321 //3 123 312 ve……
A+B for Input-Output Practice (IV)
摘要: #include
using namespace std;
int main()
{
int i=0,n;
int ……