結果
問題 | No.207 世界のなんとか |
ユーザー |
|
提出日時 | 2016-05-14 13:37:27 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 5,000 ms |
コード長 | 338 bytes |
コンパイル時間 | 519 ms |
コンパイル使用メモリ | 64,436 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-11 00:47:53 |
合計ジャッジ時間 | 1,214 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 19 |
ソースコード
#include <iostream>bool isThreeNumber(int i){if (i % 3 == 0) {return true;}while (i > 0) {if (i % 10 == 3) {return true;}i = i / 10;}return false;}int main(){int a, b;std::cin >> a >> b;for (int i = a; i <= b; ++i) {if (isThreeNumber(i)) {std::cout << i << std::endl;}}return 0;}