poj3629】的更多相关文章

//(队列)poj3629 /* #include <iostream> #include <queue> #include <algorithm> using namespace std; #define MAXN 100005 int ans[MAXN]; int main(int argc, char *argv[]) { long N,K,M,P; long i,j,count; count=0; queue<long>q; cin>>N…
Card Stacking Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 3927   Accepted: 1541 Description Bessie is playing a card game with her N-1 (2 ≤ N ≤ 100) cow friends using a deck with K (N ≤ K ≤ 100,000; K is a multiple of N) cards. The d…
A - Card Stacking Time Limit:1000MS     Memory Limit:65536KB     64bit IO Format:%I64d & %I64u Submit Status Description Bessie is playing a card game with her N-1 (2 ≤ N ≤ 100) cow friends using a deck with K (N ≤ K ≤ 100,000; K is a multiple of N)…