Welcome to the Alpha build of TypeGG! For the best user experience, we recommend playing with an account. Login

Dev

Ads keep TypeGG alive and support the team.
Please enable ads or subscribe to
GG+
Subscribe
Programming Challenges. The Programming Contest Training Manual by Steven S Skiena, Miguel A. Revilla
Programming Challenges. The Programming Contest Training Manual by Steven S Skiena, Miguel A. Revilla

Programming Challenges. T... (2006)

by Steven S Skiena, Miguel A. Revilla

Submitted by Dasha
Book Educational
8.85 | Ranked
Programming Challenges. The Programming Contest Training Manual by Steven S Skiena, Miguel A. Revilla
Programming Challenges. The Programming Contest Training Manual by Steven S Skiena, Miguel A. Revilla
Programming Challenges. The Programming Contest Training Manual
by Steven S Skiena, Miguel A. Revilla

For our war program, the input consists of pairs of lines for each input deck, the first corresponding to player 1's cards, the second to player 2's cards. Here is an example of three games' worth of cards:⏎ 4d Ks As 4h Jh 6h Jd Qs Qh 6s 6c 2c Kc 4s Ah 3h Qd 2h 7s 9s 3c 8h Kd 7h Th Td⏎ 8d 8c 9c 7c 5d 4c Js Qc 5s Ts Jc Ad 7d Kh Tc 3s 8s 2d 2s 5h 6d Ac 5c 9h 3d 9d⏎ 6d 9d 8c 4s Kc 7c 4d Tc Ks 3s 5h 2h Ks 5c 2s Qh 8d 7d 3d Ah Js Jd 4c Jh 6c Qc⏎ 9h Qd Qs 9s Ac 8h Td Jc 7s 2d 6s As 4h Th 6h 2c Kh Th 7h 5s 9c 5d Ad 3h 8s 3s⏎ Ah As 4c 3s 7d Jc 5h 8s Qc Kh Td 3h 5c 9h 8c Qs 3d Ks 4d Kd 6c 6s 7h Qh 3c Jd⏎ 2h 8h 7s 2c 5d 7c 2d Tc Jh Ac 9s 9c 5s Qd 4s Js 6d Kc 2s Th 8d 9d 4h Ad 6h Ts🏁

Submitted by Dasha - 11/16/2025
Book Educational 8.85 Ranked

Global Leaderboard

# Player Time Duration Accuracy WPM pp
1
2
3
4
5
6
7
8
9
10
Privacy
Terms
Cookies
TypeGG ©2025