-
Codeforces Round #465 (Div. 2) - A. Fafa and his Company코드포스(CodeForce) 2018. 8. 17. 17:32반응형
1. 문제
2. 알고리즘
키워드 - 구현
3. 코드
1234567891011121314151617181920#include <iostream>#include <algorithm> // min#include <math.h>using namespace std;int main() {int n; cin >> n;int sol = 0;for (int i = 1; i < n; i++) {// 방법의 수if (n % i == 0)sol++;}cout << sol << endl;return 0;}cs 반응형'코드포스(CodeForce)' 카테고리의 다른 글
Codeforces Round #457 (Div. 2) - A. Jamie and Alarm Snooze (0) 2018.08.17 Codeforces Round #449 (Div. 2) - A. Scarborough Fair (0) 2018.08.17 Codeforces Round #451 (Div. 2) - A. Rounding (0) 2018.08.17 Codeforces Round #432 (Div. 2, based on IndiaHacks Final Round 2017) - A. Arpa and a research in Mexican wave (0) 2018.08.17 Codeforces Round #453 (Div. 2) - A. Visiting a Friend (0) 2018.08.17