![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
课堂小练
LZK1997
这个作者很懒,什么都没留下…
展开
-
素数,python暴力实现
好久没写博客了,水一篇i = 2while(i < 100): j = 2 while(j <= (i/j)): if not (i%j):break j = j + 1 if(j > i/j) : print(i," 是素数") i = i + 1print("Good bye")原创 2020-08-25 21:47:47 · 234 阅读 · 0 评论 -
开源考试知识点整理
部分参考资料来源于网络,如有侵权请联系作者删除。C语言运算表达式C语言一共有34种运算符,10种运算类型:算术运算符(+、-、*、/、%)、关系运算符(>、>=、==、!=、<、<=)、位运算符(>>、<<、==、!=、<、<=)、逻辑运算符(!、||、&&)、条件运算符、(?:)指针运算符(&、*...原创 2019-10-16 08:51:26 · 671 阅读 · 0 评论 -
3*3方格填入1-9
往3*3的格子中填入9个数,使每一行、每一列、对角线值都是15.正确结果是8个。#include #include int jdg[10];int a[3][3];int judge(){if(a[0][2]+a[1][2]+a[2][2]!=15)/*a00 a01 a02*/return 0; //a10 a11 a12if(a[0][0原创 2016-05-24 15:36:11 · 5657 阅读 · 0 评论 -
2015福建省赛 fzoj The Longest Straight
The Longest Straight ZB is playing a card game where the goal is to make straights. Each card in the deck has a number between 1 and M(including 1 and M). A straight is a sequence of cards原创 2017-11-22 08:47:15 · 317 阅读 · 0 评论