結果
| 問題 | No.2947 Sing a Song |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-10-25 22:01:18 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 377 bytes |
| 記録 | |
| コンパイル時間 | 272 ms |
| コンパイル使用メモリ | 85,248 KB |
| 実行使用メモリ | 83,444 KB |
| 最終ジャッジ日時 | 2026-05-05 20:52:57 |
| 合計ジャッジ時間 | 4,680 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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