結果
問題 | No.207 世界のなんとか |
ユーザー |
|
提出日時 | 2019-01-14 11:49:55 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 568 bytes |
コンパイル時間 | 708 ms |
コンパイル使用メモリ | 68,864 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-11 07:05:04 |
合計ジャッジ時間 | 1,608 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 19 |
ソースコード
#include <iostream>#include <stdio.h>#include <cmath>#define FOR(i, a, b) for (int i = a; i < b; i++)#define FORN(i, a, b) for (int i = a; i <= b; i++)using namespace std;//// Created by karayuu on 2019-01-14.//int main() {int a, b;cin >> a >> b;FORN(i, a, b) {string s = to_string(i);FOR(j, 0, s.size()) {if (s[j] == '3') {cout << s << endl;break;} else if (i % 3 == 0) {cout << s << endl;break;}}}}