結果
| 問題 |
No.1157 Many Quotients easy
|
| ユーザー |
🍮かんプリン
|
| 提出日時 | 2020-08-13 17:07:38 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 2,000 ms |
| コード長 | 435 bytes |
| コンパイル時間 | 1,342 ms |
| コンパイル使用メモリ | 158,624 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-10-09 19:19:57 |
| 合計ジャッジ時間 | 2,177 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 22 |
ソースコード
/**
* @FileName a.cpp
* @Author kanpurin
* @Created 2020.08.13 17:07:33
**/
#include "bits/stdc++.h"
using namespace std;
typedef long long ll;
int main() {
int n;cin >> n;
int ans = 0;
for (int i = 1; i <= n; i++) {
if (i > 1) {
if (n/i != n/(i+1)) {
ans++;
}
}
else {
ans++;
}
}
cout << ans << endl;
return 0;
}
🍮かんプリン