結果
| 問題 |
No.207 世界のなんとか
|
| コンテスト | |
| ユーザー |
focus
|
| 提出日時 | 2018-01-22 18:43:31 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 457 bytes |
| コンパイル時間 | 705 ms |
| コンパイル使用メモリ | 59,096 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-26 00:55:07 |
| 合計ジャッジ時間 | 1,300 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 6 WA * 13 |
ソースコード
#include<iostream>
#include<vector>
#include<algorithm>
#include<cstdio>
using namespace std;
int main(){
long long a,b,sum=0;
cin >> a >> b;
for(long long i=a;i<=b;i++){
for(long long j=10;j<=1000000000;j*=10){
if(i%j==3){
cout << i << endl;
break;
}
if(i%3==0){
cout << i << endl;
break;
}
}
}
return 0;
}
focus