結果
問題 |
No.207 世界のなんとか
|
ユーザー |
|
提出日時 | 2019-03-19 01:35:58 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 490 bytes |
コンパイル時間 | 1,776 ms |
コンパイル使用メモリ | 157,696 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-20 01:07:21 |
合計ジャッジ時間 | 2,708 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 19 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define REP(i,N) for(i=0;i<N;i++) typedef long long ll; typedef pair<int, int> P; typedef struct{ int first; int second; int third; }T; //昇順 bool comp_Se(T& l, T& r){ return l.second < r.second; } bool number3(ll n){ while(n!=0){ if(n%10 == 3) return true; n/=10; } return false; } int main(void){ ll A,B; cin >> A >> B; for(ll i = A; i<=B;i++){ if(i%3==0 || number3(i))cout << i <<endl; } return 0; }