Skip to content

Commit cde7638

Browse files
solved 1 problem
1 parent 22591bc commit cde7638

File tree

1 file changed

+67
-0
lines changed

1 file changed

+67
-0
lines changed
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "code",
5+
"execution_count": 3,
6+
"metadata": {},
7+
"outputs": [
8+
{
9+
"name": "stdin",
10+
"output_type": "stream",
11+
"text": [
12+
" 1\n",
13+
" 4\n",
14+
" sdfsdfs\n"
15+
]
16+
},
17+
{
18+
"name": "stdout",
19+
"output_type": "stream",
20+
"text": [
21+
"NO\n"
22+
]
23+
}
24+
],
25+
"source": [
26+
"for _ in range(int(input())):\n",
27+
" n=input()\n",
28+
" s=input()\n",
29+
" se=set(s)\n",
30+
" for i in se:\n",
31+
" if s.count(i)%2!=0:\n",
32+
" print('NO')\n",
33+
" break\n",
34+
" else:\n",
35+
" print('YES')"
36+
]
37+
},
38+
{
39+
"cell_type": "code",
40+
"execution_count": null,
41+
"metadata": {},
42+
"outputs": [],
43+
"source": []
44+
}
45+
],
46+
"metadata": {
47+
"kernelspec": {
48+
"display_name": "Python 3",
49+
"language": "python",
50+
"name": "python3"
51+
},
52+
"language_info": {
53+
"codemirror_mode": {
54+
"name": "ipython",
55+
"version": 3
56+
},
57+
"file_extension": ".py",
58+
"mimetype": "text/x-python",
59+
"name": "python",
60+
"nbconvert_exporter": "python",
61+
"pygments_lexer": "ipython3",
62+
"version": "3.8.2"
63+
}
64+
},
65+
"nbformat": 4,
66+
"nbformat_minor": 4
67+
}

0 commit comments

Comments
 (0)