結果
問題 |
No.756 チャンパーノウン定数 (1)
|
ユーザー |
![]() |
提出日時 | 2019-05-01 13:53:16 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 388 bytes |
コンパイル時間 | 293 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-12-31 12:23:10 |
合計ジャッジ時間 | 2,005 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 10 WA * 10 |
ソースコード
# 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)