結果
問題 |
No.785 色食い虫
|
ユーザー |
![]() |
提出日時 | 2019-02-24 12:49:46 |
言語 | Go (1.23.4) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 334 bytes |
コンパイル時間 | 13,157 ms |
コンパイル使用メモリ | 231,884 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-21 14:17:56 |
合計ジャッジ時間 | 12,080 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 28 |
ソースコード
package main import ( "fmt" ) func main() { ans := 1 for range make([]struct{}, 3) { x := 16 var str string fmt.Scan(&str) if str != "NONE" { for i := 0; i < len(str); i += 2 { for _, v := range "0123456789ABCDEF" { if str[i] == byte(v) { x-- } } } } ans *= x * x } fmt.Println(ans) }