This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
asd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Convert data by field name contains Date to data Date object | |
* @param {Array, Object, String} date | |
* @param {String} fieldName | |
* @returns {Array, Object, String, Boolean, null} | |
*/ | |
const covertDateFieldName = (data, fieldName) => { | |
if (Array.isArray(data)) return data.map(d => covertDateFieldName(d)) | |
if (typeof data === 'object') { | |
for (const key in data) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Convert string booleans to boolean | |
* @param {Array, Object, String} date | |
* @returns {Array, Object, String, Boolean} | |
*/ | |
const convertStringBoolean = (data) => { | |
if (Array.isArray(data)) return data.map(d => convertStringBoolean(d)) | |
if (typeof data === 'object') { | |
for (const key in data) { | |
data[key] = convertStringBoolean(data[key]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"lastUpload":"2021-05-04T19:13:45.855Z","extensionVersion":"v3.4.4"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.math.BigInteger; | |
import java.util.Arrays; | |
import java.util.Random; | |
import java.util.Scanner; | |
public class main { | |
static BigInteger N; | |
static BigInteger e; |