結果
| 問題 |
No.756 チャンパーノウン定数 (1)
|
| コンテスト | |
| ユーザー |
monburan_0401
|
| 提出日時 | 2019-05-01 13:56:57 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 388 bytes |
| コンパイル時間 | 280 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-12-31 12:23:24 |
| 合計ジャッジ時間 | 1,795 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 16 WA * 4 |
ソースコード
# 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 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 = 0
else:
sho = 1
print(int(amari/2)+int(sho*5))
else:
print(int(sho/2)+1)
monburan_0401