結果
| 問題 | No.207 世界のなんとか |
| コンテスト | |
| ユーザー |
めうめう🎒
|
| 提出日時 | 2016-01-17 22:03:28 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 565 bytes |
| 記録 | |
| コンパイル時間 | 702 ms |
| コンパイル使用メモリ | 75,968 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-09 10:42:25 |
| 合計ジャッジ時間 | 1,373 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 19 |
ソースコード
#include <iostream>
#include <sstream>
#include <math.h>
#include <stack>
#include <set>
#include <algorithm>
#include <string>
#include <queue>
#include <stack>
#include <map>
#include <cstdio>
#include <vector>
using namespace std;
#define INF (1 << 30)
#define INFLL (1LL << 60)
int main() {
int a,b;
cin >> a >> b;
for(int i = a;i <= b;i++){
if(i % 3 == 0) cout << i << endl;
else{
stringstream ss;
ss << i;
for(int j = 0;j < ss.str().size();j++){
if(ss.str()[j] == '3') {
cout << i << endl;
break;
}
}
}
}
return 0;
}
めうめう🎒