process.stdin.resume(); process.stdin.setEncoding('utf8'); // your code goes here // https://g...content-available-to-author-only...s.com/themamasp/N-BH/2024/A-020001-2/01.jpg process.stdin.resume(); process.stdin.setEncoding('utf8'); let folder = "Altair/A-020001"; // 폴더명 (=관리자코드) let Thumbcount = 6; // 썸네일 수 let Detailcount = 2; // 상세이미지 수 let top = "<img src='https://g...content-available-to-author-only...s.com/themamasp/notice/notice.jpg'/>"; let bottom = "<img src='http://m...content-available-to-author-only...4.com/NOTICE/NOTICE_INFO.JPG'/>"; let fronttext = "<img src='https://g...content-available-to-author-only...s.com/themamasp/N-BH/2024/"+folder+"/"; let backtext = ".jpg'><br/>"; /* 썸네일 */ for (i = 1; i <= Thumbcount; i++) { var front = "https://g...content-available-to-author-only...s.com/themamasp/N-BH/2024/" + folder + "/"; var back = ".jpg"; console.log(front + "0" + i + back); } //썸네일 console.log("----------------"); /* 상세 태그 */ for (i = 1; i <= Thumbcount; i++) { var addimg = "<img src='https://g...content-available-to-author-only...s.com/themamasp/N-BH/2024/" + folder + "/0" + i + ".jpg'><br/>"; if (i == 1) { console.log(top + addimg); for (j = i + 1; j <= Detailcount; j++) { // console.log(i); if (j == Detailcount) { backtext = ".jpg'>"; console.log(fronttext + j + backtext); } else { console.log(fronttext + j + backtext); } } //for end console.log(bottom); } else if (Thumbcount > 0) { console.log(top + addimg); for (j = 1; j <= Detailcount; j++) { // console.log(i); if (j == Detailcount) { backtext = ".jpg'>"; console.log(fronttext + j + backtext); } else { console.log(fronttext + j + backtext); } //<img src='https://g...content-available-to-author-only...s.com/themamasp/A_List/2024/A-240404/20/01.jpg' } // for end console.log(bottom); } //if end console.log("---------------"); } // for end
Standard input is empty
https://g...content-available-to-author-only...s.com/themamasp/N-BH/2024/Altair/A-020001/01.jpg https://g...content-available-to-author-only...s.com/themamasp/N-BH/2024/Altair/A-020001/02.jpg https://g...content-available-to-author-only...s.com/themamasp/N-BH/2024/Altair/A-020001/03.jpg https://g...content-available-to-author-only...s.com/themamasp/N-BH/2024/Altair/A-020001/04.jpg https://g...content-available-to-author-only...s.com/themamasp/N-BH/2024/Altair/A-020001/05.jpg https://g...content-available-to-author-only...s.com/themamasp/N-BH/2024/Altair/A-020001/06.jpg ---------------- <img src='https://g...content-available-to-author-only...s.com/themamasp/notice/notice.jpg'/><img src='https://g...content-available-to-author-only...s.com/themamasp/N-BH/2024/Altair/A-020001/01.jpg'><br/> <img src='https://g...content-available-to-author-only...s.com/themamasp/N-BH/2024/Altair/A-020001/2.jpg'> <img src='http://m...content-available-to-author-only...4.com/NOTICE/NOTICE_INFO.JPG'/> --------------- <img src='https://g...content-available-to-author-only...s.com/themamasp/notice/notice.jpg'/><img src='https://g...content-available-to-author-only...s.com/themamasp/N-BH/2024/Altair/A-020001/02.jpg'><br/> <img src='https://g...content-available-to-author-only...s.com/themamasp/N-BH/2024/Altair/A-020001/1.jpg'> <img src='https://g...content-available-to-author-only...s.com/themamasp/N-BH/2024/Altair/A-020001/2.jpg'> <img src='http://m...content-available-to-author-only...4.com/NOTICE/NOTICE_INFO.JPG'/> --------------- <img src='https://g...content-available-to-author-only...s.com/themamasp/notice/notice.jpg'/><img src='https://g...content-available-to-author-only...s.com/themamasp/N-BH/2024/Altair/A-020001/03.jpg'><br/> <img src='https://g...content-available-to-author-only...s.com/themamasp/N-BH/2024/Altair/A-020001/1.jpg'> <img src='https://g...content-available-to-author-only...s.com/themamasp/N-BH/2024/Altair/A-020001/2.jpg'> <img src='http://m...content-available-to-author-only...4.com/NOTICE/NOTICE_INFO.JPG'/> --------------- <img src='https://g...content-available-to-author-only...s.com/themamasp/notice/notice.jpg'/><img src='https://g...content-available-to-author-only...s.com/themamasp/N-BH/2024/Altair/A-020001/04.jpg'><br/> <img src='https://g...content-available-to-author-only...s.com/themamasp/N-BH/2024/Altair/A-020001/1.jpg'> <img src='https://g...content-available-to-author-only...s.com/themamasp/N-BH/2024/Altair/A-020001/2.jpg'> <img src='http://m...content-available-to-author-only...4.com/NOTICE/NOTICE_INFO.JPG'/> --------------- <img src='https://g...content-available-to-author-only...s.com/themamasp/notice/notice.jpg'/><img src='https://g...content-available-to-author-only...s.com/themamasp/N-BH/2024/Altair/A-020001/05.jpg'><br/> <img src='https://g...content-available-to-author-only...s.com/themamasp/N-BH/2024/Altair/A-020001/1.jpg'> <img src='https://g...content-available-to-author-only...s.com/themamasp/N-BH/2024/Altair/A-020001/2.jpg'> <img src='http://m...content-available-to-author-only...4.com/NOTICE/NOTICE_INFO.JPG'/> --------------- <img src='https://g...content-available-to-author-only...s.com/themamasp/notice/notice.jpg'/><img src='https://g...content-available-to-author-only...s.com/themamasp/N-BH/2024/Altair/A-020001/06.jpg'><br/> <img src='https://g...content-available-to-author-only...s.com/themamasp/N-BH/2024/Altair/A-020001/1.jpg'> <img src='https://g...content-available-to-author-only...s.com/themamasp/N-BH/2024/Altair/A-020001/2.jpg'> <img src='http://m...content-available-to-author-only...4.com/NOTICE/NOTICE_INFO.JPG'/> ---------------