Math
GUESSERR
这个作者很懒,什么都没留下…
展开
-
字段乘积
传送门 两种方法: 1:逆元: 必须用逆元解决除回去不是原数字的尴尬局面。 eg: 如果0.5/3=x那么x*3还等于0.5吗? 显然不能,那么逆元就好了 代码: #include<iostream> #include <cstdio> #include <cmath> #include <cstring> #include <string&g...原创 2020-02-12 12:17:42 · 143 阅读 · 0 评论 -
String Game “红旗杯”第十四届吉林省大学生程序设计竞赛
String Game Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 262144/262144 K (Java/Others) Total Submission(s): 309 Accepted Submission(s): 43 Problem Description Clair and Bob play a game.Clair writes a string of lowercase characters, in which原创 2020-10-10 15:23:29 · 1014 阅读 · 0 评论 -
Codeforces Round #593 (Div. 2) B. Alice and the List of Presents
B. Alice and the List of Presents time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Alice got many presents these days. So she decided to pack th...原创 2019-10-17 23:23:23 · 309 阅读 · 0 评论 -
解方程 牛客小白月赛25
解方程 牛客小白月赛25 代码: #include<iostream> #include <cstdio> #include <cmath> #include <cstring> #include <string> #include <cmath> #include <stack> #include <queue> #include <vector> #include <set> #inc原创 2020-05-18 00:38:00 · 228 阅读 · 0 评论 -
Codeforces Round #589 (Div. 2) C - Primes and Multiplication
C. Primes and Multiplication time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Let’s introduce some definitions that will be needed later. Let pr...原创 2019-09-30 09:37:47 · 254 阅读 · 0 评论