题意:给定数字A和数字B,问是否满足gcd(A,B)==1。 思路:可以直接写函数gcd。也可以用大数自带的gcd功能。 代码1: /* @author nimphy @create 2019-11-06-12:07 about: */ import java.io.*; import java.u ...
分类:
编程语言 时间:
2019-11-06 13:09:49
阅读次数:
87
JavaScript forEach() 方法 JavaScript Array 对象 实例 列出数组的每个元素: <button onclick="numbers.forEach(myFunction)">点我</button> <p id="demo"></p> <script> demoP = ...
分类:
编程语言 时间:
2019-11-06 00:43:46
阅读次数:
309
变量及数据类型 Numbers数字分为:int整型,long长整型,float浮点型,complex复数 String字符串由数字、字母、下划线组成的一串字符,用于表示文本的数据类型 bool布尔型:True,False,用于做判断(True实际值是1,False实际值是0) List列表,支持字符 ...
分类:
编程语言 时间:
2019-11-05 21:23:03
阅读次数:
101
Variable names:保存的变量名,后面使用${Variable names}引用 JSON Path expressions:调试通过的json path表达式 Match Numbers:匹配数字(0代表随机,1代表第一个,-1代表所有) Default Values:找不到时默认值,一 ...
分类:
Web程序 时间:
2019-11-05 18:41:52
阅读次数:
272
问题: Result window is too large 解决: ...
A - Good ol' Numbers Coloring 直接判断两个数是否互质 #include <stdio.h> #include <iostream> #include <cstring> #include <algorithm> #include <cmath> #include <qu ...
分类:
其他好文 时间:
2019-11-05 17:02:02
阅读次数:
110
code: #include <bits/stdc++.h> #define N 400004 #define LL long long #define lson now<<1 #define rson now<<1|1 #define setIO(s) freopen(s".in","r",std ...
分类:
其他好文 时间:
2019-11-05 15:03:42
阅读次数:
64
Medimu Compare two version numbers version1 and version2.If version1 > version2 return 1; if version1 < version2 return -1;otherwise return 0. You may ...
分类:
其他好文 时间:
2019-11-05 13:53:44
阅读次数:
74
链接: https://codeforces.com/gym/102394/problem/J 题意: The great mathematician DreamGrid proposes a conjecture, which states that: Every positive integer ...
分类:
其他好文 时间:
2019-11-05 13:52:30
阅读次数:
139
链接: https://codeforces.com/contest/1245/problem/A 题意: Consider the set of all nonnegative integers: 0,1,2,…. Given two integers a and b (1≤a,b≤104). W ...
分类:
其他好文 时间:
2019-11-05 13:49:03
阅读次数:
110