結果
問題 |
No.207 世界のなんとか
|
ユーザー |
|
提出日時 | 2015-12-10 08:55:43 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 450 bytes |
コンパイル時間 | 663 ms |
コンパイル使用メモリ | 57,432 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-15 07:26:41 |
合計ジャッジ時間 | 1,454 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 9 WA * 10 |
ソースコード
#include <iostream> #include <string> int main() { int A, B, o[100]; std::string str[100]; std::cin >> A; std::cin >> B; for(int i = A; i <= B; i++) { o[i - A] = i; str[i - A] = std::to_string(i); } for(int i = 0; i < B - A; i++) { if(o[i] % 3 == 0) { std::cout << o[i] << std::endl; continue; } for(const char c : str[i]) { if(c == '3') { std::cout << str[i] << std::endl; break; } } } return 0; }