結果
| 問題 |
No.3171 Color Restoration
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-06-10 10:46:25 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 29 ms / 2,000 ms |
| コード長 | 532 bytes |
| コンパイル時間 | 620 ms |
| コンパイル使用メモリ | 12,032 KB |
| 実行使用メモリ | 10,240 KB |
| 最終ジャッジ日時 | 2025-06-10 10:46:29 |
| 合計ジャッジ時間 | 2,748 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 26 |
ソースコード
import itertools
OneCoder = ["gray", "brown", "green", "cyan", "blue", "yellow", "orange", "red"]
TwoCoder = ["gray", "green", "blue", "yellow", "red"]
ThreeForces = ["gray", "green", "cyan", "blue", "violet", "orange", "red"]
s = input().split()
ans = set()
for one in OneCoder:
for two in TwoCoder:
for three in ThreeForces:
for i, j, k in itertools.permutations(s):
if i == one and j == two and k == three:
ans.add((i, j, k))
print("Yes" if len(ans) == 1 else "No")