結果
| 問題 | No.568 じゃんじゃん 落とす 委員会 | 
| コンテスト | |
| ユーザー |  WA_TLE | 
| 提出日時 | 2017-08-18 09:29:00 | 
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 549 bytes | 
| コンパイル時間 | 1,065 ms | 
| コンパイル使用メモリ | 114,156 KB | 
| 最終ジャッジ日時 | 2025-01-05 02:22:33 | 
| ジャッジサーバーID (参考情報) | judge1 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | WA * 26 | 
コンパイルメッセージ
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;}
      |                                   ~^~~
            
            ソースコード
#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;
}
            
            
            
        