結果
問題 | No.308 素数は通れません |
ユーザー | kuuso1 |
提出日時 | 2015-12-01 02:15:28 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 1,478 bytes |
コンパイル時間 | 2,388 ms |
コンパイル使用メモリ | 114,640 KB |
実行使用メモリ | 27,728 KB |
最終ジャッジ日時 | 2024-09-14 06:17:25 |
合計ジャッジ時間 | 6,849 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 23 ms
17,536 KB |
testcase_01 | AC | 23 ms
17,664 KB |
testcase_02 | AC | 23 ms
17,536 KB |
testcase_03 | AC | 23 ms
17,664 KB |
testcase_04 | AC | 23 ms
17,664 KB |
testcase_05 | AC | 23 ms
17,664 KB |
testcase_06 | AC | 24 ms
17,536 KB |
testcase_07 | AC | 23 ms
17,280 KB |
testcase_08 | AC | 23 ms
17,664 KB |
testcase_09 | AC | 23 ms
17,536 KB |
testcase_10 | AC | 23 ms
17,664 KB |
testcase_11 | AC | 22 ms
17,536 KB |
testcase_12 | AC | 22 ms
17,664 KB |
testcase_13 | WA | - |
testcase_14 | WA | - |
testcase_15 | AC | 22 ms
17,536 KB |
testcase_16 | AC | 22 ms
17,408 KB |
testcase_17 | AC | 22 ms
17,536 KB |
testcase_18 | AC | 22 ms
17,664 KB |
testcase_19 | AC | 22 ms
17,536 KB |
testcase_20 | AC | 24 ms
17,664 KB |
testcase_21 | AC | 23 ms
17,408 KB |
testcase_22 | AC | 22 ms
17,664 KB |
testcase_23 | AC | 24 ms
17,408 KB |
testcase_24 | AC | 23 ms
17,664 KB |
testcase_25 | AC | 22 ms
17,536 KB |
testcase_26 | AC | 23 ms
17,792 KB |
testcase_27 | AC | 23 ms
17,280 KB |
testcase_28 | AC | 23 ms
17,664 KB |
testcase_29 | AC | 23 ms
17,536 KB |
testcase_30 | AC | 23 ms
17,792 KB |
testcase_31 | AC | 22 ms
17,664 KB |
testcase_32 | AC | 23 ms
17,408 KB |
testcase_33 | AC | 23 ms
17,664 KB |
testcase_34 | AC | 23 ms
17,536 KB |
testcase_35 | AC | 23 ms
17,536 KB |
testcase_36 | AC | 23 ms
17,536 KB |
testcase_37 | AC | 23 ms
17,664 KB |
testcase_38 | AC | 23 ms
17,792 KB |
testcase_39 | AC | 23 ms
17,536 KB |
testcase_40 | AC | 23 ms
17,536 KB |
testcase_41 | AC | 23 ms
17,408 KB |
testcase_42 | AC | 22 ms
17,664 KB |
testcase_43 | AC | 24 ms
17,536 KB |
testcase_44 | AC | 22 ms
17,536 KB |
testcase_45 | AC | 23 ms
17,408 KB |
testcase_46 | AC | 23 ms
17,536 KB |
testcase_47 | AC | 23 ms
17,536 KB |
testcase_48 | AC | 23 ms
17,408 KB |
testcase_49 | AC | 22 ms
17,664 KB |
testcase_50 | AC | 22 ms
17,536 KB |
testcase_51 | AC | 22 ms
17,664 KB |
testcase_52 | AC | 23 ms
17,664 KB |
testcase_53 | AC | 23 ms
17,152 KB |
testcase_54 | AC | 23 ms
17,792 KB |
testcase_55 | AC | 22 ms
17,792 KB |
testcase_56 | WA | - |
testcase_57 | AC | 23 ms
17,536 KB |
testcase_58 | AC | 23 ms
17,792 KB |
testcase_59 | AC | 22 ms
17,408 KB |
testcase_60 | AC | 22 ms
17,664 KB |
testcase_61 | AC | 23 ms
17,664 KB |
testcase_62 | AC | 23 ms
17,408 KB |
testcase_63 | WA | - |
testcase_64 | AC | 23 ms
17,536 KB |
testcase_65 | AC | 22 ms
17,536 KB |
testcase_66 | AC | 23 ms
17,664 KB |
testcase_67 | AC | 22 ms
17,664 KB |
testcase_68 | AC | 23 ms
17,408 KB |
testcase_69 | AC | 23 ms
17,664 KB |
testcase_70 | AC | 22 ms
17,664 KB |
testcase_71 | AC | 23 ms
17,536 KB |
testcase_72 | AC | 23 ms
17,664 KB |
testcase_73 | AC | 22 ms
17,536 KB |
testcase_74 | AC | 22 ms
17,536 KB |
testcase_75 | AC | 22 ms
17,792 KB |
testcase_76 | AC | 23 ms
17,408 KB |
testcase_77 | AC | 23 ms
17,536 KB |
testcase_78 | AC | 22 ms
17,536 KB |
testcase_79 | AC | 22 ms
17,664 KB |
testcase_80 | AC | 22 ms
17,536 KB |
testcase_81 | AC | 23 ms
17,664 KB |
testcase_82 | AC | 22 ms
17,664 KB |
testcase_83 | AC | 22 ms
17,536 KB |
testcase_84 | AC | 22 ms
17,280 KB |
testcase_85 | AC | 22 ms
17,280 KB |
testcase_86 | AC | 22 ms
17,408 KB |
testcase_87 | AC | 23 ms
17,536 KB |
testcase_88 | AC | 23 ms
17,664 KB |
testcase_89 | AC | 23 ms
17,536 KB |
testcase_90 | AC | 23 ms
17,536 KB |
testcase_91 | AC | 23 ms
17,536 KB |
testcase_92 | AC | 23 ms
17,664 KB |
testcase_93 | AC | 23 ms
17,664 KB |
testcase_94 | AC | 22 ms
17,280 KB |
testcase_95 | AC | 23 ms
17,536 KB |
testcase_96 | WA | - |
testcase_97 | AC | 23 ms
17,664 KB |
testcase_98 | AC | 23 ms
17,408 KB |
testcase_99 | WA | - |
testcase_100 | WA | - |
testcase_101 | AC | 22 ms
17,408 KB |
testcase_102 | AC | 22 ms
17,792 KB |
testcase_103 | AC | 22 ms
17,664 KB |
testcase_104 | AC | 22 ms
17,536 KB |
testcase_105 | AC | 22 ms
17,536 KB |
testcase_106 | WA | - |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; class TEST{ static void Main(){ Sol mySol =new Sol(); mySol.Solve(); } } class Sol{ public void Solve(){ N=0; if(S.Length<4){ N=long.Parse(S); }else{ N=long.Parse(S.Substring(S.Length-4)); } int ans=0; switch(N){ case 4: ans=3;break; case 6: ans=5;break; case 8: ans=7;break; case 9: ans=7;break; case 10: ans=7;break; case 15: ans=7;break; case 16: ans=7;break; case 22: ans=7;break; case 20: ans=19;break; case 21: ans=19;break; case 14: ans=13;break; case 12: ans=11;break; case 33: ans=8;break; case 57: ans=8;break; case 65: ans=8;break; default: if(N%8==1){ ans=14; }else{ ans=8; }break; } Console.WriteLine(ans); } String S; long N; public Sol(){ S=rs(); } static String rs(){return Console.ReadLine();} static int ri(){return int.Parse(Console.ReadLine());} static long rl(){return long.Parse(Console.ReadLine());} static double rd(){return double.Parse(Console.ReadLine());} static String[] rsa(){return Console.ReadLine().Split(' ');} static int[] ria(){return Array.ConvertAll(Console.ReadLine().Split(' '),e=>int.Parse(e));} static long[] rla(){return Array.ConvertAll(Console.ReadLine().Split(' '),e=>long.Parse(e));} static double[] rda(){return Array.ConvertAll(Console.ReadLine().Split(' '),e=>double.Parse(e));} }