結果
問題 |
No.2038 Strange Arrange
|
ユーザー |
![]() |
提出日時 | 2025-06-12 15:52:46 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 266 bytes |
コンパイル時間 | 150 ms |
コンパイル使用メモリ | 82,448 KB |
実行使用メモリ | 53,048 KB |
最終ジャッジ日時 | 2025-06-12 15:52:50 |
合計ジャッジ時間 | 1,145 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 1 WA * 3 |
ソースコード
n = int(input()) if n <= 6: base = "123123" print(base[:n]) else: s = list("123123") next_digits = [4,5,6,7,8,9,1,2,3] idx = 0 while len(s) < n: s.append(str(next_digits[idx % len(next_digits)])) idx += 1 print(''.join(s))