#include<iostream>using namespace std;int main (){ int t; cin>>t; while(t--) { int n,m; int count=0; cin>>n>>m; while(n/m!=0) { count=count+n/m; int t ...
分类:
其他好文 时间:
2018-07-22 22:23:53
阅读次数:
129
#include<iostream>#include<algorithm>using namespace std;int main (){ int n; cin>>n; while(n--) { int max; int min; int a,b; cin>>a>>b; if(a<b) { max= ...
分类:
其他好文 时间:
2018-07-22 21:16:23
阅读次数:
151
/*#include<iostream>using namespace std;int main (){ int a,b,c; int sum; cin> cin>>a>>b>>c; for(int i=1;i<100;i++) { if(i%3==a&&i%5==b&&i%7==c) { cout ...
分类:
其他好文 时间:
2018-07-22 20:48:38
阅读次数:
145
#include<iostream>using namespace std;int main (){ int n,m,max; cin>>n; m=n; max=n*n; int count=1; int s[105][105]; int x=1,y=n; while(count<=max) { w ...
分类:
其他好文 时间:
2018-07-22 20:46:55
阅读次数:
177
https://www.nowcoder.com/practice/7f26bfeccfa44a17b6b269621304dd4a?tpId=85&&tqId=29890&rp=1&ru=/activity/oj&qru=/ta/2017test/question-ranking 给定一个十进制的 ...
分类:
其他好文 时间:
2018-07-21 12:03:29
阅读次数:
145
发现绍一的人很喜欢做51nod,不得不说这还是一个很全能的 良心 OJ 但是做的这道题就一点都不良心了,简直是毒瘤,调了一早上 首先我们考虑让一条路径的$a_x\ mod\ a_y$的值最大,我们简单分析一波可以得出一个结论: 当 $a_x$为这条路径上的严格次大数,且$a_y$为最大数 时,答案最 ...
分类:
其他好文 时间:
2018-07-20 00:25:34
阅读次数:
250
日常吐槽:每天三遍:我很愚蠢,我特别愚蠢,我是世界上最愚蠢的人。 我不看我不看王八下蛋,我不听我不听乌龟念经。 交OJ的时候忘记关输出调试是怎么回事? SPFA模板打错是什么梗? 变量名弄错是什么鬼?——《论一名OIer的血泪史》 思路一:双向SPFA+暴力扫 其实就是从起点到终点做一遍SPFA,再 ...
分类:
其他好文 时间:
2018-07-17 21:40:42
阅读次数:
169
准备继续大学acm啦 又要开始愉快的码码码啦 第一次在华东师大OJ上面做题 A.数三角形 B.锐角三角形 C.大鱼吃小鱼 D.数蝌蚪 E.对称与科学美 ...
分类:
其他好文 时间:
2018-07-12 16:17:24
阅读次数:
194
思路: 记录一下快速幂计算过程中爆long long的两种解决方法: 1. 使用__int128,这玩意本地编译不通过,提交OJ能AC。 实现: 2. 利用和快速幂类似的思想实现如下不会溢出的乘法操作。 实现: ...
分类:
其他好文 时间:
2018-07-09 01:08:12
阅读次数:
166
时隔大半年又开始OJ了! A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below). The robot can only move either down or r ...
分类:
其他好文 时间:
2018-07-07 17:45:32
阅读次数:
198