結果
問題 | No.756 チャンパーノウン定数 (1) |
ユーザー |
![]() |
提出日時 | 2019-05-01 13:59:25 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 33 ms / 2,000 ms |
コード長 | 397 bytes |
コンパイル時間 | 356 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-12-31 12:23:47 |
合計ジャッジ時間 | 1,942 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 |
ソースコード
# coding utf-8n = int(input())# 1 ~ 9 -> 1<=n<=9# 10 ~ 99 -> 10=n<=10+90*2# 100 ~ 999 -> 10+90*2<=n<=10+90*2+900*3if int(n/10) == 0:print(n)else:amari = int(n % 10)sho = int(n/10)if int(amari%2) != 0:if int(sho%2) != 0:sho = 0else:sho = 1print(int(amari/2)+int(sho*5))else:print(int(sho/2)+int(sho%2))