結果
問題 | No.2073 Concon Substrings (Swap Version) |
ユーザー | 👑 p-adic |
提出日時 | 2023-05-29 16:10:13 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 144 bytes |
コンパイル時間 | 108 ms |
コンパイル使用メモリ | 10,696 KB |
実行使用メモリ | 9,524 KB |
最終ジャッジ日時 | 2023-08-27 23:43:41 |
合計ジャッジ時間 | 13,029 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 14 ms
7,852 KB |
testcase_01 | AC | 15 ms
7,796 KB |
testcase_02 | AC | 15 ms
7,916 KB |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | AC | 15 ms
7,884 KB |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | AC | 15 ms
7,868 KB |
testcase_13 | WA | - |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | AC | 559 ms
9,384 KB |
testcase_17 | AC | 15 ms
7,816 KB |
testcase_18 | AC | 68 ms
8,268 KB |
testcase_19 | AC | 528 ms
9,412 KB |
testcase_20 | AC | 377 ms
9,068 KB |
testcase_21 | AC | 313 ms
8,944 KB |
testcase_22 | WA | - |
testcase_23 | WA | - |
testcase_24 | WA | - |
testcase_25 | WA | - |
testcase_26 | WA | - |
testcase_27 | WA | - |
testcase_28 | WA | - |
testcase_29 | WA | - |
testcase_30 | WA | - |
testcase_31 | WA | - |
testcase_32 | WA | - |
testcase_33 | WA | - |
testcase_34 | WA | - |
testcase_35 | WA | - |
testcase_36 | WA | - |
testcase_37 | WA | - |
testcase_38 | WA | - |
testcase_39 | WA | - |
testcase_40 | WA | - |
testcase_41 | WA | - |
ソースコード
I,R=input,range N=int(I()) S=I() a=0 s="con" for d in R(3): c=[0]*3 for i in R(N*3): if S[i]==s[(i+d)%3]:c[i%3]+=1 a=max(a,min(c)) print(a)