結果
| 問題 |
No.207 世界のなんとか
|
| コンテスト | |
| ユーザー |
GN_ka02
|
| 提出日時 | 2015-05-15 22:34:24 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 337 bytes |
| コンパイル時間 | 1,370 ms |
| コンパイル使用メモリ | 158,252 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-07-06 04:06:39 |
| 合計ジャッジ時間 | 1,617 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 8 WA * 11 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:12:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
12 | scanf("%d%d",&a,&b);
| ~~~~~^~~~~~~~~~~~~~
ソースコード
//C++14 template AOJ compare:http://atetubou.6.ql.bz/
#include<bits/stdc++.h>
#include<cstdio>
using namespace std;
#define REP(a,b,c) for(a=b;a<c;a++)
#define rep(x,y,z) for(x=y:x=z;x--)
#define PI 3.14159265359
int main(){
int a,b;
scanf("%d%d",&a,&b);
for(int i=a;i<=b;i++){
if(i%3==0||i%10==3||i/10==3)cout<<i<<endl;
}
}
GN_ka02