This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math,sys | |
def main(): | |
if type(sys.stdin).__name__!='file': | |
sys.exit() | |
else: | |
data=[] | |
for line in sys.stdin: | |
data.append(line.strip()) | |
T=int(data[0]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 | |
9 | |
94 66 53 82 87 89 69 24 56 | |
6 | |
65 80 74 98 1 15 | |
5 | |
3 72 72 95 63 | |
6 | |
7 74 34 81 100 5 | |
7 |