結果
| 問題 |
No.2947 Sing a Song
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-10-25 22:01:18 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 377 bytes |
| コンパイル時間 | 205 ms |
| コンパイル使用メモリ | 82,576 KB |
| 実行使用メモリ | 78,892 KB |
| 最終ジャッジ日時 | 2024-10-25 22:02:32 |
| 合計ジャッジ時間 | 4,806 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 10 WA * 15 |
ソースコード
N=int(input())
S,T=map(str,input().split())
A=map(int,input().split())
for a in A:
num=a//len(S)
while num>0:
if (a-num*len(S))%len(T)==0:
ans=[]
for _ in range(num):
ans.append(S)
for _ in range((a-num*len(S))//len(T)):
ans.append(T)
print(*ans)
break
num-=1