結果
| 問題 |
No.207 世界のなんとか
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-10-12 16:05:20 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 379 bytes |
| コンパイル時間 | 543 ms |
| コンパイル使用メモリ | 69,092 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-10-12 17:47:34 |
| 合計ジャッジ時間 | 1,210 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 7 WA * 12 |
ソースコード
#include <iostream>
#include <cmath>
using namespace std;
int main(){
int A, B;
cin >> A >> B;
for(int i=A; i<=B; i++){
int temp = i;
int cnt = 1;
while(temp > 1){
if(temp!=0&&temp%3==0){
cout << i << endl;
break;
}
temp /= pow(10, cnt);
cnt++;
}
}
}