Compare commits
2 Commits
a5afa671a6
...
83fac884dc
Author | SHA1 | Date | |
---|---|---|---|
83fac884dc | |||
30ccb60c7f |
@ -9,7 +9,7 @@ int main()
|
||||
if (a[i] == 1) {
|
||||
num[i] = ++sum;
|
||||
}
|
||||
}
|
||||
}/*
|
||||
now[1]=1;
|
||||
do{
|
||||
t++;
|
||||
@ -21,12 +21,13 @@ int main()
|
||||
if(bi<sum){
|
||||
sum=bi;
|
||||
}
|
||||
}while(t<w);
|
||||
cout<<sum;
|
||||
/*
|
||||
}while(t<w);*/
|
||||
for(int i=1;i<=n;i++){
|
||||
for(int j=1;j<=k;j++){
|
||||
|
||||
if(i==j){
|
||||
break;
|
||||
}
|
||||
}
|
||||
}*/
|
||||
}
|
||||
cout<<sum;
|
||||
}
|
3
time/Readme.md
Normal file
3
time/Readme.md
Normal file
@ -0,0 +1,3 @@
|
||||
# 标题
|
||||
|
||||
* 内容
|
3
time/doc/Readme.md
Normal file
3
time/doc/Readme.md
Normal file
@ -0,0 +1,3 @@
|
||||
# 标题
|
||||
|
||||
* 内容
|
6
time/main.cpp
Normal file
6
time/main.cpp
Normal file
@ -0,0 +1,6 @@
|
||||
#include <iostream>
|
||||
|
||||
int main()
|
||||
{
|
||||
std::cout << "Hello Easy C++ project!" << std::endl;
|
||||
}
|
BIN
time/main.exe
Normal file
BIN
time/main.exe
Normal file
Binary file not shown.
7
time/test/ingame.txt
Normal file
7
time/test/ingame.txt
Normal file
@ -0,0 +1,7 @@
|
||||
22 00
|
||||
7 30
|
||||
8 00
|
||||
9 50
|
||||
14 20
|
||||
15 13
|
||||
16 20
|
6
time/test/instudy.txt
Normal file
6
time/test/instudy.txt
Normal file
@ -0,0 +1,6 @@
|
||||
18 00
|
||||
7 30
|
||||
12 04
|
||||
12 22
|
||||
13 03
|
||||
13 14
|
12
time/test/out.txt
Normal file
12
time/test/out.txt
Normal file
@ -0,0 +1,12 @@
|
||||
## z:\Chao\src\time\test\ingame.txt
|
||||
2020/03/26 ÖÜËÄ 16:52:58.83
|
||||
60:47
|
||||
-----------------------------------------------
|
||||
Process exited after 210 ms with return value 0
|
||||
|
||||
## z:\Chao\src\time\test\instudy.txt
|
||||
2020/03/26 ÖÜËÄ 16:52:58.83
|
||||
31:47
|
||||
-----------------------------------------------
|
||||
Process exited after 90 ms with return value 0
|
||||
|
24
time/time.cpp
Normal file
24
time/time.cpp
Normal file
@ -0,0 +1,24 @@
|
||||
#include<iostream>
|
||||
#include<fstream>
|
||||
using namespace std;
|
||||
ifstream fin("order.in");
|
||||
ofstream fout("order.out");
|
||||
int main() {
|
||||
long long anss,ansf;
|
||||
int s,f;
|
||||
fin>>anss>>ansf;
|
||||
while (fin>>s>>f)
|
||||
{
|
||||
ansf-=f;
|
||||
if(ansf<0){
|
||||
anss--;
|
||||
ansf+=60;
|
||||
}
|
||||
if(ansf>59){
|
||||
anss++;
|
||||
ansf-=60;
|
||||
}
|
||||
anss-=s;
|
||||
}
|
||||
fout<<anss<<":"<<ansf;
|
||||
}
|
24
time/timecin.cpp
Normal file
24
time/timecin.cpp
Normal file
@ -0,0 +1,24 @@
|
||||
#include <iostream>
|
||||
using namespace std;
|
||||
int main()
|
||||
{
|
||||
long long anss, ansf, chus = 0, chuf = 0;
|
||||
int s, f;
|
||||
cin >> anss >> ansf;
|
||||
while (cin >> s >> f) {
|
||||
chuf += ansf - f;
|
||||
if (chuf < 0) {
|
||||
chus--;
|
||||
chuf += 60;
|
||||
}
|
||||
if (chuf > 59) {
|
||||
chus++;
|
||||
chuf -= 60;
|
||||
}
|
||||
chus += anss - s;
|
||||
}
|
||||
cout << chus << ":";
|
||||
if (chuf < 10)
|
||||
cout << "0";
|
||||
cout << chuf;
|
||||
}
|
BIN
time/timecin.exe
Normal file
BIN
time/timecin.exe
Normal file
Binary file not shown.
5
地理/Readme.md
Normal file
5
地理/Readme.md
Normal file
@ -0,0 +1,5 @@
|
||||
# 地球与地图
|
||||
|
||||
* 地球的形状与大小
|
||||
first·4: 麦哲伦率/环球一周/大太印/证实球体
|
||||
clearest
|
3
地理/doc/Readme.md
Normal file
3
地理/doc/Readme.md
Normal file
@ -0,0 +1,3 @@
|
||||
# 标题
|
||||
|
||||
* 内容
|
6
地理/main.cpp
Normal file
6
地理/main.cpp
Normal file
@ -0,0 +1,6 @@
|
||||
#include <iostream>
|
||||
|
||||
int main()
|
||||
{
|
||||
std::cout << "Hello Easy C++ project!" << std::endl;
|
||||
}
|
BIN
地理/main.exe
Normal file
BIN
地理/main.exe
Normal file
Binary file not shown.
0
地理/test/in.txt
Normal file
0
地理/test/in.txt
Normal file
7
地理/test/out.txt
Normal file
7
地理/test/out.txt
Normal file
@ -0,0 +1,7 @@
|
||||
## 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
|
||||
|
Loading…
x
Reference in New Issue
Block a user