<html>

Source: Internet
Author: User
Tags greatest common divisor

#include <stdio.h> #include <string.h>char a[10],b[10];int main () {int I,j,k,n=1,m=1,l1,l2;freopen (" Ride.in "," R ", stdin); Freopen (" Ride.out "," w ", stdout); scanf ("%s%*c%s ", &a,&b); L1=strlen (a); L2=strlen (b); for (i=0;i<l1;i++) {n*=a[i]-' a ' +1;n%=47;} for (i=0;i<l2;i++) {m*= (int) b[i]-' A ' +1;m%=47;} if (n==m) printf ("go\n"), Else printf ("stay\n"); return 0;}

Read the full text of the copyright notice: This article is the original blogger article. Not reproduced without the consent of the blogger. Report
    • Label:
    • This article has been included in the following column:
0Article comments
Related articles recommended
My first Usaco training--your Ride is here topic: Your Ride is Hereit are a well-known fact that behind every good comet is a UFO. These UFOs ...
  • yang362046076
  • 2013-12-23 12:50
  • 489
Usaco-1.1.1-your Ride is here reprint please indicate the source abstract: analog <span style= "f
  • Qingtangpaomian
  • 2012-02-22 10:25
  • 383
Algorithm Road One Usaco:your RIDE are here Usaco YOUR RIDE are here
  • Eusia
  • 2017-01-23 13:05
  • 72
Your Ride is here today is my first time to do a problem on the Usaco, although this is a very easy very easy topic, but this legend in the USA training to participate in the IOI participants OJ, not only let me a little yearning ah.

:P This OJ is quite a favorite. I am very few myself to seriously think the problem. Also a lot of OJ are just over the scenes, recently saw a lot of retired Daniel blog post. Suddenly let me feel how ridiculous, let me this only well frog deep clear how shallow, feel the great difference with others, this difference is not in the current ability, but in the ideological consciousness, enlightenment.

I've set myself up for the future. For example, the following principles: 1. Do the problem must form a train of thought, do not get the question on a pair of Daniel look (still far) move the keyboard. Write the program. The key to doing the problem lies in their own ideas, after the idea

  • Exuberant
  • 2011-06-03 13:08
  • 387
Usaco 1.1.1 Your Ride are here Your Ride are Hereit is a wel L-known fact, behind every good comet is a UFO. These UFOs often ...
  • zkzxmzk
  • 2013-04-27 16:26
  • 437
usaco:section 1.1 Your Ride are here lang:c++*/#include &am p;lt;iostream&gt; #include &lt;cstring&gt; #include &lt;fstream&gt;using namespace Std;int main ( int argc,char** argv) {string comet;string group;unsigned long cometresult=1;unsigned long Groupresul
  • csstome
  • 2009-06-28 20:36
  • 302
Usaco 1.1 Your Ride are here Problem Solving report Your ride is Hereit is a Well-known fact, behind every good comet is a UFO. These UFOs often ...
  • caizi1991
  • 2013-07-19 "
  • 367
usaco--ride Usaco The first question I encountered: 1. Language barrier ..... All English, ah, Nocow hung Ah, find a translation site, text did not translate AH! 2. Submit the question ... I feel that the a+b of the topic of the code is strange ah. Even with documents, regrets did not read the contents of the document,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, well, a little bit, I noticed the fout and fin two strange things, F is God horse ... The final thought should be file. Then submit the question and conquer ... 3.9999999 ..... because AI
  • cvidkal
  • 2011-11-24 13:09
  • 225
Usaco 1.1 Your Ride is here today open cut Usaco: simple string processing/*id:cxq_xia1prog:ridelang:c++*/#include #include #include using ...
  • cxq249282126
  • 2015-08-28 13:07
  • 130
Usaco Your Ride is the here report said the area after the game is nothing to do, the Usaco do it again. Idle is also idle, this is the first question, sign <span style= "Color:rgb (54,46,43); font-family:arial; font-size:14.44444465637207px; line-height:25.981481552124023px;
  • 925695531
  • 2012-11-26 22:09
  • 214
Free
car~~~yy car (I am yyc, I will control+c) + concern
Original
to
Fans
1
Like
0
    • Greatest Common divisor gcd.cpp
    • POJ 3612 Telephone Wire
    • Openjudge The great route of the King of Thieves (luoge.cpp/1000ms/128m)
    • Openjudge Travel (travel.cpp/1000ms/128m)
many other articles Online Courses

Utm_source=blog7 "target=" _blank ">" Live "Machine learning & Data Mining 7 weeks training--Wei Chi

"Package" System integration projects management project Manager smooth clearance--Xu Bong
  • folder
  • like to cancel like
  • Collection
  • share Weibo QQ
Collection Assistant Bad news report

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.