1.我才知道ainput()读入的竟然是字符串。。。还要强制转化成int型,这玩意搞了我好久 2.对照片进行裁剪,将照片周围多余的白色部分去除(也就是让图像尽可能撑满整个框) 由上一张裁成下一张
from PIL import Image
import os
SCA…
有什么用: 查询元素a和元素b是否属于同一组 合并元素a和元素b所在组
代码实现:
#include<iostream>
using namespace std;
int n,m,p;
int fa[5001];
int find(int x){if(fa[x]x) return x;else{return fa[x]find(fa[x]);}
}
int main(){cin&g…
牛客网 poj 1011
题目: George took sticks of the same length and cut them randomly until all parts became at most 50 units long. Now he wants to return sticks to the original state, but he forgot how many sticks he had originally and how long th…