猫史档案馆


蒟蒻OIer1048576

蒟蒻OIer1048576

Lv.1

只是喜欢Python而已……徒弟:程序侯

获赞:206收藏:39浏览:2002作品收藏:29

签名:只是喜欢Python而已…… 徒弟:程序侯

回复帖子评论
上一页58 页 / 共 60下一页

论编程猫社区的“自欺力”和衰败 中回复

我还在社区……

2021-10-10T17:51:51 点赞:0

力 电压 比热容 开尔文 钇 氧 铀 中回复

你怎么骂人

2021-10-11T20:52:47 点赞:0

力 电压 比热容 开尔文 钇 氧 铀 中回复

力             F

电压         U

比热容      C

开尔文      K

钇             Y

氧             O

铀             U

2021-10-11T20:53:38 点赞:0

[炫耀mc~] 中回复

PCLyyds

2021-10-12T18:25:16 点赞:0

【lz要上推荐!】打个广告! 中回复

https://shequ.codemao.cn/work/119839341

2021-10-12T20:00:21 点赞:0

【lz要上推荐!】打个广告! 中回复

顶,有想合作的回复“我想和lz合作”

2021-10-12T20:16:33 点赞:0

复杂数据处理:快速傅里叶变换(FFT)(一) 中回复

范德萌矩阵就不会了QAQ我太菜了

2021-10-15T20:19:55 点赞:0

复杂数据处理:快速傅里叶变换(FFT)(一) 中回复

fuckccf就对了

2021-10-15T20:36:15 点赞:0

【DSOI】DIV4开考啦 中回复

Https://www.luogu.com.cn/contest/50132#problems

2021-10-16T19:34:57 点赞:0

【DSOI】DIV4开考啦 中回复

Https://www.luogu.com.cn/contest/50132#problems

2021-10-16T19:35:02 点赞:0

【DSOI】DIV4开考啦 中回复

2021-10-16T19:44:21 点赞:0

【DSOI】DIV4开考啦 中回复

Https://www.luogu.com.cn/contest/50132#problems

2021-10-16T19:50:44 点赞:0

【DSOI】DIV4开考啦 中回复

Https://www.luogu.com.cn/contest/50132#problems

2021-10-16T19:58:22 点赞:0

【DSOI】DIV4开考啦 中回复

开始啦

2021-10-16T20:30:58 点赞:0

【DSOI】DIV4开考啦 中回复

开始啦

2021-10-16T20:34:53 点赞:0

【DSOI】DIV4开考啦 中回复

ding

2021-10-17T09:34:31 点赞:0

【DSOI】DIV4开考啦 中回复

Https://www.luogu.com.cn/contest/50132#problems

2021-10-17T09:45:57 点赞:0

【lz要上推荐!】打个广告! 中回复

2021-10-17T11:36:51 点赞:0

【DSOI】DIV4开考啦 中回复

Https://www.luogu.com.cn/contest/50132#problems

2021-10-17T21:09:37 点赞:0

【DSOI】DIV4开考啦 中回复

Https://www.luogu.com.cn/contest/50132#problems

2021-10-18T20:44:57 点赞:0

【C++之数据结构讲解】OI中的线段树详解 中回复

什么?极值你在还用线段树,现在四毛子树走起imgsrc="https://static.codemao.cn/emoji/codemao/%E7%BC%96%E7%A8%8B%E7%8C%AB_%E6%BA%9C%E4%BA%86%E6%BA%9C%E4%BA%86.gif"alt="emotion_编程猫_溜了溜了"

2021-10-28T17:57:22 点赞:0

[喵] 萌新也能做PVP地图了? 中回复

