阅读背景:

Warsaw University Contest Petrozavodsk, Thursday, January 31, 2008 J题,Gym100096J_???111的博客

来源:互联网 

Problem J.

Sum of a subsequence Input file: sum.in Output file: sum.out We are given a sequence a1, a2, . . . , a2n. Your task is to find a subsequence ai1 , ai2 , . . . , ain of this sequence such that its sum ai1 + ai2 + · · · + ain is divisible by n, or check that such subsequence doesn’t exist.Sum of a subsequence Input fi




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: