fork download
  1.  
  2. process.stdin.resume();
  3. process.stdin.setEncoding('utf8');
  4.  
  5. // your code goes here
  6.  
  7. // https://g...content-available-to-author-only...s.com/themamasp/N-BH/2024/A-020001-2/01.jpg
  8. process.stdin.resume();
  9. process.stdin.setEncoding('utf8');
  10.  
  11. let folder = "Altair/A-020001"; // 폴더명
  12. let Thumbcount = 6; // 썸네일 수
  13. let Detailcount = 2; // 상세이미지 수
  14.  
  15. let top = "<img src='https://g...content-available-to-author-only...s.com/themamasp/notice/notice.jpg'/>";
  16. let bottom = "<img src='http://m...content-available-to-author-only...4.com/NOTICE/NOTICE_INFO.JPG'/>";
  17.  
  18. let fronttext = "<img src='https://g...content-available-to-author-only...s.com/themamasp/N-BH/2024/"+folder+"/";
  19. let backtext = ".jpg'><br/>";
  20.  
  21. /* 썸네일 */
  22. for (i = 1; i <= Thumbcount; i++) {
  23. var front = "https://g...content-available-to-author-only...s.com/themamasp/N-BH/2024/" + folder + "/";
  24. var back = ".jpg";
  25.  
  26. console.log(front + "0" + i + back);
  27. } //썸네일
  28.  
  29. console.log("----------------");
  30.  
  31. /* 상세 태그 */
  32. for (i = 1; i <= Thumbcount; i++) {
  33. var addimg =
  34. "<img src='https://g...content-available-to-author-only...s.com/themamasp/N-BH/2024/" + folder +
  35. "/0" + i + ".jpg'><br/>";
  36.  
  37. if (i == 1) {
  38. console.log(top + addimg);
  39. for (j = i + 1; j <= Detailcount; j++) {
  40. // console.log(i);
  41.  
  42. if (j == Detailcount) {
  43. backtext = ".jpg'>";
  44. console.log(fronttext + j + backtext);
  45. } else {
  46. console.log(fronttext + j + backtext);
  47. }
  48. } //for end
  49. console.log(bottom);
  50. } else if (Thumbcount > 0) {
  51. console.log(top + addimg);
  52.  
  53. for (j = 1; j <= Detailcount; j++) {
  54. // console.log(i);
  55.  
  56. if (j == Detailcount) {
  57. backtext = ".jpg'>";
  58. console.log(fronttext + j + backtext);
  59. } else {
  60. console.log(fronttext + j + backtext);
  61. }
  62.  
  63. //<img src='https://g...content-available-to-author-only...s.com/themamasp/A_List/2024/A-240404/20/01.jpg'
  64. } // for end
  65.  
  66. console.log(bottom);
  67. } //if end
  68. console.log("---------------");
  69. } // for end
Success #stdin #stdout 0.08s 35484KB
stdin
Standard input is empty
stdout
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'/>
---------------