摘要: 我们都知道,在计算机中,数据是由二进制进行存储和读取输出的。那么,在计算机中,数、字符、图片、声音和视频怎么用二进制存储和读取输出的呢? 数的存储和读取输出 整数的存储和读取输出 整数的存储和读取输出应该说是最简答的读取输出方法了。如果是个正整数,那就直接转换为二进制进行存储。如果是个负整数,先把其 阅读全文
posted @ 2025-08-17 14:54 longyitongxue 阅读(108) 评论(0) 推荐(0)
摘要: #include<bits/stdc++.h> #define int int_fast64_t #define mod int(1e9+7) using namespace std; struct node{ int x,y; }a[int(1e5+5)],sum[int(1e5+5)],cnt[ 阅读全文
posted @ 2026-08-20 21:15 longyitongxue 阅读(3) 评论(1) 推荐(0)
摘要: #include<bits/stdc++.h> #define int int_fast64_t using namespace std; int p[int(1e6+5)],sz[int(1e6+5)]; vector<int> e[int(1e6+5)]; int ans; void dfs(i 阅读全文
posted @ 2026-08-20 21:10 longyitongxue 阅读(2) 评论(0) 推荐(0)
摘要: #include<bits/stdc++.h> #define int int_fast64_t #define lc p<<1 #define rc p<<1|1 using namespace std; struct node{ int l,r,sum,add; }tr[int(8e5+5)]; 阅读全文
posted @ 2026-08-20 20:56 longyitongxue 阅读(1) 评论(0) 推荐(0)
摘要: 1 #include<bits/stdc++.h> 2 #define int int_fast64_t 3 #define lowbit(x) (x&(-x)) 4 using namespace std; 5 int n,s[int(2e5+5)],p[int(1e5+5)]; 6 void u 阅读全文
posted @ 2026-08-20 20:51 longyitongxue 阅读(2) 评论(1) 推荐(0)
摘要: 输入 阅读全文
posted @ 2026-08-20 19:47 longyitongxue 阅读(11) 评论(0) 推荐(0)
摘要: 2025 CSP-J/S 游记 阅读全文
posted @ 2026-08-20 19:10 longyitongxue 阅读(3) 评论(0) 推荐(0)
摘要: 南京集训 2026 游记 阅读全文
posted @ 2026-08-20 19:06 longyitongxue 阅读(2) 评论(0) 推荐(0)
摘要: 变量 阅读全文
posted @ 2025-04-19 13:20 longyitongxue 阅读(69) 评论(0) 推荐(0)
摘要: C++ 的 4 种输出 阅读全文
posted @ 2025-04-05 20:56 longyitongxue 阅读(296) 评论(1) 推荐(0)
longint's blog

2025-2026, © longint's blog