Luyện đề HSG, THT
Đề 1: https://drive.google.com/file/d/1VgEXw8RViGWYGh4SW4xN2hQWfpZMk7hY/view
Ví dụ nhập xuất file cho bài TANCUNG
C++
// C++
freopen("TANCUNG.INP", "r", stdin);
freopen("TANCUNG.OUT", "w", stdout);
Python
# Python
import sys
sys.stdin = open('TANCUNG.INP', 'r')
sys.stdout = open('TANCUNG.OUT', 'w')
Bình luận