摘要: ``` #include int main() { int a,b; scanf("%d %d",&a, &b); printf("%d\n",a+b); return 0; } ``` 阅读全文
posted @ 2016-05-21 23:31 zhou23 阅读(129) 评论(0) 推荐(0) 编辑
摘要: ``` public class Solution { public int threeSumClosest(int[] num, int target) { int result = num[0] + num[1] + num[num.length 1]; Arrays.sort(num); fo 阅读全文
posted @ 2016-05-21 16:17 zhou23 阅读(72) 评论(0) 推荐(0) 编辑
摘要: ``` public class Solution { public List threeSum(int[] num) { Arrays.sort(num); List res = new LinkedList(); for (int i = 0; i 0 && num[i] != num[i 1] 阅读全文
posted @ 2016-05-21 16:15 zhou23 阅读(111) 评论(0) 推荐(0) 编辑