結果
| 問題 |
No.2073 Concon Substrings (Swap Version)
|
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2023-05-29 16:18:56 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 151 bytes |
| コンパイル時間 | 270 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 12,032 KB |
| 最終ジャッジ日時 | 2024-12-28 09:56:27 |
| 合計ジャッジ時間 | 14,419 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 5 |
| other | AC * 11 WA * 26 |
ソースコード
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)