首页 > 其他 > 详细

Codeforces 1136F Cooperative Game (神仙题)

时间:2019-03-21 00:48:21      阅读:210      评论:0      收藏:0      [点我收藏+]

这种题就是难者不会,会者不难。

博客讲的很详细了

代码:

#include <bits/stdc++.h>
using namespace std;
string s;
int read() {
	int n;
	scanf("%d", &n);
	for (int i = 1; i <= n; i++)
		cin >> s;
	return n;
}
int main() {
	while(1) {
		printf("next 0\n");
		fflush(stdout);
		read();
		printf("next 0 1\n");
		fflush(stdout);
		if(read() == 2) break;
	}
	while(1) {
		printf("next 0 1 2 3 4 5 6 7 8 9\n");
		fflush(stdout);
		if(read() == 1) {
			printf("done\n");
			fflush(stdout);
			break;
		}
	}
} 

  

Codeforces 1136F Cooperative Game (神仙题)

原文:https://www.cnblogs.com/pkgunboat/p/10568995.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!