택시 , 2577 바이트
Go to Post Office:w 1 l 1 r 1 l.Pickup a passenger going to The Babelfishery.Go to The Babelfishery:s 1 l 1 r.Pickup a passenger going to Sunny Skies Park.Go to Sunny Skies Park:n 1 l 1 l 1 r.[a]Go to Heisenberg's:n 1 r 1 r 3 r.Pickup a passenger going to Cyclone.Go to Go More:n 1 l 3 l 3 l.Go to Starchild Numerology:e 2 r.62 is waiting at Starchild Numerology.Pickup a passenger going to Cyclone.Go to Cyclone:e 1 l 2 r.Pickup a passenger going to What's The Difference.Pickup a passenger going to Divide and Conquer.Pickup a passenger going to Divide and Conquer.Go to Divide and Conquer:n 2 r 2 r 1 r.Pickup a passenger going to Trunkers.Go to Trunkers:e 1 r 3 r 1 l.Pickup a passenger going to Multiplication Station.Go to Cyclone:w 2 r.Pickup a passenger going to Multiplication Station.Go to Multiplication Station:s 1 l 2 r 4 l.Pickup a passenger going to What's The Difference.Go to What's The Difference:n 2 l 1 r 3 l.Pickup a passenger going to Addition Alley.Go to Starchild Numerology:e 1 r 3 l 2 r.1 is waiting at Starchild Numerology.63 is waiting at Starchild Numerology.Pickup a passenger going to Addition Alley.Pickup a passenger going to The Underground.Go to Addition Alley:e 1 l 2 r 3 r 1 r.Pickup a passenger going to Joyless Park.Go to Writer's Depot:n 1 l 1 l.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789- is waiting at Writer's Depot.Pickup a passenger going to Chop Suey.Go to Joyless Park:n 3 r 2 r 2 l.Go to Chop Suey:w 1 r 1 r 1 l.[b]Pickup a passenger going to Narrow Path Park.Go to Narrow Path Park:n 1 l 1 r 1 l.Go to The Underground:e 1 r.Switch to plan "c" if no one is waiting.Pickup a passenger going to The Underground.Go to Fueler Up:s.Go to Chop Suey:n 3 r 1 l.Switch to plan "b".[c]Go to Joyless Park:n 1 r.Pickup a passenger going to The Underground.Go to Narrow Path Park:w 1 r 3 l.[d]Pickup a passenger going to KonKat's.Go to KonKat's:e 1 r.Pickup a passenger going to KonKat's.Go to The Underground:s.Switch to plan "e" if no one is waiting.Pickup a passenger going to The Underground.Go to Fueler Up:s.Go to Narrow Path Park:n 4 l.Switch to plan "d".[e]Go to KonKat's:n.Pickup a passenger going to Riverview Bridge.Go to Riverview Bridge:n 1 l.Go to Narrow Path Park:e 1 l 1 r.Pickup a passenger going to Post Office.Go to Post Office:e 1 r 4 r 1 l.Go to Sunny Skies Park:s 1 r 1 l 1 r.Pickup a passenger going to The Underground.Go to The Underground:n 1 r 1 r 2 r.Switch to plan "f" if no one is waiting.Pickup a passenger going to Sunny Skies Park.Go to Sunny Skies Park:n 3 l 2 l 1 l.Switch to plan "a".[f]
온라인으로 사용해보십시오!
택시입니다 슈퍼 이 만들어 없습니다하지만 당신은 그것을 할 수 있습니다! 골프화되지 않은 버전 아래에서 무슨 일이 일어나고 있는지 설명하려고 노력할 것입니다.
Go to Post Office: west 1st left 1st right 1st left.
Pickup a passenger going to The Babelfishery.
Go to The Babelfishery: south 1st left 1st right.
Pickup a passenger going to Sunny Skies Park.
Go to Sunny Skies Park: north 1st left 1st left 1st right.
[a]
Go to Heisenberg's: north 1st right 1st right 3rd right.
Pickup a passenger going to Cyclone.
Go to Go More: north 1st left 3rd left 3rd left.
Go to Starchild Numerology: east 2nd right.
62 is waiting at Starchild Numerology.
Pickup a passenger going to Cyclone.
Go to Cyclone: east 1st left 2nd right.
Pickup a passenger going to What's The Difference.
Pickup a passenger going to Divide and Conquer.
Pickup a passenger going to Divide and Conquer.
Go to Divide and Conquer: north 2nd right 2nd right 1st right.
Pickup a passenger going to Trunkers.
Go to Trunkers: east 1st right 3rd right 1st left.
Pickup a passenger going to Multiplication Station.
Go to Cyclone: west 2nd right.
Pickup a passenger going to Multiplication Station.
Go to Multiplication Station: south 1st left 2nd right 4th left.
Pickup a passenger going to What's The Difference.
Go to What's The Difference: north 2nd left 1st right 3rd left.
Pickup a passenger going to Addition Alley.
Go to Starchild Numerology: east 1st right 3rd left 2nd right.
1 is waiting at Starchild Numerology.
63 is waiting at Starchild Numerology.
Pickup a passenger going to Addition Alley.
Pickup a passenger going to The Underground.
Go to Addition Alley: east 1st left 2nd right 3rd right 1st right.
Pickup a passenger going to Joyless Park.
Go to Writer's Depot: north 1st left 1st left.
ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789- is waiting at Writer's Depot.
Pickup a passenger going to Chop Suey.
Go to Joyless Park: north 3rd right 2nd right 2nd left.
Go to Chop Suey: west 1st right 1st right 1st left.
[b]
Pickup a passenger going to Narrow Path Park.
Go to Narrow Path Park: north 1st left 1st right 1st left.
Go to The Underground: east 1st right.
Switch to plan "c" if no one is waiting.
Pickup a passenger going to The Underground.
Go to Fueler Up: south.
Go to Chop Suey: north 3rd right 1st left.
Switch to plan "b".
[c]
Go to Joyless Park: north 1st right.
Pickup a passenger going to The Underground.
Go to Narrow Path Park: west 1st right 3rd left.
[d]
Pickup a passenger going to KonKat's.
Go to KonKat's: east 1st right.
Pickup a passenger going to KonKat's.
Go to The Underground: south.
Switch to plan "e" if no one is waiting.
Pickup a passenger going to The Underground.
Go to Fueler Up: south.
Go to Narrow Path Park: north 4th left.
Switch to plan "d".
[e]
Go to KonKat's: north.
Pickup a passenger going to Riverview Bridge.
Go to Riverview Bridge: north 1st left.
Go to Narrow Path Park: east 1st left 1st right.
Pickup a passenger going to Post Office.
Go to Post Office: east 1st right 4th right 1st left.
Go to Sunny Skies Park: south 1st right 1st left 1st right.
Pickup a passenger going to The Underground.
Go to The Underground: north 1st right 1st right 2nd right.
Switch to plan "f" if no one is waiting.
Pickup a passenger going to Sunny Skies Park.
Go to Sunny Skies Park: north 3rd left 2nd left 1st left.
Switch to plan "a".
[f]
시작 : stdin
가져 오기 stdin 값을 텍스트로 가져 와서 숫자로 변환 한 다음 대기 위치로 옮깁니다.
계획 A 1 부 : 임의의 정수
얻기 1-62 임의의 정수를 얻은 다음 62
숫자 로 구합니다 . 임의의 정수와 62
나중에 필요하므로 중복합니다 . 당신은 우리가 끝낼 수 있도록 한 번에 3 명의 승객을 수행 할 수 있습니다 rand
, rand
하고 62
. (다른 하나는 62
이동 분할 우리가 돌아올 때까지. 기다릴 것) rand
에 의해을 62
하고 정수를 얻을 수있는 결과를 자릅니다. 다른 사본을 62
구하여 나누기에서 잘린 정수로 곱하십시오. 마지막으로의 첫 번째 사본에서 제품을 빼십시오 rand
. 이것은 우리에게 숫자 0-61을 제공합니다. 이제 픽업 a로 돌아가서 1
결과에 추가하여 숫자 1-62를 얻습니다. 그렇습니다. 많은 텍스트 줄이 모두 있습니다 mod(rand(),62)+1
.
파트 A 계획 2 :
유효한 모든 문자와 원하지 않는 끝에 문자열 을 선택합니다 (나중에 자세히 설명). 63
우리는이 문자열 길이 앞에서 경기를 집어 들었다. Su 수이에게 가져가 개별 승객으로 나눕니다.
계획 B : 문자를
하나씩 선택할 수 있도록 배열을 이동하고 모든 문자를 좁은 경로 공원으로 이동하십시오. 사용 가능한 유일한 스택이며 남은 승객을 방해하지 않는 유일한 방법입니다. Townsburg의 다른 모든 것은 FIFO이므로 전체 루프의 모든 반복마다 돌아가서 모든 승객을 정리해야합니다. 이런 식으로, 나는 단지 공원에 그들을 남겨 둘 수 있고 그들은 매번 63 명의 새로운 캐릭터에 의해 방해 받게 될 것입니다. 가장 먼저 탈출하지 못할A
가능성이 높습니다 .
계획 C : 캐릭터 선택 준비
이것은 실제로 계획 D에있을 필요가없는 몇 정거장입니다. 택시를 준비 할 때 재배치하십시오.
계획 D : 우리는 모든 문자 가져 오기 해달라고 합니다
, 우리는 결과에서 카운트 다운으로 집어 들고 문자을 연결 유지 "배열을"반전의 첫 번째 문자로 시작 (이것은 우리가 원하지 않는 63 문자입니다) mod
기능 당신이 0에 도달하면, 다음 문자는 당신이 원하는 것입니다.
계획 E : 원하지 않는 것을 익사하고 선택한 것을 반환하십시오.
"[P] 승객은 리버뷰 브릿지에서 내려온 것이 항상 옆으로 넘어 강으로 떨어질 것 같습니다 ..."글쎄, 그것은 연결된 패배자 무리를 제거합니다. 다음 캐릭터를 들고 stdout으로 보내십시오. 마지막으로 지금까지 인쇄 한 문자 수를 확인하겠습니다. 오래 전에 떠난 stdin 값을 찾기 위해 Sunny Skyes로 돌아갑니다. 하나를 빼고 결과가 0보다 크면 다시 보내서 계획 A에서 다시 시작하십시오.