結果

問題 No.568 じゃんじゃん 落とす 委員会
ユーザー WA_TLEWA_TLE
提出日時 2017-08-18 09:29:00
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 549 bytes
コンパイル時間 1,443 ms
コンパイル使用メモリ 118,252 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-04-22 15:41:49
合計ジャッジ時間 3,539 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp: In function 'int main()':
main.cpp:19:28: warning: division by zero [-Wdiv-by-zero]
   19 |         if(n<1||100000<n){n/=0;}
      |                           ~^~~
main.cpp:20:23: warning: division by zero [-Wdiv-by-zero]
   20 |         if(m<1||n<m){n/=0;}
      |                      ~^~~
main.cpp:23:31: warning: division by zero [-Wdiv-by-zero]
   23 |                 if(x<0||3<x){x/=0;}
      |                              ~^~~
main.cpp:24:36: warning: division by zero [-Wdiv-by-zero]
   24 |                 if(a<0||a>100000){a/=0;}
      |                                   ~^~~
main.cpp:25:36: warning: division by zero [-Wdiv-by-zero]
   25 |                 if(b<0||b>100000){b/=0;}
      |                                   ~^~~

ソースコード

diff #

#include<string>
#include<deque>
#include<queue>
#include<vector>
#include<algorithm>
#include<iostream>
#include<set>
#include<cmath>
#include<tuple>
#include<chrono>
#include<functional>
#include<iterator>
#include<random>
using namespace std;
const int maxsei=100001;
int main(void){
	//制約を満たさなければRE
	int n,m;cin>>n>>m;
	if(n<1||100000<n){n/=0;}
	if(m<1||n<m){n/=0;}
	for(int i=0;i<n;i++){
		int x,a,b;cin>>x>>a>>b;
		if(x<0||3<x){x/=0;}
		if(a<0||a>100000){a/=0;}
		if(b<0||b>100000){b/=0;}
	}
	cout<<"ok"<<endl;
	return 0;
}
0