Skip to content

yszf/car

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

car

Design a software to remind vehicle maintenance, including mileage maintenance and regular maintenance.In addition to car maintenance, to meet certain conditions, it will be scrapped.

test data:

#测试用例1

##输入

SubmitDate:2030 / 09 / 01

CAR0001 | 2025 / 04 / 05 | Porsche | 10000 | F

CAR0002 | 2029 / 10 / 14 | Porsche | 9000 | F

CAR0003 | 2026 / 08 / 17 | Porsche | 13000 | F

CAR0004 | 2027 / 11 / 01 | BYD | 23000 | T

CAR0005 | 2027 / 01 / 11 | BYD | 19500 | F

CAR0006 | 2029 / 07 / 01 | Audi | 10001 | T

CAR0007 | 2028 / 04 / 19 | Ford | 9800 | F

CAR0008 | 2027 / 07 / 10 | Ford | 15000 | T

CAR0009 | 2024 / 10 / 22 | Ford | 90300 | F

#测试结果

Reminder

============================

  • Time-related maintenance coming soon...

Audi:1 (CAR0006)

Porsche:1 (CAR0002)

  • Distance-related maintenance coming soon...

BYD:1 (CAR0005)

Ford:1 (CAR0007)

Porsche:1 (CAR0001)

  • Write-off coming soon...

BYD:1 (CAR0004)

Ford:1 (CAR0009)

#测试用例2

##输入

SubmitDate:2050 / 05 01

CAR0001 | 2044 / 05 / 01 | Volkswagen | 65535 | F

CAR0002 | 2044 / 05 / 03 | BMW | 100001 | F

CAR0003 | 2047 / 05 / 02 | Mercedes-Benz | 37789 | T

CAR0004 | 2047 / 05 / 03 | Honda | 59908 | T

CAR0005 | 2049 / 12 / 10 | Peugeot | 49999 | F

CAR0006 | 2046 / 11 / 15 | Jeep | 2000 | F

CAR0007 | 2046 / 11 / 16 | Jeep | 5000 | F

##测试结果

Reminder

============================

  • Time-related maintenance coming soon...

Jeep:2 (CAR0006,CAR0007)

  • Distance-related maintenance coming soon...

Peugeot:1 (CAR0005)

  • Write-off coming soon...

BMW:1 (CAR0002)

Honda:1 (CAR0004)

About

Vehicle Detection

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published