;((args)=>{world.onPlayerJoin(({entity})=>{entity.enableDamage=true});world.onPress(({entity,button,raycast:{hitEntity,direction}})=>{if(button!=='action0'||!hitEntity||!hitEntity.isPlayer)return;if(args[0]){direction.x*=args[1];direction.y*=args[1];direction.z*=args[1];hitEntity.velocity=direction}if(args[2]){hitEntity.hurt(args[5],{attacker:entity})}else{hitEntity.hurt(args[5])}if(args[3]){hitEntity.player.directMessage(args[4].replace("@1",entity.player.name).replace("@2",args[5]))}})})([true,"0.7",true,true,"💘 @1 hits you (damage = @2)","10"]);

2021-11-08T12:50:52 点赞:0

有谁记得ymjl专属社区 中回复

ymjl = S *

2021-11-09T10:01:20 点赞:0

【巅峰战绩】双春鼠计划<战胜5人>达成! 中回复

kao gu

2021-11-16T19:25:51 点赞:0

【神岛《章鱼游戏》你可能不知道的那些事】 中回复

这里有一个获胜方法[几率99%]

如果你是选数字的,按照114514的顺序选

如果你是猜的,按照奇变偶不变的顺序猜

emotion_doge

2021-11-20T22:01:36 点赞:1

找师傅了~~~~ 中回复

我游戏引擎不好,但是可能可以写点底层逻辑

2021-11-27T11:46:32 点赞:0

找师傅了~~~~ 中回复

#include <iostream>
#include <algorithm>
#include <cstdio>
#include <cstring>
#include <map>
#include <vector>
#include <string>
#include <bitset>
using namespace std;
bitset<128> ans[16];
int n, m, on[128], off[128], top, top1, top2;
bool check(bitset<128> a) {
	for (int i = 0; i < top1; ++i) if (!a[on[i]]) return false;
	for (int i = 0; i < top2; ++i) if (a[off[i]]) return false;
	return true;
}
bool cmp(bitset<128> a, bitset<128> b) {
	for (int i = n - 1; i >= 0; --i) {
		if (int(a[i]) > int(b[i])) return false;
		if (int(a[i]) < int(b[i])) return true;
	}
	return false;
}
bool eql(bitset<128> a, bitset<128> b) {
	for (int i = n - 1; i >= 0; --i) {
		if (int(a[i]) != int(b[i])) return false;
	}
	return true;
}
int main() {
	cin >> n >> m;
	int p = 0; cin >> p; while (p != -1) {
		on[top1++] = n - p;
		cin >> p;
	}
	p = 0; cin >> p; while (p != -1) {
		off[top2++] = n - p;
		cin >> p;
	}
	for (int i = 0; i < 16; ++i) {
		int k = 0; bitset<128> a;
		a.flip();
		if (i & 1) { a.flip(); }
		if (i & 2) for (int i = 2; i <= n; i += 2) { a.flip(n - i);  }
		if (i & 4) for (int i = 1; i <= n; i += 2) { a.flip(n - i);  }
		if (i & 8) for (int i = 1; i <= n; i += 3) { a.flip(n - i);  }
        for (int j = 0 ; j < 4 ; ++ j) if (i & (1 << j)) k++;
		if (check(a) && ((k & 1) == (m & 1)) && k <= m) {ans[top++] = a;/*cout << i << endl;*/}
	}
	sort(ans, ans + top, cmp);
	top = unique(ans, ans + top , eql) - ans;
	if (!top) {
		cout << "IMPOSSIBLE";
		return 0;
	}
	for (int i = 0; i < top; ++i) {
		string str = ans[i].to_string();
		str.erase(0, str.size() - n);
		cout << str << endl;
	}
}

看得懂?

2021-11-27T12:17:44 点赞:0

找师傅了~~~~ 中回复

我不是大佬QAQ,洛谷6.5k名,就这点就是大佬……

2021-11-27T13:14:27 点赞:0

复杂数据处理:傅里叶变换相关 中回复

我:好题,(线性代数不会了),……。好代码,贺了emotion_doge

2021-12-05T07:19:38 点赞:0

求队友...... 中回复

2的幂次方贴: 下一站:编程猫社区-我们信息课老师说下星期个给我们上编程猫的课程。-编程学习交流(codemao.cn)

2021-12-06T18:31:44 点赞:0