結果
問題 |
No.207 世界のなんとか
|
ユーザー |
![]() |
提出日時 | 2016-01-17 22:01:59 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 564 bytes |
コンパイル時間 | 647 ms |
コンパイル使用メモリ | 75,980 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-19 20:21:10 |
合計ジャッジ時間 | 1,230 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 9 WA * 10 |
ソースコード
#include <iostream> #include <sstream> #include <math.h> #include <stack> #include <set> #include <algorithm> #include <string> #include <queue> #include <stack> #include <map> #include <cstdio> #include <vector> using namespace std; #define INF (1 << 30) #define INFLL (1LL << 60) int main() { int a,b; cin >> a >> b; for(int i = a;i < b;i++){ if(i % 3 == 0) cout << i << endl; else{ stringstream ss; ss << i; for(int j = 0;j < ss.str().size();j++){ if(ss.str()[j] == '3') { cout << i << endl; break; } } } } return 0; }