Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

Re:抱着过不了的心态,提交了,居然AC,一脸懵逼

Posted by witstorm at 2018-05-06 16:24:20 on Problem 1048
In Reply To:抱着过不了的心态,提交了,居然AC,一脸懵逼 Posted by:witstorm at 2018-05-06 16:11:59
补充下思路
就是单纯的沿着给定的路径走,遇到加号改变方向,遇到冒号判断另一个输入是否替换完成,
若是则进行运算(因为规定的运算符是固定的),完成运算之后继续沿着路径走
若否则break,找到下一个字母开始上面的替换
遇到o取反,然后继续沿着路径走
遇到问号就结束了,则goto一波


注意:当只有一个-时要判断j+1位置

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator