Command of the csuoj robot (Hunan's eighth competition for computer programming for College Students)

Source: Internet
Author: User

Question link: http://acm.csu.edu.cn/OnlineJudge/problem.php? Id = 1112

Simple question simulation.

<Span style = "font-size: 18px;" >#include <stdio. h> int main () {int as [100]; int t, n, m, I, X; char ch [20]; scanf ("% d ", & T); While (t --) {scanf ("% d", & N); for (I = 0; I <n; I ++) {scanf ("% s", CH); If (CH [0] = 'l') as [I] =-1; else if (CH [0] = 'R') as [I] = 1; else {scanf ("% S % d", CH, & M ); as [I] = as M-1] ;}} x = 0; for (I = 0; I <n; I ++) x ++ = as [I]; printf ("% d \ n", x);} return 0 ;}</span>


Command of the csuoj robot (Hunan's eighth competition for computer programming for College Students)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.