結果
| 問題 | No.207 世界のなんとか |
| コンテスト | |
| ユーザー |
hanorver
|
| 提出日時 | 2015-08-24 21:57:50 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 378 bytes |
| 記録 | |
| コンパイル時間 | 617 ms |
| コンパイル使用メモリ | 72,820 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-04-25 13:26:31 |
| 合計ジャッジ時間 | 1,320 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
}
hanorver