結果
問題 |
No.756 チャンパーノウン定数 (1)
|
ユーザー |
![]() |
提出日時 | 2019-05-01 13:41:33 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 273 bytes |
コンパイル時間 | 242 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-12-31 12:22:19 |
合計ジャッジ時間 | 1,803 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 20 |
ソースコード
# 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 = n/10 if amari%2 != 0: print(amari/2+sho/2*5) else: print(sho/2+1)