文远知行β
http://acm.hdu.edu.cn/contests/contest_showproblem.php?pid=1001&cid=832
Problem Description
“上一個(gè)國(guó)家的人真的是好心呢。”
在山脈群之間,是一片寬廣平坦的大地。被草木覆蓋的綠意,順著灰色的山間延伸。
摩托車(注:兩輪的車子,尤其是指不在天空飛行的交通工具)飛馳在道路上。
騎士年約十五、六歲,有著一頭黑色短發(fā)及炯炯有神的臉龐。
她身穿黑色夾克,腰際系著一條粗皮帶。右腿懸掛著左輪手槍式的掌中說服者(注:說服者是槍械。這里是指手槍)的槍袋。她腰際后面還掛著另一把自動(dòng)式說服者。
"奇諾,聽說只要n個(gè)連續(xù)時(shí)刻的速度都嚴(yán)格大于零,摩托車就能飛向月球上面誒”
身為摩托車的艾魯梅斯這么興奮是因?yàn)樵谏蟼€(gè)國(guó)家改裝了引擎。
之前拜訪的國(guó)家盛產(chǎn)自動(dòng)駕駛車輛,其中“文遠(yuǎn)知行”公司是其中的佼佼者,在自動(dòng)駕駛領(lǐng)域是數(shù)一數(shù)二的存在。
“那家公司的工程師給你改裝了引擎吧,聽說能一直駕駛飛到月球?”
“如果奇諾你一直加大油門啦,聽說能加速到11.2km/s呢?!?br /> “一般的摩托車承受不了吧,再說他們剛好把你的儀表盤換成了電子表盤,我不是很習(xí)慣?!?br /> “沒關(guān)系啦,只要一點(diǎn)點(diǎn)勇氣,什么都做得成。”
艾魯梅斯說完,奇諾索性就把油門踩到底,頓時(shí)摩托車如同違背了其本身的定義一樣,在紫紅色的天空下朝著月亮畫出了航跡云。
現(xiàn)在給出一個(gè)n,表示在n個(gè)連續(xù)的時(shí)刻下艾魯梅斯的速度。
如果艾魯梅斯能飛往月球就輸出“WeRide.ai”,否則輸出“Transform Mobility With Autonomous Driving”
?
?
Input
第一行輸入一個(gè)整數(shù)T(T<=10),代表有T組樣例
對(duì)于每組樣例:
第一行輸入一個(gè)整數(shù)n,(1<=n<=100),代表n個(gè)連續(xù)時(shí)刻的速度。
第二行輸入n個(gè)整數(shù)ai(0<=ai<=100),代表該時(shí)刻艾魯梅斯的速度。
?
?
Output
對(duì)于每組樣例:
如果艾魯梅斯能飛往月球就輸出“WeRide.ai”(沒有引號(hào));
否則輸出“Transform Mobility With Autonomous Driving”(沒有引號(hào))。
?
?
Sample Input
?2 5 1 2 3 4 5 5 1 2 3 4 0
?
?
Sample Output
?WeRide.ai Transform Mobility With Autonomous Driving
/* *@Author: STZG *@Language: C++ */ #include <bits/stdc++.h> #include<iostream> #include<algorithm> #include<cstdlib> #include<cstring> #include<cstdio> #include<string> #include<vector> #include<bitset> #include<queue> #include<deque> #include<stack> #include<cmath> #include<list> #include<map> #include<set> //#define DEBUGusing namespace std; typedef long long ll; const int N=10000; const double PI = acos(-1.0); const double EXP = 1E-8; const int INF = 0x3f3f3f3f; int t,n,m; int a[N]; int main() { #ifdef DEBUGfreopen("input.in", "r", stdin);//freopen("output.out", "w", stdout); #endifscanf("%d",&t);while(t--){scanf("%d",&n);for(int i=1;i<=n;i++){scanf("%d",&a[i]);}int flag=1;for(int i=1;i<=n;i++){if(a[i]==0)flag=0;}if(flag)cout<<"WeRide.ai"<<endl;elsecout<<"Transform Mobility With Autonomous Driving"<<endl;}//cout << "Hello world!" << endl;return 0; }?
總結(jié)