結果
問題 | No.83 最大マッチング |
ユーザー |
![]() |
提出日時 | 2018-04-19 16:13:00 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 404 ms / 5,000 ms |
コード長 | 445 bytes |
コンパイル時間 | 2,122 ms |
コンパイル使用メモリ | 74,544 KB |
実行使用メモリ | 63,604 KB |
最終ジャッジ日時 | 2024-06-27 04:50:03 |
合計ジャッジ時間 | 5,352 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 |
ソースコード
import java.util.Scanner;public class Main{public static void main(String[] args) {//System.out.println("数字");Scanner scanner = new Scanner(System.in);int N = scanner.nextInt();scanner.close();if(N % 2 == 0) {int k = N / 2;for(int i = 0; i < k; i++) {System.out.print("1");}}else {System.out.print("7");int k = N / 2;for(int i = 0; i < k - 1; i++) {System.out.print("1");}}}}