結果
問題 | No.701 ひとりしりとり |
ユーザー |
![]() |
提出日時 | 2020-02-11 20:39:29 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 263 bytes |
コンパイル時間 | 101 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-10-01 08:12:28 |
合計ジャッジ時間 | 4,163 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 WA * 1 |
ソースコード
N = int(input())L = ["b", "c", "d", "e", "f", "g", "h", "i", "j"]cnt = 0import itertoolsfor p in itertools.permutations(L):ans = "a"for s in p:ans += sans += "a"print(ans)cnt += 1if cnt == N-1:breakprint("an")