結果
問題 | No.207 世界のなんとか |
ユーザー | masa |
提出日時 | 2015-05-15 23:11:29 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 326 bytes |
コンパイル時間 | 496 ms |
コンパイル使用メモリ | 61,764 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-09 10:10:28 |
合計ジャッジ時間 | 1,203 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 19 |
ソースコード
#include <iostream> #include <cstdio> #include <vector> #include <algorithm> #include <utility> #include <string> using namespace std; int main() { long long a, b; cin >> a >> b; for (long long i = a; i <= b; i++) { if (i % 3 == 0 || to_string(i).find('3') != string::npos) { cout << i << endl; } } return 0; }