資源簡介
huichang.cpp
代碼片段和文件信息
#include“iostream“
using?namespace?std;
struct
{
int?start;
int?end;
int?flag;
}Act[20];
void?main()
{
int?injkcount=0m;
//freopen(“input2.txt““r“stdin);
//freopen(“output.txt““w“stdout);
while(cin>>n)
{
for(i=1;i<=n;i++)
{
cin>>Act[i].start>>Act[i].end;
}
for(i=1;i<=n;i++)
{
for(j=i+1;j<=n;j++)
{
if(Act[i].end>Act[j].end)
- 上一篇:C語言編寫的腐蝕膨脹開閉運算算法
- 下一篇:c語言控制pc揚聲器代碼
評論
共有 條評論