紫书 第五章 习题5-3
算法:暴力模拟。注意只有1张牌的情况也要考虑进去,但题目没有标识出来。注意输出格式。
AC代码(0 ms):
#include<cstdio>
#include<cstdlib>
#include<queue>
#pragma warning(disable:4996)
using namespace std;
queue<unsigned char>q;
int main() {
unsigned char n, exitfor;
for (;;
紫书 第五章 习题5-3
算法:暴力模拟。注意只有1张牌的情况也要考虑进去,但题目没有标识出来。注意输出格式。
AC代码(0 ms):
#include<cstdio>
#include<cstdlib>
#include<queue>
#pragma warning(disable:4996)
using namespace std;
queue<unsigned char>q;
int main() {
unsigned char n, exitfor;
for (;;