結果
問題 | No.207 世界のなんとか |
ユーザー |
![]() |
提出日時 | 2019-06-01 21:26:04 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 262 bytes |
コンパイル時間 | 435 ms |
コンパイル使用メモリ | 59,036 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-17 20:00:32 |
合計ジャッジ時間 | 1,080 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 19 |
ソースコード
#include <iostream> #include <algorithm> using namespace std; int main() { int a, b; cin >> a >> b; while (a<=b) { string c=to_string(a); if (a%3==0 || count(c.begin(), c.end(), '3')>0) { cout << a << endl; } a++; } return 0; }