結果

問題 No.2038 Strange Arrange
ユーザー lam6er
提出日時 2025-04-16 00:27:56
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 279 bytes
コンパイル時間 316 ms
コンパイル使用メモリ 81,784 KB
実行使用メモリ 53,436 KB
最終ジャッジ日時 2025-04-16 00:29:29
合計ジャッジ時間 1,494 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 1 WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
first_half_length = (n + 1) // 2
second_half_length = n - first_half_length

first_half = [str(i) for i in range(1, first_half_length + 1)]
second_half = [str(i) for i in range(1, second_half_length + 1)]

result = ''.join(first_half + second_half)
print(result)
0