結果
問題 |
No.5005 3-SAT
|
ユーザー |
![]() |
提出日時 | 2025-02-04 02:01:02 |
言語 | Go (1.23.4) |
結果 |
WA
|
実行時間 | - |
コード長 | 463 bytes |
コンパイル時間 | 18,810 ms |
コンパイル使用メモリ | 229,776 KB |
実行使用メモリ | 5,248 KB |
スコア | 10 |
最終ジャッジ日時 | 2025-02-04 02:01:31 |
合計ジャッジ時間 | 25,293 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 12 WA * 88 |
ソースコード
package main import . "fmt" type Cond struct { a,b,c,p,q,r int } func main() { conds := make([]*Cond, 2048) for i := range conds { c := new(Cond) conds[i] = c Scan(&c.a, &c.b, &c.c, &c.p, &c.q, &c.r) } ans := make([]int, 256) c0 := conds[0] ans[c0.a] = c0.p ans[c0.b] = c0.q ans[c0.c] = c0.r c1 := conds[1] if ans[c1.a] == c1.p || ans[c1.b] == c1.q || ans[c1.c] == c1.r { return } for _, x := range ans { Print(x) } Println() }