/images/avatar.png

^_^

Android 四大组件之Content Provider

Content Provider 获取外部应用的信息 以获取通讯录为例 布局文件 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 <?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".contentProviderActivity"> <Button android:layout_width="match_parent" android:layout_height="wrap_content" android:id="@+id/cpbtn1" android:textSize="25sp" android:text="get_contacts"/> <Button android:layout_width="match_parent" android:layout_height="wrap_content" android:id="@+id/cpbtn2" android:text="getdata" android:textSize="25dp"

hduoj1711(kmp)

Number Sequence Problem Description Given two sequences of numbers : a[1], a[2], …… , a[N], and b[1], b[2], …… , b[M] (1 <= M <= 10000, 1 <= N <= 1000000). Your task is to find a number K which make a[K] = b[1], a[K + 1] = b[2], …… , a[K + M - 1] = b[M]. If there are more than one K exist, output the smallest one.

二进制编码

二进制转十进制 除2取余 十进制转二进制 乘2次幂 小数进制转换 e.g. 3.59375 整数部分3的二进制位11 小数部分0.59375 0.59375*2=1.1875 ———————— 1 0.1875*2=0.375 —————————0 0.375*2=0.75 ——————————0 0.75*2=1.5 ——————————–1 0.5*2=1 ———————————–1 二进制位0.

Codeforces Round #627 (Div. 3)

A. Yet Another Tetris Problem link B. Yet Another Palindrome Problem link C. Frog Jumps link D. Pair of Topics link E. Sleeping Schedule link 题意 假设一天有h个小时,DIO一共要睡n次,每次睡ai个小时(按顺序睡觉),每次刚睡醒,就

ef - a tale of melodies

《ef - a tale of melodies.》由日本动画公司SHAFT制作电视动画,并于2008年10月6日开始播放,是动画《悠久之翼》系列的第二季。故

abc158

A - Station and Bus 题目链接 题意 给一长度为3的,只含AB的字符串,问是否存在相邻两个字符不同的情况 题解 签到题 ac代码 1 2 3 4 5 6 7 8 9 10 11 #include<bits/stdc++.h> using namespace std; int main()

波斯王子

波斯王子 prince of persia是ubisoft于1989年发行的一款单机游戏 波斯王子有好多部,前3部是一个完整的故事,后面则是一些衍生 这是我201

刺客信条2

ac2由育碧蒙特利尔工作室开发 十年前玩的游戏,环境渲染和剧情真的超棒 背景音乐选的十分用心 后来主角ezio也成为了刺客信条系列的标志 刺客信条系

光环1

halo1是微软于2001年发行的第一人称射击游戏 halo是一个很注重武器选择的游戏,合适的武器会非常高效 剧情 2160-2200:早期冲突 这