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