結果
問題 |
No.2038 Strange Arrange
|
ユーザー |
![]() |
提出日時 | 2025-06-12 20:45:18 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 266 bytes |
コンパイル時間 | 489 ms |
コンパイル使用メモリ | 81,792 KB |
実行使用メモリ | 52,096 KB |
最終ジャッジ日時 | 2025-06-12 20:45:20 |
合計ジャッジ時間 | 1,455 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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))