結果

問題 No.2073 Concon Substrings (Swap Version)
ユーザー Akijin_007Akijin_007
提出日時 2022-09-16 22:17:21
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 382 bytes
コンパイル時間 261 ms
コンパイル使用メモリ 86,948 KB
実行使用メモリ 77,952 KB
最終ジャッジ日時 2023-08-23 15:57:58
合計ジャッジ時間 5,805 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,416 KB
testcase_01 AC 70 ms
71,476 KB
testcase_02 AC 70 ms
71,324 KB
testcase_03 AC 73 ms
71,104 KB
testcase_04 AC 73 ms
71,236 KB
testcase_05 AC 96 ms
77,948 KB
testcase_06 AC 96 ms
77,952 KB
testcase_07 AC 71 ms
71,300 KB
testcase_08 AC 95 ms
77,032 KB
testcase_09 AC 91 ms
77,472 KB
testcase_10 AC 108 ms
77,884 KB
testcase_11 AC 109 ms
77,648 KB
testcase_12 AC 71 ms
71,144 KB
testcase_13 AC 86 ms
76,320 KB
testcase_14 AC 104 ms
77,460 KB
testcase_15 AC 89 ms
76,780 KB
testcase_16 AC 99 ms
77,696 KB
testcase_17 AC 68 ms
71,400 KB
testcase_18 AC 82 ms
76,268 KB
testcase_19 AC 94 ms
77,764 KB
testcase_20 AC 94 ms
77,352 KB
testcase_21 AC 91 ms
77,436 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 -
権限があれば一括ダウンロードができます

ソースコード

diff #

#int(input())
#map(int, input().split())
#list(map(int, input().split()))

N = int(input())
S = input()
m = 3 * N

a = ("c", "o", "n")
c = [[0] * 3 for i in range(3)]

for i in range(m):
    if S[i] in a:
        t = a.index(S[i])
        c[i%3][t] += 1

ans = 0
for i in range(3):
    b = 1000000
    for j in range(3):
        b = min(c[(i+j)%3][j], b)
    ans += b

print(ans)


0