結果
| 問題 |
No.207 世界のなんとか
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-12-03 20:11:18 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 292 bytes |
| コンパイル時間 | 1,412 ms |
| コンパイル使用メモリ | 164,944 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-06 03:36:28 |
| 合計ジャッジ時間 | 2,140 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 19 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
bool Can(long long x)
{
if(x%3==0)
return true;
while(x)
{
if(x%10==3)
return true;
x/=10;
}
return false;
}
int main()
{
long long a,b;
cin>>a>>b;
for(long long i=a;i<=b;i++)
{
if(Can(i))
{
printf("%lld\n",i);
}
}
}