結果
問題 |
No.83 最大マッチング
|
ユーザー |
![]() |
提出日時 | 2015-05-15 02:58:30 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 360 ms / 5,000 ms |
コード長 | 426 bytes |
コンパイル時間 | 2,073 ms |
コンパイル使用メモリ | 74,652 KB |
実行使用メモリ | 63,788 KB |
最終ジャッジ日時 | 2024-07-06 03:49:40 |
合計ジャッジ時間 | 4,917 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 |
ソースコード
import java.util.Arrays; import java.util.LinkedList; import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); final int N = sc.nextInt(); final int ones = N % 2 == 0 ? N / 2 : (N - 1) / 2 - 1; if(N % 2 != 0){ System.out.print("7"); } for(int i = 0; i < ones; i++){ System.out.print("1"); } System.out.println(); } }