結果
問題 | No.207 世界のなんとか |
ユーザー |
![]() |
提出日時 | 2015-11-02 22:50:37 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 481 bytes |
コンパイル時間 | 554 ms |
コンパイル使用メモリ | 54,232 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-09 10:38:12 |
合計ジャッジ時間 | 1,204 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 19 |
ソースコード
#include<iostream>#include<stdio.h>using namespace std;int main(){long long int a, b;cin>> a>> b;long long int hoge;for(int i=0; i<=b-a; i++){hoge = a+i;if(hoge%3 == 0){cout<< hoge<< endl;}else{while(hoge!=0){if(hoge%10 == 3){cout<< a+i<< endl;break;}hoge /= 10;}}}return 0;}