結果
問題 | No.83 最大マッチング |
ユーザー | tsunabit |
提出日時 | 2018-08-19 14:13:05 |
言語 | Java21 (openjdk 21) |
結果 |
WA
|
実行時間 | - |
コード長 | 522 bytes |
コンパイル時間 | 3,424 ms |
コンパイル使用メモリ | 75,080 KB |
実行使用メモリ | 65,328 KB |
最終ジャッジ日時 | 2023-08-10 19:55:50 |
合計ジャッジ時間 | 6,571 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 114 ms
55,916 KB |
testcase_01 | WA | - |
testcase_02 | AC | 109 ms
55,964 KB |
testcase_03 | WA | - |
testcase_04 | AC | 111 ms
56,140 KB |
testcase_05 | WA | - |
testcase_06 | AC | 117 ms
55,688 KB |
testcase_07 | WA | - |
testcase_08 | AC | 115 ms
55,920 KB |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | AC | 380 ms
63,772 KB |
ソースコード
import java.util.*; import java.util.stream.Stream; import java.time.*; import java.time.format.*; public class No83 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); if(n%2 == 0) { for(int i = 0; i < n/2 ;i++) { System.out.print("1"); } }else { System.out.print("7"); for(int i = 0 ; i < n/2 ; i++) { System.out.print("1"); } } } }