这名用户暂未设置签名。
追踪最近的用户名外显变动记录。
最近的文章、讨论、云剪贴板与社区记录
在讨论《大神不要笑话我,都要复赛了真心求教》回复:
||@MrMoring
在讨论《大神不要笑话我,都要复赛了真心求教》回复:
@MrMoring 好难啊 不会做
```cpp #include #include #include #include #define F(i, l, r) for(int i = l; i = r; --i) using namespace std; int N, P, sumnn, size, T; int degree[301], sum[301…
在讨论《set和并查集》回复:
set 和 map 本来就是一个数据结构 你用 set map 写并查集也可以啊。 不就是完成一个操作需要的手段吗。
在讨论《set和并查集》回复:
你并查集也是用数组操作 set本质就是一个红黑树 总归都是数组操作 当然有相同之处啊
在讨论《set和并查集》回复:
你说的是Map吧。
在讨论《set和并查集》回复:
并查集是为了判断是否属于一个集合 set就是一个去重 从小到大的数组啊。
在讨论《set和并查集》回复:
区别大了。
在讨论《初学求助:这个思路为什么不对?》回复:
```cpp #include #include using namespace std; int n, k, a[21], b[21] = {0}, c[21], tot = 0, aox = 0; void judge(int tot) { int k = 2; while(k sqrt(tot))aox++; }…
```cpp *int read() { int x = 0; char ch = getchar(); while(ch >= '0' && ch <= '9') { x = x * 10 + ch - '0'; ch = getchar(); } return x; }*/ 这个会直接爆0 ```
在讨论《为什么RE,求解》回复:
没看正文 除0了?
在讨论《关于一些奇淫妙法...》回复:
奇淫妙法。。。。。。 奇技淫巧吧。。。
题目说内存3.5M ```cpp #include #include #define MAX 2000001 using namespace std; int a[MAX]; int main() { ios::sync_with_stdio(false); int n; cin >> n; for(int i = 1…
在讨论《我怎么连样例都看不懂 = = 》回复:
69 68 64 62 69 68 67 62
```cpp #include #include using namespace std; struct farmer { int cost, number; }a[5001]; int cmp(const farmer & a, const farmer & b) { if(a.cost > b.cost) retu…
在讨论《大神帮个忙吧,为什么是30分》回复:
另附AC程序 ```cpp #include #include #include #include #include using namespace std; int main() { int n = -1, tot = 0,len, d = 0; string s1, s2, s3, s4; cin>>s1; tra…
在讨论《大神帮个忙吧,为什么是30分》回复:
i = str.find(a,i); 这一句错了, 你在a串中加了一个空格,如果a串本身末尾有空格的话a串后就会有两个空格。这样在.find中寻找不到,i被置为-1跳出循环了。
在讨论《求助》回复:
什么读入问题。。。
在讨论《测试数据里面确定一定以及肯定没有负数吗?》回复:
题上不是说没有负数么
在讨论《测试数据里面确定一定以及肯定没有负数吗?》回复:
两个负数相加不是负数?
编译信息 编译失败 tmp/tmpfxtmci\_0.cpp: In function ‘int main()’: /tmp/tmpfxtmci\_0.cpp:9:5: warning: ‘char\* gets(char\*)’ is deprecated (declared at /usr/include/stdi…
```cpp #include #include #include using namespace std; int main() { int lena,lenb,i,m=0,k,aox=0,top,bot=0; char s1[11],s2[1000001]; gets(s1); gets(s2); lena=str…