結果
問題 | No.207 世界のなんとか |
ユーザー |
![]() |
提出日時 | 2020-03-18 15:59:11 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 5,000 ms |
コード長 | 367 bytes |
コンパイル時間 | 1,799 ms |
コンパイル使用メモリ | 170,388 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-12-14 02:15:14 |
合計ジャッジ時間 | 2,371 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 19 |
ソースコード
#include <bits/stdc++.h>using namespace std;int main(){long long A, B;cin >> A >> B;vector<int> ans;for( long long n = A; n <= B; n++ ) {char c[16];sprintf( c, "%lld", n );string s = string( c );if( n % 3 == 0 || s.find( '3' ) != string::npos ) ans.push_back( n );;}for( int i = 0; i < ans.size(); i++ ) {cout << ans[i] << endl;}}