結果
問題 |
No.3036 Nauclhlt型文字列
|
ユーザー |
![]() |
提出日時 | 2025-02-28 23:17:13 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 48 ms / 2,000 ms |
コード長 | 242 bytes |
コンパイル時間 | 427 ms |
コンパイル使用メモリ | 82,600 KB |
実行使用メモリ | 69,732 KB |
最終ジャッジ日時 | 2025-02-28 23:17:15 |
合計ジャッジ時間 | 1,917 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge6 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 15 |
ソースコード
# 偶数ならYes..? n = int(input()) s = input() if n%2: exit(print('No')) print('Yes') null = [] acht = [] for i in range(n): if i%2 == 0: null.append(s[i]) else: acht.append(s[i]) print("".join(null),"".join(acht))