結果
| 問題 |
No.207 世界のなんとか
|
| コンテスト | |
| ユーザー |
zaichu
|
| 提出日時 | 2017-11-26 00:18:51 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 732 bytes |
| コンパイル時間 | 4,746 ms |
| コンパイル使用メモリ | 216,872 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-27 10:16:40 |
| 合計ジャッジ時間 | 5,620 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 6 WA * 13 |
ソースコード
#include <bits/stdc++.h>
#include <boost/range/adaptor/filtered.hpp>
#include <boost/range/adaptor/strided.hpp>
#include <boost/range/adaptor/transformed.hpp>
#include <boost/range/algorithm.hpp>
#include <boost/range/irange.hpp>
#include <boost/range/numeric.hpp>
using namespace std;
template <typename T> T gcd(T x, T y) {
if (y == 0)
return x;
return gcd(y, x % y);
}
template <typename T> T lcm(T x, T y) {
if (x == 0 || y == 0)
return 0;
return x / gcd(x, y) * y;
}
int main() {
int A, B;
cin >> A >> B;
auto ans = boost::irange(A, B + 1) | boost::adaptors::filtered([](int i) {
return boost::count(to_string(i), '3') > 0;
});
for (int i : ans)
cout << i << endl;
}
zaichu