結果
| 問題 | No.1157 Many Quotients easy |
| ユーザー |
🍮かんプリン
|
| 提出日時 | 2020-08-13 17:07:38 |
| 言語 | C++11 (gcc 15.3.0 + boost 1.92.0) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 2,000 ms |
| + 716µs | |
| コード長 | 435 bytes |
| 記録 | |
| コンパイル時間 | 885 ms |
| コンパイル使用メモリ | 173,956 KB |
| 実行使用メモリ | 6,528 KB |
| 最終ジャッジ日時 | 2026-09-12 19:33:19 |
| 合計ジャッジ時間 | 2,769 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
}
🍮かんプリン