結果
| 問題 |
No.207 世界のなんとか
|
| コンテスト | |
| ユーザー |
waywaywaiwai
|
| 提出日時 | 2017-07-20 15:53:22 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 451 bytes |
| コンパイル時間 | 611 ms |
| コンパイル使用メモリ | 54,136 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-08 17:44:34 |
| 合計ジャッジ時間 | 1,449 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 19 |
ソースコード
#include<iostream>
using namespace std;
int main(){
int A, B, nowNumber, num, dig, countThree;
cin >> A >> B;
for(nowNumber=A;nowNumber<=B;nowNumber++){
if(nowNumber % 3 == 0){
cout << nowNumber << endl;
}else{
countThree = 0;
num = nowNumber;
while(num > 0){
dig = num % 10;
num = num / 10;
if(dig == 3){
countThree+=1;
}
}
if(countThree > 0){
cout << nowNumber << endl;
}
}
}
}
waywaywaiwai