結果
| 問題 | No.3644 Division by Shitoshitoto Sequence |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-09-06 20:24:02 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 562 ms / 2,000 ms |
| + 674µs | |
| コード長 | 431 bytes |
| 記録 | |
| コンパイル時間 | 557 ms |
| コンパイル使用メモリ | 21,336 KB |
| 実行使用メモリ | 55,032 KB |
| 最終ジャッジ日時 | 2026-09-06 20:25:06 |
| 合計ジャッジ時間 | 9,332 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| サブタスク | 配点 | 結果 |
|---|---|---|
| サンプル | 0 % | AC * 1 |
| 小課題1 | 10 % | AC * 3 |
| 小課題2 | 20 % | AC * 2 |
| 小課題3 | 70 % | AC * 21 |
| 合計 | 100 点 |
ソースコード
t = int(input())
for _ in range(t):
n = int(input())
s = input().split()
ok = True
for i in range(n):
base = 5 * i
x1 = s[base]
x2 = s[base + 1]
x3 = s[base + 2]
x4 = s[base + 3]
x5 = s[base + 4]
if not (x1 == x3 and x2 == x4 and x2 == x5 and x1 != x2):
ok = False
break
print('Yes' if ok else 'No')