码迷,mamicode.com
首页 >  
搜索关键字:scala for if match while    ( 37974个结果
中缀表达式转为后缀表达式
#include <bits/stdc++.h> using namespace std; stack<char> stack_op; stack<int> stack_num; char str[10000]; string change; int pow(int x, int y) { int ...
分类:其他好文   时间:2020-10-06 20:08:42    阅读次数:25
PHP正则表达式核心技术完全详解 第4节 php正则查找匹配处理函数使用心得与技巧
作者:极客小俊 一个专注于web技术的80后 我不用拼过聪明人,我只需要拼过那些懒人 我就一定会超越大部分人! CSDN@极客小俊,原创文章, B站技术分享 B站视频 : 👉 Bilibili.com 👈 个人博客: 👉 cnblogs.com 👈 php中兼容Perl的正则表达式处理函数 ...
分类:Web程序   时间:2020-10-05 21:49:40    阅读次数:35
C.k-Amazing Numbers(cf div2 673)
#include<bits/stdc++.h> using namespace std; const int N = 300010; vector<int>p[N]; int ans[N]; int main() { int t; scanf("%d",&t); while(t --) { int ...
分类:其他好文   时间:2020-10-05 21:46:03    阅读次数:23
C# Case_1 实现用户登录的逻辑
class Program { static void Main(string[] args) { string name, pwd; Console.WriteLine("请输入用户名:"); while (true) { name = Console.ReadLine(); if (string ...
分类:Windows程序   时间:2020-09-24 22:11:39    阅读次数:109
利用while循环写的简单小游戏猜数字
猜数字的大小游戏 C:\Users\Administrator>python Python 3.6.8 (tags/v3.6.8:3c6b436a57, Dec 23 2018, 23:31:17) [MSC v.1916 32 bit (Intel)] on win32 Type "help", ...
分类:其他好文   时间:2020-09-24 22:07:37    阅读次数:79
21 操作符重载
1 需要解决的问题 复数运算 class Complex { public: int a; int b; }; int main() { Complex c1 = {1,2}; Complex c2 = {3,4}; Compelx c3 = c1 + c2; //error: no match f ...
分类:其他好文   时间:2020-09-24 21:59:44    阅读次数:51
One Theorem, One Year LightOJ - 1298(dp+欧拉函数性质)
题目链接 题意:给你n和m,令x为前m个素数,一共使用n个的乘积,例如n=3,m=2,则x=2*2*3或x=2*3*3,求所有Φ(x)的和。 思路:用到了欧拉函数的性质,首先对于x为素数,Φ(x)=x-1,然后若n*m=x,则Φ(n)*Φ(n)=Φ(x)。所以我们可以求出前500个素数,然后对其进行 ...
分类:其他好文   时间:2020-09-24 20:50:23    阅读次数:36
291. 蒙德里安的梦想
$f(i, j)$表示在我摆放第i列的时候,i - 1列1*2方格伸出来的情况为j的所有摆法的集合,存储摆法数量 有$f(i, j) = D$, D是所有满足以下两个条件的其他状态的集合中存储数量的和 从i - 2列伸出来的方格情况k和i - 1列伸出来的方格的情况之间没有冲突(k & j == 0 ...
分类:其他好文   时间:2020-09-24 00:02:32    阅读次数:42
codeforce #671 补题报告
1419A - Digit Game a题只需要简单判断奇偶数的情况就可以解决。题目第一次读起来稍微有些复杂,理解后直接模拟过程即可 代码如下 #include <bits/stdc++.h>using namespace std; int main() { int t; cin>>t;while ...
分类:其他好文   时间:2020-09-23 23:33:32    阅读次数:36
WordPress 文章TAG标签用ID显示
wordpress文章标签默认是中文,比如标签少的时候可以自己修改别名,比如拼音或者英文,但是有一个缺点就是同音词的时候不好区分,只能在别名后面加-1,-2 这样的区分,比如手机,收集,首级,遇到同音词的时候就很不爽,展示方式看个人喜欢,除了中文展示会转码外,并没什么卵用,个人觉得用 ID 展示最好 ...
分类:其他好文   时间:2020-09-23 23:04:54    阅读次数:38
37974条   上一页 1 ... 76 77 78 79 80 ... 3798 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!