2118 : 早安晚安,不如我先入土为安 题目描述 spring比较喜欢玩台球,因为看着台球在桌子上碰来碰去很有意思(台球撞壁反弹,入射角等于反射角),每次完美的台球入洞,都能体现他数学天才的能力。机房的大佬们当然不承认spring能力强,而是认为每次都是运气而已。 spring很不服气,但又打不过 ...
分类:
其他好文 时间:
2018-07-27 19:17:33
阅读次数:
210
#include<iostream>#include<string.h>#include<stdio.h>using namespace std;int main (){ char s[1005]; while(gets(s)) { int m=strlen(s); int n=m; for(int ...
分类:
其他好文 时间:
2018-07-27 13:19:20
阅读次数:
134
#include<iostream>#include<stdio.h>using namespace std;int gcd(int a,int b){ if(b==0) return a; return gcd(b,a%b);}int main (){ int a,b,c,d; char ch1, ...
分类:
其他好文 时间:
2018-07-27 13:10:34
阅读次数:
111
这个OJ一直在做,一些专题题目都很好,从易至难,阶梯上升,很适合像我这样的蒟蒻 =7= 这篇是关于其中一个专题训练的题解思路及代码 http://120.78.128.11/Contest.jsp?cid=486 所有题面我就不贴了,各位自行去看,链接在上一行 =7= 一、求众数(Map标记+Set ...
分类:
其他好文 时间:
2018-07-26 10:47:04
阅读次数:
179
#include<iostream>using namespace std;int main (){ int t; cin>>t; while(t--) { int n; cin>>n; if(n>=90 && n<=100) cout<<"A"<<endl; else if(n>=80 && n< ...
分类:
其他好文 时间:
2018-07-25 15:13:23
阅读次数:
130
#include<iostream>using namespace std;int main (){ int t; cin>>t; while(t--) { int n,k; cin>>n>>k; int count=n; while(n>=k) { int tmp=n; n=n/k; count= ...
分类:
其他好文 时间:
2018-07-25 13:15:28
阅读次数:
116
B : 人间不值得 概览问题列表状态排名编辑 Progress Bar 时间限制:1 Sec 内存限制:256 MiB提交:146 答案正确:12 提交 编辑 B : 人间不值得 概览问题列表状态排名编辑 Progress Bar Progress Bar 时间限制:1 Sec 内存限制:256 M ...
分类:
其他好文 时间:
2018-07-25 11:40:35
阅读次数:
247
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