8.15C未完成
This commit is contained in:
parent
a92b716c4d
commit
769391897e
48
8.15/C-Schedule Problem/main.cpp
Normal file
48
8.15/C-Schedule Problem/main.cpp
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
//weiwancheng
|
||||||
|
#include <iostream>
|
||||||
|
#include<cstdio>
|
||||||
|
#include<algorithm>
|
||||||
|
#include <cmath>
|
||||||
|
#include <cstring>
|
||||||
|
#include <string>
|
||||||
|
using namespace std;
|
||||||
|
const int N = 5e4 + 5;
|
||||||
|
int n;
|
||||||
|
int a[N];// ÿpartµÄºÄʱ
|
||||||
|
string s;
|
||||||
|
inline void initialise()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
int t;
|
||||||
|
// scanf("%d",&t);
|
||||||
|
while(1)
|
||||||
|
{
|
||||||
|
scanf("%d",&n);
|
||||||
|
if(n==0)
|
||||||
|
{
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
initialise();
|
||||||
|
for(int i=1;i<=n; i++)
|
||||||
|
{
|
||||||
|
scanf("%d",&a[i]);
|
||||||
|
}
|
||||||
|
while(1)
|
||||||
|
{
|
||||||
|
cin>>s;
|
||||||
|
if(n==0)
|
||||||
|
{
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
initialise();
|
||||||
|
for(int i=1;i<=n; i++)
|
||||||
|
{
|
||||||
|
scanf("%d",&a[i]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user