#25985: 下面那篇解題報告會吃SE


vic20050418@gmail.com (Wen Vic)


 

if (n % 9 == 0 && n > 0) cout << "9\n";

else cout << n % 9 << "\n";