
模拟
empty_coder
这个作者很懒,什么都没留下…
展开
-
#1531:德国心脏病
题目见这里 典型的模拟题,注意对于一名玩家前面的牌堆来说,仅最上面一张牌的内容有意义; 然后就是注意在“Ring” succeed后,所有玩家的playedCards清零。 代码如下: #include <stdio.h> #include <string.h> #define N 10 #define SCARD 10000000 #define KIND ...原创 2017-07-16 18:24:54 · 804 阅读 · 0 评论 -
计蒜客之模拟篇
Caesar Cipher #include <stdio.h> #define LEN 55 int t, n, m; char plaintext[2][LEN], ciphertext[2][LEN]; int h[2][26]; int main() { scanf("%d", &t); for (int i = 1; i <= t; i...原创 2018-07-18 14:22:10 · 254 阅读 · 0 评论