結果
| 問題 |
No.207 世界のなんとか
|
| コンテスト | |
| ユーザー |
btk
|
| 提出日時 | 2015-05-15 22:23:32 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 596 bytes |
| コンパイル時間 | 736 ms |
| コンパイル使用メモリ | 87,604 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-10-09 09:20:30 |
| 合計ジャッジ時間 | 1,416 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 19 |
ソースコード
#include<iostream>
#include<fstream>
#include<sstream>
#include<string>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<ctime>
#include<stack>
#include<queue>
#include<set>
#include<map>
#include<vector>
#include<list>
#include<algorithm>
#include<utility>
#include<complex>
#include<functional>
using namespace std;
#define LL long long
int main(void){
LL A, B;
cin >> A >> B;
for (LL i = A; i <= B; i++){
bool f = false;
if (i % 3 == 0)f = true;
string s = to_string(i);
for (auto& var : s){
if (var == '3')f = true;
}
if (f)cout << i << endl;
}
return(0);
}
btk