結果
| 問題 |
No.207 世界のなんとか
|
| コンテスト | |
| ユーザー |
Lay_ec
|
| 提出日時 | 2015-05-15 23:31:25 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 576 bytes |
| コンパイル時間 | 665 ms |
| コンパイル使用メモリ | 82,636 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-10-09 10:10:36 |
| 合計ジャッジ時間 | 1,418 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 19 |
ソースコード
#include <iostream>
#include <string>
#include <vector>
#include <cmath>
#include <algorithm>
#include <cstdlib>
#include <ctime>
#include <cstdio>
#include <functional>
#include <set>
#include <sstream>
#include <map>
#include <queue>
#include <stack>
using namespace std;
int main()
{
unsigned long long A,B;
cin>>A>>B;
for(long long i=A;i<=B;i++){
if(i%3==0){
cout<<i<<endl;
continue;
}
stringstream ss;
ss<<i;
string s=ss.str();
for(int j=0;j<s.size();j++){
if(s[j]=='3'){
cout<<i<<endl;
break;
}
}
}
return 0;
}
Lay_ec