在使用DEV C++编译源码通过win10控制台输出时发现中文显示乱码!网上查了很多资料,都不靠谱。后来结合网上的各种不同方式解决了该问题。Embarcadero DEV C++ 6.3亲测有效~
网上有文章说修改注册表HKEY_CURRENT_USER\Console\%SystemRoot%_system32_cmd.exe的CodePage值,这个方法可以解决部分人的问题。但还有一部分人的win10在该路径下是没有cmd相关信息的,只有powershell,这部分用户此方法就没有可行性。
A. Donut Shops
time limit per test
2 seconds
memory limit per test
256 megabytes
input
standard input
output
standard output
There are two rival donut shops.
The first shop sells donuts at retail: each donut costs aa dollars.
The second sh