usaco: transform in C++ and Java

Signed-off-by: Rohit Yadav <bhaisaab@baagi.org>