結果

問題 No.83 最大マッチング
ユーザー rocoderrocoder
提出日時 2017-05-11 04:26:33
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
(最新)
AC  
(最初)
実行時間 -
コード長 134 bytes
コンパイル時間 237 ms
コンパイル使用メモリ 10,640 KB
実行使用メモリ 8,280 KB
最終ジャッジ日時 2023-10-13 10:28:59
合計ジャッジ時間 1,985 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,844 KB
testcase_01 AC 15 ms
7,808 KB
testcase_02 AC 15 ms
7,828 KB
testcase_03 AC 15 ms
7,832 KB
testcase_04 AC 15 ms
7,840 KB
testcase_05 AC 15 ms
7,764 KB
testcase_06 AC 15 ms
7,904 KB
testcase_07 AC 15 ms
7,860 KB
testcase_08 AC 15 ms
7,800 KB
testcase_09 RE -
testcase_10 RE -
testcase_11 RE -
testcase_12 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input ())
Q=N//2
R=N%2
M=0
T=1
for i in range(Q):
    M+=T
    T*=10
T//=10
T*=7
if R==1:
    M-=1
    M//=10
    M+=T
print (M)
0