結果
問題 |
No.207 世界のなんとか
|
ユーザー |
![]() |
提出日時 | 2024-03-07 01:36:41 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 331 bytes |
コンパイル時間 | 2,069 ms |
コンパイル使用メモリ | 193,500 KB |
最終ジャッジ日時 | 2025-02-20 01:29:25 |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 19 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) int main() { int a,b; cin>>a>>b; for(int i=a;i<=b;i++){ if(i%3==0){ cout<<i<<endl; continue; } string s=to_string(i); rep(j,s.size()){ if(s.at(j)=='3'){ cout<<i<<endl; break; } } } }