結果
問題 | No.207 世界のなんとか |
ユーザー |
![]() |
提出日時 | 2015-08-24 21:57:50 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 378 bytes |
コンパイル時間 | 415 ms |
コンパイル使用メモリ | 56,672 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-09 10:29:43 |
合計ジャッジ時間 | 1,087 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 19 |
ソースコード
#include<iostream>#include<string>#include<algorithm>int main() {int start, end;std::cin >> start >> end;while (start <= end) {if (start % 3 == 0) std::cout << start << std::endl;else {int num = start;while (num != 0) {if (num % 10 == 3) {std::cout << start << std::endl;break;}num /= 10;}}start++;}return 0;}