会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
ruirui724
博客园
首页
新随笔
联系
订阅
管理
2022年7月5日
c++信息学奥赛 1056点和正方形的关系
摘要: #include <iostream> using namespace std; int main() { int x,y; cin>>x>>y; if(x>=-1&&x<=1&&y>=-1&&y<=1) cout<<"yes"; else cout<<"no"; return 0; }
阅读全文
posted @ 2022-07-05 20:59 明睿小学李君道
阅读(286)
评论(0)
推荐(0)
2022年6月27日
保留三位小数
摘要: #include <iostream> using namespace std; int main() { double f; cin>>f; printf("%.3f",f); return 0; } 最近有事,好久没更新了。
阅读全文
posted @ 2022-06-27 22:34 明睿小学李君道
阅读(161)
评论(0)
推荐(0)
2022年5月24日
c++信息学奥赛 1027输出浮点数
摘要: #include <iostream> #include <cstdio> using namespace std; int main() { double a; scanf("%lf",&a); printf("%lf\n%.5lf\n%e\n%g",a,a,a,a); return 0; }
阅读全文
posted @ 2022-05-24 19:13 明睿小学李君道
阅读(212)
评论(0)
推荐(0)
2022年5月22日
c++信息学奥赛 1001Hello,World!
摘要: #include <iostream> using namespace std; int main() { cout<<"Hello,World!"<<endl; }
阅读全文
posted @ 2022-05-22 21:25 明睿小学李君道
阅读(78)
评论(0)
推荐(0)
c++信息学奥赛 1000入门测试题目
摘要: #include <iostream> using namespace std; int main() { int a,b; cin>>a>>b; cout<<a+b; return 0; }
阅读全文
posted @ 2022-05-22 20:06 明睿小学李君道
阅读(370)
评论(0)
推荐(0)
2022年5月13日
c++信息学奥赛 2062【例1.3】电影票
摘要: #include <iostream> using namespace std; int main() { int x=0; cin>>x; cout<<x<<" "<<x*10; return 0; }
阅读全文
posted @ 2022-05-13 19:03 明睿小学李君道
阅读(106)
评论(0)
推荐(0)
c++信息学奥赛 2051【例3.1】偶数
摘要: #include <iostream> using namespace std; int main() { long long a; cin>>a; if(a%2==0&&a>0) cout<<"yes"; return 0; }
阅读全文
posted @ 2022-05-13 10:36 明睿小学李君道
阅读(285)
评论(0)
推荐(0)
2022年5月12日
c++信息学奥赛 2060【例1.1】计算机输出
摘要: include <iostream> using namespace std; int main() { cout<<"Hello World!"<<endl; return 0; }
阅读全文
posted @ 2022-05-12 14:24 明睿小学李君道
阅读(75)
评论(0)
推荐(0)
c++信息学奥赛 2069【例2.12】糖果游戏
摘要: #include <iostream> using namespace std; int main() { int a,b,c,d,e; scanf("%d%d%d%d%d",&a,&b,&c,&d,&e); a=a/3;b=b+a;e=e+a; b=b/3;c=c+a;a=a+b; c=c/3;d
阅读全文
posted @ 2022-05-12 13:27 明睿小学李君道
阅读(1245)
评论(0)
推荐(0)
公告