码迷,mamicode.com
首页 >  
搜索关键字:ret    ( 30742个结果
【PAT】B1005 继续(3n+1)猜想(25 分)
``` include include using namespace std; int Table[1000]={0}; bool hashtable[105]; bool cmp(int a,int b){ return a b;} void put(){ int temp;scanf("%d" ...
分类:其他好文   时间:2018-08-18 19:43:13    阅读次数:143
4.10 打印数组的主次对角线
1 //打印二维数组矩阵的主对角线与次对角线 2 #include 3 4 int main(void) 5 { 6 int arr[5][5] = {1, 2, 3, 4, 5, 7 6, 7, 8, 9, 10, 8 11,12, 13,14, 15, 9 ... ...
分类:编程语言   时间:2018-08-18 19:42:35    阅读次数:237
【PAT】B1020 月饼 (25)(25 分)
``` include include using namespace std; const int maxn = 1000; typedef struct yuebing { double cun; double shouyi; double danjian; }yue; yue arr[maxn ...
分类:其他好文   时间:2018-08-18 19:36:28    阅读次数:171
【PAT】B1003 我要通过(20 分)
``` include include include using namespace std; int main() { int n, p = 0, t = 0; char s[120]; scanf("%d",&n); for(int i = 0; i m; for(int j = 0; j ...
分类:其他好文   时间:2018-08-18 19:35:26    阅读次数:129
【PAT】B1006 换个格式输出整数(15 分)
``` include include include using namespace std; int main(){ int num; scanf("%d",&num); int bai=num/100; int shi=num/10%10; int ge = num%10; for(int i ...
分类:其他好文   时间:2018-08-18 19:34:17    阅读次数:128
【PAT】B1042 字符统计(20 分)
``` / 15分的题很简单,但是自己写的时候在输入数据时没有考虑好下标 另外有忘记了输入字符时考虑是否有\n / include include include include using namespace std; int main(){ char str[1005]; int arr[26] ...
分类:其他好文   时间:2018-08-18 18:38:39    阅读次数:115
【PAT】B1037 在霍格沃茨找零钱(20 分)
``` #include #include #include using namespace std; int main(){ int nG,nS,nK,payG,payS,payK; scanf("%d.%d.%d %d.%d.%d",&nG,&nS,&nK,&payG,&payS,&payK);... ...
分类:其他好文   时间:2018-08-18 18:35:26    阅读次数:119
面相切面编程AOP以及在Unity中的实现
一、AOP概念 AOP(Aspect-Oriented Programming,面向切面的编程),它是可以通过预编译方式和运行期动态代理实现在不修改源代码的情况下给程序动态统一添加功能的一种技术。它是一种新的方法论,它是对传统OOP编程的一种补充。OOP是关注将需求功能划分为不同的并且相对独立,封装 ...
分类:编程语言   时间:2018-08-18 17:37:55    阅读次数:215
json自定制
import json from datetime import date from datetime import datetime class JsonCustomEncoder(json.JSONEncoder): def default(self, field): if isinstance... ...
分类:Web程序   时间:2018-08-18 16:31:35    阅读次数:235
深度解析java.lang.String类的equal(Object obj)方法
背景:最近在研究静态扫描的东西,遇到一个规则:"equals(Object obj)" should be overridden along with the "compareTo(T obj)" method 然后就想深度扒一扒equals和compareTo有什么区别 首先先来看下java.la ...
分类:编程语言   时间:2018-08-18 16:29:06    阅读次数:366
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!