結果
| 問題 | No.2073 Concon Substrings (Swap Version) | 
| コンテスト | |
| ユーザー |  lam6er | 
| 提出日時 | 2025-03-26 15:54:20 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 401 bytes | 
| コンパイル時間 | 186 ms | 
| コンパイル使用メモリ | 82,308 KB | 
| 実行使用メモリ | 57,596 KB | 
| 最終ジャッジ日時 | 2025-03-26 15:55:14 | 
| 合計ジャッジ時間 | 3,577 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 5 | 
| other | AC * 17 WA * 20 | 
ソースコード
n = int(input())
s = input().strip()
group0 = s[0::3]
group1 = s[1::3]
group2 = s[2::3]
c0 = group0.count('c')
o0 = group0.count('o')
n0 = group0.count('n')
c1 = group1.count('c')
o1 = group1.count('o')
n1 = group1.count('n')
c2 = group2.count('c')
o2 = group2.count('o')
n2 = group2.count('n')
type1 = min(c0, o1, n2)
type2 = min(c1, o2, n0)
type3 = min(c2, o0, n1)
print(type1 + type2 + type3)
            
            
            
        