結果

問題 No.537 ユーザーID
ユーザー aaa
提出日時 2018-10-11 11:55:41
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 743 bytes
コンパイル時間 872 ms
コンパイル使用メモリ 96,908 KB
実行使用メモリ 10,496 KB
最終ジャッジ日時 2024-10-12 17:36:08
合計ジャッジ時間 4,821 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 6 WA * 9 TLE * 1 -- * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
#include <algorithm>
#include <iostream>
#include <string>
#include <vector>
#include <functional>
#include <map>
#include <iomanip>
#include <math.h> 
#include <stack>
#include <queue>
#include <bitset>
#include <cstdlib>
#include <tuple>
#include <cctype>
#include <ctype.h>
#include <set>
#include <sstream>

using namespace std;



int main() {
	long long i, j, k;
	long long n;

	cin >> n;

	long cnt = 0;

	for (i = 1; i <= n; i++) {
		if (n % i == 0) {
			if (i == (n / i)) {
				cnt++;
			}
			else {
				if ((to_string(i) + to_string(n / i)) == (to_string(i) + to_string(n / i))) {
					cnt++;
				}
				else {
					cnt += 2;
				}
			}

		}
	}


	cout << cnt << endl;










	getchar();
	getchar();
	return 0;
}
0