結果
| 問題 |
No.207 世界のなんとか
|
| コンテスト | |
| ユーザー |
パキギメ
|
| 提出日時 | 2025-03-20 22:56:21 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 402 bytes |
| コンパイル時間 | 676 ms |
| コンパイル使用メモリ | 69,424 KB |
| 実行使用メモリ | 7,324 KB |
| 最終ジャッジ日時 | 2025-03-20 22:56:23 |
| 合計ジャッジ時間 | 1,588 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 19 |
ソースコード
#include <iostream>
#include <string>
using namespace std;
int main(){
int i , a , b , f;
string str_i;
cin >> a >> b ;
for(i = a;i < b+1;i++){
if(i % 3 == 0){
cout << i << endl;
}
else {
str_i = to_string(i);
f = str_i.find("3");
}
if (i%3!=0 && f != -1){
cout << i << endl;
}
}
return 0;
}
パキギメ