Đề có yêu cầu vào / ra file nên các em thêm đoạn code này vào trước chương trình với TenFile là tên file vào / ra của mỗi bài.
Python
import sys
sys.stdin = open("TenFile.INP", "r")
sys.stdout = open("TenFile.OUT", "w")
C++
freopen("TenFile.INP","r",stdin);
freopen("TenFile.OUT","w",stdout);
Bình luận