結果

問題 No.207 世界のなんとか
ユーザー Daylight
提出日時 2018-05-21 21:38:12
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
RE  
(最新)
AC  
(最初)
実行時間 -
コード長 1,186 bytes
コンパイル時間 652 ms
コンパイル使用メモリ 86,640 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-28 15:36:17
合計ジャッジ時間 2,086 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 14 RE * 5
権限があれば一括ダウンロードができます

ソースコード

diff #
プレゼンテーションモードにする

#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <string>
#include <sstream>
#include <complex>
#include <algorithm>
#include <functional>
#include <vector>
#include <stack>
#include <queue>
#include <set>
#include <map>
#include <cmath>
#include <cassert>
#include <fstream>
#define REP(i,n) for(int i=0;i<n;i++)
#define FOR(i,a,b) for(int i=a;i<b;i++)
#define SSTR( x ) static_cast< std::ostringstream & >( \
( std::ostringstream() << std::dec << x ) ).str()
#define ALL(s) (s).begin(), (s).end()
using namespace std;
typedef long long unsigned int llu;
typedef long long ll;
const string D_blue = "\x1b[36m";
const string D_green = "\x1b[32m";
const string D_red = "\x1b[31m";
const string D_yellow = "\x1b[33m";
const string Db_red = "\x1b[41m";
const string Db_yellow = "\x1b[43m";
const string D_end = "\x1b[39m";
const string Db_end = "\x1b[49m";
int main (){
long a,b;
while (cin >> a >> b){
for(long l = a ; l < b+1;l++){
if(l % 3 == 0)cout << l << endl;
else{
char c[10];
sprintf(c,"%ld",l);
if(find(c,c+10,'3') != c+10) cout << l << endl;
}
}
}
return 0;
}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
0