結果
| 問題 | No.3644 Division by Shitoshitoto Sequence |
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2026-08-25 19:57:25 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 325 ms / 2,000 ms |
| + 522µs | |
| コード長 | 350 bytes |
| 記録 | |
| コンパイル時間 | 433 ms |
| コンパイル使用メモリ | 96,104 KB |
| 実行使用メモリ | 126,300 KB |
| 最終ジャッジ日時 | 2026-08-25 19:57:33 |
| 合計ジャッジ時間 | 6,783 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| サブタスク | 配点 | 結果 |
|---|---|---|
| サンプル | 0 % | AC * 1 |
| 小課題1 | 10 % | AC * 3 |
| 小課題2 | 20 % | AC * 2 |
| 小課題3 | 70 % | AC * 21 |
| 合計 | 100 点 |
ソースコード
def is_shitoshitoto(X):
return X[0] == X[2] and X[1] == X[3] == X[4] and X[0] != X[1]
def solve():
N = int(input())
A = [int(s) for s in input().split()]
print("Yes" if all(is_shitoshitoto(A[5 * i : 5 * i + 5]) for i in range(N)) else "No")
if __name__ == "__main__":
T = int(input())
for _ in range(T):
solve()