0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

見せ算の復習(M-1GP 2023)

Last updated at Posted at 2024-12-21

2024年12月22日18:30~ M-1グランプリ放送

に先立ち、昨年のさや香のファイナルラウンドでやったネタ「見せ算」を復習しましょう!

演算規則1

  • 同じ数字を見せると0になる。($1見せ1=0$)
  • 異なる数字のときは、大きい数字が解となる。($1見せ2=2$)
  • $6見せ9=11$
    (お互いが生き別れの兄弟と勘違いして近づいて11に見えるため。)
  • $2見せ5=1.1$
    (お互いが生き別れの兄弟と勘違いして近寄るがよく見ると全然違うことに気付きびっくりして携帯「.」を落としてしまうため。)
  • $1見せ100=83$
    (あまりにも人数差がありもう逃げても仕方ないと1が腹をくくって100に立ち向かい17人倒すため。)

Pythonコード

def show(x, y):
    # 特別なルール
    if (x == 6 and y == 9) or (x == 9 and y == 6):
        return 11
    if (x == 2 and y == 5) or (x == 5 and y == 2):
        return 1.1
    if (x == 1 and y == 100) or (x == 100 and y == 1):
        return 83
    
    # 同じ数字の場合
    if x == y:
        return 0
    
    # 異なる数字の場合、大きい数字を返す
    return max(x, y)

# テスト
print(show(1, 1))   # 出力: 0
print(show(1, 2))   # 出力: 2
print(show(6, 9))   # 出力: 11
print(show(2, 5))   # 出力: 1.1
print(show(1, 100)) # 出力: 83
print(show(3, 7))   # 出力: 7

みたところ、0は単位元で、交換法則が成り立つ。

※補足

8見せ1や、3見せ2見せ8もあるらしい...2
はたして一般化できるのか、それともできないことを証明できるか?

  1. 見せ算とは (ミセザンとは) [単語記事] - ニコニコ大百科

  2. 見せ算(さや香のネタ) - 高精度計算サイト

0
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?