当前位置: 代码迷 >> 综合 >> 『杭电1353』Exact Change Only
  详细解决方案

『杭电1353』Exact Change Only

热度:29   发布时间:2024-01-30 12:54:53.0

Problem Description

Boudreaux reached over and shook awake Thibodeaux, who had dozed off somewhere in New Mexico. "Where we at?" Thibodeaux groggily yawned.

"Not in Vegas, I gua-ran-tee, but could you get my knapsack?" Boudreaux asked, gesturing to the worn, leather backpack in the back seat of their cherry red Ford Miata.

"Why, is there a problem?"

"Just hand me my knapsack, problem or not."

Thibodeaux complied, glancing up as Boudreaux slowed the car to a stop in a line of vehicles approaching a toll booth. "1.65??Exactchangeonly,"Thibodeauxreadtheyellowsignonthefrontofasmallwoodenbuildingoccupiedbyalonetollboothoperator."Ihavetoget1.65 in exact change?" Thibodeaux asked, digging through the knapsack, "all I have are ten quarters, four dimes, and three pennies. I don't have any nickels . . ."

"Just give me five of the quarters and the four dimes," Boudreaux replie

  相关解决方案