|
这题不开O2有点卡常。。。
|
|
回复 @ShallowDream雨梨 :
#include<cstdio> #include<iostream> using namespace std; int main(){ int a,b=0; freopen("reverse.in","r",stdin); freopen("reverse.out","w",stdout); cin>>a; while (a!=0){ b=b*10+a%10; a/=10; } cout <<b; } 短不短?AC!!
题目 623 [NOIP 2011]数字反转
2019-06-24 07:34:27
|
|
三年OI一场空,加了注释见祖宗
题目 3050 [NOIP 2018PJ]龙虎斗
2019-06-21 09:56:09
|
|
。。。
|
|
同上
题目 2929 [USACO Open18 Platinum] Out of Sorts
2019-06-20 20:59:46
|
|
为啥没人用SG函数?
题目 452 Nim游戏!
2019-06-20 19:34:15
|
|
#include<bits/stdc++.h>
using namespace std; int main(){ cout<<" 矛盾之土"<<endl; cout<<"此游戏由lcz111制作 版权所有,盗版必究???"<<endl; int C1,C2; int w1=0,w2=0; cout<<"请玩家A,B选择部落:1.工匠部落(攻击+3,防御+0.5,速度+0.5,人数+20)"<<endl; cout<<"请玩家A,B选择部落:2.巨人部落(攻击+3,血量+20,速度-0.5)"<<endl; cout<<"请玩家A,B选择部落:3.小人部落(攻击-1,人数+150,速度+1,血量-5)"<<endl; 回复 @Alfal :
题目 1670 机器人搬运
2019-06-19 19:36:05
|
|
敲着自己都迷茫了...
|
|
|
|
数据好水。。。
题目 526 [HDU 1512] 爱争吵的猴子
2019-06-18 14:47:38
|
|
HXF+HS太强了!!!
题目 686 [SCOI 2011] 棘手的操作
2019-06-18 14:20:48
|
|
叉积写错花了两天时间才看出来,我的zz身份稳了
|
|
#include <iostream>
#include <cstdio> using namespace std; int main() { freopen("unhappy.in","r",stdin);freopen("unhappy.out","w",stdout); int a[8],b[8],c[8]; for(int z=1;z<=7;z++) { cin>>a[z]>>b[z]; } for(int z=1;z<=7;z++) { c[z]=a[z]+b[z]; } for(int z=1;z<=7;z++) { if(c[z]>8) { cout<<z; break; } } }
题目 17 [NOI 2007]项链工厂
2019-06-17 19:49:37
|
|
freopen("area0.in","r",stdin);freopen("area0.out","w",stdout);
int ll=0; cin>>a>>b; for(int z=1;z<=a;z++) for(int y=1;y<=b;y++) cin>>u[z][y]; i(0,0); for(int z=1;z<=a;z++) for(int y=1;y<=b;y++) { if(u[z][y]=='0') ll++;} cout<<ll; }
题目 23 [HAOI 2005]寻找编码串
2019-06-17 19:42:54
|
|
#include<bits/stdc++.h>
using namespace std; char u[102][102]; int a,b; void i(int x,int y) { u[x][y]='^'; if((u[x][y+1]=='0'||u[x][y+1]==0)&&y<=b) i(x,y+1); if((u[x+1][y]=='0'||u[x+1][y]==0)&&x<=a) i(x+1,y); if((u[x][y-1]=='0'||u[x][y-1]==0)&&y>=1) i(x,y-1); if((u[x-1][y]=='0'||u[x-1][y]==0)&&x>=1) i(x-1,y); } int main() {
题目 23 [HAOI 2005]寻找编码串
2019-06-17 19:42:34
|
|
小房子,你觉得HS会怼你吗?(HS辣么强,跟我黄笑凡有什么关系?)
题目 3174 激突冲击
2019-06-15 16:58:57
|
|
回复 @noip : 附议,Cogs ac在洛谷只有55分,
|
|
回复 @noip : 附议,Cogs ac在洛谷只有55分,
|
|
所以说这道题正解是暴力?我本来还想能不能莫反一下呢
|
|
回复 @rvalue : O(∩_∩)O!
题目 921 [東方S1] 上白泽慧音
2019-06-13 19:55:23
|