結果
| 問題 | No.207 世界のなんとか |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-09-02 15:30:46 |
| 言語 | C++23 (gcc 15.3.0 + boost 1.92.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 5,000 ms |
| + 429µs | |
| コード長 | 488 bytes |
| 記録 | |
| コンパイル時間 | 2,096 ms |
| コンパイル使用メモリ | 333,524 KB |
| 実行使用メモリ | 9,708 KB |
| 最終ジャッジ日時 | 2026-09-02 15:31:02 |
| 合計ジャッジ時間 | 3,439 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 19 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
using ll=long long;
ll a,b;
void solve()
{
cin>>a>>b;
for(ll i=a;i<=b;i++)
{
string s=to_string(i);
if(i%3==0||find(s.begin(),s.end(),'3')!=s.end())
{
cout<<s<<'\n';
}
}
}
int main()
{
ios::sync_with_stdio(false);cin.tie(NULL);
int tc=1;
// cin>>tc;
while(tc--)solve();
return 0;
}