結果
| 問題 |
No.2073 Concon Substrings (Swap Version)
|
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2023-05-29 16:23:49 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 148 bytes |
| コンパイル時間 | 206 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 12,032 KB |
| 最終ジャッジ日時 | 2024-12-28 09:57:02 |
| 合計ジャッジ時間 | 16,436 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 5 |
| other | AC * 31 WA * 6 |
ソースコード
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):c[i%3]+=S[i]==s[(i+d)%3] a+=min(min(c),(N-a*3-d)//3) print(a)