2023 年(第十五届)四川省大学生程序设计大赛重现赛

B. 希卡之石
PDF 题面可用
你可以在这里下载。

单点时限: 1.0 sec

内存限制: 512 MB

样例

Input
logger:root 10 DEBUG C:/program File/a.log a.log line:1 1926-08-17 01:01:01,999 thread:1 thread:main01 process:11:maef__aaoa9208834,.;'p[qaosdif2930 23idfjariwe
Output
1
<%(name)s,logger:root>
<%(levelno)s,10>
<%(levelname)s,DEBUG>
<%(pathname)s,C:/program File/a.log>
<%(filename)s,a.log>
<%(lineno)d,line:1>
<%(asctime)s,1926-08-17 01:01:01,999>
<%(thread)d,thread:1>
<%(threadName)s,thread:main01>
<%(process)s,process:11>
<%(message)s,maef__aaoa9208834,.;'p[qaosdif2930 23idfjariwe>
Input
logger:root 10 DEBUG C:/program File/a DEBUG a/logger .log logger .log line:10 2023-05-17 23:51:00,999 thread:10 thread:DEBUG01 process:11:logger root 10 DEBUG C /program File/a DEBUG a/logger .log logger .log line 10 2023-05-17 23 51 00,999 thread 10 thread DEBUG01 process 11
Output
1
<%(name)s,logger:root>
<%(levelno)s,10>
<%(levelname)s,DEBUG>
<%(pathname)s,C:/program File/a DEBUG a/logger .log>
<%(filename)s,logger .log>
<%(lineno)d,line:10>
<%(asctime)s,2023-05-17 23:51:00,999>
<%(thread)d,thread:10>
<%(threadName)s,thread:DEBUG01>
<%(process)s,process:11>
<%(message)s,logger root 10 DEBUG C /program File/a DEBUG a/logger .log logger .log line 10 2023-05-17 23 51 00,999 thread 10 thread DEBUG01 process 11>