結果

問題 No.756 チャンパーノウン定数 (1)
ユーザー monburan_0401
提出日時 2019-05-01 13:42:47
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 293 bytes
コンパイル時間 248 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-12-31 12:22:26
合計ジャッジ時間 2,064 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 2
other AC * 5 WA * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

# coding utf-8

n = int(input())

# 1 ~ 9 -> 1<=n<=9
# 10 ~ 99 -> 10=n<=10+90*2
# 100 ~ 999 -> 10+90*2<=n<=10+90*2+900*3

if n/10 == 0:
    print(n)
else:
    amari = n % 10
    sho = int(n/10)
    if amari%2 != 0:
        print(int(amari/2)+int(sho/2*5))
    else:
        print(int(sho/2)+1)
0