- 博客(10)
- 资源 (2)
- 收藏
- 关注
原创 洛谷-T24950 今天星期几
# -*- coding: utf-8 -*-"""Created on Wed Apr 4 20:06:09 2018@author: wdf"""L=input()L=L.split(" ")y=int(L[0])m=int(L[1])d=int(L[2])if m==1 or m==2: y-=1 m+=12W= (d+2*m+3*(m+1)//5+y+y//4-y//100+...
2018-04-15 11:45:40 259
原创 洛谷-P3954 成绩
# -*- coding: utf-8 -*-"""Created on Wed Apr 4 19:45:59 2018@author: wdf"""x=input()xlist=x.split(" ")H1= int(xlist[0])H2 = int(xlist[1])H3 = int(xlist[2])#作业成绩×20%+小测成绩×30%+期末考试成绩×50%score = int(H1...
2018-04-15 11:45:00 521
原创 洛谷-P1567 统计天数
# -*- coding: utf-8 -*-"""Created on Tue Apr 10 21:09:00 2018@author: wdfN = int(input())#天数l=input()#print(l)l=l.split(" ")#print(l)for i in range(0,N): l[i]=int(l[i]) #print(l[i])n=0i=0a=0m=[]...
2018-04-15 11:44:27 326
原创 洛谷-P1425 小鱼的游泳时间
# -*- coding: utf-8 -*-"""Created on Wed Apr 4 19:34:09 2018@author: wdf"""x=input()xlist=x.split(" ")H1= int(xlist[0])M1 = int(xlist[1])H2 = int(xlist[2])M2 = int(xlist[3])if (M2>M1): H=H2-H1...
2018-04-15 11:43:55 428
原创 洛谷-P1424 小鱼的航程(改进版)
# -*- coding: utf-8 -*-"""Created on Thu Apr 5 19:51:13 2018这里有一个错误,只能得90分x=input()xlist=x.split(" ")x= int(xlist[0])n = int(xlist[1])remain=7-x +1 #本周剩几天if x>5: remain_swim=0else...
2018-04-15 11:42:20 758
原创 洛谷-P1423 小玉在游泳
# -*- coding: utf-8 -*-"""Created on Thu Apr 5 19:45:13 2018@author: wdf"""k = float(input())n=1s=2s1=2while (s<k): n+=1 s1=0.98*s1 s+=s1print (n)
2018-04-15 11:41:51 871
原创 洛谷-P1422 小玉家的电费
# -*- coding: utf-8 -*-"""Created on Wed Apr 4 19:58:38 2018@author: wdf"""x = int(input())#输入 if x<=150: y=0.4463*xelif x<=400: y=0.4463*150+(x-150)*0.4663else: y=0.4463*150+(400-150...
2018-04-15 11:40:57 703
原创 洛谷-P1089 津津的储蓄计划
# -*- coding: utf-8 -*-"""Created on Tue Apr 10 23:10:48 2018@author: wdf"""m = 300# //每月的收入 flag = True#判断是否超支 h = 0s = 0for i in range(1,13): a = int(input())#输入 h += m#领工资 if (h < a):...
2018-04-15 11:40:25 609
原创 洛谷-P1085 不高兴的津津
# -*- coding: utf-8 -*-"""Created on Thu Apr 5 21:07:50 2018@author: wdf"""max=0j=0for i in range(0,7): x=input() xlist=x.split(" ") x = int(xlist[0]) #x[i]表示school time n = int(xl...
2018-04-15 11:39:31 631
原创 洛谷 P1035 级数求和
# -*- coding: utf-8 -*-"""Created on Thu Apr 5 19:26:33 2018@author: wdf"""sn=0.0k = int(input())for i in range(1,1835422):#这个数字是试出来的,刚好够大 sn=sn+1.0/i if(sn>k): print(i) br...
2018-04-15 11:38:20 432
十种流行网络在cifar-10数据集上的应用
2018-04-13
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人