Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
Tags
- 코드잇TIL
- 노트북램교체
- 삼성노트북
- 추상적 자료형
- GMK67
- solved.ac
- M1W
- 백준
- 긱바
- 스톡
- LinkedList
- 코딩공부
- 기계식키보드
- 자료구조
- 자바스크립트
- 코테
- JS
- 노트북SSD교체
- 코드잇
- 몬스긱
- 삼성노트북하판
- 브론즈
- unityC#
- 어도비
- Unity
- 오늘도코드잇
- 코테준비
- ADT
- JavaScript
- 시간복잡도
Archives
- Today
- Total
목록2024/10/01 (1)
SKYLIGHT STUDIO
[C++][1267] 핸드폰 요금
#include#include#include#include#includeusing namespace std;int call_num;int Y_f, M_f = 0;int calculate_Y(int a) { return 10 * (a / 30 + 1);}int calculate_M(int b) { return 15 * (b / 60 + 1);}int main(){ cin >> call_num; int* array = new int[call_num](); for (int i = 0; i > array[i]; M_f += calculate_M(array[i]); Y_f += calculate_Y(array[i]); } if (Y_f int* array = new int[];로 동적 배열을 선언해서 수행..
Computer Programming/Coding Test(C++)
2024. 10. 1. 15:48