結果
問題 |
No.701 ひとりしりとり
|
ユーザー |
|
提出日時 | 2018-07-06 11:11:48 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 154 ms / 2,000 ms |
コード長 | 284 bytes |
コンパイル時間 | 340 ms |
コンパイル使用メモリ | 7,040 KB |
実行使用メモリ | 15,616 KB |
最終ジャッジ日時 | 2024-07-01 02:44:09 |
合計ジャッジ時間 | 1,410 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 12 |
ソースコード
#!/usr/bin/python2 # -*- coding: utf-8 -*- # † n = int(raw_input()) def f(i): res = 'a' + bin(i)[2:].zfill(18) if i == n-1: res += 'n' else: res += 'a' return res.replace('0', 'x').replace('1', 'y') a = [f(i) for i in xrange(n)] print '\n'.join(a)