結果

問題 No.1955 Not Prime
ユーザー FF256grhyFF256grhy
提出日時 2022-05-21 06:20:50
言語 cLay
(20231016-1)
結果
AC  
実行時間 297 ms / 2,000 ms
コード長 176 bytes
コンパイル時間 8,615 ms
コンパイル使用メモリ 266,948 KB
実行使用メモリ 28,820 KB
最終ジャッジ日時 2023-10-20 15:35:03
合計ジャッジ時間 10,089 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 4 ms
5,716 KB
testcase_01 AC 3 ms
5,716 KB
testcase_02 AC 4 ms
5,716 KB
testcase_03 AC 4 ms
5,716 KB
testcase_04 AC 3 ms
5,712 KB
testcase_05 AC 3 ms
5,716 KB
testcase_06 AC 9 ms
5,852 KB
testcase_07 AC 99 ms
6,540 KB
testcase_08 AC 89 ms
6,284 KB
testcase_09 AC 88 ms
6,284 KB
testcase_10 AC 297 ms
5,736 KB
testcase_11 AC 36 ms
28,820 KB
testcase_12 AC 39 ms
5,860 KB
testcase_13 AC 116 ms
6,540 KB
testcase_14 AC 50 ms
5,924 KB
testcase_15 AC 51 ms
5,888 KB
testcase_16 AC 118 ms
6,280 KB
testcase_17 AC 241 ms
7,844 KB
testcase_18 AC 130 ms
6,540 KB
testcase_19 AC 164 ms
7,332 KB
testcase_20 AC 4 ms
5,716 KB
testcase_21 AC 43 ms
5,892 KB
testcase_22 AC 4 ms
5,716 KB
testcase_23 AC 4 ms
5,716 KB
testcase_24 AC 4 ms
5,716 KB
testcase_25 AC 3 ms
5,716 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<atcoder/all>
{ll@n,@a[2n];atcoder::two_sat s(n);rep(i,2n)rep(j,2n)if(isPrime(10**Digit(a[j])*a[i]+a[j]))s.add_clause(i/2,~i%2,j/2,j%2);wt(s.satisfiable()?"Yes":"No");}
0