結果
| 問題 |
No.207 世界のなんとか
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-03-07 17:38:58 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 281 bytes |
| コンパイル時間 | 367 ms |
| コンパイル使用メモリ | 54,136 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-15 04:08:21 |
| 合計ジャッジ時間 | 1,150 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 19 |
ソースコード
#include <iostream>
using namespace std;
bool Is3(int x){
if(x==0)return false;
if(x%10==3)return true;
else return Is3(x/10);
}
int main(){
int A,B;
cin >> A >> B;
for(int n=A;n<=B;n++){
if(n%3==0 || Is3(n))cout << n << endl;
}
return 0;
}