結果
| 問題 |
No.207 世界のなんとか
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-05-21 18:20:16 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 677 bytes |
| コンパイル時間 | 2,079 ms |
| コンパイル使用メモリ | 160,068 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-10-09 10:18:16 |
| 合計ジャッジ時間 | 2,593 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 19 |
ソースコード
//C++14 template AOJ compare:
#include<bits/stdc++.h>
#include<cstdio>
using namespace std;
typedef long long lint;
typedef long double ldouble;
typedef vector<int> vint;
typedef vector<vint> lvint;
typedef vector<double> vdouble;
#define REP(a,b,c) for(a=b;a<c;a++)
#define rep(x,y,z) for(x=y:x=z;x--)
#define PI 3.14159265359
#define MD 1000000007
#define why(a,b) while(cin>>a>>b)
#define whyt(q) while(cin>>q)
int main(){
lint a,b;
cin>>a>>b;
string s;
for(;a<=b;a++){
if(a%3==0){
cout<<a<<"\n";
continue;
}
stringstream strst;
strst<<a;
strst>>s;
for(lint i=0;i<s.size();i++){
if(s[i]=='3'){
cout<<s<<"\n";
break;
}
}
}
}