/images/avatar.png

^_^

abc163

A - Circle Pond 题意 求圆周长 题解 ac代码 1 print(int(input())*2*3.14159265) B - Homework 题意 给定假期的时间和每一项作业完成的时间,求这个假期能玩几天 题解 ac代码 1 2 3 4 5 6 7 n,m = map(int , input().split()) a

Codeforces Round #634 (Div. 3) A~E

A. Candies and Two Sisters 题意 将一堆糖果分给两个女孩,其中一个要比另一个多,问有几种分法 题解 可以看出规律 ac代码 1 2 3 4 t=int(input()) for i in range(t): n=int(input()) print((int)((n-1)/2)) B. Construct the String 题意 输入a,b

abc162

A - Lucky 7 题意 问一个整数中是否含有数字7! 题解 ac代码 1 2 3 4 5 s = input() if '7' in list(s): print('Yes') else: print('No') B - FizzBuzz Sum 题意 找出不大于n的自然数中不能被3和5整除的数的和

hduoj1796

How many integers can you find Problem Description Now you get a number N, and a M-integers set, you should find out how many integers which are small than N, that they can divided exactly by any integers in the set. For example, N=12, and M-integer set is {2,3}, so there is another set {2,3,4,6,8,9,10}, all the integers of the set can be divided exactly by 2 or 3. As

牛客练习赛61(部分)

A . 打怪 题解 模拟 ac代码 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 #include<bits/stdc++.h> using namespace std; int main(){ //freopen("in.txt","r",stdin); int t,a,b,c,d; cin>>t; while(t--){ cin>>a>>b>>c>>d; if(b>=c || d<=0) cout<<-1<<endl; else{ int num=0; int cx=c; bool me=true; while(a>0){ if(me){ cx-=b; me^=1; } else{

NC13611

题目描述 shy有一颗树,树有n个结点。有k种不同颜色的染料给树染色。一个染色方案是合法的,当且仅当对于所有相同颜色的点对(x,y),x到y的

abc161

A - ABC Swap 题意 给三个数a,b,c,交换ab的值,交换ac的值,输出 题解 模拟 ac代码 1 2 3 4 5 6 7 8 9 10 #include<bits/stdc++.h> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; swap(a,b); swap(a,c); cout<<a<<" "<<b<<" "<<c<<endl; return 0; } B - Popular

浮点数加减法

#0 0操作数检查 如果有一个数为0,则可以直接得出结果 #1 用补码表示阶码,尾数 阶码的符号位为两位 尾数的个位为符号位 #2 对阶 小阶向大阶对齐(看原码),