結果
問題 | No.2073 Concon Substrings (Swap Version) |
ユーザー | 👑 p-adic |
提出日時 | 2023-05-29 16:18:56 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 151 bytes |
コンパイル時間 | 393 ms |
コンパイル使用メモリ | 10,660 KB |
実行使用メモリ | 9,444 KB |
最終ジャッジ日時 | 2023-08-27 23:43:54 |
合計ジャッジ時間 | 11,950 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 15 ms
7,920 KB |
testcase_01 | AC | 15 ms
7,868 KB |
testcase_02 | AC | 15 ms
7,812 KB |
testcase_03 | AC | 14 ms
7,860 KB |
testcase_04 | AC | 15 ms
7,784 KB |
testcase_05 | AC | 460 ms
9,380 KB |
testcase_06 | AC | 466 ms
9,344 KB |
testcase_07 | AC | 14 ms
7,816 KB |
testcase_08 | AC | 308 ms
8,844 KB |
testcase_09 | AC | 405 ms
9,124 KB |
testcase_10 | AC | 572 ms
9,336 KB |
testcase_11 | AC | 563 ms
9,348 KB |
testcase_12 | AC | 14 ms
7,832 KB |
testcase_13 | AC | 67 ms
8,308 KB |
testcase_14 | AC | 464 ms
9,124 KB |
testcase_15 | AC | 174 ms
8,556 KB |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | WA | - |
testcase_19 | WA | - |
testcase_20 | WA | - |
testcase_21 | WA | - |
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())*3 S=I() a=0 s="con" for d in R(3): c=[0]*3 for i in R(N): if S[i]==s[(i+d)%3]:c[i%3]+=1 a+=min(min(c),N-a*3-d) print(a)