2119 : 告辞 时间限制:1 Sec 内存限制:256 MiB提交:428 答案正确:102 提交 状态 编辑 讨论区 题目描述 整个世界都在散发着恋爱的恶臭,只有spring依旧保持着单身贵族的清香。 spring单身久了,煮饺子看见两个黏在一起的都要强行分开,所以在看到凸n边形的时候,总是习 ...
分类:
其他好文 时间:
2018-07-25 11:37:15
阅读次数:
169
#include<iostream>#include<stdio.h>#include<algorithm> using namespace std;int f1(int n){ int a[4]; a[0]=n/1000; a[1]=n/100%10; a[2]=n%100/10; a[3]=n% ...
分类:
其他好文 时间:
2018-07-24 19:28:07
阅读次数:
136
https://www.nowcoder.com/practice/7e7ccd30004347e89490fefeb2190ad2?tpId=85&&tqId=29853&rp=5&ru=/activity/oj&qru=/ta/2017test/question-ranking 题目 其实一开始 ...
分类:
其他好文 时间:
2018-07-23 14:44:02
阅读次数:
148
#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