2018年12月10日

POJ3980 取模运算【水题】

摘要: "取模运算" Description 编写一个C函数mod(int n, int m),实现取模运算% Input 输入包含多行数据 每行数据是两个整数a, b (1 int main(void) { int a, b; while(~scanf("%d%d", &a, &b)) printf("% 阅读全文

posted @ 2018-12-10 10:02 新海岛Blog 阅读(114) 评论(0) 推荐(0)

POJ3981 字符串替换【水题】

摘要: "字符串替换" Description 编写一个C程序实现将字符串中的所有"you"替换成"we" Input 输入包含多行数据 每行数据是一个字符串,长度不超过1000 数据以EOF结束 Output 对于输入的每一行,输出替换后的字符串 Sample Input you are what you 阅读全文

posted @ 2018-12-10 09:50 新海岛Blog 阅读(167) 评论(0) 推荐(0)

Bailian2820 Ancient Cryptogram【密码】

摘要: "2820:Ancient Cryptogram" 描述 In ancient wars, cryptogram was applied widely. There were two types of method to encrypt a string. The first one was rep 阅读全文

posted @ 2018-12-10 00:19 新海岛Blog 阅读(182) 评论(0) 推荐(0)

导航

// ... runAll: function() { this.resetPreCode(); hljs.initHighlightingOnLoad(); // 重新渲染,添加语法高亮 hljs.initLineNumbersOnLoad(); // 为代码加上行号 } // ...