結果
問題 | No.207 世界のなんとか |
ユーザー |
![]() |
提出日時 | 2021-03-13 12:19:57 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 391 bytes |
コンパイル時間 | 1,866 ms |
コンパイル使用メモリ | 191,828 KB |
最終ジャッジ日時 | 2025-01-19 16:06:21 |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 19 |
ソースコード
#include <bits/stdc++.h>using namespace std;typedef long long ll;#define rep(i,n) for(int i=0;i<n;i++)typedef pair<int,int>P;int main(){ll a,b;cin>>a>>b;for(ll x=a;x<=b;x++){if(x%3==0){cout<<x<<endl;continue;}ll temp=x;while(temp>0){if(temp%10==3){cout<<x<<endl;break;}temp/=10;}}return 0;}