baekjoon/반복문Posts in Series
Showing 1~1 of 1 posts

A + B - 4 (10951)
아무것도 입력하지 않으면 반복문을 빠져나온다. Bash bashwhile :; do read a b if [ "$a$b" == "" ]; then break fi echo $((a + b)) done 1234567Node.js javascriptlet l

A + B - 5 (10952)
입력한 값이 0 0이면 반복문을 빠져나온다. Bash bashwhile :; do read a b if [ "$a$b" == "00" ]; then break fi echo $((a + b)) done 1234567while : == while true =

별 찍기 - 2 (2439)
빈 공간은 출력하지 않는 게 아니라 공백 한 칸을 출력해야 한다. Bash bashread n for ((i=1; i<=n; i++)); do o="" for ((j=0; j<i; j++)); do o+=\* done printf "%${

별 찍기 - 1 (2438)
이중 for문을 사용해야 한다. Bash bashread n for ((i=1; i<=n; i++)); do for ((j=0; j<i; j++)); do printf \* done echo done 1234567Bash에도 printf 명

A+B - 8 (11022)
이전 문제에서 출력 형식만 바꾸면 된다. Bash bashread n for ((i=0; i<n; i++)); do read a b echo Case \#$i: $a + $b = $((a + b)) done 12345C c#include <st

A+B - 7 (11021)
10950번 문제에서 출력 형식만 바꾸면 된다. Bash bashread n for ((i=0; i<n; i++)); do read a b echo Case \#$i: $((a + b)) done 12345C c#include <stdio.h>

빠른 A+B (15552)
입출력 시간을 줄여야 한다는데.. Bash bashread n for ((i=0; i<n; i++)); do read a b echo $((a + b)) done 12345...는 시간 초과. 무슨 방법을 써도 다 시간 초과다. C c#include &

코딩은 체육과목 입니다 (25314)
손 코딩..? Bash bashread n o="" for ((i=0; i<n; i+=4)); do o+="long " done echo $o"int" 123456i를 4씩 증가하는 방법 Node.js javascriptlet n = Number(requ

영수증 (25304)
입력받은 금액에서 물건 가격을 모두 뺀 후에 남은 액수가 0이면 일치. Bash bashread t read n for ((i=0; i<n; i++)); do read p m ((t -= p*m)) done [ $t == 0 ] && e

합 (8393)
팩토리얼의 덧셈 버전..? Bash bashread n s=0 for ((i=1; i<=n; i++)); do ((s += i)) done echo $s 123456C c#include <stdio.h> int main(void) { int

A+B - 3 (10950)
한 번에 출력하지 않아도 된다. Bash bashread t #for i in $(seq $t); do for ((i=0; i<t; i++)); do read a b echo $((a + b)) done 123456seq 명령어도 먹히지 않는다... C

구구단 (2739)
간단한 구구단 Bash bashread n for i in {1..9}; do echo $n \* $i = $((n * i)) done 1234C c#include <stdio.h> int main(void) { int n; scanf("%d", &