結果
問題 | No.26 シャッフルゲーム |
ユーザー | toshiro_yanagi |
提出日時 | 2022-05-27 22:18:44 |
言語 | Go (1.22.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 380 bytes |
コンパイル時間 | 11,453 ms |
コンパイル使用メモリ | 226,200 KB |
実行使用メモリ | 4,348 KB |
最終ジャッジ日時 | 2023-10-20 20:24:31 |
合計ジャッジ時間 | 12,398 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 1 ms
4,348 KB |
testcase_01 | AC | 1 ms
4,348 KB |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | AC | 2 ms
4,348 KB |
testcase_07 | AC | 2 ms
4,348 KB |
testcase_08 | WA | - |
testcase_09 | WA | - |
ソースコード
package main import "fmt" func main() { var n, m int fmt.Scan(&n, &m) set := make(map[int]struct{}) set[n] = struct{}{} for range make([]struct{}, m) { for range make([]struct{}, 2) { var pq int fmt.Scan(&pq) if _, ok := set[pq]; ok { delete(set, pq) } else { set[pq] = struct{}{} } } } for k, _ := range set { fmt.Println(k) break } }