C. Rotation Matching

在Ashish神秘消失后,他的两位徒弟Ishika和Hriday分别得到了一半的密文。通过旋转两个长度为n的排列序列,找到匹配元素对的最大数量,帮助他们解读秘密消息。

链接:https://codeforces.ml/contest/1365/problem/C

After the mysterious disappearance of Ashish, his two favourite disciples Ishika and Hriday, were each left with one half of a secret message. These messages can each be represented by a permutation of size nn. Let's call them aa and bb.

Note that a permutation of nn elements is a sequence of numbers a1,a2,…,ana1,a2,…,an, in which every number from 11 to nn appears exactly once.

The message can be decoded by an arrangement of sequence aa and bb, such that the number of matching pairs of elements between them is maximum. A pair of elements aiai and bjbj is said to match if:

  • i=ji=j, that is, they are at the same index.
  • ai=bjai=bj

His two disciples are allowed to perform the following operation any number of times:

  • choose a number kk and cyclically shift one of the permutations to the left or right kk times.

A single cyclic shift to the left on any permutation cc is an operation that sets c1:=c2,c2:=c3,…,cn:=c1c1:=c2,c2:=c3,…,cn:=c1 simultaneously. Likewise, a single cyclic shift to the right on any permutation cc is an operation that sets c1:=cn,c2:=c1,…,cn:=cn−1c1:=cn,c2:=c1,…,cn:=cn−1 simultaneously.

Help Ishika and Hriday find the maximum number of pairs of elements that match after performing the operation any (possibly zero) number of times.

Input

The first line of the input contains a single integer nn (1≤n≤2⋅105)(1≤n≤2⋅105) — the size of the arrays.

The second line contains nn integers a1a1, a2a2, ..., anan (1≤ai≤n)(1≤ai≤n) — the elements of the first permutation.

The third line contains nn integers b1b1, b2b2, ..., bnbn (1≤bi≤n)(1≤bi≤n) — the elements of the second permutation.

Output

Print the maximum number of matching pairs of elements after performing the above operations some (possibly zero) times.

Examples

input

Copy

5
1 2 3 4 5
2 3 4 5 1

output

Copy

5

input

Copy

5
5 4 3 2 1
1 2 3 4 5

output

Copy

1

input

Copy

4
1 3 2 4
4 2 3 1

output

Copy

2

Note

For the first case: bb can be shifted to the right by k=1k=1. The resulting permutations will be {1,2,3,4,5}{1,2,3,4,5} and {1,2,3,4,5}{1,2,3,4,5}.

For the second case: The operation is not required. For all possible rotations of aa and bb, the number of matching pairs won't exceed 11.

For the third case: bb can be shifted to the left by k=1k=1. The resulting permutations will be {1,3,2,4}{1,3,2,4} and {2,3,1,4}{2,3,1,4}. Positions 22 and 44 have matching pairs of elements. For all possible rotations of aa and bb, the number of matching pairs won't exceed 22.

代码:

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
ll T,x,n;
ll a[200001],k,s;
ll b[200001];
map<ll,ll>m,p;
int main()
{
    //cin>>T;
    //while(T--)
    {
        cin>>n;
        for(int i=1;i<=n;i++)
        {
            cin>>a[i];
            m[a[i]]=i;
        }
        for(int i=1;i<=n;i++)
        {
            cin>>b[i];
            p[m[b[i]]-i]++;
        }
        ll max1=0;
        for(int i=-n+1;i<0;i++)
        {
            p[i+n]+=p[i];
        }
        for(int i=0;i<=n-1;i++)
        {
            max1=max(max1,p[i]);
        }
        cout<<max1<<endl;
    }
}

 

