結果
問題 |
No.508 超ゆとり教育
|
ユーザー |
![]() |
提出日時 | 2020-09-12 01:23:50 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 546 bytes |
コンパイル時間 | 1,689 ms |
コンパイル使用メモリ | 165,668 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-12-29 12:37:06 |
合計ジャッジ時間 | 2,346 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 6 WA * 1 |
ソースコード
// https://yukicoder.me/problems/no/508 #include <bits/stdc++.h> using namespace std; #define int long long #define REP(i, n) FOR(i, 0, n) #define FOR(i, s, n) for (int i = (s), i##_len = (n); i < i##_len; ++i) #define ALL(obj) (obj).begin(), (obj).end() #define ALLR(obj) (obj).rbegin(), (obj).rend() #define CEIL(a, b) ((a - 1) / b + 1) void solve() { int N; cin >> N; // M_PI * R * R = N を解く int ans = sqrt(N / 3); cout << ans << endl; } signed main() { cin.tie(nullptr)->sync_with_stdio(false); solve(); }