IV. Hf THONG CHAM CHlTOfNG TRINH T^ ©ONG 1 Gidi thif u
3. Md ta hf thong cham hU JUDGE
3.2. Ho^t d^ng cua h$ th6ng
H? thdng dupe cai dat tren cac May tram de nhan bai tu May chii, sau d6 chim
bai va giii tra \^i ket qua cho may chii. Hi?n tai, h? thdng Judge dang dupe xay
dyng tren h? dieu hanh Windows 2K/XP. Quy trinh chim bai gdm cac budc sau:
3.2.1. Nhan b^i
- Mdi may tr^im se tmy vin (Queuery) vao May chu sau mpt thdi gian T xac dinh de xem cd bai mdi hay khdng (T cd 10 den 60 giay).
- Cac May tr?im se dupe bd tri de tmy vin vao May chii tai cac thdi dilm l?ch nhau, nhu vay nlu c6 N may Uam thi sau ^/N giay se co 1 Mdy tram nh$n bai (Sd May Uam N tir 2 din 4 may).
- Nlu cd bai mdi thi May tram se liy bai nay vl va ghi vao co sd du li?u tai may chii la da liy bai.
3.2.2. Cham b^i
Sau khi nhan, bai se dupe chim theo cac budc sau:
- Tiln xir ^: Phan tich bai lam ciia thi sinh dl bat mpt sd loi cim Uong luat
(Dung cac l?nh bi cim, dat sai header ciia chuang trinh...). Budc nay lam giam di cac nguy co gay ton hai din h? thdng do da loai dupe cac l?nh can thi?p nguy hiem ciia thi sinh.
- Bien dich: D}ch bai lam ciia thi sinh ra file .exe bing cac chuang trinh dich rieng ddi vdi timg ngdn ngft.
- Ch?y chuong trinh ciia thi sinh ling vdi cac test:
• Vdi test thii i, h^ thdng chim se ty dpng tao ra file input chuin tir file input thii i. Sau dd se ch^y chuang trinh ciia thi sinh dl sinh ra file output. Trong qua trinh chay, h^ thdng chim bai cin kilm tra cac l6i ma thi sinh cd thi mic phai nhu vupt cac gidi han vl thdi gian, bd nhd, cac Idi Runtime... Nlu bit ky mOt Idi nao bj vi pham, vi?c chay coi nhu khdng thanh cdng.
• Nlu tit ca cac budc tren la thanh cdng va chuang trinh cua thi sinh
chay khdng cd Idi, trinh chim se dupe gpi dk kilm tra tinh dung
din va cho dilm test nay. Nlu trong qua trinh chay, trinh chim gap loi thi thi sinh se dupe m$c dinh cho 0 dilm, dilu nay giiip ngudi vilt trinh chim giam cdng sue do khdng phai ty bit mpt sd ngoai 1?.
- Tong kit dilm va sinh bao cao: H? thdng chim se ty dpng cpng dilm tit ca cac test ciia thi sinh (trii test thir). Khi cpng dilm, mdi test co thi dupe nhan vdi 1 h? s6 tuy chpn, h? s6 nay se m^c dinh la 1 khi khong khai bao. Ket qua chi tilt cua timg Test va dilm tdng se dupe ghi lai trong 1 file, sau dd kit qua nay se dupe giri tra lai len May chu.
Dk dam bao hoat dpng dn djnh, h? thong chim se dupe ty dpng khdi dpng lai sau
mpt thdi gian nhit dinh (tir 12 din 24 gid).