File tree Expand file tree Collapse file tree 1 file changed +67
-0
lines changed
Codechef/JULY_COOK_OFF_2020 Expand file tree Collapse file tree 1 file changed +67
-0
lines changed Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments