結果
問題 |
No.207 世界のなんとか
|
ユーザー |
![]() |
提出日時 | 2017-03-07 23:01:00 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 313 bytes |
コンパイル時間 | 709 ms |
コンパイル使用メモリ | 65,408 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-23 18:01:50 |
合計ジャッジ時間 | 1,358 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 19 |
ソースコード
#include<iostream> using namespace std; int main(){ int a,b; cin >> a >> b; int i; string s; for(i=a;i<=b;i++){ s = to_string(i); if (i%3==0) { cout << i << '\n'; } else if (s.find('3')!=string::npos){ // 3の文字を含んでいる? cout << i << '\n'; } } return 0; }