結果

問題 No.3218 Night Equation
ユーザー ジュ・ビオレ・グレイス
提出日時 2025-08-01 21:41:21
言語 D
(dmd 2.109.1)
結果
WA  
実行時間 -
コード長 303 bytes
コンパイル時間 1,417 ms
コンパイル使用メモリ 86,400 KB
実行使用メモリ 7,720 KB
最終ジャッジ日時 2025-08-01 21:41:28
合計ジャッジ時間 3,022 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 1
other AC * 1 WA * 28
権限があれば一括ダウンロードができます

ソースコード

diff #

import std.stdio, std.algorithm, std.array, std.conv, std.typecons;

alias Set = bool[3 * 10^^5];

void main() {
	readln;
	auto A = readln.split.to!(long[]);
	
	foreach (a; A) {
		if (a < 0) {
			writeln("Yes");
			return;
		}
		else if (a > 0) {
			writeln("No");
			return;
		}
	}
	
	writeln("No");
}
0