Compare commits
No commits in common. "a9e5279bc978838f8085190e8c61257175a24095" and "817eaa8a0a715ccc36a99f2c40e7d4ac344de1f8" have entirely different histories.
a9e5279bc9
...
817eaa8a0a
@ -1,3 +0,0 @@
|
|||||||
# 标题
|
|
||||||
|
|
||||||
* 内容
|
|
@ -1,3 +0,0 @@
|
|||||||
# 标题
|
|
||||||
|
|
||||||
* 内容
|
|
Binary file not shown.
@ -1,6 +0,0 @@
|
|||||||
#include <iostream>
|
|
||||||
|
|
||||||
int main()
|
|
||||||
{
|
|
||||||
std::cout << "Hello Easy C++ project!" << std::endl;
|
|
||||||
}
|
|
Binary file not shown.
@ -1,23 +0,0 @@
|
|||||||
#include<iostream>
|
|
||||||
using namespace std;
|
|
||||||
long long n,k,m;
|
|
||||||
bool pan(long long now,long long x){
|
|
||||||
long long y=now/x;
|
|
||||||
if(y<x){
|
|
||||||
y=m;
|
|
||||||
}
|
|
||||||
now-=y;
|
|
||||||
|
|
||||||
}
|
|
||||||
long long dg(long long t,long long w) {
|
|
||||||
long long mid=(w-t)/2+t;
|
|
||||||
if(pan(n,mid)==1){
|
|
||||||
return dg(mid+1,w);
|
|
||||||
}else{
|
|
||||||
return dg(t,mid-1);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
int main(){
|
|
||||||
cin>>n>>k>>m;
|
|
||||||
cout<<dg(1,n);
|
|
||||||
}
|
|
@ -1,7 +0,0 @@
|
|||||||
## z:\Chao\src\Template\test\in.txt
|
|
||||||
2020/03/14 ÖÜÁù 11:41:28.68
|
|
||||||
Hello Easy C++ project!
|
|
||||||
|
|
||||||
-----------------------------------------------
|
|
||||||
Process exited after 200 ms with return value 0
|
|
||||||
|
|
@ -1,42 +1,19 @@
|
|||||||
#include <iostream>
|
#include<iostream>
|
||||||
using namespace std;
|
using namespace std;
|
||||||
int main()
|
int main(){
|
||||||
{
|
int k,n,a[11][21]={0};
|
||||||
int k, n, a[11][21] = { 0 };
|
cin>>k>>n;
|
||||||
cin >> k >> n;
|
for(int i=1;i<=k;i++){
|
||||||
for (int i = 1; i <= k; i++) {
|
for(int j=1;j<=n;j++){
|
||||||
for (int j = 1; j <= n; j++) {
|
int u;
|
||||||
cin >> a[i][j] ;
|
cin>>u;
|
||||||
|
a[i][u]=j;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
int c[21][21] = { 0 };
|
bool c[21][21];
|
||||||
bool ce[21][21] = { 0 };
|
for(int i=1;i<=k;i++){
|
||||||
for (int i = 1; i <= n; i++) {
|
for(int j=i+1;j<=n;j++){
|
||||||
for (int j = i + 1;j<=n; j++) {
|
if(a[i][j])
|
||||||
c[a[1][i]][0]++;
|
|
||||||
c[a[1][i]][c[i][0]] = a[1][j];
|
|
||||||
ce[a[1][i]][c[i][0]] = 1;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (int i = 1; i <= k; i++) { //k
|
|
||||||
for (int e = 1; e <= n; e++) {
|
|
||||||
for (int j = 1; j <= c[a[i][e]][0]; j++) { //
|
|
||||||
if (ce[a[i][e]][j] == 1) {
|
|
||||||
c[a[i][e]][0]--;
|
|
||||||
ce[a[i][e]][j] = 0;
|
|
||||||
for (int w = e + 1; w <= n; w++) {
|
|
||||||
if (a[i][w] == c[a[i][e]][j]) {
|
|
||||||
c[a[i][e]][0]++;
|
|
||||||
ce[a[i][e]][j] = 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
int ans=0;
|
|
||||||
for(int i=1;i<=n;i++){
|
|
||||||
ans+=c[i][0];
|
|
||||||
}
|
|
||||||
cout<<ans;
|
|
||||||
}
|
}
|
Binary file not shown.
@ -1,24 +1,24 @@
|
|||||||
## z:\Chao\src\4067_coach\test\in.txt
|
## z:\Chao\src\4067_coach\test\in.txt
|
||||||
2020/03/29 周日 11:59:36.44
|
2020/03/29 周日 9:34:29.67
|
||||||
0
|
|
||||||
-----------------------------------------------
|
-----------------------------------------------
|
||||||
Process exited after 230 ms with return value 0
|
Process exited after 190 ms with return value -1073741819
|
||||||
|
|
||||||
## z:\Chao\src\4067_coach\test\In0 (7).txt
|
## z:\Chao\src\4067_coach\test\In0 (7).txt
|
||||||
2020/03/29 周日 11:59:36.44
|
2020/03/29 周日 9:34:29.67
|
||||||
9
|
4
|
||||||
-----------------------------------------------
|
-----------------------------------------------
|
||||||
Process exited after 100 ms with return value 0
|
Process exited after 90 ms with return value 0
|
||||||
|
|
||||||
## z:\Chao\src\4067_coach\test\In1 (12).txt
|
## z:\Chao\src\4067_coach\test\In1 (12).txt
|
||||||
2020/03/29 周日 11:59:36.44
|
2020/03/29 周日 9:34:29.67
|
||||||
94
|
190
|
||||||
-----------------------------------------------
|
-----------------------------------------------
|
||||||
Process exited after 90 ms with return value 0
|
Process exited after 90 ms with return value 0
|
||||||
|
|
||||||
## z:\Chao\src\4067_coach\test\In2 (4).txt
|
## z:\Chao\src\4067_coach\test\In2 (4).txt
|
||||||
2020/03/29 周日 11:59:36.44
|
2020/03/29 周日 9:34:29.67
|
||||||
123
|
152
|
||||||
-----------------------------------------------
|
-----------------------------------------------
|
||||||
Process exited after 180 ms with return value 0
|
Process exited after 90 ms with return value 0
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user