結果
問題 | No.207 世界のなんとか |
ユーザー |
![]() |
提出日時 | 2022-08-15 20:11:01 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 287 bytes |
コンパイル時間 | 3,155 ms |
コンパイル使用メモリ | 251,460 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-02 08:33:24 |
合計ジャッジ時間 | 3,872 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 19 |
ソースコード
#include <bits/stdc++.h>using namespace std;#define int long longsigned main(){int A,B;cin>>A>>B;for(int i=A;i<=B;i++){set<char> s;string t = to_string(i);for(int j=0;j<t.size();j++)s.insert(t[j]);if(s.count('3') || i%3 == 0) cout<<i<<endl;}}