ERROR: env.reset() returned None! Fatal Python error: Segmentation fault Current thread 0x00007f6fa844cb80 (most recent call first): <no Python frame> Extension modules: pyarmor_runtime_000000.pyarmor_runtime, numpy.core._multiarray_umath, numpy.core._multiarray_tests, numpy.linalg._umath_linalg, numpy.fft._pocketfft_internal, numpy.random._common, numpy.random.bit_generator, numpy.random._bounded_integers, numpy.random._mt19937, numpy.random.mtrand, numpy.random._philox, numpy.random._pcg64, numpy.random._sfc64, numpy.random._generator, psutil._psutil_linux, psutil._psutil_posix, omni.mdl.pymdlsdk._pymdlsdk, PIL._imaging, PIL._imagingft, scipy._lib._ccallback_c, scipy.ndimage._nd_image, scipy.special._ufuncs_cxx, scipy.special._ufuncs, scipy.special._specfun, scipy.special._comb, scipy.linalg._fblas, scipy.linalg._flapack, scipy.linalg._cythonized_array_utils, scipy.linalg._flinalg, scipy.linalg._solve_toeplitz, scipy.linalg._matfuncs_sqrtm_triu, scipy.linalg.cython_lapack, scipy.linalg.cython_blas, scipy.linalg._matfuncs_expm, scipy.linalg._decomp_update, scipy.sparse._sparsetools, _csparsetools, scipy.sparse._csparsetools, scipy.sparse.linalg._isolve._iterative, scipy.sparse.linalg._dsolve._superlu, scipy.sparse.linalg._eigen.arpack._arpack, scipy.sparse.csgraph._tools, scipy.sparse.csgraph._shortest_path, scipy.sparse.csgraph._traversal, scipy.sparse.csgraph._min_spanning_tree, scipy.sparse.csgraph._flow, scipy.sparse.csgraph._matching, scipy.sparse.csgraph._reordering, scipy.special._ellip_harm_2, _ni_label, scipy.ndimage._ni_label, torch._C, torch._C._fft, torch._C._linalg, torch._C._nested, torch._C._nn, torch._C._sparse, torch._C._special, scipy.spatial._ckdtree, scipy._lib.messagestream, scipy.spatial._qhull, scipy.spatial._voronoi, scipy.spatial._distance_wrap, scipy.spatial._hausdorff, scipy.spatial.transform._rotation, osqp._osqp, multidict._multidict, yarl._quoting_c, aiohttp._helpers, aiohttp._http_writer, aiohttp._http_parser, aiohttp._websocket, _cffi_backend, frozenlist._frozenlist, scipy.io.matlab._mio_utils, scipy.io.matlab._streams, scipy.io.matlab._mio5_utils, yaml._yaml (total: 78) /root/.local/share/ov/pkg/isaac-sim-4.1.0/python.sh: line 41: 28137 Segmentation fault (core dumped) $python_exe "$@" $args There was an error running python
最新发布
08-09
Fatal Python error: Segmentation fault Thread 0x0000777e2a2ed640 (most recent call first): File "/workspace/isaaclab/_isaac_sim/kit/python/lib/python3.10/concurrent/futures/thread.py", line 81 in _worker File "/workspace/isaaclab/_isaac_sim/kit/python/lib/python3.10/threading.py", line 953 in run File "/workspace/isaaclab/_isaac_sim/kit/python/lib/python3.10/threading.py", line 1016 in _bootstrap_inner File "/workspace/isaaclab/_isaac_sim/kit/python/lib/python3.10/threading.py", line 973 in _bootstrap Thread 0x0000777e9affe640 (most recent call first): File "/workspace/isaaclab/_isaac_sim/kit/python/lib/python3.10/concurrent/futures/thread.py", line 81 in _worker File "/workspace/isaaclab/_isaac_sim/kit/python/lib/python3.10/threading.py", line 953 in run File "/workspace/isaaclab/_isaac_sim/kit/python/lib/python3.10/threading.py", line 1016 in _bootstrap_inner File "/workspace/isaaclab/_isaac_sim/kit/python/lib/python3.10/threading.py", line 973 in _bootstrap Thread 0x00007780871fe640 (most recent call first): File "/workspace/isaaclab/_isaac_sim/kit/python/lib/python3.10/concurrent/futures/thread.py", line 81 in _worker File "/workspace/isaaclab/_isaac_sim/kit/python/lib/python3.10/threading.py", line 953 in run File "/workspace/isaaclab/_isaac_sim/kit/python/lib/python3.10/threading.py", line 1016 in _bootstrap_inner File "/workspace/isaaclab/_isaac_sim/kit/python/lib/python3.10/threading.py", line 973 in _bootstrap Thread 0x00007780889ff640 (most recent call first): File "/workspace/isaaclab/_isaac_sim/kit/python/lib/python3.10/concurrent/futures/thread.py", line 81 in _worker File "/workspace/isaaclab/_isaac_sim/kit/python/lib/python3.10/threading.py", line 953 in run File "/workspace/isaaclab/_isaac_sim/kit/python/lib/python3.10/threading.py", line 1016 in _bootstrap_inner File "/workspace/isaaclab/_isaac_sim/kit/python/lib/python3.10/threading.py", line 973 in _bootstrap Current thread 0x00007787aa3a9b80 (most recent call first): File "/isaac-sim/exts/isaacsim.core.api/isaacsim/core/api/simulation_context/simulation_context.py", line 864 in play File "/isaac-sim/exts/isaacsim.core.api/isaacsim/core/api/simulation_context/simulation_context.py", line 601 in reset File "/isaac-sim/exts/isaacsim.core.api/isaacsim/core/api/world/world.py", line 389 in reset File "/isaac-sim/lidar_xyj.py", line 93 in <module> Extension modules: omni.mdl.pymdlsdk._pymdlsdk, psutil._psutil_linux, psutil._psutil_posix, numpy.core._multiarray_umath, numpy.core._multiarray_tests, numpy.linalg._umath_linalg, numpy.fft._pocketfft_internal, numpy.random._common, numpy.random.bit_generator, numpy.random._bounded_integers, numpy.random._mt19937, numpy.random.mtrand, numpy.random._philox, numpy.random._pcg64, numpy.random._sfc64, numpy.random._generator, scipy._lib._ccallback_c, scipy.sparse._sparsetools, _csparsetools, scipy.sparse._csparsetools, scipy.sparse.linalg._isolve._iterative, scipy.linalg._fblas, scipy.linalg._flapack, scipy.linalg._cythonized_array_utils, scipy.linalg._flinalg, scipy.linalg._solve_toeplitz, scipy.linalg._matfuncs_sqrtm_triu, scipy.linalg.cython_lapack, scipy.linalg.cython_blas, scipy.linalg._matfuncs_expm, scipy.linalg._decomp_update, scipy.sparse.linalg._dsolve._superlu, scipy.sparse.linalg._eigen.arpack._arpack, scipy.sparse.csgraph._tools, scipy.sparse.csgraph._shortest_path, scipy.sparse.csgraph._traversal, scipy.sparse.csgraph._min_spanning_tree, scipy.sparse.csgraph._flow, scipy.sparse.csgraph._matching, scipy.sparse.csgraph._reordering, scipy.spatial._ckdtree, scipy._lib.messagestream, scipy.spatial._qhull, scipy.spatial._voronoi, scipy.spatial._distance_wrap, scipy.spatial._hausdorff, scipy.special._ufuncs_cxx, scipy.special._ufuncs, scipy.special._specfun, scipy.special._comb, scipy.special._ellip_harm_2, scipy.spatial.transform._rotation, torch._C, torch._C._dynamo.autograd_compiler, torch._C._dynamo.eval_frame, torch._C._dynamo.guards, torch._C._dynamo.utils, torch._C._fft, torch._C._linalg, torch._C._nested, torch._C._nn, torch._C._sparse, torch._C._special, PIL._imaging, PIL._imagingft, osqp._osqp, scipy.io.matlab._mio_utils, scipy.io.matlab._streams, scipy.io.matlab._mio5_utils, yaml._yaml (total: 70) /workspace/isaaclab/_isaac_sim/python.sh: line 41: 31527 Segmentation fault (core dumped) $python_exe "$@" $args There was an error running python
05-29
"D:\lssconda\envs\uitoolenv\python.exe" -u "D:\chromedownloadlss\AirtestIDE\sample\custom_launcher.py" "D:\gitfile\yuwan_autotest\AutotestScripts\UI自动化\2DUI\2D大厅\hall_beibao.air" --device android://127.0.0.1:5037/10AF1F0R0T001F5?cap_method=ADBCAP&touch_method=MAXTOUCH& --log "C:\Users\D0333\AppData\Local\Temp\AirtestIDE\scripts\5b4991b518cfaecbec27284fb99244d5" ============================================================ [Start running..] save log in 'C:\Users\D0333\AppData\Local\Temp\AirtestIDE\scripts\5b4991b518cfaecbec27284fb99244d5' [15:09:09][DEBUG]<airtest.core.android.adb> D:\lssconda\envs\uitoolenv\lib\site-packages\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s 10AF1F0R0T001F5 wait-for-device [15:09:09][DEBUG]<airtest.core.android.adb> D:\lssconda\envs\uitoolenv\lib\site-packages\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s 10AF1F0R0T001F5 shell getprop ro.build.version.sdk custom setup D:\gitfile\yuwan_autotest\AutotestScripts\UI自动化\2DUI\2D大厅\hall_beibao.air [15:09:09][INFO]<airtest.core.api> --当前为本地调试GOT Online== [15:09:09][DEBUG]<airtest> [UWA] import UWA [15:09:09][INFO]<airtest.core.api> Try finding: Template(D:\gitfile\yuwan_autotest\AutotestScripts\UI自动化\2DUI\2D大厅\hall_beibao.air\tpl1716455788504.png) D:\lssconda\envs\uitoolenv\lib\site-packages\airtest\core\android\cap_methods\adbcap.py:10: UserWarning: Currently using ADB screenshots, the efficiency may be very low. warnings.warn("Currently using ADB screenshots, the efficiency may be very low.")[15:09:15][DEBUG]<airtest.core.api> resize: (60, 38)->(60, 38), resolution: (2400, 1080)=>(2392, 1080) [15:09:15][DEBUG]<airtest.core.api> try match with MultiScaleTemplateMatchingPre [15:09:15][DEBUG]<airtest.aircv.multiscale_template_matching> [MSTemplatePre] threshold=0.9, result={'result': (260, 1052), 'rectangle': ((230.12, 1033.496), (230.12, 1071.496), (290.12, 1071.496), (290.12, 1033.496)), 'confidence': 0.997483491897583} [15:09:15][DEBUG]<airtest.aircv.utils> find_best_result() run time is 0.06 s. [15:09:15][DEBUG]<airtest.core.api> match result: {'result': (260, 1052), 'rectangle': ((230.12, 1033.496), (230.12, 1071.496), (290.12, 1071.496), (290.12, 1033.4[15:09:18][DEBUG]<airtest.core.api> resize: (60, 38)->(60, 38), resolution: (2400, 1080)=>(2392, 1080) [15:09:18][DEBUG]<airtest.core.api> try match with MultiScaleTemplateMatchingPre 96)), 'confidence': 0.997483491897583, 'time': 0.06083798408508301}[15:09:18][DEBUG]<airtest.aircv.multiscale_template_matching> [MSTemplatePre] threshold=0.9, result={'result': (260, 1052), 'rectangle': ((230.12, 1033.496), (230.12, 1071.496), (290.12, 1071.496), (290.12, 1033.496)), 'confidence': 0.997483491897583} [15:09:18][DEBUG]<airtest.aircv.utils> find_best_result() run time is 0.06 s. [15:09:18][DEBUG]<airtest.core.api> match result: {'result': (260, 1052), 'rectangle': ((230.12, 1033.496), (230.12, 1071.496), (290.12, 1071.496), (290.12, 1033.496)), 'confidence': 0.997483491897583, 'time': 0.059664011001586914} [15:09:18][DEBUG]<airtest.core.android.adb> D:\lssconda\envs\uitoolenv\lib\site-packages\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s 10AF1F0R0T001F5 shell ls -l /data/local/tmp/rotationwatcher.jar [15:09:18][DEBUG]<airtest.core.android.rotation> install_rotationwatcher skipped [15:09:18][DEBUG]<airtest.core.android.adb> D:\lssconda\envs\uitoolenv\lib\site-packages\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s 10AF1F0R0T001F5 shell app_process -Djava.class.path=/data/local/tmp/rotationwatcher.jar /data/local/tmp com.example.rotationwatcher.Main [15:09:19][DEBUG]<airtest.utils.nbsp> [rotation_server]b'90' [15:09:19][INFO]<airtest.core.android.rotation> update orientation None->1 [15:09:19][DEBUG]<airtest.core.android.adb> D:\lssconda\envs\uitoolenv\lib\site-packages\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s 10AF1F0R0T001F5 shell wm size [15:09:19][DEBUG]<airtest.core.android.adb> D:\lssconda\envs\uitoolenv\lib\site-packages\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s 10AF1F0R0T001F5 shell getprop ro.sf.lcd_density [15:09:20][DEBUG]<airtest.core.android.adb> D:\lssconda\envs\uitoolenv\lib\site-packages\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s 10AF1F0R0T001F5 shell dumpsys SurfaceFlinger [15:09:20][DEBUG]<airtest.core.android.adb> D:\lssconda\envs\uitoolenv\lib\site-packages\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s 10AF1F0R0T001F5 shell dumpsys input D:\lssconda\envs\uitoolenv\lib\site-packages\airtest\core\android\adb.py:1118: UserWarning: Could not obtain the orientation, return 0 warnings.warn("Could not obtain the orientation, return 0") [15:09:20][DEBUG]<airtest.core.android.adb> D:\lssconda\envs\uitoolenv\lib\site-packages\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s 10AF1F0R0T001F5 shell getevent -p [15:09:20][DEBUG]<airtest.core.android.adb> D:\lssconda\envs\uitoolenv\lib\site-packages\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s 10AF1F0R0T001F5 shell ls -l /data/local/tmp/maxpresent.jar [15:09:20][DEBUG]<airtest.core.android.touch_methods.maxtouch> install_maxtouch skipped [15:09:20][DEBUG]<airtest.core.android.adb> D:\lssconda\envs\uitoolenv\lib\site-packages\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s 10AF1F0R0T001F5 forward --no-rebind tcp:15695 localabstract:maxpresent_15695 [15:09:20][DEBUG]<airtest.core.android.adb> D:\lssconda\envs\uitoolenv\lib\site-packages\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s 10AF1F0R0T001F5 shell app_process -Djava.class.path=/data/local/tmp/maxpresent.jar /data/local/tmp com.netease.maxpresent.MaxPresent socket maxpresent_15695 [15:09:21][DEBUG]<airtest.utils.nbsp> [airtouch_server]b'Metrics Message : 2392.0=====1080.0' [15:09:21][DEBUG]<airtest.utils.nbsp> [airtouch_server]b'Start local socket (maxpresent_15695) server...' [15:09:21][INFO]<airtest.core.api> Try finding: Template(D:\gitfile\yuwan_autotest\AutotestScripts\UI自动化\2DUI\2D大厅\hall_beibao.air\tpl1669256938052.png) [15:09:21][DEBUG]<airtest.core.android.adb> D:\lssconda\envs\uitoolenv\lib\site-packages\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s 10AF1F0R0T001F5 shell screencap -p [15:09:24][DEBUG]<airtest.core.api> resize: (332, 579)->(332, 579), resolution: (2400, 1080)=>(2392, 1080) [15:09:24][DEBUG]<airtest.core.api> try match with MultiScaleTemplateMatchingPre [15:09:24][DEBUG]<airtest.aircv.multiscale_template_matching> [MSTemplatePre] threshold=0.7, result={'result': (484, 364), 'rectangle': ((368.12, 161), (368.12, 567), (601.12, 567), (601.12, 161)), 'confidence': 0.34273234009742737} [15:09:24][DEBUG]<airtest.aircv.utils> find_best_result() run time is 0.81 s. [15:09:24][DEBUG]<airtest.core.api> try match with TemplateMatching [15:09:24][DEBUG]<airtest.aircv.template_matching> [Template] threshold=0.7, result={'result': (237, 381), 'rectangle': ((71, 92), (71, 671), (403, 671), (403, 92)), 'confidence': 0.3817158639431} [15:09:24][DEBUG]<airtest.aircv.utils> find_best_result() run time is 0.07 s. [15:09:24][DEBUG]<airtest.core.api> try match with SIFTMatching [15:09:26][DEBUG]<airtest.aircv.utils> find_best_result() run time is 1.02 s. [15:09:26][DEBUG]<airtest.core.api> try match with BRISKMatching [15:09:26][DEBUG]<airtest.aircv.utils> find_best_result() run time is 0.42 s. [15:09:26][DEBUG]<airtest.core.api> match result: None [15:09:26][DEBUG]<airtest.core.android.adb> D:\lssconda\envs\uitoolenv\lib\site-packages\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s 10AF1F0R0T001F5 shell screencap -p [15:09:29][DEBUG]<airtest.core.api> resize: (332, 579)->(332, 579), resolution: (2400, 1080)=>(2392, 1080) [15:09:29][DEBUG]<airtest.core.api> try match with MultiScaleTemplateMatchingPre [15:09:29][DEBUG]<airtest.aircv.multiscale_template_matching> [MSTemplatePre] threshold=0.7, result={'result': (447, 652), 'rectangle': ((330.12, 447), (330.12, 857), (565.12, 857), (565.12, 447)), 'confidence': 0.43233662843704224} [15:09:29][DEBUG]<airtest.aircv.utils> find_best_result() run time is 0.79 s. [15:09:29][DEBUG]<airtest.core.api> try match with TemplateMatching [15:09:29][DEBUG]<airtest.aircv.template_matching> [Template] threshold=0.7, result={'result': (490, 370), 'rectangle': ((324, 81), (324, 660), (656, 660), (656, 81)), 'confidence': 0.36516353487968445} [15:09:29][DEBUG]<airtest.aircv.utils> find_best_result() run time is 0.06 s. [15:09:29][DEBUG]<airtest.core.api> try match with SIFTMatching [15:09:30][DEBUG]<airtest.utils.nbsp> [rotation_server]b'0' [15:09:30][DEBUG]<airtest.aircv.keypoint_base> [SIFT] threshold=0.7, result={'result': (383, 228), 'rectangle': [(211, 0), (211, 479), (556, 479), (556, 0)], 'confidence': 0.6019945293664932} [15:09:30][DEBUG]<airtest.aircv.utils> find_best_result() run time is 0.65 s. [15:09:30][DEBUG]<airtest.core.api> try match with BRISKMatching [15:09:30][DEBUG]<airtest.core.api> 'Target area is 5 times bigger or 0.2 times smaller than sch_img.' [15:09:30][DEBUG]<airtest.core.api> match result: None [15:09:30][INFO]<airtest.core.android.rotation> update orientation 1->0 [15:09:31][DEBUG]<airtest.core.android.adb> D:\lssconda\envs\uitoolenv\lib\site-packages\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s 10AF1F0R0T001F5 shell screencap -p [15:09:34][DEBUG]<airtest.core.api> resize: (332, 579)->(221, 386), resolution: (2400, 1080)=>(1080, 2392) [15:09:34][DEBUG]<airtest.core.api> try match with MultiScaleTemplateMatchingPre [15:09:34][DEBUG]<airtest.core.api> 'error: in template match, found im_search bigger than im_source.' [15:09:34][DEBUG]<airtest.core.api> try match with TemplateMatching [15:09:34][DEBUG]<airtest.aircv.template_matching> [Template] threshold=0.7, result={'result': (182, 319), 'rectangle': ((72, 126), (72, 512), (293, 512), (293, 126)), 'confidence': 0.4159969687461853} [15:09:34][DEBUG]<airtest.aircv.utils> find_best_result() run time is 0.08 s. [15:09:34][DEBUG]<airtest.core.api> try match with SIFTMatching [15:09:34][DEBUG]<airtest.aircv.utils> find_best_result() run time is 0.42 s. [15:09:34][DEBUG]<airtest.core.api> try match with BRISKMatching [15:09:34][DEBUG]<airtest.aircv.utils> find_best_result() run time is 0.15 s. [15:09:34][DEBUG]<airtest.core.api> match result: None [15:09:35][DEBUG]<airtest.core.android.adb> D:\lssconda\envs\uitoolenv\lib\site-packages\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s 10AF1F0R0T001F5 shell screencap -p [15:09:37][DEBUG]<airtest.core.api> resize: (332, 579)->(221, 386), resolution: (2400, 1080)=>(1080, 2392) [15:09:37][DEBUG]<airtest.core.api> try match with MultiScaleTemplateMatchingPre [15:09:37][DEBUG]<airtest.core.api> 'error: in template match, found im_search bigger than im_source.' [15:09:37][DEBUG]<airtest.core.api> try match with TemplateMatching [15:09:37][DEBUG]<airtest.aircv.template_matching> [Template] threshold=0.7, result={'result': (169, 318), 'rectangle': ((59, 125), (59, 511), (280, 511), (280, 125)), 'confidence': 0.4158484637737274} [15:09:37][DEBUG]<airtest.aircv.utils> find_best_result() run time is 0.08 s. [15:09:37][DEBUG]<airtest.core.api> try match with SIFTMatching [15:09:38][DEBUG]<airtest.aircv.utils> find_best_result() run time is 0.41 s. [15:09:38][DEBUG]<airtest.core.api> try match with BRISKMatching [15:09:38][DEBUG]<airtest.aircv.utils> find_best_result() run time is 0.15 s. [15:09:38][DEBUG]<airtest.core.api> match result: None [15:09:38][DEBUG]<airtest.core.android.adb> D:\lssconda\envs\uitoolenv\lib\site-packages\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s 10AF1F0R0T001F5 shell screencap -p [15:09:41][DEBUG]<airtest.core.api> resize: (332, 579)->(221, 386), resolution: (2400, 1080)=>(1080, 2392) [15:09:41][DEBUG]<airtest.core.api> try match with MultiScaleTemplateMatchingPre [15:09:41][DEBUG]<airtest.core.api> 'error: in template match, found im_search bigger than im_source.' [15:09:41][DEBUG]<airtest.core.api> try match with TemplateMatching [15:09:41][DEBUG]<airtest.aircv.template_matching> [Template] threshold=0.7, result={'result': (183, 318), 'rectangle': ((73, 125), (73, 511), (294, 511), (294, 125)), 'confidence': 0.4152858853340149} [15:09:41][DEBUG]<airtest.aircv.utils> find_best_result() run time is 0.08 s. [15:09:41][DEBUG]<airtest.core.api> try match with SIFTMatching [15:09:41][DEBUG]<airtest.aircv.utils> find_best_result() run time is 0.41 s. [15:09:41][DEBUG]<airtest.core.api> try match with BRISKMatching [15:09:42][DEBUG]<airtest.aircv.utils> find_best_result() run time is 0.15 s. [15:09:42][DEBUG]<airtest.core.api> match result: None [15:09:42][INFO]<airtest.core.api> ----------------执行过程中出现错误------------------- custom tearDown ---------------------------------------------------------------------- Ran 1 test in 32.573s OK [15:09:42][DEBUG]<airtest.core.android.adb> D:\lssconda\envs\uitoolenv\lib\site-packages\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s 10AF1F0R0T001F5 forward --remove tcp:15695 [15:09:42][DEBUG]<airtest.utils.nbsp> [rotation_server]b'' [15:09:42][DEBUG]<airtest.utils.nbsp> [airtouch_server]b'' [15:09:42][DEBUG]<airtest.core.android.adb> D:\lssconda\envs\uitoolenv\lib\site-packages\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s 10AF1F0R0T001F5 forward --remove tcp:15695 [Finished] ============================================================ [15:09:15][INFO]<airtest.core.api> Try finding: Template(D:\gitfile\yuwan_autotest\AutotestScripts\UI自动化\2DUI\2D大厅\hall_beibao.air\tpl1716455788504.png) [15:09:15][DEBUG]<airtest.core.android.adb> D:\lssconda\envs\uitoolenv\lib\site-packages\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s 10AF1F0R0T001F5 shell screencap -p [15:09:09][DEBUG]<airtest.core.android.adb> D:\lssconda\envs\uitoolenv\lib\site-packages\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s 10AF1F0R0T001F5 shell screencap -p [15:09:12][DEBUG]<airtest.core.android.adb> D:\lssconda\envs\uitoolenv\lib\site-packages\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s 10AF1F0R0T001F5 shell screencap -p 解析一下
08-06
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值