結果
| 問題 |
No.207 世界のなんとか
|
| コンテスト | |
| ユーザー |
cww
|
| 提出日時 | 2016-07-27 00:23:12 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 5,000 ms |
| コード長 | 433 bytes |
| コンパイル時間 | 1,651 ms |
| コンパイル使用メモリ | 167,232 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-06 17:12:40 |
| 合計ジャッジ時間 | 2,797 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 19 |
ソースコード
#include <bits/stdc++.h>
#define REP(i,n) for(int i=0; i<(n); i++)
#define REP2(i,x,n) for(int i=x; i<(n); i++)
using namespace std;
struct CWW{CWW(){ios::sync_with_stdio(false);cin.tie(0);}}cww;
int main()
{
int A, B;
cin >> A >> B;
for( int i = A; i<= B; i++ )
{
string N = to_string( i );
if( i % 3 == 0 )
{
cout << i << endl;
}
else if( N.find('3') != string::npos )
{
cout << i << endl;
}
}
return 0;
}
cww