結果
| 問題 | 
                            No.1317 月曜日の朝、WAを出した
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2020-12-14 00:55:44 | 
| 言語 | C++14  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 296 bytes | 
| コンパイル時間 | 451 ms | 
| コンパイル使用メモリ | 64,764 KB | 
| 実行使用メモリ | 6,944 KB | 
| 最終ジャッジ日時 | 2024-09-20 00:19:57 | 
| 合計ジャッジ時間 | 953 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 1 WA * 3 | 
コンパイルメッセージ
main.cpp:5:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    5 | main()
      | ^~~~
            
            ソースコード
#include<iostream>
using namespace std;
int N;
int A[6],B[6];
main()
{
	cin>>N;
	for(;N--;)
	{
		for(int i=0;i<6;i++)cin>>A[i];
		for(int i=0;i<6;i++)cin>>B[i];
		string x;cin>>x;
		if(x!="WA")
		{
			cout<<(B[1]==0?"Yes":"No")<<endl;
		}
		else
		{
			cout<<(A[1]==0?"Yes":"No")<<endl;
		}
	}
}