結果
| 問題 | No.3644 Division by Shitoshitoto Sequence |
| コンテスト | |
| ユーザー |
回転
|
| 提出日時 | 2026-08-25 20:38:33 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 322 ms / 2,000 ms |
| + 785µs | |
| コード長 | 266 bytes |
| 記録 | |
| コンパイル時間 | 233 ms |
| コンパイル使用メモリ | 95,596 KB |
| 実行使用メモリ | 158,316 KB |
| 最終ジャッジ日時 | 2026-08-25 20:38:42 |
| 合計ジャッジ時間 | 6,529 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| サブタスク | 配点 | 結果 |
|---|---|---|
| サンプル | 0 % | AC * 1 |
| 小課題1 | 10 % | AC * 3 |
| 小課題2 | 20 % | AC * 2 |
| 小課題3 | 70 % | AC * 21 |
| 合計 | 100 点 |
ソースコード
T = int(input())
def check(s):
return len(s) == 5 and s[0] == s[2] and s[1] == s[3] == s[4] and s[0] != s[1]
for _ in range(T):
N = int(input())
A = list(map(int,input().split()))
print("Yes" if all(check(A[i:i+5]) for i in range(0,5*N,5)) else "No")
回転